asg0noir Newbie cheater
Reputation: 0
Joined: 29 Sep 2009 Posts: 16
|
Posted: Tue Sep 29, 2009 3:55 am Post subject: Cheating Tropico 3 & The tutorial |
|
|
Hey guys
Rather new to CE and Assembler but i have been doing the tutorials and made it to the last one (multiple pointers).
i followed a flash video showing what i have to do in chapter 8 but i dont end up with the same assembler code.
The one that writes is: 00459862
| Code: | 00459848 - 75 0c - jne 00459856
0045984A - b8 a8 98 45 00 - mov eax,004598a8
0045984F - e8 f4 de fc ff - call 00427748
00459854 - eb 27 - jmp 0045987d
00459856 - b8 a0 0f 00 00 - mov eax,00000fa0
0045985B - e8 10 93 fa ff - call 00402b70
00459860 - 8b f8 - mov edi,eax
00459862 - 89 7b 18 - mov [ebx+18],edi
00459865 - 8d 55 fc - lea edx,[ebp-04]
00459868 - 8b c7 - mov eax,edi
0045986A - e8 55 e6 fa ff - call 00407ec4
0045986F - 8b 55 fc - mov edx,[ebp-04]
|
counting up from that i see 18, 0, a call and then a move.
The move doesnt seem to be the right one. I disregard the call making it 18, 0, 0 and use that as the offset which doesnt provide any relevant adress.
What am i doing wrong here? Pretty much the same predicament im facing in tropico 3.
The adress thats writing is: 004f188e
| Code: | 004F187A - 33 ff - xor edi,edi
004F187C - eb 02 - jmp 004f1880
004F187E - 8b f8 - mov edi,eax
004F1880 - 85 ff - test edi,edi
004F1882 - 0f 85 af 00 00 00 - jne 004f1937
004F1888 - 8b 44 24 24 - mov eax,[esp+24]
004F188C - 8b 08 - mov ecx,[eax]
004F188E - 89 0b - mov [ebx],ecx
004F1890 - 8b 50 04 - mov edx,[eax+04]
004F1893 - 89 53 04 - mov [ebx+04],edx
004F1896 - 83 78 04 04 - cmp dword ptr [eax+04],04 |
i cant seem to find the source of the pointers.
Its no doubt becouse im a rookie at assembler and i dont understand what the other commands do yet. I learn by example and would love some input on this. Its a very interresting field for a programmer who never ventured this deep into the code before
|
|