Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


how to re-write fld dword ptr [eax+000000C4] script?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
MichaelLee01
Cheater
Reputation: 0

Joined: 07 Apr 2020
Posts: 37

PostPosted: Wed Oct 21, 2020 9:31 am    Post subject: how to re-write fld dword ptr [eax+000000C4] script? Reply with quote

I came across certain game.it used fld dword ptr [eax+000000C4]//edi esi
how to manually change value in script?

{
// ORIGINAL CODE - INJECTION POINT: GameController:Update+22ca

0629E38D: 8B 45 08 - mov eax,[ebp+08]
0629E390: D9 80 9C 02 00 00 - fld dword ptr [eax+0000029C]
0629E396: DD 9D 38 F2 FF FF - fstp qword ptr [ebp-00000DC8]
0629E39C: 8B 40 48 - mov eax,[eax+48]
0629E39F: 39 00 - cmp [eax],eax
0629E3A1: BA 88 70 D9 1A - mov edx,1AD97088
0629E3A6: 83 EC 0C - sub esp,0C
0629E3A9: 50 - push eax
0629E3AA: E8 B9 A1 F8 FF - call 06228568
0629E3AF: 83 C4 10 - add esp,10
// ---------- INJECTING HERE ----------
0629E3B2: D9 80 C4 00 00 00 - fld dword ptr [eax+000000C4]
// ---------- DONE INJECTING ----------
0629E3B8: D9 05 D0 85 D9 1A - fld dword ptr [1AD985D0]
0629E3BE: 83 EC 08 - sub esp,08
0629E3C1: 83 EC 04 - sub esp,04
0629E3C4: D9 1C 24 - fstp dword ptr [esp]
0629E3C7: 83 EC 04 - sub esp,04
0629E3CA: D9 1C 24 - fstp dword ptr [esp]
0629E3CD: E8 FE AF 00 00 - call 062A93D0
0629E3D2: 83 C4 10 - add esp,10
0629E3D5: DD 85 38 F2 FF FF - fld qword ptr [ebp-00000DC8]
0629E3DB: D9 C9 - fxch st(1)
}
Back to top
View user's profile Send private message
Csimbi
I post too much
Reputation: 97

Joined: 14 Jul 2007
Posts: 3337

PostPosted: Wed Oct 21, 2020 12:49 pm    Post subject: Reply with quote

You either change the value at the memory location before that read, or change it in the FPU after it was read.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites