So, I have code in naked function.
and its can show me value from the game inside ..
Its just take the varible, the score in game.
and put it in C++ global varible ..
I wanna change this score .
and I tried to change the function itself.
But the game its crashing .. (Codecave)
__declspec(naked) void ExtractScore(void)
{
__asm
{
pop ExtractScoreRetAddr
mov CurrentScore, edx
pushad
pushfd
}
CurrentScore = THE SCORE
__asm
{
popfd
popad
cmp edx, 0x3B9ACA00
push ExtractScoreRetAddr
ret
}
}
So, how we can edit it ?
I tried to move to edx, or add him ..
But noting .. (the game is crashing)
Btw ..
cmp edx, 0x3B9ACA00
its 7 Bytes .