View Single Post
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 03-10-2011 , 14:32   Re: Orpheu: Searching for functions in libraries
Reply With Quote #22

I've tried to search for InstallGameRules too, and the offset matches with yours,
but mine doesn't have the "exec game.cfg\n" string in it.
Did i do something wrong ?

Code:
//----- (000B3C10) --------------------------------------------------------
int __cdecl InstallGameRules()
{
  int result; // eax@2
  int v1; // esi@1
  int v3; // eax@2
  int v4; // eax@3

  v1 = *(_DWORD *)((char *)loc_1326EB + 746809);
  (*(int (__cdecl **)(char *))(v1 + 156))((char *)loc_1326EB + 512685);
  (*(int (**)(void))(v1 + 160))();
  _EAX = **(_DWORD **)((char *)loc_1326EB + 744429);
  __asm
  {
    fldz
    fld     dword ptr [eax+14h]
    fucompp
    fnstsw  ax
  }
  if ( BYTE1(_EAX) & 0x44 ^ 0x40 )
  {
    v4 = __builtin_new(0x2C4u);
    result = __18CHalfLifeMultiplay(v4);
  }
  else
  {
    v3 = __builtin_new(0x2D8u);
    result = __17CHalfLifeTraining(v3);
  }
  return result;
}
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes