Advertisement
fastman92

_CPool_CVehicle__constructor

Oct 14th, 2013
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.58 KB | None | 0 0
  1. void *__thiscall _CPool_CVehicle__constructor(CPool *this, int maxCount, char *a3)
  2. {
  3.   int i; // eax@1
  4.   CPool *v4; // esi@1
  5.   BYTE *v5; // edx@2
  6.   BYTE *v6; // ecx@2
  7.  
  8.   v4 = this;
  9.   this->objects = (void *)operator new(2584 * maxCount);
  10.   v4->byteMap = (BYTE *)operator new(maxCount);
  11.   i = 0;
  12.   v4->initialized = 1;
  13.   v4->size = maxCount;
  14.   for ( v4->top = -1; i < maxCount; *v6 = (unsigned __int8)v5 )
  15.   {
  16.     v4->byteMap[i] |= 0x80;                     // set highest bit ON
  17.     v5 = v4->byteMap;
  18.     v6 = &v5[i];
  19.     LOBYTE(v5) = v5[i++] & 0x80;
  20.   }
  21.   return v4;
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement