Function at 0x140028e20
Capabilities:
Log keystrokes via polling

Disassembly:
push rbp
push rbx
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0xb0
mov rax, qword [0x1401d3d40]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov qword [rbp - 0x29], rcx
mov rbx, rcx
cmp byte [0x1401d51a8], 0
jne 0x140028e57
lea rdi, [rcx + 0x30]
jmp 0x1400290f5
mov ecx, dword [0x14014758c]
mov edi, 0x80000001
add rcx, qword [rbx + 0x58]
mov eax, dword [0x1401d4ef0]
mov qword [rsp + 0xe0], r14
xor r14d, r14d
vmovaps xmmword [rsp + 0xa0], xmm6
test eax, eax
je 0x140028ee3
test rcx, rcx
je 0x140028ee3
mov qword [rsp + 0x38], r14
lea r8, [rbp - 0x19]
mov dword [rbp - 0x19], eax
mov r9d, 0x38
lea rax, [rbp + 0x1f]
mov qword [rsp + 0x30], r14
mov qword [rbp - 0x11], rcx
mov edx, 0x221dd4
mov rcx, qword [0x1401d4ee8]
vpxor xmm0, xmm0, xmm0
mov dword [rsp + 0x28], r14d
mov qword [rbp - 9], rax
mov qword [rsp + 0x20], r14
mov qword [rbp - 1], 8
mov qword [rbp + 7], rdi
vmovups xmmword [rbp + 0xf], xmm0
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov eax, dword [0x1401d4ef0]
mov ecx, dword [0x1401475f0]
add rcx, qword [rbp + 0x1f]
test eax, eax
je 0x140028f50
test rcx, rcx
je 0x140028f50
mov qword [rsp + 0x38], r14
lea r8, [rbp - 0x19]
mov dword [rbp - 0x19], eax
mov r9d, 0x38
lea rax, [rbp - 0x29]
mov qword [rsp + 0x30], r14
mov qword [rbp - 0x11], rcx
mov edx, 0x221dd4
mov rcx, qword [0x1401d4ee8]
vpxor xmm0, xmm0, xmm0
mov dword [rsp + 0x28], r14d
mov qword [rbp - 9], rax
mov qword [rsp + 0x20], r14
mov qword [rbp - 1], 8
mov qword [rbp + 7], rdi
vmovups xmmword [rbp + 0xf], xmm0
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov eax, dword [0x1401d4ef0]
mov ecx, dword [0x14014762c]
add rcx, qword [rbp - 0x29]
test eax, eax
je 0x140028fb9
nop
test rcx, rcx
je 0x140028fb9
mov qword [rsp + 0x38], r14
lea r8, [rbp - 0x19]
mov dword [rbp - 0x19], eax
mov r9d, 0x38
lea rax, [rbp - 0x21]
mov qword [rsp + 0x30], r14
mov qword [rbp - 0x11], rcx
mov edx, 0x221dd4
mov rcx, qword [0x1401d4ee8]
vpxor xmm0, xmm0, xmm0
mov dword [rsp + 0x28], r14d
mov qword [rbp - 9], rax
mov qword [rsp + 0x20], r14
mov qword [rbp - 1], 1
mov qword [rbp + 7], rdi
vmovups xmmword [rbp + 0xf], xmm0
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov ecx, dword [0x1401d6048]
mov rax, qword gs:[0x58]
mov edx, 0x28
vxorps xmm6, xmm6, xmm6
mov rax, qword [rax + rcx*8]
mov eax, dword [rdx + rax]
cmp dword [0x1401d5220], eax
jg 0x140029130
mov eax, dword [0x1401d5214]
cmp dword [rbx + 0xd8], eax
jbe 0x1400290d0
nop dword [rax + rax]
cmp byte [rbp - 0x21], r14b
je 0x1400290d0
vmovss xmm0, dword [rbx + 0xdc]
vmovss xmm4, dword [rbx + 0x130]
vmovss xmm3, dword [0x1400edcf4]
vmovss xmm6, dword [0x1400ecf60]
vmovaps xmm1, xmm6
vmovaps xmm5, xmm6
vfnmadd213ss xmm5, xmm0, dword [0x1401d5218]
vmovss xmm0, dword [rbx + 0xe0]
vfnmadd213ss xmm1, xmm0, dword [0x1401d521c]
vdivss xmm0, xmm3, xmm4
vmulss xmm1, xmm0, xmm1
vmulss xmm2, xmm1, dword [0x1401479d8]
vdivss xmm0, xmm3, xmm4
vmulss xmm1, xmm0, xmm5
mov qword [rsp + 0xd8], rsi
mov ecx, 1
vcvttss2si esi, xmm2
vmulss xmm2, xmm1, dword [0x1401479dc]
vcvttss2si edi, xmm2
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x1400290a6
neg edi
mov qword [rsp + 0x20], r14
mov r8d, edi
xor r9d, r9d
mov edx, esi
mov ecx, 1
call qword [sym.imp.USER32.dll_mouse_event]
vmulss xmm3, xmm6, dword [rbx + 0xdc]
vmulss xmm2, xmm6, dword [rbx + 0xe0]
mov rsi, qword [rsp + 0xd8]
vmovss dword [0x1401d5218], xmm3
vmovss dword [0x1401d521c], xmm2
jmp 0x1400290e0
vmovss dword [0x1401d5218], xmm6
vmovss dword [0x1401d521c], xmm6
vmovaps xmm6, xmmword [rsp + 0xa0]
mov r14, qword [rsp + 0xe0]
lea rdi, [rbx + 0x30]
lea rcx, ds:[rbx + 0xb8]
call fcn.140006c20
lea rcx, [rbx + 0x68]
call fcn.140030a40
mov rcx, rdi
call fcn.140006c20
mov rcx, qword ds:[rbp + 0x27]
xor rcx, rsp
call fcn.1400df330
add rsp, 0xb0
pop rdi
pop rbx
pop rbp
ret
lea rcx, [0x1401d5220]
call fcn.1400df220
cmp dword [0x1401d5220], 0xffffffff
jne 0x140028fe6
lea rcx, [0x1401d5220]
vmovss dword [0x1401d5218], xmm6
vmovss dword [0x1401d521c], xmm6
call fcn.1400df1b4
jmp 0x140028fe6