Function at 0x140059c20
Capabilities:
Log keystrokes via polling

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x90
movaps xmmword [rax - 0x28], xmm6
movaps xmmword [rax - 0x38], xmm7
mov r14, r9
movaps xmm7, xmm2
mov rdi, rdx
mov rbx, rcx
xor ebp, ebp
mov dword [rax - 0x68], ebp
mov rsi, qword [0x1402b9870]
mov rax, qword [rsi + 0x3ea8]
mov byte [rax + 0x98], 1
mov rax, qword [rsi + 0x3ea8]
cmp byte [rax + 0x9b], bpl
je 0x140059c7b
xor al, al
jmp 0x140059ed0
movsxd r8, dword [rax + 0xd0]
mov rax, qword [rax + 0xd8]
mov r8d, dword [rax + r8*4 - 4]
xor edx, edx
call fcn.140012830
cmp dword [rsi + 0x3edc], eax
jne 0x140059cb3
mov r8, rbx
mov edx, 0xb
mov ecx, eax
call fcn.1400287b0
mov rsi, qword [0x1402b9870]
mov rcx, rbx
cmp rbx, 0xffffffffffffffff
jae 0x140059cdd
nop dword [rax]
movzx edx, byte [rcx]
test dl, dl
je 0x140059cdd
lea rax, [rcx + 1]
cmp dl, 0x23
jne 0x140059cd4
cmp byte [rax], dl
je 0x140059cdd
mov rcx, rax
cmp rax, 0xffffffffffffffff
jb 0x140059cc0
movss xmm6, dword [0x14011904c]
cmp rbx, rcx
je 0x140059d1b
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rbx
movss dword [rsp + 0x20], xmm6
movss xmm3, dword [0x140119028]
movss xmm2, dword [rsi + 0x3c18]
lea rdx, [rsp + 0x68]
mov rcx, qword [rsi + 0x3c10]
call fcn.140038ef0
xor edx, edx
lea r8d, [rdx + 1]
mov rcx, rbx
call fcn.14003c950
movaps xmm1, xmm6
movaps xmm0, xmm7
call fcn.140020c00
mov edx, dword [rdi]
test edx, edx
jne 0x140059d43
lea rax, [0x1400b1a70]
jmp 0x140059d61
lea rcx, [rsp + 0x48]
call fcn.14007bae0
nop
mov ebp, 1
mov dword [rsp + 0x40], ebp
cmp qword [rax + 0x18], 0xf
jbe 0x140059d61
mov rax, qword [rax]
mov rdx, r14
mov rcx, rax
call fcn.14003d950
nop
test bpl, 1
je 0x140059dc6
mov rdx, qword [rsp + 0x60]
cmp rdx, 0xf
jbe 0x140059db3
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140059dae
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140059dae
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400a3354
movdqa xmm0, xmmword [0x1401190b0]
movdqu xmmword [rsp + 0x58], xmm0
mov byte [rsp + 0x48], 0
mov rcx, qword [0x1402b9870]
mov rdx, qword [rcx + 0x3ea8]
cmp byte [rcx + 0x40fb], 0
je 0x140059e12
cmp byte [rcx + 0x40fa], 0
jne 0x140059e12
test byte [rcx + 0x3f74], 4
jne 0x140059ece
mov eax, dword [rcx + 0x40c0]
cmp eax, dword [rcx + 0x3f70]
jne 0x140059ece
test eax, eax
je 0x140059ece
jmp 0x140059eaa
mov eax, dword [rcx + 0x3f78]
test al, 1
je 0x140059ece
cmp qword [rcx + 0x3eb0], rdx
je 0x140059e31
test al, al
jns 0x140059ece
mov eax, dword [rcx + 0x3ef4]
test eax, eax
je 0x140059e51
cmp eax, dword [rcx + 0x3f70]
je 0x140059e51
cmp byte [rcx + 0x3f01], 0
jne 0x140059e51
cmp eax, dword [rdx + 0x5c]
jne 0x140059ece
mov rax, qword [rcx + 0x40b8]
test rax, rax
je 0x140059e8d
mov rax, qword [rax + 0x360]
test rax, rax
je 0x140059e8d
cmp byte [rax + 0x97], 0
je 0x140059e8d
cmp rax, qword [rdx + 0x360]
je 0x140059e8d
mov r8d, dword [rax + 0xc]
bt r8d, 0x1b
jb 0x140059ece
bt r8d, 0x1a
jb 0x140059ece
test byte [rcx + 0x3f74], 4
jne 0x140059ece
mov eax, dword [rdx + 0x5c]
cmp dword [rcx + 0x3f70], eax
jne 0x140059eaa
cmp byte [rdx + 0x98], 0
jne 0x140059ece
mov ebx, 4
nop
cmp ebx, 0x1b
je 0x140059ec4
mov ecx, ebx
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x140059ec4
mov dword [rdi], ebx
inc ebx
cmp ebx, 0xe7
jle 0x140059eb0
mov al, 1
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [rsp + 0x70]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret