Function at 0x140059370
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xb0
mov rax, qword [0x140073040]
xor rax, rsp
mov qword [rbp + 0x4f], rax
mov esi, 0x57
mov ecx, esi
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
xor edi, edi
lea ebx, [rsi - 0x37]
movabs r14, 0x6666666666666667
test ax, ax
jns 0x1400593d1
mov ecx, ebx
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
js 0x1400594d2
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x1f], xmm1
mov qword [rbp + 0x2f], rdi
mov dword [rbp - 9], 1
mov word [rbp - 1], si
mov dword [rbp + 3], edi
lea r8, [rbp - 9]
xor edx, edx
lea rcx, [rbp + 0x1f]
call fcn.14005a2c0
mov dword [rbp - 0x31], 1
mov word [rbp - 0x29], bx
mov dword [rbp - 0x25], edi
mov rdx, qword [rbp + 0x27]
cmp rdx, qword [rbp + 0x2f]
je 0x140059439
movups xmm0, xmmword [rbp - 0x31]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rbp - 0x21]
movups xmmword [rdx + 0x10], xmm1
movsd xmm0, qword [rbp - 0x11]
movsd qword [rdx + 0x20], xmm0
mov rcx, qword [rbp + 0x27]
add rcx, 0x28
mov qword [rbp + 0x27], rcx
jmp 0x14005944a
lea r8, [rbp - 0x31]
lea rcx, [rbp + 0x1f]
call fcn.14005a2c0
mov rcx, qword [rbp + 0x27]
sub rcx, qword [rbp + 0x1f]
mov rax, r14
imul rcx
mov rcx, rdx
sar rcx, 4
mov rax, rcx
shr rax, 0x3f
add rcx, rax
mov r8d, 0x28
mov rdx, qword [rbp + 0x1f]
call qword [sym.imp.USER32.dll_SendInput]
nop
mov r8, qword [rbp + 0x1f]
test r8, r8
je 0x1400594d2
mov rcx, qword [rbp + 0x2f]
sub rcx, r8
mov rax, r14
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
lea rdx, [rdx + rdx*4]
shl rdx, 3
mov rax, r8
cmp rdx, 0x1000
jb 0x1400594ca
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400594ca
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r8
call fcn.14005ac34
lea rcx, [rbp - 0x39]
call fcn.1400079a0
movabs r8, 0x7ffffffff1194d7f
mov rax, qword [rbp - 0x39]
cmp rax, r8
je 0x140059507
mov ecx, 1
mov edx, 0xff
cmovl ecx, edx
test cl, cl
jns 0x140059507
add rax, 0xee6b280
jmp 0x140059511
movabs rax, 0x7fffffffffffffff
mov qword [rbp - 0x39], rax
lea rcx, [rbp - 0x39]
call fcn.14000a2a0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x37], xmm1
mov qword [rbp + 0x47], rdi
mov dword [rbp - 9], 1
mov word [rbp - 1], si
mov dword [rbp + 3], 2
lea r8, [rbp - 9]
xor edx, edx
lea rcx, [rbp + 0x37]
call fcn.14005a2c0
mov dword [rbp - 0x31], 1
mov word [rbp - 0x29], bx
mov dword [rbp - 0x25], 2
mov rdx, qword [rbp + 0x3f]
cmp rdx, qword [rbp + 0x47]
je 0x14005958e
movups xmm0, xmmword [rbp - 0x31]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rbp - 0x21]
movups xmmword [rdx + 0x10], xmm1
movsd xmm0, qword [rbp - 0x11]
movsd qword [rdx + 0x20], xmm0
mov rcx, qword [rbp + 0x3f]
add rcx, 0x28
mov qword [rbp + 0x3f], rcx
jmp 0x14005959f
lea r8, [rbp - 0x31]
lea rcx, [rbp + 0x37]
call fcn.14005a2c0
mov rcx, qword [rbp + 0x3f]
sub rcx, qword [rbp + 0x37]
mov rax, r14
imul rcx
mov rcx, rdx
sar rcx, 4
mov r9, rcx
shr r9, 0x3f
add rcx, r9
mov r8d, 0x28
mov rdx, qword [rbp + 0x37]
call qword [sym.imp.USER32.dll_SendInput]
nop
mov r8, qword [rbp + 0x37]
test r8, r8
je 0x140059627
mov rcx, qword [rbp + 0x47]
sub rcx, r8
mov rax, r14
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
lea rdx, [rdx + rdx*4]
shl rdx, 3
mov rax, r8
cmp rdx, 0x1000
jb 0x14005961f
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005961f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r8
call fcn.14005ac34
xor eax, eax
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.14005abd0
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret