0

I'm trying to make my first DLL calling game functions

What I need is tracing functions that call WSASend, so it will be easy for me to get all functions address to call them from my DLL.

What I want is to call game functions, so if I can trace when WSASend is called, then return to the function that called it, I will be able to get all functions I need.

My final goal is getting all functions addressess like SendWalk, ChangeLookDir, Attack, Follow, MoveItem, DropItem, etc... all of them are calling WSASend

This is how the game module is calling the WSASend function: enter image description here

This is what I get from logging calls to WSASend:

enter image description here

The problem is that the game is sending packets all time, so if I put a breakpoint in that call it will pause everytime and I won't be able to make anything in game.

After reading the WSASend documentation, I understand that maybe what I need is the buffer, so I can filter the parameter lpBuffers maybe setting a conditional breakpoint and hopefully the buffer will be the same in that packets that are sent every 1 sec (I'm not sure about what I'm saying)

I'm a beginner so if I can improve in any way this question let me know, maybe I'm missing any detail that would help you to help me :)

  • It's not really clear what you want. Of course you are stating your immediate goal, but what we'd need to know is your ultimate goal. How else could we suggest improvements? Right now it seems you have set your mind on a particular course and you are telling us what you thing your next step is, but since we don't know the destination it's not clear how to help you. Have you looked at WFP or the older LSPs? – 0xC0000022L Mar 28 '20 at 12:50
  • Edited the question, if there's anything else I can do please let me know. Thank you very much @0xC0000022L – kuhi Mar 28 '20 at 13:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.