I want to replace variable value in function for example
Code:
signed int __cdecl SV_CheckKeyInfo(int a1, int a2, int a3, int a4, int a5, char *s)
{
int v6; // edi@1
int v7; // eax@1
signed int result; // eax@2
int v9; // esi@3
v7 = Info_ValueForKey(a2, "prot");
v6 = Q_atoi(v7);
if ( (unsigned int)(v6 - 1) <= 3 )
{
v9 = Info_ValueForKey(a2, "raw");
if ( Q_strlen(v9) > 0 && (v6 != 2 || Q_strlen(v9) == 32) )
{
Q_strcpy(a5, v9);
if ( v6 == 2 || (v9 = Info_ValueForKey(a2, "cdkey"), Q_strlen(v9) == 32) )
{
snprintf(s, 0x40u, "%s", v9);
*(_WORD *)a3 = Q_atoi("27005");
*(_DWORD *)a4 = v6;
result = 1;
}
else
{
SV_RejectConnection(a1, "Invalid hashed CD key.\n");
result = 0;
}
}
else
{
SV_RejectConnection(a1, "Invalid authentication certificate length.\n");
result = 0;
}
}
else
{
SV_RejectConnection(a1, "Invalid connection.\n");
result = 0;
}
return result;
}
and I want to set v6 to 2 and result to 5 it's possible ?