Function at 0x14004f010
Capabilities:
Log keystrokes via polling

Disassembly:
push rbp
push r12
lea rbp, [rsp - 8]
sub rsp, 0x108
mov rax, qword [0x1400b8080]
xor rax, rsp
mov qword [rbp - 0x68], rax
mov r12, qword [0x1400b8d08]
movzx eax, byte [0x1400b8c9a]
test al, al
jne 0x14004f387
mov rax, qword gs:[0x58]
mov edx, 4
mov qword [rsp + 0x128], rsi
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x1400b922c], eax
jle 0x14004f095
lea rcx, [0x1400b922c]
call fcn.140093bf8
cmp dword [0x1400b922c], 0xffffffff
jne 0x14004f095
lea rcx, [0x1400b9230]
call fcn.14004e530
lea rcx, [0x1400b922c]
call fcn.140093b8c
lea rcx, [rsp + 0x38]
call fcn.14004e530
mov rsi, qword [rsp + 0x38]
cmp rsi, qword [0x1400b9230]
js 0x14004f37f
mov qword [rsp + 0xf8], r14
mov r14, qword [0x1400b9148]
mov qword [rsp + 0xf0], r15
mov r15, qword [0x1400b9150]
cmp r14, r15
je 0x14004f36f
mov qword [rsp + 0x120], rbx
mov qword [rsp + 0x130], rdi
mov qword [rsp + 0x100], r13
xor r13d, r13d
movaps xmmword [rsp + 0xe0], xmm6
xorps xmm6, xmm6
movaps xmmword [rsp + 0xd0], xmm7
movsd xmm7, qword [0x1400aa4b8]
movaps xmmword [rsp + 0xc0], xmm8
movaps xmmword [rsp + 0xb0], xmm9
movaps xmmword [rsp + 0xa0], xmm10
movsd xmm10, qword [0x1400aa488]
mov r8, r14
mov rdx, r12
call fcn.14004fc40
mov rbx, rax
test rax, rax
je 0x14004f31f
mov rcx, qword [0x1400b9040]
lea rax, [rsp + 0x30]
mov r9d, 8
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x40]
movsd qword [rsp + 0x40], xmm6
mov rdx, rbx
movsd qword [rsp + 0x38], xmm6
mov qword [rsp + 0x30], r13
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x14004f2fc
cmp qword [rsp + 0x30], 8
jne 0x14004f2fc
mov rcx, qword [0x1400b9040]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 8]
mov qword [rsp + 0x20], rax
mov r9d, 8
mov qword [rsp + 0x30], r13
lea r8, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x14004f2fc
cmp qword [rsp + 0x30], 8
jne 0x14004f2fc
mov rdi, qword [0x1400b91a8]
mov rbx, qword [rdi]
cmp rbx, rdi
je 0x14004f31f
movsd xmm8, qword [rsp + 0x40]
movsd xmm9, qword [rsp + 0x38]
movsd xmm1, qword [rbx + 0x18]
ucomisd xmm1, xmm6
jp 0x14004f200
je 0x14004f24e
movsd xmm2, qword [rbx + 0x20]
ucomisd xmm2, xmm6
jp 0x14004f20d
je 0x14004f24e
movaps xmm0, xmm8
subsd xmm0, xmm1
movaps xmm1, xmm9
subsd xmm1, xmm2
mulsd xmm0, xmm0
mulsd xmm1, xmm1
mulsd xmm1, xmm10
addsd xmm1, xmm0
xorps xmm0, xmm0
ucomisd xmm0, xmm1
ja 0x14004f240
xorps xmm0, xmm0
sqrtsd xmm0, xmm1
jmp 0x14004f248
movaps xmm0, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll_sqrt
comisd xmm7, xmm0
ja 0x14004f25b
mov rbx, qword [rbx]
cmp rbx, rdi
jne 0x14004f1f3
jmp 0x14004f31f
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x48], xmm0
mov cl, 0x63
mov dword [rsp + 0x48], 1
movups xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], rax
call qword [sym.imp.USER32.dll_VkKeyScanA]
mov r8d, Ordinal_41
mov dword [rsp + 0x54], r13d
lea rdx, [rsp + 0x48]
mov word [rsp + 0x50], ax
mov ecx, 1
call qword [sym.imp.USER32.dll_SendInput]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], r13
call fcn.14004fd90
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x70], xmm0
mov cl, 0x63
mov dword [rsp + 0x70], 1
movups xmmword [rbp - 0x80], xmm0
mov qword [rbp - 0x70], rax
call qword [sym.imp.USER32.dll_VkKeyScanA]
mov r8d, Ordinal_41
mov dword [rsp + 0x7c], 2
lea rdx, [rsp + 0x70]
mov word [rsp + 0x78], ax
mov ecx, 1
call qword [sym.imp.USER32.dll_SendInput]
mov qword [0x1400b9230], rsi
jmp 0x14004f31f
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Error_reading_local_player_coordinates
call fcn.14004c900
lea rdx, [0x14004cae0]
mov rcx, rax
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]
add r14, 0x28
cmp r14, r15
jne 0x14004f132
movaps xmm10, xmmword [rsp + 0xa0]
movaps xmm9, xmmword [rsp + 0xb0]
movaps xmm8, xmmword [rsp + 0xc0]
movaps xmm7, xmmword [rsp + 0xd0]
movaps xmm6, xmmword [rsp + 0xe0]
mov r13, qword [rsp + 0x100]
mov rdi, qword [rsp + 0x130]
mov rbx, qword [rsp + 0x120]
mov r14, qword [rsp + 0xf8]
mov r15, qword [rsp + 0xf0]
mov rsi, qword [rsp + 0x128]
mov rcx, qword [rbp - 0x68]
xor rcx, rsp
call fcn.140093b30
add rsp, 0x108
pop r12
pop rbp
ret