Hellow I found an asm code ... which was integrated in c++ project
template <class T>
T returned;
BYTE *tem = buffer;
__asm
{
mov eax, tem
call eax
mov returned, eax
}
So As I don´t know asm It is hard To understood what this code means ... Can anyone convert this ASM code in c++ entirely and post here :) Ttanks...
It looks like it is executing code placed in a buffer and returning the contents of the EAX register. You might try this:
typedef T (*pfn)();
returned = ((pfn) buffer)();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With