So I am in the process of converting from asm to delegates. And I noticed that interact (which i c/pd from another thread) looks like
Code:
"fs mov eax, [0x2C]",
"mov eax, [eax]",
"add eax, 0x08",
"mov dword [eax], "+ CurMgr
"mov ecx, "+ ObjPointer
"call "+ ObjInteractPointer
"retn"
Unless I'm wrong it's accessing the fs segment register. I couldn't figure out why it would be doing this so I created a delegate ala
Code:
[UnmanagedFunctionPointer(CallingConvention.ThisCall)]
private delegate void InteractDelegate(uint target);
Which works fine.
Although it's working I can't help but wonder what that fs magic is all about? Can anyone explain?