Skip to content

Instantly share code, notes, and snippets.

@JGRennison
Last active October 4, 2022 22:17
Show Gist options
  • Save JGRennison/43c47733d44e6b8a584a5ea0a6eb7518 to your computer and use it in GitHub Desktop.
Save JGRennison/43c47733d44e6b8a584a5ea0a6eb7518 to your computer and use it in GitHub Desktop.
-[OTTD_CocoaView hasMarkedText]:
10044f440: 55 push rbp
10044f441: 48 89 e5 mov rbp, rsp
10044f444: 48 83 ec 10 sub rsp, 16
10044f448: 48 8d 05 41 af 3b 02 lea rax, [rip + __focused_window]
10044f44f: 48 8b 38 mov rdi, qword ptr [rax]
10044f452: 48 85 ff test rdi, rdi
10044f455: 74 31 je 0x10044f488
10044f457: 83 7f 20 62 cmp dword ptr [rdi + 32], 98
10044f45b: 74 12 je 0x10044f46f
10044f45d: 48 8b 87 80 00 00 00 mov rax, qword ptr [rdi + 128]
10044f464: 48 85 c0 test rax, rax
10044f467: 74 1f je 0x10044f488
10044f469: 80 78 08 14 cmp byte ptr [rax + 8], 20
10044f46d: 75 19 jne 0x10044f488
10044f46f: 48 8b 07 mov rax, qword ptr [rdi]
10044f472: 48 8d 75 f8 lea rsi, [rbp - 8]
10044f476: ff 50 28 call qword ptr [rax + 40] <----------------------
10044f479: 48 85 c0 test rax, rax
10044f47c: 0f 95 c0 setne al
10044f47f: 0f b6 c0 movzx eax, al
10044f482: 48 83 c4 10 add rsp, 16
10044f486: 5d pop rbp
10044f487: c3 ret
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment