Function at 0x1800be850
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 [0x1804cd010]
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 0x1800beafd
sub eax, 1
je 0x1800be902
sub eax, 1
je 0x1800bea15
cmp eax, 1
jne 0x1800bebc1
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.1800bf090
mov dword [rbx + 0x5c], eax
cmp eax, 0xffffffff
je 0x1800be96b
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 0x1800bebc1
cmp dword [rbx + 0x5c], 4
je 0x1800bebc1
mov edx, edi
lea rcx, [rbx + 8]
call fcn.1800a7b20
cmp r12d, 0x203
jne 0x1800bebc1
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x30], xmm0
movdqa xmm1, xmmword [0x1803e8780]
movdqu xmmword [rbp - 0x30], xmm1
mov byte [rbp - 0x40], r13b
mov r8d, 3
lea rdx, [0x1803c6fac]
lea rcx, [rbp - 0x40]
call fcn.180005220
nop
lea rcx, [rbp - 0x40]
call fcn.180007750
nop
mov rdx, qword [rbp - 0x28]
cmp rdx, 0x10
jb 0x1800beada
inc rdx
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800bead5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800bead5
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 0x1800bea29
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.1800bf090
mov r15d, eax
movsxd rcx, dword [rbx + 0x58]
cmp ecx, 0xffffffff
je 0x1800bea72
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 0x1800bea94
movsxd rax, dword [rbx + 0x5c]
cmp eax, r15d
jne 0x1800bea94
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 0x1800beabe
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 0x1800bebc1
call fcn.180388460
movdqa xmm0, xmmword [0x1803e8780]
movdqu xmmword [rbp - 0x30], xmm0
mov byte [rbp - 0x40], 0
mov r8b, 1
mov edx, edi
mov rcx, rbx
call fcn.1800bfd10
jmp 0x1800bebc1
mov ecx, 1
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
and al, 1
mov byte [rbx + 0x60], al
jne 0x1800beac9
cmp byte [rbx + 0x61], r13b
je 0x1800beb22
call qword [sym.imp.USER32.dll_ReleaseCapture]
mov byte [rbx + 0x61], r13b
movsxd rax, dword [rbx + 0x58]
cmp eax, 0xffffffff
je 0x1800beb56
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.1800bf090
mov dword [rbx + 0x5c], eax
mov dword [rbx + 0x58], edi
cmp edi, 0xffffffff
je 0x1800beb9d
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.180388400
mov rbx, qword [rsp + 0xb8]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret