Function at 0x1400c37d8
Capabilities:
Log keystrokes via polling

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x28], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov r15, rdx
mov rsi, rcx
cmp dword [rdx + 8], 0x14
jne 0x1400c380b
mov eax, 1
jmp 0x1400c3cc5
xor edi, edi
cmp dword [rcx + 0xf8], edi
jne 0x1400c3cc0
cmp dword [rdx + 8], 0x201
jne 0x1400c384d
mov rcx, qword [rcx + 0xe8]
cmp dword [rcx + 0x290], edi
je 0x1400c384d
cmp dword [rcx + 0x140], edi
jne 0x1400c384d
mov rax, qword [rsi + 0x40]
cmp qword [rdx], rax
je 0x1400c384d
mov rax, qword [rcx]
xor edx, edx
call qword [rax + 0x448]
mov r14d, 1
cmp dword [r15 + 8], 0x200
jne 0x1400c3995
mov rcx, qword [rsi + 0xe8]
mov rax, qword [rcx]
call qword [rax + 0x1b8]
test eax, eax
jne 0x1400c3995
lea ecx, [rax + 0x17]
call qword [sym.imp.USER32.dll_GetSystemMetrics]
neg eax
sbb ecx, ecx
neg ecx
add ecx, r14d
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
je 0x1400c38b6
call qword [sym.imp.USER32.dll_GetFocus]
mov rcx, rax
call fcn.140018cc4
cmp rax, rsi
je 0x1400c38b6
mov eax, r14d
jmp 0x1400c3cc5
mov ebx, 0x105
cmp dword [rsi + 0xf0], edi
jne 0x1400c38fc
mov dword [rsi + 0xf0], r14d
mov dword [rbp - 0x20], 0x18
mov dword [rbp - 0x1c], 2
mov rax, qword [rsi + 0x40]
mov qword [rbp - 0x18], rax
lea rcx, [rbp - 0x20]
call qword [sym.imp.USER32.dll_TrackMouseEvent]
mov r9d, ebx
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsi + 0x40]
call qword [sym.imp.USER32.dll_RedrawWindow]
cmp dword [rsi + 0xf4], edi
jne 0x1400c3995
mov rcx, qword [rsi + 0xe8]
mov rax, qword [rcx]
call qword [rax + 0x148]
test rax, rax
je 0x1400c3995
mov qword [rbp + 0x38], rdi
lea rcx, [rbp + 0x38]
call qword [sym.imp.USER32.dll_GetCursorPos]
mov dword [rsi + 0xf4], r14d
mov r9d, ebx
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsi + 0x40]
call qword [sym.imp.USER32.dll_RedrawWindow]
mov rcx, qword [rsi + 0xe8]
mov rax, qword [rcx]
call qword [rax + 0x148]
lea rdx, [rbp + 0x38]
mov rcx, qword [rax + 0x40]
call qword [sym.imp.USER32.dll_ScreenToClient]
movzx ebx, word [rbp + 0x3c]
shl ebx, 0x10
movzx eax, word [rbp + 0x38]
or rbx, rax
mov rcx, qword [rsi + 0xe8]
mov rax, qword [rcx]
call qword [rax + 0x148]
mov r9, rbx
xor r8d, r8d
mov edx, 0x200
mov rcx, qword [rax + 0x40]
call qword [sym.imp.USER32.dll_SendMessageW]
mov ebx, 0x100
cmp dword [r15 + 8], ebx
jne 0x1400c3cba
mov rcx, qword [rsi + 0xe8]
mov rax, qword [rcx]
call qword [rax + 0x1b8]
test eax, eax
jne 0x1400c3cba
mov edx, dword [r15 + 0x10]
mov rcx, rsi
call fcn.1400c3cdc
test eax, eax
jne 0x1400c38ae
mov rax, qword [r15 + 0x10]
cmp rax, 9
je 0x1400c3ca2
cmp rax, 0xd
je 0x1400c3b3c
cmp rax, 0x1b
je 0x1400c3a83
cmp rax, 0x20
jbe 0x1400c3cba
cmp rax, 0x22
jbe 0x1400c3a43
cmp rax, 0x26
je 0x1400c3a43
cmp rax, 0x28
jne 0x1400c3cba
mov rcx, qword [rsi + 0xe8]
cmp dword [rcx + 0x288], edi
je 0x1400c3a43
mov rax, qword [rcx]
call qword [rax + 0x1c8]
test eax, eax
jne 0x1400c3a43
mov rcx, qword [rsi + 0xe8]
mov rax, qword [rcx]
call qword [rax + 0x530]
jmp 0x1400c38ae
mov rcx, qword [rsi + 0xe8]
mov rax, qword [rcx]
call qword [rax + 0x1c8]
test eax, eax
je 0x1400c3cba
mov rax, qword [0x14028e608]
test rax, rax
je 0x1400c3a6b
mov rdi, qword [rax + 0x40]
mov r9, qword [r15 + 0x18]
mov r8, qword [r15 + 0x10]
mov edx, ebx
mov rcx, rdi
call qword [sym.imp.USER32.dll_SendMessageW]
jmp 0x1400c38ae
mov rcx, qword [rsi + 0xe8]
mov rax, qword [rcx]
call qword [rax + 0x1c8]
test eax, eax
je 0x1400c3ab3
mov rcx, qword [0x14028e608]
test rcx, rcx
je 0x1400c3ab3
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x10]
mov rcx, qword [rcx + 0x40]
jmp 0x1400c3a78
mov rcx, qword [rsi + 0xe8]
mov rax, qword [rcx]
call qword [rax + 0x1c8]
test eax, eax
jne 0x1400c3afe
mov rdx, qword [rsi + 0x100]
mov rcx, rsi
call fcn.14001f278
mov rcx, qword [rsi + 0x100]
sub rcx, 0x18
call fcn.14000272c
add rax, 0x18
mov qword [rbp + 0x48], rax
lea rdx, [rbp + 0x48]
mov rcx, qword [rsi + 0xe8]
call fcn.1400c4214
mov rcx, rsi
call fcn.140019260
test rax, rax
je 0x1400c3cba
mov rcx, qword [rsi + 0xe8]
mov rax, qword [rcx]
call qword [rax + 0x1c8]
test eax, eax
jne 0x1400c3cba
mov rcx, rsi
call fcn.140019260
mov rcx, rax
call fcn.14001f1ac
jmp 0x1400c38ae
mov rcx, qword [rsi + 0xe8]
mov rax, qword [rcx]
call qword [rax + 0x1c8]
test eax, eax
jne 0x1400c3cba
call fcn.140013888
mov rdx, rax
mov ecx, edi
test rax, rax
setne cl
test ecx, ecx
jne 0x1400c3b73
mov ecx, 0x80004005
call fcn.1400026dc
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp + 0x40], rax
lea rdx, [rbp + 0x40]
mov rcx, rsi
call fcn.14001934c
mov rcx, qword [rbp + 0x40]
add rcx, 0xffffffffffffffe8
call fcn.14000272c
add rax, 0x18
mov qword [rbp - 0x30], rax
lea rdx, [rbp - 0x30]
mov rcx, qword [rsi + 0xe8]
call fcn.1400c4214
mov edx, r14d
mov rcx, qword [rsi + 0xe8]
call fcn.14009371c
mov rax, qword [rsi + 0xe8]
mov rcx, qword [rax + 0xf8]
test rcx, rcx
je 0x1400c3c30
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_GetParent]
mov rcx, rax
call fcn.140018cc4
test rax, rax
mov rcx, rdi
je 0x1400c3bf5
mov rcx, qword [rax + 0x40]
mov rax, qword [0x14028e608]
test rax, rax
jne 0x1400c3c06
mov rax, rdi
jmp 0x1400c3c0a
mov rax, qword [rax + 0x40]
cmp rcx, rax
jne 0x1400c3c30
mov rcx, qword [rsi + 0xe8]
mov rcx, qword [rcx + 0xf8]
call fcn.140023fd8
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0xc0]
jmp 0x1400c3c5b
mov rcx, rsi
call fcn.140019260
test rax, rax
je 0x1400c3c82
mov rax, qword [rsi + 0xe8]
mov dword [rax + 0x294], edi
mov rcx, rsi
call fcn.140019260
mov rcx, rax
call fcn.14001f1ac
nop
mov rdx, qword [rbp + 0x40]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400c38ae
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x1400c38ae
mov rdx, qword [rbp + 0x40]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400c3cba
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x1400c3cba
mov rcx, qword [rsi + 0xe8]
mov rax, qword [rcx]
call qword [rax + 0x1a8]
test eax, eax
je 0x1400c38ae
mov rdx, r15
mov rcx, rsi
call fcn.14001b8a0
mov rbx, qword [rsp + 0x80]
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret