Posted: Tue Sep 28, 2021 12:32 pm Post subject: A game accessing seemingly impossible to access instruction
Hello guys!
I'm trying to write a cheat for a game called "50 years". So I was trying to get a script for money, when I found out that the value used for it is a double. That's weird though (to me), because the game is 32-bit.
What's weirder though, is that the code dissector doesn't show any jumps to it and you can see (in the pic) that the instruction is after a ret.
So I wanted to ask you about pretty much:
- And how come there doesn't seem to be a path leading to that code?
- Why doubles are used inside a 32-bit game?
It's not the first time I'm seeing a 32-bit game, using doubles and not float, but as far as I know, it might be something normal. I'm kinda noob still. But I see a problem with unaccessible code, so that's
the main question about this topic. I'd be happy to find out more about both though. I'm open for suggestions.
Cheers and thanks in advance!
P.S: I tried Brake and Trace for the money value, but I can't seem to find a static call either ( one that executes only on buying stuff ). Might be useful to know
unknownAccess.png
Description:
A picture of: the game, value in CE, the Code Dissector and Memory Viewer.
And how come there doesn't seem to be a path leading to that code?
Because CE can only display stuff it knows about. If you didn't dissect code, then it's probably because there isn't a jump instruction in view; if you did, then it's probably an indirect jump (e.g. jump table, vtable call, etc.). CE isn't smart enough to see everything.
sandsmaster wrote:
Why doubles are used inside a 32-bit game?
They have more precision than floats. I haven't noticed any difference between 32-bit and 64-bit architectures with regard to the semantic use of floats and doubles. It's not like 32-bit architectures don't have adequate hardware support for doubles.
The only difference I've noticed is the implementation choice of hardware extensions used: 32-bit usually uses x87 and 64-bit almost always uses SSE. _________________
I don't know where I'm going, but I'll figure it out when I get there.
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