Function at 0x1800cfe30
Capabilities:
Log keystrokes via polling

Disassembly:
push rbp
push rbx
lea rbp, [rsp - 0x4f]
sub rsp, 0xf8
mov rax, qword [0x18023c800]
xor rax, rsp
mov qword [rbp - 0x11], rax
cmp byte [0x18023c119], 0
mov rbx, rcx
je 0x1800cfe86
mov ecx, dword [reloc.WS2_32.dll_bind]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x1800cfe86
mov rcx, rbx
call fcn.1800aade0
test rax, rax
je 0x1800d0352
mov rdx, rax
mov rcx, rbx
call fcn.180072120
cmp byte [0x18023c154], 0
je 0x1800d0352
mov ecx, dword [reloc.WS2_32.dll_bind]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x1800d0368
cmp byte [0x180240234], 0
mov qword [rsp + 0x120], r14
jne 0x1800cfed0
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
mov byte [0x180240234], 1
mov rcx, rbx
call fcn.1800ab2d0
mov r14, rax
test rax, rax
je 0x1800d034a
mov rcx, qword [0x18023ffb8]
mov r8, rax
mov edx, dword [0x18023c238]
movaps xmmword [rsp + 0xc0], xmm8
movaps xmmword [rsp + 0xb0], xmm9
movss xmm1, dword [rcx + 4]
movss xmm0, dword [rcx]
lea rcx, [0x18023d940]
movss xmm9, dword [0x1801a17b8]
mulss xmm0, xmm9
mulss xmm1, xmm9
movss dword [rbp - 0x31], xmm0
movss dword [rbp - 0x2d], xmm1
test edx, edx
je 0x1800cff59
sub edx, 1
je 0x1800cff4d
cmp edx, 1
lea rdx, [rbp - 0x69]
jne 0x1800cff5d
mov r9d, 8
jmp 0x1800cff60
mov r9d, 7
lea rdx, [rbp - 0x69]
jmp 0x1800cff60
lea rdx, [rbp - 0x69]
xor r9d, r9d
call fcn.1800a9820
lea r8, [rbp - 0x49]
lea rdx, [rbp - 0x79]
lea rcx, [0x18023d940]
movsd xmm0, qword [rax]
mov eax, dword [rax + 8]
movsd qword [rbp - 0x49], xmm0
mov dword [rbp - 0x41], eax
call fcn.1800df390
movsd xmm0, qword [rbp - 0x79]
movsd qword [rbp - 0x39], xmm0
xorps xmm0, xmm0
movss xmm8, dword [rbp - 0x39]
comiss xmm0, xmm8
ja 0x1800d0338
mov rax, qword [0x18023ffb8]
comiss xmm8, dword [rax]
ja 0x1800d0338
movss xmm1, dword [rbp - 0x35]
comiss xmm0, xmm1
ja 0x1800d0338
comiss xmm1, dword [rax + 4]
ja 0x1800d0338
movss xmm0, dword [rbp - 0x2d]
subss xmm0, xmm1
movaps xmmword [rsp + 0xe0], xmm6
movsd xmm1, qword [0x1801baa58]
movaps xmmword [rsp + 0xd0], xmm7
cvtps2pd xmm0, xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll_pow
movss xmm2, dword [rbp - 0x31]
movaps xmm7, xmm0
movsd xmm1, qword [0x1801baa58]
subss xmm2, xmm8
cvtps2pd xmm0, xmm2
call sub.api_ms_win_crt_math_l1_1_0.dll_pow
addsd xmm7, xmm0
xorps xmm1, xmm1
xorps xmm0, xmm0
cvtsd2ss xmm0, xmm7
ucomiss xmm1, xmm0
ja 0x1800d002d
sqrtss xmm0, xmm0
jmp 0x1800d0032
call sub.api_ms_win_crt_math_l1_1_0.dll_sqrtf
movss xmm1, dword [0x18023c164]
mulss xmm1, dword [0x1801a17f0]
comiss xmm1, xmm0
jb 0x1800d0328
cmp byte [0x18023c159], 0
mov ebx, dword [0x18023c15c]
je 0x1800d0084
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov r8d, eax
mov eax, 0x51eb851f
imul r8d
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
imul ecx, edx, 0x64
sub r8d, ecx
cmp r8d, ebx
jge 0x1800d0328
cmp byte [0x18023c160], 0
je 0x1800d02fd
cmp byte [0x18023c23c], 0
je 0x1800d02bf
mov qword [rsp + 0x110], rsi
xor eax, eax
mov qword [rsp + 0x118], rdi
xorps xmm0, xmm0
mov qword [rsp + 0xf0], r15
lea rdi, [rbp - 0x79]
mov ecx, ntohs
movaps xmmword [rsp + 0xa0], xmm10
mov dword [rbp - 0x79], eax
mov dword [rbp - 0x75], 7
mov dword [rbp - 0x71], 8
movdqu xmmword [rbp - 0x29], xmm0
mov qword [rbp - 0x19], rax
call fcn.18019d1d4
mov r8d, ntohs
mov qword [rbp - 0x29], rax
mov rdx, rdi
mov qword [rbp - 0x21], rax
mov rbx, rax
lea rcx, [rax + 0xc]
mov qword [rbp - 0x19], rcx
mov rcx, rax
call sub.VCRUNTIME140.dll_memmove
mov rax, qword [0x18023ffb8]
lea r15, [rbx + 0xc]
mov rdi, qword [rbp - 0x29]
mov esi, 0xffffffff
movss xmm6, dword [0x1801a1894]
mov qword [rbp - 0x21], r15
movss xmm8, dword [rax]
movss xmm10, dword [rax + 4]
mulss xmm8, xmm9
mulss xmm10, xmm9
cmp rdi, r15
je 0x1800d01e4
nop
mov ebx, dword [rdi]
lea rdx, [rbp - 0x59]
mov r9d, ebx
lea rcx, [0x18023d940]
mov r8, r14
movaps xmm7, xmm6
call fcn.1800a9820
lea r8, [rbp - 0x69]
lea rdx, [rbp - 0x79]
lea rcx, [0x18023d940]
movsd xmm0, qword [rax]
mov eax, dword [rax + 8]
movsd qword [rbp - 0x69], xmm0
mov dword [rbp - 0x61], eax
call fcn.1800df390
movss xmm0, dword [rbp - 0x79]
movss xmm1, dword [rbp - 0x75]
subss xmm0, xmm8
subss xmm1, xmm10
mulss xmm0, xmm0
mulss xmm1, xmm1
addss xmm1, xmm0
xorps xmm0, xmm0
ucomiss xmm0, xmm1
ja 0x1800d01bf
xorps xmm0, xmm0
sqrtss xmm0, xmm1
jmp 0x1800d01c7
movaps xmm0, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll_sqrtf
comiss xmm6, xmm0
jbe 0x1800d01cf
movaps xmm6, xmm0
comiss xmm7, xmm0
cmovbe ebx, esi
add rdi, 4
mov esi, ebx
cmp rdi, r15
jne 0x1800d0150
mov r9d, esi
lea rdx, [rbp - 0x59]
mov r8, r14
lea rcx, [0x18023d940]
call fcn.1800a9820
lea r8, [rbp - 0x69]
lea rdx, [rbp - 0x49]
lea rcx, [0x18023d940]
movsd xmm0, qword [rax]
mov eax, dword [rax + 8]
movsd qword [rbp - 0x69], xmm0
mov dword [rbp - 0x61], eax
call fcn.1800df390
call fcn.1800164a0
movdqa xmm0, xmmword [0x1801badd0]
lea rcx, [rbp - 0x59]
movups xmmword [rbp - 0x59], xmm0
mov rbx, rax
call fcn.180012540
movss xmm0, dword [0x1801a17bc]
lea r8, [rbp - 0x49]
mov r9d, eax
movss dword [rsp + 0x20], xmm0
lea rdx, [rbp - 0x31]
mov rcx, rbx
call fcn.18002d3d0
mov rcx, qword [rbp - 0x29]
movaps xmm10, xmmword [rsp + 0xa0]
mov r15, qword [rsp + 0xf0]
mov rdi, qword [rsp + 0x118]
mov rsi, qword [rsp + 0x110]
test rcx, rcx
je 0x1800d02fd
mov rdx, qword [rbp - 0x19]
mov rax, rcx
sub rdx, rcx
and rdx, 0xfffffffffffffffc
cmp rdx, 0x1000
jb 0x1800d02b8
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800d02b8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18019d210
jmp 0x1800d02fd
call fcn.1800164a0
movdqa xmm0, xmmword [0x1801badd0]
lea rcx, [rbp - 0x59]
movups xmmword [rbp - 0x59], xmm0
mov rbx, rax
call fcn.180012540
movss xmm0, dword [0x1801a17bc]
lea r8, [rbp - 0x39]
mov r9d, eax
movss dword [rsp + 0x20], xmm0
lea rdx, [rbp - 0x31]
mov rcx, rbx
call fcn.18002d3d0
movss xmm0, dword [0x18023c164]
movzx eax, byte [0x18023c158]
movss dword [0x18023c258], xmm0
mov byte [0x18023c23e], al
mov qword [0x18023c230], r14
mov byte [0x18023c23d], 1
movaps xmm7, xmmword [rsp + 0xd0]
movaps xmm6, xmmword [rsp + 0xe0]
movaps xmm8, xmmword [rsp + 0xc0]
movaps xmm9, xmmword [rsp + 0xb0]
mov r14, qword [rsp + 0x120]
mov rcx, qword [rbp - 0x11]
xor rcx, rsp
call fcn.18019d700
add rsp, 0xf8
pop rbx
pop rbp
ret
xor eax, eax
mov qword [0x18023c230], rax
jmp 0x1800d0352