Posted: Sun Oct 22, 2017 9:16 pm Post subject: Help me understanding subroutine (asm)
So i are in search for the base address of the players health in this game. I think i have found the subroutine for takeing damage.
This code in the image is run every time players takes a hit. And if i replace the subss instruction with codes that does nothing, no health is taken from player.
I guess the health is a float? is that common? becuse movss,subss are float number instruction i read somewhere.. and xmm0 is a 128bit register commonly used for float, i also read somewhere..
This subroutine is changing 3 bytes i memory ( found in ecx register when pop'ed ), but what i cant figure out is how those 3 bytes converts to the players health ingame?
Becuse when the 3 bytes are: 99 189 74 then ingame health is 11..
And when the 3 byts are: 196 234 31 is 31 ingame..
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum