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 


Thread suddenly throws an exception?

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

Joined: 10 Aug 2011
Posts: 82

PostPosted: Wed Aug 10, 2011 8:35 am    Post subject: Thread suddenly throws an exception? Reply with quote

first of all, sorry 4 my english.

BTT:ive been fooling around with a game called "Battlefront" (some shooter). By now, this forum helped me a lot finding a lot of cheats (health, ammo, yet pack, infinite mines etc etc).
I found the adress of the text (w-char) currently entered into the chat message box and thought about a "cheat" or better a hotkey that automatically sends some Text in the chat. Using the "find out what accesses this adress"-function i found a function that is executet 2 times (lol?) everytime i send a message to the chat.
For this "cheat" i probably have to call this function mannually using a thread. Heres the code i used (dont ask me about the nops Very Happy) :
Code:
[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
alloc(mycode,2048)
CREATETHREAD(mycode)

mycode:

call 00402890

ret

 
 
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
nop
ret


well, everytime i execute this script, the game crashes. A breakpoint at this adress tells me this: when it finally reaches these lines
Code:
mov si,[edi]
test si,si
(to be more precise, the step from mov si,[edi] to test si,si) (which is totaly nothing special at all), the programm suddenly jumps (no testing, it jumps) to the thery end in a section titled as "KiUserExceptionDispatcher", and a few lines later (zwRaiseException or something like that) the game finally crashes.

And now im confused and have these Questions:
How can that happen?
What is the KiUserExceptionDispatcher?
if possible, any ideas to fix that?
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 474

Joined: 09 May 2003
Posts: 25930
Location: The netherlands

PostPosted: Wed Aug 10, 2011 8:44 am    Post subject: Reply with quote

are you sure the function at 00402890 requires no parameters ?
Missing parameters, or wrong registervalues (in c++ ecx must point to the current class) can often cause problems

_________________
Tools give you results. Knowledge gives you control.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
Corruptor
Advanced Cheater
Reputation: 3

Joined: 10 Aug 2011
Posts: 82

PostPosted: Wed Aug 10, 2011 11:33 am    Post subject: Reply with quote

Assambler functions can have parameters? Shocked
Is there a way to find and/or emulate them?
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