Function at 0x140010670
Capabilities:
Set global application hook

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x128
mov rax, qword [rsp + 0x148]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x140]
mov r8d, dword [rsp + 0x138]
mov rax, qword [rsp + 0x130]
mov rdx, qword [rax + 8]
mov rax, qword [rsp + 0x130]
mov rcx, qword [rax + 0x70]
call qword [sym.imp.USER32.dll_CallWindowProcA]
mov qword [rsp + 0x108], rax
mov rax, qword [rsp + 0x130]
mov qword [rsp + 0xa0], rax
mov rcx, qword [rsp + 0xa0]
call fcn.14000e770
mov rax, qword [rsp + 0x130]
mov rcx, qword [rax + 8]
call qword [sym.imp.USER32.dll_GetParent]
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x58], rax
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.USER32.dll_GetParent]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
je 0x140010745
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x58], rax
jmp 0x140010721
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0x130]
add rax, 0xa0
mov rdx, qword [rsp + 0xc0]
mov rcx, rax
call fcn.14001c000
mov eax, 0x20
xor r9d, r9d
mov r8d, eax
mov edx, 0x41e
mov rax, qword [rsp + 0x130]
mov rcx, qword [rax + 8]
call qword [sym.imp.USER32.dll_SendMessageA]
xor eax, eax
xor r9d, r9d
mov r8d, eax
mov edx, 0x430
mov rax, qword [rsp + 0x130]
mov rcx, qword [rax + 8]
call qword [sym.imp.USER32.dll_SendMessageA]
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0x118], rax
lea rax, [0x1400d9a90]
add rax, 8
lea rcx, [rsp + 0x88]
xor r8d, r8d
mov rdx, rax
call fcn.140001cf0
nop
lea rcx, [rsp + 0x88]
call fcn.14000f8b0
test eax, eax
jge 0x14001082f
mov qword [rsp + 0xd0], 0xffffffffffffffff
lea rcx, [rsp + 0x88]
call fcn.1400035a0
mov rax, qword [rsp + 0xd0]
jmp 0x140010ab9
cmp qword [0x1400d9b58], 0
jne 0x1400108b8
mov ecx, 0x18
call fcn.140021fb0
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x140010891
mov rax, qword [rsp + 0x48]
mov qword [rax], 0
mov rax, qword [rsp + 0x48]
mov qword [rax + 8], 0
mov rax, qword [rsp + 0x48]
mov dword [rax + 0x10], 0
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x68], rax
jmp 0x14001089a
mov qword [rsp + 0x68], 0
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0xe0], rax
mov rax, qword [rsp + 0xe0]
mov qword [0x1400d9b58], rax
jmp 0x1400108b8
cmp qword [0x1400d9b58], 0
je 0x1400109f3
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [rsp + 0x40], eax
lea rdx, [rsp + 0x40]
mov rcx, qword [0x1400d9b58]
call fcn.14000f920
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x1400109e1
mov ecx, 0x10
call fcn.140021fb0
mov qword [rsp + 0xe8], rax
mov rax, qword [rsp + 0xe8]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x14001093d
mov rax, qword [rsp + 0x50]
mov qword [rax], 0
mov rax, qword [rsp + 0x50]
mov dword [rax + 8], 0
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x70], rax
jmp 0x140010946
mov qword [rsp + 0x70], 0
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0xf0], rax
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0x38], rax
jmp 0x140010962
lea rax, [0x1400d9bc0]
mov rax, qword [rax + 8]
mov qword [rsp + 0xf8], rax
mov r9d, dword [rsp + 0x40]
mov r8, qword [rsp + 0xf8]
lea rdx, [0x14000fed0]
mov ecx, 3
call qword [sym.imp.USER32.dll_SetWindowsHookExA]
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x38], 0
je 0x1400109df
cmp qword [rsp + 0x78], 0
je 0x1400109df
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x78]
mov qword [rax], rcx
mov rax, qword [rsp + 0x38]
mov dword [rax + 8], 1
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x40]
mov rcx, qword [0x1400d9b58]
call fcn.140004480
mov dword [rsp + 0x98], eax
jmp 0x1400109f3
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 8]
inc eax
mov rcx, qword [rsp + 0x38]
mov dword [rcx + 8], eax
lea rax, [rsp + 0x88]
mov qword [rsp + 0x80], rax
xor eax, eax
test eax, eax
jne 0x140010a03
mov rax, qword [rsp + 0x80]
mov rax, qword [rax]
mov qword [rsp + 0x100], rax
mov rax, qword [rsp + 0x100]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rax, qword [rsp + 0x80]
mov byte [rax + 8], 0
mov edx, 0xffffffec
mov rax, qword [rsp + 0x130]
mov rcx, qword [rax + 8]
call qword [sym.imp.USER32.dll_GetWindowLongA]
and eax, 0x400000
test eax, eax
je 0x140010a60
mov byte [rsp + 0x30], 1
jmp 0x140010a65
mov byte [rsp + 0x30], 0
movzx eax, byte [rsp + 0x30]
and al, 1
shl al, 6
mov rcx, qword [rsp + 0x130]
movzx ecx, byte [rcx + 0xf1]
and cl, 0xbf
or cl, al
movzx eax, cl
mov rcx, qword [rsp + 0x130]
mov byte [rcx + 0xf1], al
mov rax, qword [rsp + 0x108]
mov qword [rsp + 0x110], rax
lea rcx, [rsp + 0x88]
call fcn.1400035a0
mov rax, qword [rsp + 0x110]
add rsp, 0x128
ret