Hey guys,
I'm trying to cheat on this game (duh) which is quite simple, but it's fun to mess around with. It has several resources (gold, wood, crystal) which are pretty easy to find (all Longs so generally 2/3 searches are enough to find the addresses). Obviously though since it's a relatively new game it's DMA so I'm trying to get the dynamic addresses through code injection. The thing is though: All resources use the same methods/functions to access the values. Which wouldn't be much of a problem usually if it was something similar to (EAX +8 EAX +F etc.) but even the timer that runs through the game accesses the same method. So what I'd like to do is set a breakpoint for a specific call (i.e. set breakpoint, decrease the gold value and look at the stacktrace and find the differences between traces for wood/crystal/time). I'd just like a hint on how I could do this and what to use. I just don't seem able to really even set a breakpoint and have it actually break.
To illustrate my point a bit though here's some info:
Gold (0835AF08)
Address OpCode Disassembly Hits
004117E6 8948 08 MOV DWORD PTR [EAX+8], ECX 8
00411936 8948 08 MOV DWORD PTR [EAX+8], ECX 7
00411649 894E 08 MOV DWORD PTR [ESI+8], ECX 1
Wood (0835AF18)
Address OpCode Disassembly Hits
004117E6 8948 08 MOV DWORD PTR [EAX+8], ECX 8
00411936 8948 08 MOV DWORD PTR [EAX+8], ECX 2
00411649 894E 08 MOV DWORD PTR [ESI+8], ECX 1