Example/tutorial on finding addresses

Posts 13 of 3 · Page 1 of 1
Example/tutorial on finding addresses
I've learned a lot of C++, and some assemble, but I have problems finding the right offsets for especially functions in games.
What I'm looking for is some step by step examples on how to find addresses (the game doesn't matter much).
I've tried to simply find the chat text function in warcraft 3, but it's not that easy for me.
Some simple ways
alright I will make a video of how to find adresses for games like that now ill be using the first warcraft but I think its all the same
Quote Originally Posted by icemens View Post
I've learned a lot of C++, and some assemble, but I have problems finding the right offsets for especially functions in games.
What I'm looking for is some step by step examples on how to find addresses (the game doesn't matter much).
I've tried to simply find the chat text function in warcraft 3, but it's not that easy for me.
Firstly, you would break\log on some windows API calls that are used to acquire text in the chat bar. Which APIs? Well, look through the game's import table, a list of all the imported methods should be there, the one you're looking for are probably imported from User32.dll(such as GetDlgItemTextA, GetWindowTextA) etc, if you can find this, which you probably wont because WarHammer uses it's own methods to acquire text, you can set a breakpoint, and find out where it's called. The simplest way would be to search for the text in the send message textbox, set a memory-read breakpoint on the address the text is located, and it should break inside of the method that sends your message when you hit enter. Then go through the stack segment, and look for the most recent return address. Follow that to the caller and pow, epic win, Just copy the address down and examine the stack to find out what you should push before calling.
Posts 13 of 3 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

Need help?