Function at 0x1800cd520
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x3860
call fcn.18015d700
sub rsp, rax
movaps xmmword [rsp + 0x3850], xmm6
movaps xmmword [rsp + 0x3840], xmm7
movaps xmmword [rsp + 0x3830], xmm8
movaps xmmword [rsp + 0x3820], xmm9
mov rax, qword [0x1802ebe40]
xor rax, rsp
mov qword [rsp + 0x3810], rax
mov eax, dword [reloc.WS2_32.dll_getpeername]
lea edi, [rax + rax*4]
add edi, edi
call fcn.1800192a0
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.1800aa370
nop
movss xmm7, dword [rsp + 0x5c]
movss xmm9, dword [rsp + 0x58]
movss xmm6, dword [0x180168b78]
cmp byte [0x1802efe16], 0
je 0x1800cd613
cmp byte [0x1802efe18], 0
je 0x1800cd613
call fcn.180018ba0
mov rbx, rax
movdqa xmm0, xmmword [0x1801b4e00]
movups xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x40]
call fcn.180016140
movaps xmm1, xmm7
mulss xmm1, xmm6
movaps xmm0, xmm9
mulss xmm0, xmm6
movss dword [rsp + 0x30], xmm0
movss dword [rsp + 0x34], xmm1
movd xmm2, edi
cvtdq2ps xmm2, xmm2
movss xmm0, dword [0x180168ba0]
movss dword [rsp + 0x28], xmm0
mov dword [rsp + 0x20], 0x5a
mov r9d, eax
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.18002a6b0
movzx ecx, byte [0x1802efdee]
call fcn.1800e4010
mov rbx, rax
mov rcx, qword [0x1802efc08]
cmp qword [rcx + 8], 0
je 0x1800cd796
test rax, rax
je 0x1800cd781
mov rcx, qword [0x1801e8e50]
mov rdx, qword [rcx + rax]
movzx ecx, byte [0x1802efe15]
test rdx, rdx
jne 0x1800cd65d
test cl, cl
jne 0x1800cd672
jmp 0x1800cd796
mov rax, qword [0x1801e8e60]
cmp dword [rax + rdx], 0
jne 0x1800cd672
test cl, cl
je 0x1800cd796
movsd xmm0, qword [rbx + 0x90]
movsd qword [rsp + 0x40], xmm0
mov eax, dword [rbx + 0x98]
mov dword [rsp + 0x48], eax
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x30]
call fcn.1800e4710
mulss xmm9, xmm6
mulss xmm7, xmm6
movss xmm0, dword [rsp + 0x34]
cvtps2pd xmm0, xmm0
movss xmm8, dword [rsp + 0x30]
cvtps2pd xmm8, xmm8
cvtps2pd xmm1, xmm7
subsd xmm0, xmm1
movsd xmm1, qword [0x1801b4c50]
call sub.api_ms_win_crt_math_l1_1_0.dll_pow
movaps xmm7, xmm0
cvtps2pd xmm2, xmm9
subsd xmm8, xmm2
movsd xmm1, qword [0x1801b4c50]
movaps xmm0, xmm8
call sub.api_ms_win_crt_math_l1_1_0.dll_pow
addsd xmm7, xmm0
xorps xmm0, xmm0
cvtsd2ss xmm0, xmm7
xorps xmm1, xmm1
ucomiss xmm1, xmm0
ja 0x1800cd700
sqrtss xmm0, xmm0
jmp 0x1800cd705
call sub.api_ms_win_crt_math_l1_1_0.dll_sqrtf
movd xmm1, edi
cvtdq2ps xmm1, xmm1
comiss xmm1, xmm0
jbe 0x1800cd781
mov ecx, 1
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jne 0x1800cd731
mov ecx, 2
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x1800cd781
mov rcx, rbx
call fcn.1800cee90
test al, al
je 0x1800cd781
xor r8d, r8d
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.1800c36a0
movss xmm1, dword [rsp + 0x34]
movss xmm2, dword [rsp + 0x38]
movss xmm0, dword [rsp + 0x30]
unpcklps xmm0, xmm1
movsd qword [rsp + 0x40], xmm0
movss dword [rsp + 0x48], xmm2
lea rcx, [rsp + 0x40]
call fcn.1800bd630
mov byte [0x1802f0504], 1
jmp 0x1800cd796
cmp byte [0x1802f0504], 0
je 0x1800cd796
call fcn.1800e0e60
mov byte [0x1802f0504], 0
mov rcx, qword [rsp + 0x3800]
test rcx, rcx
je 0x1800cd7a9
call fcn.18001c4c0
nop
mov rcx, qword [rsp + 0x3810]
xor rcx, rsp
call fcn.18015d6a0
lea r11, [rsp + 0x3860]
mov rbx, qword [r11 + 0x10]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
movaps xmm9, xmmword [r11 - 0x40]
mov rsp, r11
pop rdi
ret