Look at how the server calls console_process_command. Look at what data the server passes to the function, through both the stack and registers. I talked to you on xfire and assumed you were using a different function, so what I told you was wrong.
Code:
004B3AC0 |> \57 PUSH EDI
004B3AC1 |. C605 4D3B6100>MOV BYTE PTR DS:[613B4D],1
004B3AC8 |. E8 63AFFCFF CALL halocede.0047EA30
004B3ACD |. 83C4 04 ADD ESP,4
You need to push the command to execute, registers aren't used. Don't forget to check for whose responsibility it is to offset the stack, in this case it's the caller's (your) responsibility so the add esp, 4 instruction is important.
Bookmarks