Function at 0x180057040
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x140
mov r11, qword [0x18009cee8]
mov rbx, rcx
cmp byte [r11 + 0xc], 0
je 0x18005768f
cmp byte [r11 + 0x16], 0
je 0x18005707a
cmp byte [r11], 0
jne 0x18005707a
xor ecx, ecx
call qword [sym.imp.USER32.dll_ShowCursor]
mov r11, qword [0x18009cee8]
cmp qword [0x18009cd10], 0
je 0x18005768f
movaps xmmword [rsp + 0x130], xmm6
lea rdx, [rsp + 0x20]
movaps xmmword [rsp + 0x120], xmm7
movaps xmmword [rsp + 0x110], xmm8
movaps xmmword [rsp + 0x100], xmm9
movaps xmmword [rsp + 0xf0], xmm10
movaps xmmword [rsp + 0xe0], xmm11
movaps xmmword [rsp + 0xd0], xmm12
movaps xmmword [rsp + 0xc0], xmm13
movaps xmmword [rsp + 0xb0], xmm14
movaps xmmword [rsp + 0xa0], xmm15
call fcn.180053cc0
lea rdx, [rsp + 0x60]
movss xmm8, dword [rax + 4]
movss xmm0, dword [rax + 8]
movss xmm15, dword [rax]
movss dword [rsp + 0x160], xmm8
movss dword [rsp + 0x158], xmm0
call fcn.180053cc0
lea rdx, [rsp + 0x20]
movss xmm9, dword [rax + 0x10]
movss xmm10, dword [rax + 0x14]
movss xmm11, dword [rax + 0x18]
call fcn.180053cc0
cmp byte [r11 + 0x16], 0
movss xmm6, dword [rbx + 0x7c]
movss xmm7, dword [rbx + 0x80]
movss xmm12, dword [rax + 0x20]
movss xmm13, dword [rax + 0x24]
movss xmm14, dword [rax + 0x28]
je 0x180057189
mov ecx, 1
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x180057171
mulss xmm6, dword [0x1800921ac]
mov ecx, 2
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x180057189
mulss xmm6, dword [0x1800921dc]
mov rcx, qword [0x18009cef0]
mov ecx, dword [rcx + 0x1c]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x1800571f2
mov rax, qword [0x18009cee8]
movaps xmm0, xmm15
mulss xmm0, xmm6
movaps xmm1, xmm8
mulss xmm1, xmm6
addss xmm0, dword [rax + 0x4db0]
addss xmm1, dword [rax + 0x4db4]
movss dword [rax + 0x4db0], xmm0
movss xmm0, dword [rsp + 0x158]
mulss xmm0, xmm6
movss dword [rax + 0x4db4], xmm1
addss xmm0, dword [rax + 0x4db8]
movss dword [rax + 0x4db8], xmm0
mov rcx, qword [0x18009cef0]
mov ecx, dword [rcx + 0x20]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
movss xmm8, dword [0x180092150]
test ax, ax
je 0x180057282
mov rax, qword [0x18009cee8]
movss xmm1, dword [rsp + 0x160]
mulss xmm1, xmm6
movss xmm0, dword [rax + 0x4db0]
mulss xmm15, xmm6
mulss xmm1, xmm8
mulss xmm15, xmm8
subss xmm0, xmm15
movss dword [rax + 0x4db0], xmm0
movss xmm0, dword [rax + 0x4db4]
subss xmm0, xmm1
movss xmm1, dword [rsp + 0x158]
mulss xmm1, xmm6
movss dword [rax + 0x4db4], xmm0
movss xmm0, dword [rax + 0x4db8]
mulss xmm1, xmm8
subss xmm0, xmm1
movss dword [rax + 0x4db8], xmm0
mov rcx, qword [0x18009cef0]
mov ecx, dword [rcx + 0x24]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
movaps xmm15, xmmword [rsp + 0xa0]
test ax, ax
je 0x18005730a
mov rax, qword [0x18009cee8]
movaps xmm1, xmm9
mulss xmm1, xmm6
movss xmm0, dword [rax + 0x4db0]
mulss xmm1, xmm8
subss xmm0, xmm1
movaps xmm1, xmm10
mulss xmm1, xmm6
mulss xmm1, xmm8
movss dword [rax + 0x4db0], xmm0
movss xmm0, dword [rax + 0x4db4]
subss xmm0, xmm1
movaps xmm1, xmm11
mulss xmm1, xmm6
movss dword [rax + 0x4db4], xmm0
movss xmm0, dword [rax + 0x4db8]
mulss xmm1, xmm8
subss xmm0, xmm1
movss dword [rax + 0x4db8], xmm0
mov rcx, qword [0x18009cef0]
mov ecx, dword [rcx + 0x28]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x18005736b
mov rax, qword [0x18009cee8]
mulss xmm9, xmm6
mulss xmm10, xmm6
addss xmm9, dword [rax + 0x4db0]
mulss xmm11, xmm6
addss xmm10, dword [rax + 0x4db4]
addss xmm11, dword [rax + 0x4db8]
movss dword [rax + 0x4db0], xmm9
movss dword [rax + 0x4db4], xmm10
movss dword [rax + 0x4db8], xmm11
mov rcx, qword [0x18009cef0]
mov ecx, dword [rcx + 0x2c]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
movaps xmm11, xmmword [rsp + 0xe0]
movaps xmm10, xmmword [rsp + 0xf0]
movaps xmm9, xmmword [rsp + 0x100]
test ax, ax
je 0x1800573ea
mov rax, qword [0x18009cee8]
movaps xmm0, xmm12
mulss xmm0, xmm6
movaps xmm1, xmm13
mulss xmm1, xmm6
addss xmm0, dword [rax + 0x4db0]
addss xmm1, dword [rax + 0x4db4]
movss dword [rax + 0x4db0], xmm0
movaps xmm0, xmm14
mulss xmm0, xmm6
movss dword [rax + 0x4db4], xmm1
addss xmm0, dword [rax + 0x4db8]
movss dword [rax + 0x4db8], xmm0
mov rcx, qword [0x18009cef0]
mov ecx, dword [rcx + 0x30]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x180057463
mov rax, qword [0x18009cee8]
mulss xmm12, xmm6
mulss xmm13, xmm6
movss xmm0, dword [rax + 0x4db0]
mulss xmm12, xmm8
mulss xmm13, xmm8
subss xmm0, xmm12
mulss xmm14, xmm6
mulss xmm14, xmm8
movss dword [rax + 0x4db0], xmm0
movss xmm0, dword [rax + 0x4db4]
subss xmm0, xmm13
movss dword [rax + 0x4db4], xmm0
movss xmm0, dword [rax + 0x4db8]
subss xmm0, xmm14
movss dword [rax + 0x4db8], xmm0
mov rcx, qword [0x18009cef0]
mov ecx, dword [rcx + 0x38]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
movaps xmm14, xmmword [rsp + 0xb0]
movaps xmm13, xmmword [rsp + 0xc0]
movaps xmm12, xmmword [rsp + 0xd0]
movaps xmm6, xmmword [rsp + 0x130]
test ax, ax
je 0x1800574b6
mov rax, qword [0x18009cee8]
movss xmm0, dword [rax + 0x4dc0]
subss xmm0, xmm7
movss dword [rax + 0x4dc0], xmm0
mov rcx, qword [0x18009cef0]
mov ecx, dword [rcx + 0x34]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x1800574e5
mov rax, qword [0x18009cee8]
movaps xmm0, xmm7
addss xmm0, dword [rax + 0x4dc0]
movss dword [rax + 0x4dc0], xmm0
mov rcx, qword [0x18009cef0]
mov ecx, dword [rcx + 0x44]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x180057515
mov rax, qword [0x18009cee8]
movss xmm0, dword [rax + 0x4dc4]
subss xmm0, xmm7
movss dword [rax + 0x4dc4], xmm0
mov rcx, qword [0x18009cef0]
mov ecx, dword [rcx + 0x48]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x180057544
mov rax, qword [0x18009cee8]
movaps xmm0, xmm7
addss xmm0, dword [rax + 0x4dc4]
movss dword [rax + 0x4dc4], xmm0
mov rcx, qword [0x18009cef0]
mov ecx, dword [rcx + 0x40]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x180057574
mov rax, qword [0x18009cee8]
movss xmm0, dword [rax + 0x4dbc]
subss xmm0, xmm7
movss dword [rax + 0x4dbc], xmm0
mov rcx, qword [0x18009cef0]
mov ecx, dword [rcx + 0x3c]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x1800575a0
mov rax, qword [0x18009cee8]
addss xmm7, dword [rax + 0x4dbc]
movss dword [rax + 0x4dbc], xmm7
mov rcx, qword [0x18009cef0]
mov ecx, dword [rcx + 0x50]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
movaps xmm7, xmmword [rsp + 0x120]
test ax, ax
je 0x1800575d9
mov rax, qword [0x18009cee8]
movss xmm0, dword [rax + 0x4dc8]
subss xmm0, xmm8
movss dword [rax + 0x4dc8], xmm0
mov rcx, qword [0x18009cef0]
mov ecx, dword [rcx + 0x4c]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
mov rcx, qword [0x18009cee8]
test ax, ax
je 0x18005760a
movss xmm0, dword [rcx + 0x4dc8]
addss xmm0, xmm8
movss dword [rcx + 0x4dc8], xmm0
cmp byte [rcx], 0
movaps xmm8, xmmword [rsp + 0x110]
jne 0x18005768f
cmp byte [rcx + 0x16], 0
je 0x18005768f
mov rdx, qword [0x18009cef0]
mov eax, dword [0x18009cedc]
cmp byte [rdx + 0x58], 0
jne 0x180057633
neg eax
movss xmm1, dword [0x180092210]
movss xmm2, dword [0x180092244]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm1
divss xmm0, xmm2
addss xmm0, dword [rcx + 0x4dbc]
movss dword [rcx + 0x4dbc], xmm0
cmp byte [rdx + 0x59], 0
mov eax, dword [0x18009ced8]
je 0x180057670
neg eax
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm1
divss xmm0, xmm2
addss xmm0, dword [rcx + 0x4dc0]
movss dword [rcx + 0x4dc0], xmm0
add rsp, 0x140
pop rbx
ret