Function at 0x1401a0a00
Capabilities:
Log keystrokes via polling

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r15
lea rbp, [rsp - 0x70]
sub rsp, 0x170
mov rax, qword [0x1402bf040]
xor rax, rsp
mov qword [rbp + 0x60], rax
mov dword [rsp + 0x48], r9d
mov r15d, r9d
mov qword [rbp - 0x80], rcx
mov esi, r8d
mov rdi, rdx
mov rbx, rcx
cmp r8d, 0x201
je 0x1401a0a52
cmp r8d, 0x204
jne 0x1401a0a58
call qword [sym.imp.USER32.dll_SetFocus]
xor r12b, r12b
mov qword [rsp + 0x1c8], r14
mov eax, esi
mov r13d, 1
sub eax, 0x201
je 0x1401a0b4b
sub eax, r13d
je 0x1401a0b39
nop
cmp eax, 2
jne 0x1401a0a9e
test byte [rdi + 0x40], al
je 0x1401a0a9e
mov edx, dword [rdi + 0x120]
mov rcx, rdi
call fcn.1401a2cb0
call qword [sym.imp.USER32.dll_ReleaseCapture]
mov r14d, dword [rbp + 0xd0]
test byte [rdi + 0x40], 2
jne 0x1401a11b2
mov eax, dword [rbp + 0xd8]
lea rdx, [rsp + 0x60]
mov rcx, rdi
mov dword [rsp + 0x64], eax
mov dword [rsp + 0x60], r14d
mov dword [rsp + 0x68], 3
call fcn.1401a4620
mov eax, r15d
xor ecx, ecx
and eax, 8
mov dword [rsp + 0x54], eax
mov eax, r15d
mov r15d, dword [rsp + 0x6c]
and eax, 4
mov r13d, r15d
mov dword [rsp + 0x58], eax
and r13d, 0x20
je 0x1401a0bc5
nop dword [rax + rax]
cmp esi, 0x201
jne 0x1401a0bd5
mov rbx, qword [rsp + 0x70]
mov rcx, rdi
mov rdx, rbx
mov r8d, dword [rbx]
shr r8d, 2
not r8b
and r8b, 1
call fcn.1401a4140
mov r8, qword [rsp + 0x78]
mov edx, 0xffffffff
jmp 0x1401a0d2b
test byte ds:[rdi + 0x40], 2
je 0x1401a0a9e
jmp 0x1401a0a98
mov ecx, dword [rdi + 0x40]
mov r14d, dword [rbp + 0xd0]
test cl, 0x20
je 0x1401a0aa5
mov edx, dword [rdi + 0x88]
lea eax, [rdx - 8]
cmp r14d, eax
jl 0x1401a0aa5
lea eax, [rdx + 8]
cmp r14d, eax
jge 0x1401a0aa5
or ecx, 2
mov dword [rdi + 0x11c], r14d
mov dword [rdi + 0x40], ecx
movzx r12d, r13b
mov rcx, rbx
mov dword [rdi + 0x120], edx
call qword [sym.imp.USER32.dll_SetCapture]
xor r9d, r9d
mov r8d, 0x64
mov rdx, r13
mov rcx, rbx
call qword [sym.imp.USER32.dll_SetTimer]
mov ecx, 0x1b
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
nop dword [rax]
jmp 0x1401a0aaf
cmp esi, 0x201
je 0x1401a0bdf
cmp esi, 0x204
je 0x1401a0bdf
mov rbx, qword [rsp + 0x70]
jmp 0x1401a0d08
mov rcx, qword [rdi + 0x38]
mov ebx, 0xffffffff
test rcx, rcx
je 0x1401a0c0f
xor r9d, r9d
xor r8d, r8d
mov edx, 0x41c
call qword [sym.imp.USER32.dll_SendMessageW]
mov qword [rdi + 0x158], 0xffffffffffffffff
mov dword [rdi + 0x188], ebx
mov rax, qword [rsp + 0x78]
mov ecx, r15d
mov rbx, qword [rsp + 0x70]
and ecx, 0x10
mov dword [rsp + 0x40], ecx
je 0x1401a0e45
xor r14d, r14d
mov qword [rdi + 0x98], rbx
test byte [rdi + 0x4c], 1
je 0x1401a0cd0
test byte [rbx], 2
jne 0x1401a0cd0
test r12b, r12b
jne 0x1401a0cd0
mov edx, dword [rbx + 0x2c]
lea rcx, [rbp - 0x40]
mov qword [rsp + 0x20], rcx
mov r8, rax
mov rcx, rdi
call fcn.1401a4280
test al, al
je 0x1401a0cd0
mov eax, dword [rbp - 0x40]
mov r14d, 1
mov ecx, dword [rbp + 0xd0]
test al, 4
je 0x1401a0c93
nop dword [rax]
cmp ecx, dword [rbp - 0xc]
jl 0x1401a0c93
cmp ecx, dword [rbp - 4]
mov edx, 0
cmovl r14d, edx
jmp 0x1401a0c95
xor edx, edx
and eax, 0x18
cmp al, 0x18
jne 0x1401a0cd2
nop dword [rax]
cmp ecx, dword [rbp + 0x14]
jl 0x1401a0cd2
cmp ecx, dword [rbp + 0x1c]
jge 0x1401a0cd2
mov r9d, dword [rsp + 0x58]
xor eax, eax
mov r8d, dword [rsp + 0x54]
cmp esi, 0x204
mov rdx, rbx
mov rcx, rdi
sete al
mov dword [rsp + 0x20], eax
call fcn.1401a4ba0
jmp 0x1401a0cff
xor edx, edx
mov r9d, dword [rsp + 0x58]
mov eax, edx
mov r8d, dword [rsp + 0x54]
cmp esi, 0x204
mov rdx, rbx
mov rcx, rdi
sete al
mov dword [rsp + 0x20], eax
call fcn.1401a4ba0
test r14d, r14d
jne 0x1401a0e39
mov r14d, dword [rbp + 0xd0]
xor ecx, ecx
mov r8, qword ds:[rsp + 0x78]
lea eax, [rsi - 0x201]
mov edx, 0xffffffff
mov r9d, 0x49
cmp eax, 6
ja 0x1401a0d79
bt r9d, eax
jae 0x1401a0d79
mov eax, dword [rdi + 0xa8]
test eax, eax
je 0x1401a0d5b
cmp eax, esi
je 0x1401a0d5b
nop dword [rax]
cmp eax, 0x201
jne 0x1401a0d4e
mov edx, 0xd
jmp 0x1401a0d5b
xor edx, edx
cmp eax, 0x204
setne dl
add edx, 0xe
mov eax, dword [rbp + 0xd8]
mov dword [rdi + 0xb0], eax
mov dword [rdi + 0xa8], esi
mov dword [rdi + 0xac], r14d
jmp 0x1401a0df9
lea eax, ds:[rsi - 0x202]
cmp eax, 6
ja 0x1401a0dd7
bt r9d, eax
jae 0x1401a0dd7
mov eax, dword [rdi + 0xa8]
test eax, eax
je 0x1401a0dcf
cmp dword [rdi + 0xac], r14d
jne 0x1401a0dcf
mov r9d, dword [rbp + 0xd8]
cmp dword [rdi + 0xb0], r9d
jne 0x1401a0dcf
cmp eax, 0x201
jne 0x1401a0dc2
mov edx, 0xd
mov dword [rdi + 0xa8], ecx
jmp 0x1401a0df3
cmp eax, 0x204
mov edx, ecx
setne dl
add edx, 0xe
mov dword [rdi + 0xa8], ecx
jmp 0x1401a0df3
cmp esi, 0x203
jne 0x1401a0de6
mov edx, 0x10
jmp 0x1401a0df3
cmp esi, 0x206
jne 0x1401a0df3
mov edx, 0x11
mov eax, dword [rbp + 0xd8]
nop dword [rax]
test r13d, r13d
jne 0x1401a11b2
cmp edx, 0xffffffff
je 0x1401a11b2
mov r9d, dword [rsp + 0x48]
mov rcx, rdi
mov dword [rsp + 0x30], r9d
mov r9d, eax
mov qword [rsp + 0x28], r8
mov r8d, r14d
mov qword [rsp + 0x20], rbx
call fcn.1401a2d20
jmp 0x1401a11b2
mov r14d, dword [rbp + 0xd0]
mov rax, qword [rsp + 0x78]
xor r13b, r13b
mov byte [rsp + 0x50], 0
test r15b, 0xf
jne 0x1401a1102
test r12b, r12b
mov r12d, 0xffffffff
jne 0x1401a1108
test rbx, rbx
je 0x1401a0e71
mov r13d, dword [rbx + 0x2c]
jmp 0x1401a0e74
mov r13d, r12d
test rax, rax
je 0x1401a0e82
mov eax, dword [rax + 4]
mov dword [rsp + 0x5c], eax
jmp 0x1401a0e87
mov dword [rsp + 0x5c], r12d
mov edx, dword [rdi + 0x220]
mov eax, r14d
mov ecx, dword [rdi + 0x224]
sub eax, edx
mov r8d, dword [rbp + 0xd8]
mov r9d, 2
mov dword [rbp + 0x40], eax
mov eax, r8d
sub eax, ecx
mov dword [rbp + 0x44], eax
lea eax, [rdx + r14]
mov dword [rbp + 0x48], eax
xor edx, edx
lea eax, [rcx + r8]
mov rcx, qword [rdi]
lea r8, [rbp + 0x40]
mov dword [rbp + 0x4c], eax
call qword [sym.imp.USER32.dll_MapWindowPoints]
mov rcx, qword [rdi]
call qword [sym.imp.USER32.dll_SetCapture]
xor r15d, r15d
mov ebx, r15d
nop dword [rax]
xor r9d, r9d
mov dword [rsp + 0x20], 1
xor r8d, r8d
lea rcx, [rbp - 0x78]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x1401a0f6d
mov eax, dword [rbp - 0x70]
sub eax, 0x200
je 0x1401a0f3d
sub eax, 1
je 0x1401a0f32
sub eax, 1
je 0x1401a0f32
sub eax, 2
je 0x1401a0f32
cmp eax, 1
je 0x1401a0f32
lea rcx, [rbp - 0x78]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rbp - 0x78]
call qword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x1401a0f73
call qword [sym.imp.USER32.dll_ReleaseCapture]
mov ebx, dword [rbp - 0x70]
jmp 0x1401a0f73
mov eax, dword [rbp - 0x54]
cmp eax, dword [rbp + 0x40]
jl 0x1401a0f57
cmp eax, dword [rbp + 0x48]
jge 0x1401a0f57
mov eax, dword [rbp - 0x50]
cmp eax, dword [rbp + 0x44]
jl 0x1401a0f57
cmp eax, dword [rbp + 0x4c]
jl 0x1401a0f73
mov rcx, qword ds:[rdi]
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
setne dl
jmp 0x1401a0f95
call qword [sym.imp.USER32.dll_WaitMessage]
mov rcx, qword [rdi]
call qword [sym.imp.USER32.dll_IsWindow]
nop dword [rax]
test eax, eax
je 0x1401a0f93
call qword [sym.imp.USER32.dll_GetCapture]
cmp rax, qword [rdi]
je 0x1401a0ee0
xor dl, dl
cmp r13d, r12d
jne 0x1401a0f9f
mov r14, r15
jmp 0x1401a0fba
mov rax, qword [rdi + 0x128]
cmp r13d, dword [rax]
jae 0x1401a11b2
mov rax, qword [rax + 8]
mov ecx, r13d
mov r14, qword [rax + rcx*8]
mov eax, dword ds:[rsp + 0x5c]
cmp eax, r12d
je 0x1401a0feb
cmp eax, dword [rdi + 0xd4]
jae 0x1401a11b2
mov ecx, eax
mov rax, qword [rdi + 0xc8]
mov r13, qword [rax + rcx*8]
test r13, r13
je 0x1401a11b2
jmp 0x1401a0ff0
mov r13, qword [rsp + 0x78]
test dl, dl
je 0x1401a101e
mov ebx, dword [rbp + 0xd0]
xor r13b, r13b
mov sil, 1
cmp dword [rsp + 0x40], r15d
je 0x1401a1111
test byte [rdi + 0x4c], sil
je 0x1401a1111
mov r12d, dword [r14 + 0x2c]
jmp 0x1401a1111
nop
cmp esi, 0x201
jne 0x1401a1038
cmp ebx, 0x202
je 0x1401a1050
xor r13b, r13b
jmp 0x1401a1108
nop dword [rax + rax]
cmp esi, 0x204
jne 0x1401a1030
cmp ebx, 0x205
jne 0x1401a1030
cmp dword [rsp + 0x40], r15d
je 0x1401a106e
mov eax, dword [rsp + 0x50]
mov ecx, 1
test byte [rdi + 0x4c], 1
movzx eax, al
cmovne eax, ecx
mov dword [rsp + 0x50], eax
mov rbx, qword [rdi]
call qword [sym.imp.USER32.dll_GetMessagePos]
movsx ecx, ax
lea rdx, [rsp + 0x40]
shr eax, 0x10
cwde
mov dword [rsp + 0x40], ecx
mov rcx, rbx
mov dword [rsp + 0x44], eax
call qword [sym.imp.USER32.dll_ScreenToClient]
mov ebx, dword ds:[rbp + 0xd0]
cmp dword [rsp + 0x40], ebx
jne 0x1401a10e9
mov rax, qword [rsp + 0x40]
mov ecx, dword [rbp + 0xd8]
shr rax, 0x20
cmp eax, ecx
jne 0x1401a10e9
mov r9d, dword [rsp + 0x48]
cmp esi, 0x201
mov dword [rsp + 0x30], r9d
mov r8d, ebx
setne r15b
mov qword [rsp + 0x28], r13
mov r9d, ecx
mov qword [rsp + 0x20], r14
mov rcx, rdi
lea edx, [r15 + 0xd]
call fcn.1401a2d20
cmp esi, 0x204
sete r13b
cmp byte [rsp + 0x50], 0
jne 0x1401a1190
nop
jmp 0x1401a110e
mov r12d, 0xffffffff
mov ebx, dword [rbp + 0xd0]
xor sil, sil
cmp dword [rsp + 0x54], 0
jne 0x1401a117a
cmp dword [rsp + 0x58], 0
jne 0x1401a117a
lea rax, [rsp + 0x48]
mov r9d, 4
mov qword [rsp + 0x28], rax
mov r8d, r12d
lea rax, [rsp + 0x40]
mov edx, r12d
mov rcx, rdi
mov qword [rsp + 0x20], rax
call fcn.1401a48a0
mov r8d, dword ds:[rsp + 0x48]
lea rax, [rbp + 0x50]
mov edx, dword [rsp + 0x40]
mov r9b, 1
mov rcx, rdi
mov qword [rsp + 0x20], rax
call fcn.1401a4540
test al, al
je 0x1401a117a
mov rcx, qword [rbp - 0x80]
lea rdx, [rbp + 0x50]
xor r8d, r8d
call qword [sym.imp.USER32.dll_InvalidateRect]
test sil, sil
je 0x1401a1190
mov r8d, dword [rbp + 0xd8]
mov edx, ebx
mov rcx, rdi
call fcn.1401a9260
test r13b, r13b
je 0x1401a11b2
mov rbx, qword [rdi]
call qword [sym.imp.USER32.dll_GetMessagePos]
mov r9d, eax
mov r8, rbx
mov edx, 0x7b
mov rcx, rbx
call qword [sym.imp.USER32.dll_SendMessageW]
mov r14, qword [rsp + 0x1c8]
mov rcx, qword [rbp + 0x60]
xor rcx, rsp
call fcn.1401e4a20
add rsp, 0x170
pop r15
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret