0

I have disassable with ida this function:

int __usercall sub_4F314A@<eax>(char *Src@<ecx>, int a2@<edx>, int a3, int a4, int a5, int a6)

I attach the original assembly:

enter image description here

enter image description here

can you please help me to find the right way to write this call in c++?

update:

I have added a function that call 4F314A:

LOBYTE(v2) = sub_4F314A("switch01.wav", (int)&unk_E42650, 0, 0, 0, 0);

enter image description here

  • _usercall is IDA representation of a non-standard call convention. In most cases it means that IDA couldn't deduce it or the programmer used their own convention. It would be more helpful to show how the function is called, and not only how it looks like. – morsisko Sep 16 at 13:35

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.