Function at 0x14007e360
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 0x14007e725
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.14007e190
cmp byte [rbx + 0x1d5], 0
mov rdi, rax
je 0x14007e3fe
mov ecx, dword [rbx + 0x7c]
cmp ecx, 0xffffffff
jne 0x14007e3c0
xor sil, sil
jmp 0x14007e3c9
call qword [sym.imp.USER32.dll_GetKeyState]
movzx esi, ax
and sil, 1
cmp sil, byte [rdi + 0x20]
je 0x14007e3fa
mov rdx, qword [rdi + 0x10]
lea rcx, [rdi + 8]
cmp rdx, qword [rdi + 0x18]
je 0x14007e3eb
mov qword [rdx], rbp
add qword [rdi + 0x10], 8
jmp 0x14007e3fa
lea r8, [rsp + 0x60]
call fcn.1400bddb0
mov rbp, qword [rsp + 0x60]
mov byte [rdi + 0x20], sil
lea rcx, [rbx + 8]
call fcn.140075da0
movzx ecx, byte [0x1401b1c88]
movzx esi, al
mov eax, 0x989680
cdq
idiv dword [rbx + 0x1ac]
movsxd r14, eax
test cl, cl
je 0x14007e432
mov rax, r14
cqo
sub rax, rdx
sar rax, 1
mov r14, rax
mov rax, qword [rbx + 0x1b8]
test sil, sil
je 0x14007e682
cmp rax, rbp
jge 0x14007e691
movaps xmmword [rsp + 0x30], xmm6
movsd xmm6, qword [0x1400f6930]
movaps xmmword [rsp + 0x20], xmm7
movss xmm7, dword [0x1400f6aa4]
test cl, cl
je 0x14007e523
cmp byte [rbx], 0
je 0x14007e507
cmp byte [rbx + 0x1cd], 0
je 0x14007e4a4
call fcn.14006a2a0
test al, al
jne 0x14007e4a4
cmp byte [rbx + 0x1d4], al
je 0x14007e496
cmp sil, byte [rbx + 0x70]
je 0x14007e4a4
mov eax, dword [rbx + 0x1d0]
dec eax
mov dword [0x140207cd8], eax
mov rcx, rbx
call fcn.14007e290
test al, al
je 0x14007e516
mov ecx, dword [rbx + 0x7c]
cmp ecx, 0xffffffff
je 0x14007e4bf
mov dl, 1
call fcn.14006d490
cmp dword [0x140207df8], 0
je 0x14007e516
mov rdx, qword [rdi + 0x10]
lea rcx, [rdi + 8]
cmp rdx, qword [rdi + 0x18]
je 0x14007e4eb
mov qword [rdx], rbp
add qword [rdi + 0x10], 8
cmp byte [rbx], 0
sete al
mov byte [rbx], al
jmp 0x14007e5ab
lea r8, [rsp + 0x60]
call fcn.1400bddb0
cmp byte [rbx], 0
mov rbp, qword [rsp + 0x60]
sete al
mov byte [rbx], al
jmp 0x14007e5ab
mov ecx, dword [rbx + 0x7c]
cmp ecx, 0xffffffff
je 0x14007e516
xor edx, edx
call fcn.14006d490
cmp byte [rbx], 0
sete al
mov byte [rbx], al
jmp 0x14007e5ab
cmp byte [rbx + 0x1cd], 0
je 0x14007e551
call fcn.14006a2a0
test al, al
jne 0x14007e551
cmp byte [rbx + 0x1d4], al
je 0x14007e543
cmp sil, byte [rbx + 0x70]
je 0x14007e551
mov eax, dword [rbx + 0x1d0]
dec eax
mov dword [0x140207cd8], eax
mov rcx, rbx
call fcn.14007e290
test al, al
je 0x14007e5ab
mov ecx, dword [rbx + 0x7c]
cmp ecx, 0xffffffff
je 0x14007e56c
mov dl, 1
call fcn.14006d490
cmp dword [0x140207df8], 0
je 0x14007e59c
mov rdx, qword [rdi + 0x10]
lea rcx, [rdi + 8]
cmp rdx, qword [rdi + 0x18]
je 0x14007e58d
mov qword [rdx], rbp
add qword [rdi + 0x10], 8
jmp 0x14007e59c
lea r8, [rsp + 0x60]
call fcn.1400bddb0
mov rbp, qword [rsp + 0x60]
mov ecx, dword [rbx + 0x7c]
cmp ecx, 0xffffffff
je 0x14007e5ab
xor edx, edx
call fcn.14006d490
cmp byte [rbx + 0x1b0], 0
je 0x14007e64d
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 0x14007e60f
cvtpd2ps xmm0, xmm4
mulss xmm1, xmm0
movss dword [rbx + 0x1c4], xmm0
cvtps2pd xmm0, xmm1
movaps xmm1, xmm6
subsd xmm1, xmm0
jmp 0x14007e61e
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 [0x1401b1c88], 0
je 0x14007e640
cmp byte [rbx], 0
je 0x14007e65e
test al, al
sete al
mov byte [rbx + 0x1c0], al
jmp 0x14007e65e
mov rcx, qword [rbx + 0x1b8]
add rcx, r14
mov qword [rbx + 0x1b8], rcx
mov byte [rbx + 0x1cc], 1
cmp rcx, rbp
jge 0x14007e676
movzx ecx, byte [0x1401b1c88]
jmp 0x14007e465
movaps xmm7, xmmword [rsp + 0x20]
movaps xmm6, xmmword [rsp + 0x30]
jmp 0x14007e691
cmp rax, rbp
jge 0x14007e68e
mov qword [rbx + 0x1b8], rbp
mov byte [rbx], 1
mov r14, qword [rsp + 0x40]
cmp sil, byte [rbx + 0x70]
je 0x14007e712
test sil, sil
jne 0x14007e712
mov ecx, dword [rbx + 0x7c]
cmp ecx, 0xffffffff
jne 0x14007e6ad
xor eax, eax
jmp 0x14007e6b4
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
shr eax, 0xf
test al, 1
je 0x14007e703
mov rcx, rbx
call fcn.14007e290
test al, al
je 0x14007e712
mov ecx, dword [rbx + 0x7c]
cmp ecx, 0xffffffff
je 0x14007e6d6
mov dl, 1
call fcn.14006d490
cmp dword [0x140207df8], 0
je 0x14007e712
mov rdx, qword [rdi + 0x10]
lea rcx, [rdi + 8]
cmp rdx, qword [rdi + 0x18]
je 0x14007e6f7
mov qword [rdx], rbp
add qword [rdi + 0x10], 8
jmp 0x14007e712
lea r8, [rsp + 0x60]
call fcn.1400bddb0
jmp 0x14007e712
mov ecx, dword [rbx + 0x7c]
cmp ecx, 0xffffffff
je 0x14007e712
xor edx, edx
call fcn.14006d490
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