- char __thiscall PH_SMSG_ROLE_POLL_BEGIN(void *this, int a2, int a3)
- {
- char result; // al@1
- int v4; // edi@1
- SMSG_ROLE_POLL_BEGIN_struct *v5; // esi@1
- unsigned __int8 v6; // al@1
- unsigned int v7; // ecx@1
- unsigned int v8; // ecx@1
- unsigned int v9; // ecx@1
- unsigned int v10; // ecx@1
- unsigned int v11; // ecx@1
- unsigned int v12; // edx@1
- unsigned __int8 v13; // [sp+Fh] [bp-1h]@1
- v4 = a2;
- v5 = (SMSG_ROLE_POLL_BEGIN_struct *)this;
- v13 = 0;
- CDataStore_GetInt8(a2, (int)&v13);
- v6 = 2 * v13;
- v5->guid[1] = (unsigned int)v13 >> 7;
- v7 = (unsigned int)v6 >> 7;
- v6 *= 2;
- v5->guid[5] = v7;
- v8 = (unsigned int)v6 >> 7;
- v6 *= 2;
- v5->guid[7] = v8;
- v9 = (unsigned int)v6 >> 7;
- v6 *= 2;
- v5->guid[3] = v9;
- v10 = (unsigned int)v6 >> 7;
- v6 *= 2;
- v5->guid[2] = v10;
- v11 = v6;
- v6 *= 2;
- v11 >>= 7;
- v12 = (unsigned int)v6 >> 7;
- result = (unsigned __int8)(2 * v6) >> 7;
- v5->guid[4] = v11;
- v5->guid[0] = v12;
- v5->guid[6] = result;
- if ( (_BYTE)v11 )
- {
- BYTE3(a2) = 0;
- result = CDataStore_GetInt8(v4, (int)((char *)&a2 + 3));
- v5->guid[4] ^= BYTE3(a2);
- }
- if ( v5->guid[7] )
- {
- BYTE3(a2) = 0;
- result = CDataStore_GetInt8(v4, (int)((char *)&a2 + 3));
- v5->guid[7] ^= BYTE3(a2);
- }
- if ( v5->guid[0] )
- {
- BYTE3(a2) = 0;
- CDataStore_GetInt8(v4, (int)((char *)&a2 + 3));
- result = BYTE3(a2);
- v5->guid[0] ^= BYTE3(a2);
- }
- if ( v5->guid[5] )
- {
- BYTE3(a2) = 0;
- result = CDataStore_GetInt8(v4, (int)((char *)&a2 + 3));
- v5->guid[5] ^= BYTE3(a2);
- }
- if ( v5->guid[1] )
- {
- BYTE3(a2) = 0;
- result = CDataStore_GetInt8(v4, (int)((char *)&a2 + 3));
- v5->guid[1] ^= BYTE3(a2);
- }
- if ( v5->guid[6] )
- {
- BYTE3(a2) = 0;
- CDataStore_GetInt8(v4, (int)((char *)&a2 + 3));
- result = BYTE3(a2);
- v5->guid[6] ^= BYTE3(a2);
- }
- if ( v5->guid[2] )
- {
- BYTE3(a2) = 0;
- result = CDataStore_GetInt8(v4, (int)((char *)&a2 + 3));
- v5->guid[2] ^= BYTE3(a2);
- }
- if ( v5->guid[3] )
- {
- BYTE3(a2) = 0;
- result = CDataStore_GetInt8(v4, (int)((char *)&a2 + 3));
- v5->guid[3] ^= BYTE3(a2);
- }
- return result;
- }