Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- sub rsp,28h - reserve stack space
- mov rcx,rdx - move incoming parameter to rcx (this pointer for the next call method in this case)
- mov r11,7FFABFEA0020h - move virtual stub address to r11
- cmp dword ptr [rcx],ecx - ensure that we weren't given null value
- call qword ptr [r11] - call the stub with the address of the interface impl obj
- nop
- add rsp,28h - free stack space
- ret
- */
- public void Run(IActor d)
- {
- d.Exec();
- }
- /*
- rough C# code would be:
- if(d == null) trap();
- StubCallFor_IActor(d); <-- will decide based on type of d how to run it
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement