MaxtorCoder

ClientCharacterCreate

Nov 27th, 2018
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.25 KB | None | 0 0
  1. signed int __cdecl sub_461DF0(_DWORD *a1, int a2)
  2. {
  3.   int v2; // eax
  4.   int v3; // ecx
  5.   signed int result; // eax
  6.   int v5; // ecx
  7.  
  8.   v2 = a1[1];
  9.   v3 = *(_DWORD *)a2;
  10.   if ( v2 && (unsigned int)(8 * (*(_DWORD *)(v2 + 12) - *(_DWORD *)(v2 + 16)) - a1[2]) >= 0x40 )
  11.   {
  12.     Packet::WriteBits(a1 + 2, (_DWORD **)(v2 + 16), v3, 0, 0x20u);
  13.   }
  14.   else
  15.   {
  16.     result = Packet::WriteBits2(a1, (unsigned int)v3, 0x20u);
  17.     if ( result < 0 )
  18.       return result;
  19.   }
  20.   result = Packet::WriteWideString(a1, *(const unsigned __int16 **)(a2 + 4));
  21.   if ( result >= 0 )
  22.   {
  23.     result = sub_483E20(*(_DWORD *)(a2 + 8), v5);
  24.     if ( result >= 0 )
  25.     {
  26.       result = sub_483CB0(*(_DWORD *)(a2 + 12), 32);
  27.       if ( result >= 0 )
  28.       {
  29.         result = sub_69A960(*(_DWORD *)(a2 + 16), *(_DWORD *)(a2 + 16) + 4 * *(_DWORD *)(a2 + 12));
  30.         if ( result >= 0 )
  31.         {
  32.           result = sub_69A960(*(_DWORD *)(a2 + 20), *(_DWORD *)(a2 + 20) + 4 * *(_DWORD *)(a2 + 12));
  33.           if ( result >= 0 )
  34.           {
  35.             result = sub_483CB0(*(_DWORD *)(a2 + 24), 32);
  36.             if ( result >= 0 )
  37.               result = sub_69A960(*(_DWORD *)(a2 + 28), *(_DWORD *)(a2 + 28) + 4 * *(_DWORD *)(a2 + 24));
  38.           }
  39.         }
  40.       }
  41.     }
Advertisement
Add Comment
Please, Sign In to add comment