Function at 0x1400503d0
Capabilities:
Log keystrokes via polling

Disassembly:
push rbp
push r12
lea rbp, [rsp - 8]
sub rsp, 0x108
mov rax, qword [0x1400df080]
xor rax, rsp
mov qword [rbp - 0x68], rax
mov r12, qword [0x1400e0060]
movzx eax, byte [0x1400dffea]
test al, al
jne 0x140050759
mov rax, qword gs:[0x58]
mov edx, 4
mov qword [rsp + 0x128], rsi
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x1400e059c], eax
jle 0x140050455
lea rcx, [0x1400e059c]
call fcn.1400b45a8
cmp dword [0x1400e059c], 0xffffffff
jne 0x140050455
lea rcx, [0x1400e05a0]
call fcn.14004f8f0
lea rcx, [0x1400e059c]
call fcn.1400b453c
lea rcx, [rsp + 0x38]
call fcn.14004f8f0
mov rsi, qword [rsp + 0x38]
mov rax, rsi
sub rax, qword [0x1400e05a0]
cmp rax, 0x1dcd6500
jl 0x140050751
mov qword [rsp + 0xf8], r14
mov r14, qword [0x1400e04a8]
mov qword [rsp + 0xf0], r15
mov r15, qword [0x1400e04b0]
cmp r14, r15
je 0x140050741
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 [0x1400ce070]
movaps xmmword [rsp + 0xc0], xmm8
movaps xmmword [rsp + 0xb0], xmm9
movaps xmmword [rsp + 0xa0], xmm10
movsd xmm10, qword [0x1400ce048]
nop dword [rax + rax]
mov r8, r14
mov rdx, r12
call fcn.140051170
mov rbx, rax
test rax, rax
je 0x1400506f1
mov rcx, qword [0x1400e03a0]
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 0x1400506ce
cmp qword [rsp + 0x30], 8
jne 0x1400506ce
mov rcx, qword [0x1400e03a0]
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 0x1400506ce
cmp qword [rsp + 0x30], 8
jne 0x1400506ce
mov rdi, qword [0x1400e0508]
mov rbx, qword [rdi]
cmp rbx, rdi
je 0x1400506f1
movsd xmm8, qword [rsp + 0x40]
movsd xmm9, qword [rsp + 0x38]
movsd xmm1, qword [rbx + 0x18]
ucomisd xmm1, xmm6
jp 0x1400505ce
je 0x14005061c
movsd xmm2, qword [rbx + 0x20]
ucomisd xmm2, xmm6
jp 0x1400505db
je 0x14005061c
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 0x14005060e
xorps xmm0, xmm0
sqrtsd xmm0, xmm1
jmp 0x140050616
movaps xmm0, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll_sqrt
comisd xmm7, xmm0
ja 0x140050629
mov rbx, qword [rbx]
cmp rbx, rdi
jne 0x1400505c1
jmp 0x1400506f1
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], 0x64
call fcn.140051310
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 [0x1400e05a0], rsi
jmp 0x1400506f1
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.14004d710
lea rdx, [0x14004d910]
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 0x140050500
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.1400b44e0
add rsp, 0x108
pop r12
pop rbp
ret