Raised This Month: $ Target: $400
 0% 

Orpheu replace variable


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
DarkGL
Senior Member
Join Date: Aug 2010
Location: Warsaw, Poland
Old 08-05-2011 , 07:54   Orpheu replace variable
Reply With Quote #1

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 ?
DarkGL is offline
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 03:26.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode