Originally posted by CornedBee
The return value of a function is usually in eax. (I think)
For the C calling convention (__cdecl) and the Pascal calling convention (__stdcall) that's correct.