Function at 0x14009cfc0
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x50
cmp byte [rcx + 0x1a7], 0
mov rbx, rcx
mov byte [rcx + 0x1cc], 0
je 0x14009d385
mov qword [rsp + 0x68], rbp
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], r14
call qword [sym.imp.MSVCP140.dll__Xtime_get_ticks]
mov ecx, dword [rbx + 0x7c]
mov rbp, rax
mov qword [rsp + 0x60], rax
call fcn.14009cdf0
cmp byte [rbx + 0x1d5], 0
mov rdi, rax
je 0x14009d05e
mov ecx, dword [rbx + 0x7c]
cmp ecx, 0xffffffff
jne 0x14009d020
xor sil, sil
jmp 0x14009d029
call qword [sym.imp.USER32.dll_GetKeyState]
movzx esi, ax
and sil, 1
cmp sil, byte [rdi + 0x20]
je 0x14009d05a
mov rdx, qword [rdi + 0x10]
lea rcx, [rdi + 8]
cmp rdx, qword [rdi + 0x18]
je 0x14009d04b
mov qword [rdx], rbp
add qword [rdi + 0x10], 8
jmp 0x14009d05a
lea r8, [rsp + 0x60]
call fcn.140101130
mov rbp, qword [rsp + 0x60]
mov byte [rdi + 0x20], sil
lea rcx, [rbx + 8]
call fcn.14008e050
movzx ecx, byte [0x1401f4c88]
movzx esi, al
mov eax, 0x989680
cdq
idiv dword [rbx + 0x1ac]
movsxd r14, eax
test cl, cl
je 0x14009d092
mov rax, r14
cqo
sub rax, rdx
sar rax, 1
mov r14, rax
mov rax, qword [rbx + 0x1b8]
test sil, sil
je 0x14009d2e2
cmp rax, rbp
jge 0x14009d2f1
movaps xmmword [rsp + 0x30], xmm6
movsd xmm6, qword [0x140138bb8]
movaps xmmword [rsp + 0x20], xmm7
movss xmm7, dword [0x140138d34]
test cl, cl
je 0x14009d183
cmp byte [rbx], 0
je 0x14009d167
cmp byte [rbx + 0x1cd], 0
je 0x14009d104
call fcn.14007df30
test al, al
jne 0x14009d104
cmp byte [rbx + 0x1d4], al
je 0x14009d0f6
cmp sil, byte [rbx + 0x70]
je 0x14009d104
mov eax, dword [rbx + 0x1d0]
dec eax
mov dword [0x140250ea4], eax
mov rcx, rbx
call fcn.14009cef0
test al, al
je 0x14009d176
mov ecx, dword [rbx + 0x7c]
cmp ecx, 0xffffffff
je 0x14009d11f
mov dl, 1
call fcn.140083cb0
cmp dword [0x140251128], 0
je 0x14009d176
mov rdx, qword [rdi + 0x10]
lea rcx, [rdi + 8]
cmp rdx, qword [rdi + 0x18]
je 0x14009d14b
mov qword [rdx], rbp
add qword [rdi + 0x10], 8
cmp byte [rbx], 0
sete al
mov byte [rbx], al
jmp 0x14009d20b
lea r8, [rsp + 0x60]
call fcn.140101130
cmp byte [rbx], 0
mov rbp, qword [rsp + 0x60]
sete al
mov byte [rbx], al
jmp 0x14009d20b
mov ecx, dword [rbx + 0x7c]
cmp ecx, 0xffffffff
je 0x14009d176
xor edx, edx
call fcn.140083cb0
cmp byte [rbx], 0
sete al
mov byte [rbx], al
jmp 0x14009d20b
cmp byte [rbx + 0x1cd], 0
je 0x14009d1b1
call fcn.14007df30
test al, al
jne 0x14009d1b1
cmp byte [rbx + 0x1d4], al
je 0x14009d1a3
cmp sil, byte [rbx + 0x70]
je 0x14009d1b1
mov eax, dword [rbx + 0x1d0]
dec eax
mov dword [0x140250ea4], eax
mov rcx, rbx
call fcn.14009cef0
test al, al
je 0x14009d20b
mov ecx, dword [rbx + 0x7c]
cmp ecx, 0xffffffff
je 0x14009d1cc
mov dl, 1
call fcn.140083cb0
cmp dword [0x140251128], 0
je 0x14009d1fc
mov rdx, qword [rdi + 0x10]
lea rcx, [rdi + 8]
cmp rdx, qword [rdi + 0x18]
je 0x14009d1ed
mov qword [rdx], rbp
add qword [rdi + 0x10], 8
jmp 0x14009d1fc
lea r8, [rsp + 0x60]
call fcn.140101130
mov rbp, qword [rsp + 0x60]
mov ecx, dword [rbx + 0x7c]
cmp ecx, 0xffffffff
je 0x14009d20b
xor edx, edx
call fcn.140083cb0
cmp byte [rbx + 0x1b0], 0
je 0x14009d2ad
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
movss xmm1, dword [rbx + 0x1c8]
xorps xmm2, xmm2
xorps xmm3, xmm3
cvtsi2sd xmm3, qword [rbx + 0x1b8]
movd xmm0, eax
movzx eax, byte [rbx + 0x1c0]
cvtdq2ps xmm0, xmm0
cvtsi2sd xmm2, r14
divss xmm0, xmm7
cvtps2pd xmm4, xmm0
test al, al
je 0x14009d26f
cvtpd2ps xmm0, xmm4
movss dword [rbx + 0x1c4], xmm0
mulss xmm0, xmm1
movaps xmm1, xmm6
cvtps2pd xmm0, xmm0
subsd xmm1, xmm0
jmp 0x14009d27e
mulss xmm1, dword [rbx + 0x1c4]
cvtps2pd xmm1, xmm1
addsd xmm1, xmm6
mulsd xmm1, xmm2
addsd xmm1, xmm3
cvttsd2si rcx, xmm1
mov qword [rbx + 0x1b8], rcx
cmp byte [0x1401f4c88], 0
je 0x14009d2a0
cmp byte [rbx], 0
je 0x14009d2be
test al, al
sete al
mov byte [rbx + 0x1c0], al
jmp 0x14009d2be
mov rcx, qword [rbx + 0x1b8]
add rcx, r14
mov qword [rbx + 0x1b8], rcx
mov byte [rbx + 0x1cc], 1
cmp rcx, rbp
jge 0x14009d2d6
movzx ecx, byte [0x1401f4c88]
jmp 0x14009d0c5
movaps xmm7, xmmword [rsp + 0x20]
movaps xmm6, xmmword [rsp + 0x30]
jmp 0x14009d2f1
cmp rax, rbp
jge 0x14009d2ee
mov qword [rbx + 0x1b8], rbp
mov byte [rbx], 1
mov r14, qword [rsp + 0x40]
cmp sil, byte [rbx + 0x70]
je 0x14009d372
test sil, sil
jne 0x14009d372
mov ecx, dword [rbx + 0x7c]
cmp ecx, 0xffffffff
jne 0x14009d30d
xor eax, eax
jmp 0x14009d314
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
shr eax, 0xf
test al, 1
je 0x14009d363
mov rcx, rbx
call fcn.14009cef0
test al, al
je 0x14009d372
mov ecx, dword [rbx + 0x7c]
cmp ecx, 0xffffffff
je 0x14009d336
mov dl, 1
call fcn.140083cb0
cmp dword [0x140251128], 0
je 0x14009d372
mov rdx, qword [rdi + 0x10]
lea rcx, [rdi + 8]
cmp rdx, qword [rdi + 0x18]
je 0x14009d357
mov qword [rdx], rbp
add qword [rdi + 0x10], 8
jmp 0x14009d372
lea r8, [rsp + 0x60]
call fcn.140101130
jmp 0x14009d372
mov ecx, dword [rbx + 0x7c]
cmp ecx, 0xffffffff
je 0x14009d372
xor edx, edx
call fcn.140083cb0
mov rdi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x68]
mov byte [rbx + 0x70], sil
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rbx
ret