Function at 0x14006ce90
Capabilities:
Log keystrokes via polling

Disassembly:
push rbp
push rsi
lea rbp, [rsp - 0x4f]
sub rsp, 0xc8
mov rax, qword [0x14010f040]
xor rax, rsp
mov qword [rbp + 0xf], rax
mov rsi, rcx
lea rcx, [0x14020d4d0]
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
je 0x14006cecd
mov ecx, 5
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
cmp dword [0x14020d51c], 0x7fffffff
jne 0x14006ceef
mov ecx, 6
mov dword [0x14020d51c], 0x7ffffffe
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov rax, qword [0x140208050]
lea rdx, [0x140208058]
mov qword [rsp + 0xc0], r13
lea rcx, [rbp - 0x11]
mov qword [rsp + 0xb0], r15
movaps xmmword [rsp + 0xa0], xmm6
movaps xmmword [rsp + 0x90], xmm7
mov qword [rbp - 0x19], rax
call fcn.14006d370
lea rcx, [0x14020d4d0]
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
movups xmm6, xmmword [rbp - 0x11]
lea rcx, [rbp - 0x11]
mov byte [rbp - 0x11], 0
movups xmm7, xmmword [rbp - 1]
movdqa xmm0, xmmword [0x1400f6b40]
movups xmmword [rbp - 0x41], xmm6
movups xmmword [rbp - 0x31], xmm7
movdqu xmmword [rbp - 1], xmm0
call fcn.1400798f0
mov r8, qword [0x14020d980]
lea rdx, [rbp - 0x41]
movq r15, xmm6
lea rcx, [0x14020d970]
movaps xmm6, xmmword [rsp + 0xa0]
movdqa xmm0, xmm7
movq rax, xmm7
psrldq xmm0, 8
movaps xmm7, xmmword [rsp + 0x90]
movq r13, xmm0
cmp r13, 0xf
mov qword [rbp - 0x51], r15
mov qword [rbp - 0x49], r13
cmova rdx, r15
cmp qword [0x14020d988], 0xf
cmova rcx, qword [0x14020d970]
cmp r8, rax
jne 0x14006cfcd
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x14006d135
mov rax, qword [rsi]
mov qword [rsp + 0xf0], rdi
mov qword [rsp + 0xb8], r14
mov r14, qword [rax + 8]
mov rdi, qword [rax]
cmp rdi, r14
je 0x14006d125
mov qword [rsp + 0xe8], rbx
lea rbx, [rsi + 0x10]
mov qword [rsp + 0xf8], r12
mov r12d, 2
lea r13d, [r12 + 0x1e]
lea r15d, [r12 + 6]
nop dword [rax]
nop dword [rax + rax]
xor eax, eax
xorps xmm0, xmm0
mov qword [rbp - 0x21], rax
mov rax, qword [rsi + 8]
movups xmmword [rbp - 0x41], xmm0
movups xmmword [rbp - 0x31], xmm0
cmp byte [rax], 0
je 0x14006d09b
mov edx, dword [rdi]
cmp edx, 1
jne 0x14006d085
mov rax, qword [rbx]
mov ecx, 4
cmp byte [rax], 0
cmovne ecx, r12d
mov dword [rbp - 0x2d], ecx
cmp edx, r12d
jne 0x14006d06b
mov rax, qword [rsi + 0x10]
mov ecx, reloc.WS2_32.dll_recv
cmp byte [rax], 0
cmovne ecx, r15d
mov dword [rbp - 0x2d], ecx
mov r8d, 0x28
lea rdx, [rbp - 0x41]
lea ecx, [r8 - 0x27]
call qword [sym.imp.USER32.dll_SendInput]
lea rbx, [rsi + 0x10]
jmp 0x14006d0d3
cmp edx, 4
jne 0x14006d053
mov rax, qword [rbx]
mov ecx, 0x40
cmp byte [rax], 0
cmovne ecx, r13d
jmp 0x14006d068
movzx ecx, byte [rdi]
mov dword [rbp - 0x41], 1
call qword [sym.imp.USER32.dll_VkKeyScanA]
mov ecx, dword [rbp - 0x35]
lea rdx, [rbp - 0x41]
mov word [rbp - 0x39], ax
mov r8d, 0x28
mov rax, qword [rbx]
cmp byte [rax], 0
cmove ecx, r12d
mov dword [rbp - 0x35], ecx
lea ecx, [r8 - 0x27]
call qword [sym.imp.USER32.dll_SendInput]
xor eax, eax
xorps xmm0, xmm0
mov qword [rbp - 0x21], rax
mov rax, qword [rsi + 0x18]
movups xmmword [rbp - 0x31], xmm0
movups xmmword [rbp - 0x41], xmm0
mov rcx, qword [rax]
movsxd rax, dword [rcx + 4]
test eax, eax
jle 0x14006d100
lea rcx, [rbp - 0x59]
mov qword [rbp - 0x59], rax
call fcn.1400b8b00
add rdi, 4
cmp rdi, r14
jne 0x14006d020
mov r12, qword [rsp + 0xf8]
mov rbx, qword [rsp + 0xe8]
mov r15, qword [rbp - 0x51]
mov r13, qword [rbp - 0x49]
mov r14, qword [rsp + 0xb8]
mov rdi, qword [rsp + 0xf0]
cmp r13, 0xf
jbe 0x14006d16f
lea rdx, [r13 + 1]
mov rax, r15
cmp rdx, 0x1000
jb 0x14006d167
mov r15, qword [r15 - 8]
add rdx, 0x27
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14006d167
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r15
call fcn.1400cc760
mov r13, qword [rsp + 0xc0]
mov r15, qword [rsp + 0xb0]
mov rcx, qword [rbp + 0xf]
xor rcx, rsp
call fcn.1400cc3e0
add rsp, 0xc8
pop rsi
pop rbp
ret