Hey Kynox!
Thanks for that! To pratice a bit i just took the next function in the list, CGInputCtrl_ToggleControlBit.
So, im trying the same approach:
Code:
.text:00581230 arg_0 = dword ptr 8
.text:00581230 arg_4 = dword ptr 0Ch
.text:00581230 arg_8 = dword ptr 10h
.text:00581230 arg_C = dword ptr 14h
4 arguments, type may be figured out when looking whats done with'em later.
Then we find mov esi, ecx before anything is made on ecx so this again may be __thiscall, so far:
T CGInputCtrl::ToggleControlBit((4byte)arg1, (4byte)arg2, (4byte)arg3, (4byte)arg4);
The last "chunk" looks as following:
Code:
.text:00581289 loc_581289: ; CODE XREF: CGInputCtrl__ToggleControlBit+2Aj
.text:00581289 pop edi
.text:0058128A pop esi
.text:0058128B pop ebx
.text:0058128C pop ebp
.text:0058128D retn 10h
So this looks for me again like no returnvalue, so
void CGInputCtrl::ToggleControlBit(a0, a1, a2, a3);
for the types i cant really figure out what they should but they are compared [ebp + argX], 0 i guess it may be a numerical type like float or int. From the context i would say these are integers
Code:
void CGInputCtrl::ToggleControlBit(int, int, int, int)
Will test that as soon as i can. Maybe you see a major error.
Greetings