Problem with CGlobalVarsBase
I have a problem with CGlobalVarsBase. The class returns a bad value. How do I fix this?
i.imgur . com/KeiqUld.png
I tried to get the class in this way
Code:
Globals = **(CGlobalVarsBase***)((*(DWORD**)Client)[0] + 0xA3);
And so here it is
Code:
PDWORD pdwClient = (PDWORD)*(PDWORD)Client;
DWORD dwInitAddr = (DWORD)(pdwClient[0]);
for (DWORD dwIter = 0; dwIter <= 0xFF; dwIter++)
{
if (*(PBYTE)(dwInitAddr + dwIter) == 0xA3)
{
Globals = (CGlobalVarsBase*)*(PDWORD)*(PDWORD)(dwInitAddr + dwIter + 1);
break;
}
}