Function at 0x1800511e0
Capabilities:
Log keystrokes via polling

Disassembly:
mov r11, rsp
sub rsp, 0x98
cmp byte [0x1802eacb7], 0
je 0x180051511
mov rax, qword [0x1802eac28]
mov qword [r11 + 0x10], rbx
mov rbx, qword [rax]
test rbx, rbx
je 0x180051509
mov rbx, qword [rbx + 8]
test rbx, rbx
je 0x180051509
mov qword [r11 - 8], rdi
mov rdi, qword [rbx + 0x30]
test rdi, rdi
je 0x180051501
mov rax, qword [0x1802eac98]
movsd xmm0, qword [rbx + 0x90]
mov qword [r11 + 0x20], rsi
mov esi, dword [rbx + 0x98]
cmp byte [rax + rbx], 0x40
movsd qword [rsp + 0x40], xmm0
je 0x1800514f9
mov qword [r11 + 0x18], rbp
movabs rcx, 0x4f8644af03d0e0d6
movaps xmmword [r11 - 0x18], xmm6
movaps xmmword [rsp + 0x70], xmm7
movaps xmmword [r11 - 0x38], xmm8
movaps xmmword [r11 - 0x48], xmm9
call fcn.180014430
mov ecx, 0xa0
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
setne byte [0x1802eabc9]
cmp byte [0x1802eacc0], 0
je 0x1800512a7
movd xmm0, dword [0x1802eacc4]
cvtdq2ps xmm0, xmm0
jmp 0x1800512be
test ax, ax
je 0x1800512b6
movss xmm0, dword [0x18014bab8]
jmp 0x1800512be
movss xmm0, dword [0x18014ba74]
movss xmm8, dword [rsp + 0x44]
xor ebp, ebp
movss xmm7, dword [rsp + 0x40]
movaps xmm2, xmm8
movss dword [0x18024dda8], xmm0
movaps xmm1, xmm7
movss xmm0, dword [0x18014bb94]
movabs rcx, 0xf73eb622c4f1689b
mov dword [rsp + 0x30], 0x46
movd xmm9, esi
mov dword [rsp + 0x28], ebp
movaps xmm3, xmm9
movss dword [rsp + 0x20], xmm0
call fcn.1800147b0
xorps xmm0, xmm0
movups xmmword [rdi + 0x30], xmm0
mov ecx, dword [0x18024e004]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
xorps xmm6, xmm6
test ax, ax
jns 0x1800513f7
mov qword [rbx + 0x320], rbp
mov dword [rbx + 0x328], ebp
mov rax, qword [0x1802eac38]
test rax, rax
je 0x18005134b
mov rax, qword [rax]
jmp 0x180051353
mov rax, qword [rsp + 0xa0]
movsd xmm1, qword [rax + 0x3d0]
ucomiss xmm1, xmm6
mov ecx, dword [rax + 0x3d8]
mov dword [rsp + 0x48], ecx
movsd qword [rsp + 0x40], xmm1
jp 0x18005139f
jne 0x18005139f
movss xmm0, dword [rsp + 0x44]
ucomiss xmm0, xmm6
jp 0x18005139f
jne 0x18005139f
movd xmm3, ecx
ucomiss xmm3, xmm6
jp 0x1800513a5
jne 0x1800513a5
movsd xmm0, qword [rax + 0x40]
movss xmm3, dword [rax + 0x48]
movaps xmm1, xmm0
movsd qword [rsp + 0x40], xmm0
jmp 0x1800513a5
movss xmm3, dword [rsp + 0x48]
movss xmm0, dword [0x18024dda8]
movaps xmm2, xmm0
mulss xmm3, xmm0
mulss xmm2, xmm1
movaps xmm1, xmm0
mulss xmm1, dword [rsp + 0x44]
addss xmm3, xmm9
addss xmm2, xmm7
addss xmm1, xmm8
movss dword [rbx + 0x90], xmm2
movaps xmm0, xmm2
movss dword [rbx + 0x94], xmm1
movss dword [rbx + 0x98], xmm3
unpcklps xmm0, xmm1
movsd qword [rdi + 0x50], xmm0
movss dword [rdi + 0x58], xmm3
mov ecx, dword [0x18024e008]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x1800514d8
mov qword [rbx + 0x320], rbp
mov dword [rbx + 0x328], ebp
mov rax, qword [0x1802eac38]
test rax, rax
je 0x18005142a
mov rax, qword [rax]
jmp 0x180051432
mov rax, qword [rsp + 0xa0]
movsd xmm3, qword [rax + 0x3d0]
ucomiss xmm3, xmm6
mov ecx, dword [rax + 0x3d8]
mov dword [rsp + 0x48], ecx
movsd qword [rsp + 0x40], xmm3
jp 0x18005147e
jne 0x18005147e
movss xmm0, dword [rsp + 0x44]
ucomiss xmm0, xmm6
jp 0x18005147e
jne 0x18005147e
movd xmm2, ecx
ucomiss xmm2, xmm6
jp 0x180051484
jne 0x180051484
movsd xmm0, qword [rax + 0x40]
movss xmm2, dword [rax + 0x48]
movaps xmm3, xmm0
movsd qword [rsp + 0x40], xmm0
jmp 0x180051484
movss xmm2, dword [rsp + 0x48]
movss xmm1, dword [0x18024dda8]
movss xmm0, dword [rsp + 0x44]
mulss xmm0, xmm1
mulss xmm3, xmm1
subss xmm8, xmm0
mulss xmm2, xmm1
subss xmm7, xmm3
subss xmm9, xmm2
movss dword [rbx + 0x90], xmm7
movaps xmm0, xmm7
movss dword [rbx + 0x94], xmm8
movss dword [rbx + 0x98], xmm9
unpcklps xmm0, xmm8
movsd qword [rdi + 0x50], xmm0
movss dword [rdi + 0x58], xmm9
movaps xmm8, xmmword [rsp + 0x60]
movaps xmm7, xmmword [rsp + 0x70]
movaps xmm6, xmmword [rsp + 0x80]
mov rbp, qword [rsp + 0xb0]
movaps xmm9, xmmword [rsp + 0x50]
mov rsi, qword [rsp + 0xb8]
mov rdi, qword [rsp + 0x90]
mov rbx, qword [rsp + 0xa8]
add rsp, 0x98
ret