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 can Convert to C++

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Discussions
View previous topic :: View next topic  
Author Message
myown
How do I cheat?
Reputation: 0

Joined: 11 Mar 2014
Posts: 9

PostPosted: Sun Aug 31, 2014 7:20 am    Post subject: how can Convert to C++ Reply with quote

Code:
[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
alloc(newmem,2048)
label(returnhere)
label(originalcode)
label(exit)

newmem: //this is allocated memory, you have read,write,execute access
//place your code here

originalcode:
rol byte ptr [ebp-04],cl
mov esp,ebp

exit:
jmp returnhere

"tnclient.exe"+12D634:
jmp newmem
returnhere:


 
 
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
"tnclient.exe"+12D634:
fld dword ptr [ebp-04]
mov esp,ebp
//Alt: db D2 45 FC 8B E5




C++ :
Code:

DWORD ab =0052A304;
DWORD abc = ab - 5,
_declspec(naked) void __stdcall test()
{
__asm
    {
    call dword ptr [ab]
    push eax
    push ebx
    rol byte ptr [ebp-04],cl
    mov esp,ebp
    Jmp 0052A304-4
   pop ebx
    jmp dword ptr[abc]
    }
}

?
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 Discussions 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