Function at 0x1800be690
Capabilities:
Log keystrokes via polling

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x48], 0xfffffffffffffffe
mov qword [rsp + 0xb8], rbx
mov rax, qword [0x1804ca010]
xor rax, rsp
mov qword [rbp - 8], rax
mov r12d, edx
mov rbx, rcx
mov r14, qword [rbp + 0x60]
xor r13d, r13d
mov dword [r14], r13d
movsx eax, r9w
mov dword [rbp - 0x50], eax
shr r9, 0x10
movsx eax, r9w
mov dword [rbp - 0x4c], eax
xor eax, eax
mov qword [rbp - 0x1c], rax
mov qword [rbp - 0x14], rax
mov rax, qword [rbp - 0x50]
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x20]
xor r8d, r8d
mov edx, 0x1039
mov rcx, qword [rcx + 8]
call qword [sym.imp.USER32.dll_SendMessageW]
mov rdi, rax
mov r15d, dword [rbp - 0x10]
mov eax, 0xffffffff
cmp r15d, eax
cmove edi, eax
mov eax, r12d
sub eax, 0x200
je 0x1800be93d
sub eax, 1
je 0x1800be742
sub eax, 1
je 0x1800be855
cmp eax, 1
jne 0x1800bea01
mov rcx, qword [rbx + 8]
call qword [sym.imp.USER32.dll_SetFocus]
mov byte [rbx + 0x60], 1
mov dword [r14], 1
mov rcx, qword [rbx + 8]
call qword [sym.imp.USER32.dll_SetCapture]
mov byte [rbx + 0x61], 1
mov dword [rbx + 0x58], edi
lea r9, [rbp - 0x50]
mov r8d, r15d
mov edx, edi
mov rcx, rbx
call fcn.1800beed0
mov dword [rbx + 0x5c], eax
cmp eax, 0xffffffff
je 0x1800be7ab
mov dword [rbp - 0x40], r13d
movsxd r8, dword [rbx + 0x58]
lea r9, [rbp - 0x40]
mov edx, 0x100e
mov rcx, qword [rbx + 8]
call qword [sym.imp.USER32.dll_SendMessageW]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbx + 8]
call qword [sym.imp.USER32.dll_InvalidateRect]
cmp edi, 0xffffffff
je 0x1800bea01
cmp dword [rbx + 0x5c], 4
je 0x1800bea01
mov edx, edi
lea rcx, [rbx + 8]
call fcn.1800a7a20
cmp r12d, 0x203
jne 0x1800bea01
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x30], xmm0
movdqa xmm1, xmmword [0x1803e6750]
movdqu xmmword [rbp - 0x30], xmm1
mov byte [rbp - 0x40], r13b
mov r8d, 3
lea rdx, [0x1803c4f94]
lea rcx, [rbp - 0x40]
call fcn.1800051f0
nop
lea rcx, [rbp - 0x40]
call fcn.180007720
nop
mov rdx, qword [rbp - 0x28]
cmp rdx, 0x10
jb 0x1800be91a
inc rdx
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800be915
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800be915
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov byte [rbx + 0x60], r13b
cmp byte [rbx + 0x61], r13b
je 0x1800be869
call qword [sym.imp.USER32.dll_ReleaseCapture]
mov byte [rbx + 0x61], r13b
lea r9, [rbp - 0x50]
mov r8d, r15d
mov edx, edi
mov rcx, rbx
call fcn.1800beed0
mov r15d, eax
movsxd rcx, dword [rbx + 0x58]
cmp ecx, 0xffffffff
je 0x1800be8b2
mov dword [rbp - 0x40], r13d
mov r8, rcx
lea r9, [rbp - 0x40]
mov edx, 0x100e
mov rcx, qword [rbx + 8]
call qword [sym.imp.USER32.dll_SendMessageW]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbx + 8]
call qword [sym.imp.USER32.dll_InvalidateRect]
mov ecx, dword [rbx + 0x58]
cmp ecx, edi
jne 0x1800be8d4
movsxd rax, dword [rbx + 0x5c]
cmp eax, r15d
jne 0x1800be8d4
movsxd r9, edi
mov r8, rax
mov edx, 0x1388
mov rcx, qword [rbx + 8]
call qword [sym.imp.USER32.dll_PostMessageW]
mov dword [rbx + 0x58], edi
mov dword [rbx + 0x5c], r15d
mov rcx, qword [rbx + 8]
cmp edi, 0xffffffff
je 0x1800be8fe
mov dword [rbp - 0x40], r13d
movsxd r8, edi
lea r9, [rbp - 0x40]
mov edx, 0x100e
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [rbx + 8]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_InvalidateRect]
mov dword [r14], 1
jmp 0x1800bea01
call fcn.180385c70
movdqa xmm0, xmmword [0x1803e6750]
movdqu xmmword [rbp - 0x30], xmm0
mov byte [rbp - 0x40], 0
mov r8b, 1
mov edx, edi
mov rcx, rbx
call fcn.1800bfb50
jmp 0x1800bea01
mov ecx, 1
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
and al, 1
mov byte [rbx + 0x60], al
jne 0x1800be909
cmp byte [rbx + 0x61], r13b
je 0x1800be962
call qword [sym.imp.USER32.dll_ReleaseCapture]
mov byte [rbx + 0x61], r13b
movsxd rax, dword [rbx + 0x58]
cmp eax, 0xffffffff
je 0x1800be996
mov dword [rbp - 0x40], r13d
mov r8, rax
lea r9, [rbp - 0x40]
mov edx, 0x100e
mov rcx, qword [rbx + 8]
call qword [sym.imp.USER32.dll_SendMessageW]
xor r8d, r8d
lea rdx, [rbp - 0x40]
mov rcx, qword [rbx + 8]
call qword [sym.imp.USER32.dll_InvalidateRect]
lea r9, [rbp - 0x50]
mov r8d, r15d
mov edx, edi
mov rcx, rbx
call fcn.1800beed0
mov dword [rbx + 0x5c], eax
mov dword [rbx + 0x58], edi
cmp edi, 0xffffffff
je 0x1800be9dd
mov dword [rbp - 0x40], r13d
movsxd r8, edi
lea r9, [rbp - 0x40]
mov edx, 0x100e
mov rcx, qword [rbx + 8]
call qword [sym.imp.USER32.dll_SendMessageW]
xor r8d, r8d
lea rdx, [rbp - 0x40]
mov rcx, qword [rbx + 8]
call qword [sym.imp.USER32.dll_InvalidateRect]
mov dword [rbp - 0x40], 0x18
mov dword [rbp - 0x3c], 2
mov rax, qword [rbx + 8]
mov qword [rbp - 0x38], rax
mov dword [rbp - 0x30], r13d
lea rcx, [rbp - 0x40]
call qword [sym.imp.USER32.dll_TrackMouseEvent]
xor eax, eax
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.180385c10
mov rbx, qword [rsp + 0xb8]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret