bool v6; // zf
int v7; // eax
_DWORD *v8; // eax
const char *v9; // eax
const char *v10; // ST14_4
SFSAMP *v11; // eax
stChatInfo *v12; // eax
DWORD flOldProtect; // [esp+4h] [ebp-10h]
int v15; // [esp+10h] [ebp-4h]
v6 = byte_1001484C == 1;
byte_1001484C ^= 1u;
v15 = 0;
if ( v6 )
{
v7 = dword_10014848;
if ( *(_DWORD *)(dword_10014848 + 1532) > 1 )
{
flOldProtect = 0;
VirtualProtect((LPVOID)(dword_10014848 + 1532), 2u, 0x40u, &flOldProtect);
*(_DWORD *)(dword_10014848 + 1532) = 1;
VirtualProtect((LPVOID)(dword_10014848 + 1532), 2u, flOldProtect, 0);
v7 = dword_10014848;
}
v8 = (_DWORD *)(v7 + 1616);
if ( *v8 > 1 )
{
flOldProtect = 0;
VirtualProtect(v8, 2u, 0x40u, &flOldProtect);
*(_DWORD *)(dword_10014848 + 1616) = 1;
VirtualProtect((LPVOID)(dword_10014848 + 1616), 2u, flOldProtect, 0);
}
}
v9 = "{44FF44}on";
if ( !byte_1001484C )
v9 = "{FF4444}off";
v10 = v9;
v11 = SAMPFUNCS::getSAMP((SAMPFUNCS *)dword_10014850);
v12 = SFSAMP::getChat(v11);
stChatInfo::AddChatMessage(v12, 0xFFFFFFFF, "plus 'C' for shotgun \\ %s", v10);
return sub_1000115D(&a1);