Function at 0x18004eec0
Capabilities:
Log keystrokes via polling

Disassembly:
mov r11, rsp
push rbp
push rdi
push r13
lea rbp, [r11 - 0x5f]
sub rsp, 0xf0
movaps xmmword [r11 - 0x48], xmm7
movaps xmmword [r11 - 0x58], xmm8
movaps xmmword [rsp + 0x70], xmm13
mov rax, qword [0x1800e7f40]
xor rax, rsp
mov qword [rbp - 0x41], rax
mov eax, dword [0x18013d2cc]
mov qword [r11 + 0x10], rsi
mov qword [r11 + 0x18], r12
mov qword [r11 - 0x20], r14
mov qword [r11 - 0x28], r15
test eax, eax
jne 0x18004ef14
xor edi, edi
mov dword [0x18013ca88], edi
jmp 0x18004ef74
cmp eax, 1
jne 0x18004ef26
mov edi, 7
mov dword [0x18013ca88], edi
jmp 0x18004ef74
cmp eax, 2
jne 0x18004ef38
mov edi, 6
mov dword [0x18013ca88], edi
jmp 0x18004ef74
cmp eax, 3
jne 0x18004ef4a
mov edi, 5
mov dword [0x18013ca88], edi
jmp 0x18004ef74
cmp eax, 4
jne 0x18004ef5c
mov edi, 3
mov dword [0x18013ca88], edi
jmp 0x18004ef74
cmp eax, 5
jne 0x18004ef6e
mov edi, 4
mov dword [0x18013ca88], edi
jmp 0x18004ef74
mov edi, dword [0x18013ca88]
mov rdx, qword [0x18013d2f0]
lea r8, [rbp - 0x71]
mov rcx, qword [0x18013d300]
xor r13d, r13d
movss xmm7, dword [0x1800b2ec4]
add rdx, 0x18
mov r9d, 8
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rdx, qword [rbp - 0x71]
lea r8, [rbp - 0x61]
mov rcx, qword [0x18013d300]
add rdx, 0x100
mov r9d, 8
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov r12, qword [rbp - 0x61]
lea rsi, [0x18013ba20]
movss xmm8, dword [0x1800b2e68]
mov r14, r12
movsd xmm13, qword [0x1800b2d60]
mov r15d, 0x100
mov qword [rsp + 0x110], rbx
movaps xmmword [rsp + 0xd0], xmm6
test r12, r12
je 0x18004f133
mov rcx, qword [0x18013d300]
lea r8, [rbp - 0x51]
mov r9d, 8
mov qword [rsp + 0x20], 0
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rbx, qword [rbp - 0x51]
lea r8, [rbp - 0x69]
mov rcx, qword [0x18013d300]
mov r9d, 4
mov qword [rsp + 0x20], 0
lea rdx, [rbx + 0x10b8]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test rbx, rbx
je 0x18004f133
cmp byte [0x18013d2fe], 0
jne 0x18004f07f
mov eax, dword [rbp - 0x69]
and eax, 0x1fc000
cmp eax, 0x8000
jne 0x18004f133
cmp rbx, qword [0x18013c250]
je 0x18004f133
cmp qword [rsi], rbx
je 0x18004f133
mov r8d, edi
lea rcx, [rbp - 0x71]
mov rdx, rbx
call fcn.18004ccb0
mov rcx, qword [0x18013d300]
lea rdx, [rbx + 0x280]
mov r9d, 4
mov qword [rsp + 0x20], 0
lea r8, [rbp - 0x65]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
comiss xmm8, dword [rbp - 0x65]
jae 0x18004f133
lea rcx, [rbp - 0x79]
call fcn.18004bd10
movss xmm0, dword [rbp - 0x75]
movaps xmm1, xmm13
subss xmm0, dword [rbp - 0x6d]
cvtps2pd xmm0, xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll_pow
movss xmm1, dword [rbp - 0x79]
movaps xmm6, xmm0
subss xmm1, dword [rbp - 0x71]
cvtps2pd xmm0, xmm1
movaps xmm1, xmm13
call sub.api_ms_win_crt_math_l1_1_0.dll_pow
addsd xmm6, xmm0
xorps xmm1, xmm1
xorps xmm0, xmm0
cvtsd2ss xmm0, xmm6
ucomiss xmm1, xmm0
ja 0x18004f123
sqrtss xmm0, xmm0
jmp 0x18004f128
call sub.api_ms_win_crt_math_l1_1_0.dll_sqrtf
comiss xmm7, xmm0
jbe 0x18004f133
movaps xmm7, xmm0
mov r13, rbx
add r14, 0x10
add rsi, 8
sub r15, 1
jne 0x18004f003
mov edx, dword [0x18013ca88]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov r15, qword [rsp + 0xe0]
mov r14, qword [rsp + 0xe8]
mov r12, qword [rsp + 0x120]
mov rsi, qword [rsp + 0x118]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___int____ptr64]
mov rcx, rax
lea rdx, [0x180055d20]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
test r13, r13
je 0x18004f48a
mov r8d, dword [0x18013ca88]
lea rcx, [rbp - 0x71]
movaps xmmword [rsp + 0xa0], xmm9
mov rdx, r13
movaps xmmword [rsp + 0x90], xmm10
movaps xmmword [rsp + 0x80], xmm11
call fcn.18004ccb0
cmp byte [0x18013d2fd], 0
movss xmm0, dword [0x1801327c8]
cvtps2pd xmm0, xmm0
je 0x18004f1dd
addsd xmm0, qword [0x1800b2d10]
jmp 0x18004f1e5
addsd xmm0, qword [0x1800b2d40]
xor ecx, ecx
cvtpd2ps xmm11, xmm0
call qword [sym.imp.USER32.dll_GetSystemMetrics]
cdq
mov ecx, 1
sub eax, edx
sar eax, 1
mov ebx, eax
call qword [sym.imp.USER32.dll_GetSystemMetrics]
movss xmm10, dword [rbp - 0x6d]
cdq
sub eax, edx
sar eax, 1
cvtps2pd xmm0, xmm10
mov edi, eax
movd xmm1, eax
cvtdq2pd xmm1, xmm1
subsd xmm0, xmm1
movaps xmm1, xmm13
call sub.api_ms_win_crt_math_l1_1_0.dll_pow
movss xmm9, dword [rbp - 0x71]
movaps xmm6, xmm0
movd xmm1, ebx
cvtdq2pd xmm1, xmm1
cvtps2pd xmm0, xmm9
subsd xmm0, xmm1
movaps xmm1, xmm13
call sub.api_ms_win_crt_math_l1_1_0.dll_pow
addsd xmm6, xmm0
xorps xmm1, xmm1
xorps xmm0, xmm0
cvtsd2ss xmm0, xmm6
ucomiss xmm1, xmm0
ja 0x18004f268
xorps xmm6, xmm6
sqrtss xmm6, xmm0
jmp 0x18004f270
call sub.api_ms_win_crt_math_l1_1_0.dll_sqrtf
movaps xmm6, xmm0
movss xmm4, dword [0x1800b36a0]
xorps xmm2, xmm2
ucomiss xmm9, xmm2
xorps xmm8, xmm8
xorps xmm7, xmm7
jp 0x18004f28a
je 0x18004f2e6
movd xmm3, ebx
cvtdq2ps xmm3, xmm3
comiss xmm9, xmm3
jbe 0x18004f2c4
movaps xmm8, xmm3
lea eax, [rbx + rbx]
subss xmm8, xmm9
movd xmm0, eax
movaps xmm1, xmm3
cvtdq2ps xmm0, xmm0
xorps xmm8, xmm4
divss xmm8, xmm11
addss xmm1, xmm8
comiss xmm1, xmm0
jbe 0x18004f2c4
xorps xmm8, xmm8
comiss xmm3, xmm9
jbe 0x18004f2e6
movaps xmm8, xmm9
subss xmm8, xmm3
divss xmm8, xmm11
addss xmm3, xmm8
comiss xmm2, xmm3
jbe 0x18004f2e6
xorps xmm8, xmm8
ucomiss xmm10, xmm2
jp 0x18004f2ee
je 0x18004f343
movd xmm3, edi
cvtdq2ps xmm3, xmm3
comiss xmm10, xmm3
jbe 0x18004f324
movaps xmm7, xmm3
lea eax, [rdi + rdi]
subss xmm7, xmm10
movd xmm0, eax
movaps xmm1, xmm3
cvtdq2ps xmm0, xmm0
xorps xmm7, xmm4
divss xmm7, xmm11
addss xmm1, xmm7
comiss xmm1, xmm0
jbe 0x18004f324
xorps xmm7, xmm7
comiss xmm3, xmm10
jbe 0x18004f343
movaps xmm7, xmm10
subss xmm7, xmm3
divss xmm7, xmm11
addss xmm3, xmm7
comiss xmm2, xmm3
jbe 0x18004f343
xorps xmm7, xmm7
mov rcx, qword [0x18013d300]
lea rdx, [r13 + 0x90]
xor ebx, ebx
lea r8, [rbp - 0x61]
mov r9d, 0xc
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rdx, qword [0x18013c250]
lea r8, [rbp - 0x51]
mov rcx, qword [0x18013d300]
add rdx, 0x90
movss xmm9, dword [rbp - 0x61]
mov r9d, 0xc
movss xmm10, dword [rbp - 0x5d]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
movss xmm0, dword [0x18010dc38]
xorps xmm1, xmm1
movaps xmm11, xmmword [rsp + 0x80]
cvtps2pd xmm0, xmm0
cvtss2sd xmm1, xmm6
addsd xmm0, qword [0x1800b2d10]
comisd xmm0, xmm1
jb 0x18004f478
movss xmm0, dword [rbp - 0x4d]
movaps xmm1, xmm13
movss xmm2, dword [rbp - 0x51]
subss xmm0, xmm10
subss xmm2, xmm9
cvtps2pd xmm6, xmm0
cvtps2pd xmm0, xmm2
call sub.api_ms_win_crt_math_l1_1_0.dll_pow
movaps xmm9, xmm0
movaps xmm1, xmm13
movaps xmm0, xmm6
call sub.api_ms_win_crt_math_l1_1_0.dll_pow
addsd xmm9, xmm0
movaps xmm1, xmm13
movaps xmm0, xmm6
call sub.api_ms_win_crt_math_l1_1_0.dll_pow
addsd xmm9, xmm0
xorps xmm1, xmm1
ucomisd xmm1, xmm9
ja 0x18004f428
xorps xmm0, xmm0
sqrtsd xmm0, xmm9
jmp 0x18004f431
movaps xmm0, xmm9
call sub.api_ms_win_crt_math_l1_1_0.dll_sqrt
movss xmm1, dword [0x18010dc34]
mulsd xmm0, qword [0x1800b2d28]
cvtps2pd xmm1, xmm1
comisd xmm1, xmm0
jb 0x18004f478
mov ecx, dword [0x18013ba14]
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x18004f478
cvttss2si r8, xmm7
xor r9d, r9d
mov ecx, 1
mov qword [rsp + 0x20], rbx
cvttss2si rdx, xmm8
call qword [sym.imp.USER32.dll_mouse_event]
movaps xmm9, xmmword [rsp + 0xa0]
movaps xmm10, xmmword [rsp + 0x90]
movaps xmm6, xmmword [rsp + 0xd0]
mov rbx, qword [rsp + 0x110]
mov rcx, qword [rbp - 0x41]
xor rcx, rsp
call fcn.18008c310
lea r11, [rsp + 0xf0]
movaps xmm7, xmmword [r11 - 0x30]
movaps xmm8, xmmword [r11 - 0x40]
movaps xmm13, xmmword [r11 - 0x80]
mov rsp, r11
pop r13
pop rdi
pop rbp
ret