Advertisement
Guest User

Untitled

a guest
Jul 27th, 2017
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.71 KB | None | 0 0
  1. signed int __cdecl CLuaGetMoney(int a1)
  2. {
  3.   int _EAX; // eax@6
  4.   signed int result; // eax@8
  5.   float v4; // ST10_4@8
  6.   char v5; // [sp+8h] [bp-Ch]@1
  7.  
  8.   if ( sub_AA0400(a1, 1, "CLuaPlayer", 0, &v5) && Lua_GetObjectInstance(a1, 2, &v5) )
  9.   {
  10.     if ( !sub_A9EF60(a1, 1, 0) )
  11.       Lua_Throw_Error(a1, "invalid 'self' in function 'GetMoney'", 0);
  12.     if ( *(_DWORD *)(LODWORD(dword_118FB24) + 0x3570) )
  13.       _EAX = sub_62E470(3);
  14.     else
  15.       _EAX = 0;
  16.     __asm
  17.     {
  18.       cvtsi2ss xmm0, eax
  19.       movss   [esp+14h+var_14], xmm0
  20.     }
  21.     sub_A9FB20(a1, v4);
  22.     result = 1;
  23.   }
  24.   else
  25.   {
  26.     Lua_Throw_Error(a1, "#ferror in function 'GetMoney'.", &v5);
  27.     result = 0;
  28.   }
  29.   return result;
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement