Function at 0x1400598f0
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xb0
mov rax, qword [0x14008e040]
xor rax, rsp
mov qword [rbp + 0x4f], rax
cmp byte [0x1401ad1fd], 0
je 0x140059ba5
mov rdx, qword [0x1401ad210]
add rdx, 0x16d4f48
call fcn.140008740
mov qword [0x1401ad220], rax
mov qword [rbp + 0xf], rax
lea rdx, [rax + 0x1420]
call fcn.1400087d0
mov ebx, eax
lea rdx, [rbp + 0x2f]
lea rcx, [rbp + 0xf]
call fcn.1400590a0
nop
lea rdx, [rbp + 0x2f]
lea rcx, [rbp - 0x11]
call fcn.140009920
mov rcx, rax
call fcn.1400592d0
cmp byte [0x1401ad32d], 0
jne 0x14005997f
cmp eax, 1
je 0x140059988
cmp eax, 5
jne 0x140059b67
test ebx, ebx
je 0x140059b52
mov ecx, 1
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x140059b52
mov rbx, qword [rbp + 0xf]
lea r8, [rbx + 0x114c]
lea rdx, [rbp + 0x17]
call fcn.140059860
add rbx, 0x1740
xor edi, edi
mov qword [rbp + 0x1f], rdi
mov qword [rbp + 0x27], rdi
mov eax, dword [0x1401ade60]
mov dword [rbp - 0x11], eax
mov qword [rbp - 9], rbx
lea rax, [rbp + 0x1f]
mov qword [rbp - 1], rax
mov qword [rbp + 7], 0x10
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x20
lea rax, [rbp - 0x11]
mov qword [rsp + 0x20], rax
lea r9d, [rdi + 0x20]
lea r8, [rbp - 0x11]
mov edx, 0x22199c
mov rcx, qword [0x1401ade58]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov rax, qword [rbp + 0x1f]
dec rax
lea rcx, [rax + rax*2]
mov rax, qword [rbp + 0x27]
lea r8, [rax + rcx*4]
lea rdx, [rbp + 0xf]
call fcn.140059860
xorps xmm1, xmm1
movss xmm3, dword [rbp + 0xf]
ucomiss xmm3, xmm1
jp 0x140059a46
je 0x140059a52
movss xmm0, dword [rbp + 0x13]
ucomiss xmm0, xmm1
jp 0x140059a97
jne 0x140059a97
mov rdx, qword [rbp + 0x47]
cmp rdx, 0xf
jbe 0x140059ba5
inc rdx
mov rcx, qword [rbp + 0x2f]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140059ba0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140059ba0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
movss xmm4, dword [rbp + 0x17]
movaps xmm2, xmm4
addss xmm2, dword [0x1401ade68]
mulss xmm3, dword [0x1401ad200]
subss xmm2, xmm3
movss dword [0x1401ade74], xmm2
movss xmm3, dword [rbp + 0x1b]
movaps xmm1, xmm3
addss xmm1, dword [0x1401ade6c]
mulss xmm0, dword [0x1401ad204]
subss xmm1, xmm0
movss dword [0x1401ade78], xmm1
mov dword [0x1401ade7c], edi
movss xmm0, dword [0x140083048]
movss dword [rsp + 0x28], xmm0
movss dword [rsp + 0x20], xmm4
lea rcx, [rbp - 0x19]
call fcn.140077f40
cvttss2si r8, dword [rbp - 0x15]
cvttss2si rdx, dword [rbp - 0x19]
mov qword [rsp + 0x20], rdi
xor r9d, r9d
lea ecx, [r9 + 1]
call qword [sym.imp.USER32.dll_mouse_event]
movss xmm0, dword [rbp + 0xf]
mulss xmm0, dword [0x1401ad200]
movss dword [0x1401ade68], xmm0
movss xmm1, dword [rbp + 0x13]
mulss xmm1, dword [0x1401ad204]
movss dword [0x1401ade6c], xmm1
mov dword [0x1401ade70], edi
jmp 0x140059b67
mov qword [0x1401ade68], 0
mov dword [0x1401ade70], 0
mov rdx, qword [rbp + 0x47]
cmp rdx, 0xf
jbe 0x140059ba5
inc rdx
mov rcx, qword [rbp + 0x2f]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140059ba0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140059ba0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400784a4
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.1400780e0
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret