Function at 0x14005e430
Capabilities:
Log keystrokes via polling

Disassembly:
push rbp
push rsi
lea rbp, [rsp - 0x4f]
sub rsp, 0xa8
mov rax, qword [0x1400cc040]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov rsi, rcx
lea rcx, [0x140194780]
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
je 0x14005e46d
mov ecx, 5
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
cmp dword [0x1401947cc], 0x7fffffff
jne 0x14005e48f
mov ecx, 6
mov dword [0x1401947cc], 0x7ffffffe
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov rax, qword [0x140191740]
lea rdx, [0x140191748]
mov qword [rsp + 0xa0], r13
lea rcx, [rbp + 0xf]
mov qword [rbp + 7], rax
mov qword [rsp + 0x98], r14
call fcn.14009af40
lea rcx, [0x140194780]
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
movups xmm0, xmmword [rbp + 0xf]
mov r8, qword [0x140194c60]
lea rdx, [rbp - 0x21]
movups xmm1, xmmword [rbp + 0x1f]
lea rcx, [0x140194c50]
movq r14, xmm0
movups xmmword [rbp - 0x21], xmm0
mov qword [rbp - 0x31], r14
movdqa xmm0, xmm1
movq rax, xmm1
psrldq xmm0, 8
movq r13, xmm0
cmp r13, 0xf
mov qword [rbp - 0x29], r13
movups xmmword [rbp - 0x11], xmm1
cmova rdx, r14
cmp qword [0x140194c68], 0xf
cmova rcx, qword [0x140194c50]
cmp r8, rax
jne 0x14005e533
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x14005e695
mov rax, qword [rsi]
mov qword [rsp + 0xd0], rdi
mov qword [rsp + 0x90], r15
mov r15, qword [rax + 8]
mov rdi, qword [rax]
cmp rdi, r15
je 0x14005e685
mov qword [rsp + 0xc8], rbx
lea rbx, [rsi + 0x10]
mov qword [rsp + 0xd8], r12
mov r12d, 2
lea r13d, [r12 + 0x1e]
lea r14d, [r12 + 6]
nop word [rax + rax]
xor eax, eax
xorps xmm0, xmm0
mov qword [rbp - 1], rax
mov rax, qword [rsi + 8]
movups xmmword [rbp - 0x21], xmm0
movups xmmword [rbp - 0x11], xmm0
cmp byte [rax], 0
je 0x14005e5fb
mov edx, dword [rdi]
cmp edx, 1
jne 0x14005e5e5
mov rax, qword [rbx]
mov ecx, 4
cmp byte [rax], 0
cmovne ecx, r12d
mov dword [rbp - 0xd], ecx
cmp edx, r12d
jne 0x14005e5cb
mov rax, qword [rsi + 0x10]
mov ecx, 0x10
cmp byte [rax], 0
cmovne ecx, r14d
mov dword [rbp - 0xd], ecx
mov r8d, 0x28
lea rdx, [rbp - 0x21]
lea ecx, [r8 - 0x27]
call qword [sym.imp.USER32.dll_SendInput]
lea rbx, [rsi + 0x10]
jmp 0x14005e633
cmp edx, 4
jne 0x14005e5b3
mov rax, qword [rbx]
mov ecx, 0x40
cmp byte [rax], 0
cmovne ecx, r13d
jmp 0x14005e5c8
movzx ecx, byte [rdi]
mov dword [rbp - 0x21], 1
call qword [sym.imp.USER32.dll_VkKeyScanA]
mov ecx, dword [rbp - 0x15]
lea rdx, [rbp - 0x21]
mov word [rbp - 0x19], ax
mov r8d, 0x28
mov rax, qword [rbx]
cmp byte [rax], 0
cmove ecx, r12d
mov dword [rbp - 0x15], ecx
lea ecx, [r8 - 0x27]
call qword [sym.imp.USER32.dll_SendInput]
xor eax, eax
xorps xmm0, xmm0
mov qword [rbp - 1], rax
mov rax, qword [rsi + 0x18]
movups xmmword [rbp - 0x11], xmm0
movups xmmword [rbp - 0x21], xmm0
mov rcx, qword [rax]
movsxd rax, dword [rcx + 4]
test eax, eax
jle 0x14005e660
lea rcx, [rbp - 0x39]
mov qword [rbp - 0x39], rax
call fcn.14009c920
add rdi, 4
cmp rdi, r15
jne 0x14005e580
mov r12, qword [rsp + 0xd8]
mov rbx, qword [rsp + 0xc8]
mov r14, qword [rbp - 0x31]
mov r13, qword [rbp - 0x29]
mov rdi, qword [rsp + 0xd0]
mov r15, qword [rsp + 0x90]
cmp r13, 0xf
jbe 0x14005e6cf
lea rdx, [r13 + 1]
mov rax, r14
cmp rdx, 0x1000
jb 0x14005e6c7
mov r14, qword [r14 - 8]
add rdx, 0x27
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005e6c7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r14
call fcn.1400a55d0
mov r13, qword [rsp + 0xa0]
mov r14, qword [rsp + 0x98]
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.1400a55b0
add rsp, 0xa8
pop rsi
pop rbp
ret