Function at 0x1400ca678
Capabilities:
Log keystrokes via polling

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 8], rsi
mov r15, r8
mov rsi, rdx
test rdx, rdx
jne 0x1400ca6af
and qword [rsp + 0x30], rdx
jmp 0x1400ca6b8
mov rax, qword [rdx + 0x40]
mov qword [rsp + 0x30], rax
mov r12d, dword [r8 + 8]
call qword [sym.imp.USER32.dll_GetFocus]
mov qword [rsp + 0x40], rax
mov rcx, rax
call fcn.140095810
mov r13, rax
mov qword [rsp + 0x38], rax
mov r14d, 0x100
cmp r12d, r14d
jb 0x1400ca6eb
cmp r12d, 0x109
jbe 0x1400ca6fc
lea eax, [r12 - 0x200]
cmp eax, 9
ja 0x1400ca7e0
test r13, r13
je 0x1400ca7e0
mov rdi, r13
cmp qword [rdi + 0xa0], 0
jne 0x1400ca743
mov rcx, qword [rdi + 0x40]
call qword [sym.imp.USER32.dll_GetParent]
mov rcx, rax
call fcn.140095810
cmp rax, rsi
je 0x1400ca743
mov rcx, qword [rdi + 0x40]
call qword [sym.imp.USER32.dll_GetParent]
mov rcx, rax
call fcn.140095810
mov rdi, rax
test rax, rax
jne 0x1400ca708
test rdi, rdi
je 0x1400ca77c
mov rax, qword [rdi + 0xa0]
test rax, rax
je 0x1400ca77c
cmp qword [rax + 0x90], 0
je 0x1400ca77c
mov rcx, qword [rax + 0x90]
mov rax, qword [rcx]
mov rdx, r15
call qword [rax + 0x28]
test eax, eax
jne 0x1400ca77c
mov eax, 1
jmp 0x1400cac68
cmp r12d, 0x101
je 0x1400ca793
cmp r12d, r14d
je 0x1400ca793
cmp r12d, 0x102
jne 0x1400ca7d9
test rdi, rdi
je 0x1400ca7d9
mov rax, qword [rdi + 0xa0]
test rax, rax
je 0x1400ca7d9
cmp word [r15 + 0x10], 0xd
jne 0x1400ca7b5
test byte [rax + 0xcc], 1
jne 0x1400ca7cb
cmp word [r15 + 0x10], 0x1b
jne 0x1400ca7d2
mov edi, 2
test byte [rax + 0xcc], dil
je 0x1400ca7e5
xor eax, eax
jmp 0x1400cac68
mov edi, 2
jmp 0x1400ca7e5
mov edi, 2
jmp 0x1400ca7e5
mov edi, 2
xor r14d, r14d
mov rcx, qword [r15]
call fcn.140095810
mov r15, rax
and dword [rsp + 0xa8], r14d
mov ecx, r12d
sub ecx, 0x100
je 0x1400ca8c6
sub ecx, edi
je 0x1400ca844
cmp ecx, 4
jne 0x1400cab8a
test r13, r13
jne 0x1400ca82f
lea ecx, [r14 + 0x12]
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x1400cabc6
mov rdx, qword [rsp + 0xa0]
cmp word [rdx + 0x10], 0x20
je 0x1400cabbc
jmp 0x1400ca84c
mov rdx, qword [rsp + 0xa0]
mov rcx, r15
call fcn.1400c9c0c
cmp r12d, 0x102
jne 0x1400ca865
test al, 0x84
jne 0x1400cabb2
mov r12, qword [rsp + 0xa0]
cmp word [r12 + 0x10], 9
jne 0x1400ca87f
test dil, al
jne 0x1400cabce
cmp word [r12 + 0x10], 0x20
jne 0x1400ca88f
xor eax, eax
jmp 0x1400cac68
mov r8, r12
mov rdx, r15
mov rcx, rsi
call fcn.1400ca534
test rax, rax
je 0x1400cabce
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x1400cabce
mov rdx, r12
call fcn.1400b96d8
mov r14d, 1
jmp 0x1400cac12
mov r12, qword [rsp + 0xa0]
mov rdx, r12
mov rcx, rax
call fcn.1400c9c0c
movzx ecx, word [r12 + 0x10]
cmp ecx, 3
je 0x1400cab12
cmp ecx, 9
je 0x1400caa5f
cmp ecx, 0xd
je 0x1400caa21
cmp ecx, 0x1b
je 0x1400cab12
cmp ecx, 0x24
jle 0x1400cabce
cmp ecx, 0x26
jle 0x1400ca924
cmp ecx, 0x28
jle 0x1400ca92c
cmp ecx, 0x2b
je 0x1400caa21
jmp 0x1400cabce
mov r15d, 1
jmp 0x1400ca934
mov r15d, dword [rsp + 0xa8]
mov rdx, r12
mov rcx, r13
call fcn.1400c9c0c
test al, 1
jne 0x1400cabce
test r15d, r15d
je 0x1400ca95b
xor edx, edx
mov rcx, rsi
call fcn.14009e404
mov rdi, rax
jmp 0x1400ca968
xor edx, edx
mov rcx, rsi
call fcn.14009e468
mov rdi, rax
test rdi, rdi
je 0x1400cabce
cmp dword [rdi + 0x10], r14d
je 0x1400ca982
mov rdx, rdi
mov rcx, rsi
call fcn.14009de64
cmp qword [rdi + 8], r14
je 0x1400ca9a3
mov rcx, qword [rdi + 8]
mov rax, qword [rcx]
mov rdx, r12
call qword [rax + 0x158]
mov r14d, 1
jmp 0x1400cac12
cmp qword [rdi], r14
je 0x1400ca9b5
mov rcx, qword [rdi]
call fcn.140095810
mov r12, rax
jmp 0x1400ca9da
test r13, r13
jne 0x1400ca9be
xor edx, edx
jmp 0x1400ca9c2
mov rdx, qword [r13 + 0x40]
mov r8d, r15d
mov rcx, qword [rsi + 0x40]
call qword [sym.imp.USER32.dll_GetNextDlgGroupItem]
mov rcx, rax
call fcn.140095810
mov r12, rax
test r12, r12
je 0x1400caba8
mov rax, qword [rsi + 0x98]
and qword [rax + 0xd8], r14
mov rcx, r12
call fcn.1400c9cf4
cmp dword [rdi + 0x10], r14d
je 0x1400caa16
xor r9d, r9d
mov edx, 0xf1
lea r8d, [r9 + 1]
mov rcx, qword [r12 + 0x40]
call qword [sym.imp.USER32.dll_SendMessageW]
mov r14d, 1
jmp 0x1400cac12
test al, 4
jne 0x1400cabce
mov rcx, r13
call fcn.1400c9cb4
test al, 0x10
je 0x1400caa50
mov r12, r13
mov rcx, r13
call fcn.14009d918
mov edi, eax
test r13, r13
jne 0x1400cab24
jmp 0x1400cab12
mov rcx, rsi
call fcn.1400ca1b0
mov edi, eax
jmp 0x1400cab12
test dil, al
jne 0x1400cabce
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
call qword [sym.imp.USER32.dll_GetKeyState]
xor edi, edi
test ax, ax
sets dil
mov r8d, edi
xor edx, edx
mov rcx, rsi
call fcn.14009dcc0
test rax, rax
je 0x1400cabce
cmp qword [rax + 8], r14
je 0x1400caaaa
mov rcx, qword [rax + 8]
mov rax, qword [rcx]
mov rdx, r12
call qword [rax + 0x158]
jmp 0x1400cab07
cmp qword [rax], r14
je 0x1400caabc
mov rcx, qword [rax]
call fcn.140095810
mov rdi, rax
jmp 0x1400caae1
test r15, r15
jne 0x1400caac5
xor edx, edx
jmp 0x1400caac9
mov rdx, qword [r15 + 0x40]
mov r8d, edi
mov rcx, qword [rsi + 0x40]
call qword [sym.imp.USER32.dll_GetNextDlgTabItem]
mov rcx, rax
call fcn.140095810
mov rdi, rax
test rdi, rdi
je 0x1400cab07
mov rax, qword [rsi + 0x98]
and qword [rax + 0xd8], r14
mov rcx, rdi
call fcn.1400c9cf4
mov rdx, rdi
mov rcx, r13
call fcn.1400c9f64
mov r14d, 1
jmp 0x1400cac12
mov edx, edi
mov rcx, rsi
call fcn.1400ca024
mov r12, rax
test rax, rax
je 0x1400cab9e
mov rcx, r12
call fcn.14009d9f8
test eax, eax
jne 0x1400cab45
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBeep]
mov r12, qword [rsp + 0xa0]
jmp 0x1400cabce
cmp qword [r12 + 0xa0], r14
je 0x1400cab94
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
xor r9d, r9d
mov edx, 0xfffffdd9
lea r8d, [r9 + 1]
mov rcx, r12
call fcn.14009da90
nop
jmp 0x1400cab7f
mov r14d, 1
jmp 0x1400cac12
mov r12, qword [rsp + 0xa0]
jmp 0x1400cabce
mov r12, qword [rsp + 0xa0]
jmp 0x1400cabce
mov r12, qword [rsp + 0xa0]
jmp 0x1400cabce
mov r12, qword [rsp + 0xa0]
jmp 0x1400cabce
mov r12, qword [rsp + 0xa0]
jmp 0x1400cabce
mov r12, qword [rsp + 0xa0]
jmp 0x1400cabce
mov r12, qword [rsp + 0xa0]
bt dword [rsi + 0x78], 0xc
jb 0x1400cac12
mov rdx, r12
mov rcx, qword [rsi + 0x40]
call qword [sym.imp.USER32.dll_IsDialogMessageW]
mov r14d, eax
test eax, eax
je 0x1400cac12
call qword [sym.imp.USER32.dll_GetFocus]
mov rcx, rax
call fcn.140095810
cmp rax, r13
je 0x1400cac12
call qword [sym.imp.USER32.dll_GetFocus]
mov rcx, rax
call fcn.140095810
mov rcx, rax
call fcn.1400c9ec4
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1400cac65
call qword [sym.imp.USER32.dll_GetFocus]
mov rcx, rax
call fcn.140095810
mov rdx, rax
mov rcx, r13
call fcn.1400c9f64
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1400cac65
call qword [sym.imp.USER32.dll_GetFocus]
mov rcx, rax
call fcn.140095810
mov r8, rax
mov rdx, r13
mov rcx, rsi
call fcn.1400ca1e8
mov eax, r14d
mov rsi, qword [rsp + 0x90]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
ret