Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class procedure TClient.OnOpenMutexHook(var Context: TContext);
- var lpName: PAnsiChar;
- begin
- lpName:= PAnsiChar(PUInt32(Context.Esp + 12)^);
- if lpName = 'TQ_CONQUER00' then
- begin
- asm
- lea ecx, @@retfunction
- mov eax, Context
- mov (TContext PTR [eax]).Eip, ecx
- jmp @@done
- @@retfunction:
- ret 0Ch
- @@done:
- end;
- Context.Eax:= UInt32(False);
- end;
- end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement