Function at 0x18006d570
Capabilities:
Create thread
Log keystrokes via polling

Disassembly:
mov rax, rsp
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0xe0
movaps xmmword [rax - 0x48], xmm6
movaps xmmword [rax - 0x58], xmm7
movaps xmmword [rax - 0x68], xmm8
movaps xmmword [rax - 0x78], xmm9
movaps xmmword [rax - 0x88], xmm10
movaps xmmword [rax - 0x98], xmm11
movaps xmmword [rsp + 0x70], xmm12
mov rdi, rcx
xor r12d, r12d
mov r15d, 1
cmp byte [0x1800d76b5], r12b
jne 0x18006d629
mov dword [0x1800d77a0], 0xff
mov ecx, r15d
call fcn.180074cf8
mov qword [rsp + 0x128], rax
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], r12d
mov r9, rax
lea r8, [0x180070a00]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x50], rax
test rax, rax
je 0x18006d654
cmp dword [rsp + 0x58], r12d
je 0x18006d64a
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x60], xmm0
lea rcx, [rsp + 0x60]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x18006d64a
mov qword [rsp + 0x138], rdi
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
je 0x18006d665
mov ecx, 5
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov ecx, r15d
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rsp + 0x58], r12d
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov eax, dword [rdi + 0x4c]
cmp eax, 0x7fffffff
jne 0x18006d680
dec eax
mov dword [rdi + 0x4c], eax
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov byte [0x1800d76b5], 1
movabs rbp, 0x5f4b6931816e599b
movss xmm9, dword [0x18008e458]
cmp byte [rdi + 0x51], 0
je 0x18006d78f
cmp byte [rdi + 0x52], 0
je 0x18006d78f
mov dword [0x1800bf080], r12d
mov qword [0x1800d8c88], rbp
mov qword [0x1800bf148], r12
mov dword [0x1800bf070], r15d
call fcn.18006cdd0
mov ecx, r15d
call qword [sym.imp.USER32.dll_ShowCursor]
mov edx, 0x7f00
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorA]
mov rcx, rax
call qword [sym.imp.USER32.dll_SetCursor]
movss xmm8, dword [rdi + 0xb0]
addss xmm8, dword [rdi + 0x80]
addss xmm8, dword [rdi + 0xf4]
movss xmm7, dword [rdi + 0x5c]
movaps xmm6, xmm7
mulss xmm6, xmm9
addss xmm6, dword [rdi + 0x54]
mulss xmm8, xmm9
movaps xmm10, xmm8
addss xmm10, dword [rdi + 0x58]
lea rcx, [rsp + 0x128]
call qword [sym.imp.USER32.dll_GetCursorPos]
movd xmm3, dword [rsp + 0x128]
cvtdq2ps xmm3, xmm3
movd xmm0, dword [rsp + 0x12c]
cvtdq2ps xmm0, xmm0
mulss xmm7, xmm9
movaps xmm2, xmm6
subss xmm2, xmm7
addss xmm7, xmm6
movaps xmm1, xmm8
addss xmm1, xmm10
subss xmm10, xmm8
comiss xmm3, xmm7
ja 0x18006d78f
comiss xmm2, xmm3
ja 0x18006d78f
comiss xmm0, xmm1
ja 0x18006d78f
comiss xmm10, xmm0
ja 0x18006d78f
lea rcx, str.Kekkeke
call fcn.18003cef0
mov ebx, 0x58
mov rsi, rdi
mov rax, qword [0x1800bf280]
cmp byte [rax + 0x51], 0
je 0x18006d7d0
movzx eax, byte [0x1800d8cb9]
test al, al
je 0x18006d7d0
mov dword [0x1800bf080], r12d
mov qword [0x1800d8c88], rbp
mov qword [0x1800bf148], r12
mov dword [0x1800bf070], r15d
call fcn.18006cdd0
mov dword [rdi + 0x128], 0
mov word [rdi + 0x12c], 0
mov byte [rdi + 0x12e], 0
mov ecx, 0x74
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
and al, 1
mov byte [rdi + 0x128], al
mov ecx, 8
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
and al, 1
mov byte [rdi + 0x129], al
mov ecx, 0xd
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
and al, 1
mov byte [rdi + 0x12a], al
mov ecx, 0x26
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
and al, 1
mov byte [rdi + 0x12b], al
mov ecx, 0x28
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
and al, 1
mov byte [rdi + 0x12c], al
mov ecx, 0x25
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
and al, 1
mov byte [rdi + 0x12d], al
mov ecx, 0x27
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
and al, 1
mov byte [rdi + 0x12e], al
mov rcx, rdi
call fcn.18006dff0
cmp byte [rdi + 0x51], 0
je 0x18006dc79
cmp byte [rdi + 0x50], 0
jne 0x18006dc79
mov dword [0x1800bf080], r12d
movabs rax, 0xfe99b66d079cf6bc
mov qword [0x1800d8c88], rax
mov qword [0x1800bf148], r12
mov qword [rsp + 0x128], r12
mov dword [rsp + 0x128], 0x1b
mov rax, qword [rsp + 0x128]
mov qword [0x1800bf150], rax
mov qword [rsp + 0x128], r12
mov dword [rsp + 0x128], r15d
mov rax, qword [rsp + 0x128]
mov qword [0x1800bf158], rax
mov dword [0x1800bf070], 3
call fcn.18006cdd0
mov eax, dword [rsi + rbx]
mov dword [rdi + 0x130], eax
mov rcx, rdi
call fcn.18006ef60
mov rsi, qword [rdi + 0x158]
cmp qword [rdi + 0x150], rsi
je 0x18006db01
mov rsi, qword [rsi - 8]
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x20]
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x18]
mov rdx, rsi
mov rcx, rdi
call fcn.18006f4e0
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x30]
test rax, rax
je 0x18006db01
mov rbp, r12
mov r14, qword [rdi + 0x60]
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x30]
cmp rax, r14
ja 0x18006d988
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x30]
mov r14, rax
mov rdx, qword [rsi]
mov rcx, rsi
call qword [rdx + 0x30]
cmp rax, qword [rdi + 0x60]
jbe 0x18006d9c4
mov rdx, qword [rsi]
mov rcx, rsi
call qword [rdx + 0x38]
cmp rax, qword [rdi + 0x60]
jb 0x18006d9c4
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x38]
sub r15, qword [rdi + 0x60]
lea rbp, [r15 + rax]
mov rdx, qword [rsi]
mov rcx, rsi
call qword [rdx + 0x38]
lea r14, [rax + 1]
movss xmm7, dword [rdi + 0x130]
mov rbx, rbp
cmp rbp, r14
jae 0x18006db01
lea r15, [r14 - 1]
movss xmm1, dword [rdi + 0xc8]
movsd xmm8, qword [0x18008e4e8]
movsd xmm10, qword [0x18008e508]
movsd xmm11, qword [0x18008e518]
movss xmm12, dword [0x18008e424]
nop dword [rax + rax]
movaps xmm6, xmm1
mulss xmm6, xmm9
addss xmm6, xmm7
cvtps2pd xmm0, xmm6
cmp rbx, rbp
jne 0x18006da2c
movsd qword [0x1800d77b8], xmm0
cmp rbx, r15
jne 0x18006da39
movsd qword [0x1800d77b0], xmm0
mov eax, dword [rdi + 0xe4]
mov dword [rsp + 0x28], eax
movss dword [rsp + 0x20], xmm1
movss xmm3, dword [rdi + 0x5c]
movaps xmm2, xmm6
movss xmm1, dword [rdi + 0x54]
call fcn.1800703b0
movss xmm1, dword [rdi + 0x54]
cvtps2pd xmm1, xmm1
subsd xmm1, xmm8
movss xmm0, dword [rdi + 0x5c]
cvtps2pd xmm0, xmm0
subsd xmm0, xmm10
mulsd xmm0, xmm11
subsd xmm1, xmm0
cvtpd2ps xmm1, xmm1
mov eax, dword [rdi + 0xe4]
mov dword [rsp + 0x28], eax
movss xmm0, dword [rdi + 0xc8]
movss dword [rsp + 0x20], xmm0
movaps xmm3, xmm12
movaps xmm2, xmm6
call fcn.1800703b0
movss xmm1, dword [rdi + 0xc8]
addss xmm7, xmm1
inc rbx
cmp rbx, r14
jb 0x18006da10
cmp rbp, r14
jae 0x18006db01
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x38]
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x38]
cmp rbp, rax
sete bl
mov rax, qword [rsi]
mov rdx, rbp
mov rcx, rsi
call qword [rax + 0x28]
mov r9, rsi
movzx r8d, bl
mov rdx, rax
mov rcx, rdi
call fcn.18006f7b0
inc rbp
cmp rbp, r14
jb 0x18006dac3
movss xmm0, dword [rdi + 0xf4]
movaps xmm2, xmm0
mulss xmm2, xmm9
addss xmm2, dword [rdi + 0x130]
mov eax, dword [rdi + 0xfc]
mov dword [rsp + 0x28], eax
movss dword [rsp + 0x20], xmm0
movss xmm3, dword [rdi + 0x5c]
movss xmm1, dword [rdi + 0x54]
call fcn.1800703b0
movss xmm6, dword [rdi + 0xf8]
xorps xmm7, xmm7
lea rbp, str.shop_arrows_upanddown
mov rsi, qword [rdi + 0x158]
cmp qword [rdi + 0x150], rsi
je 0x18006dba8
mov rsi, qword [rsi - 8]
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x38]
test rax, rax
jne 0x18006db76
movss xmm7, dword [0x18008e60c]
jmp 0x18006db99
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x38]
lea rbx, [rax + 1]
mov rdx, qword [rsi]
mov rcx, rsi
call qword [rdx + 0x30]
cmp rbx, rax
jne 0x18006dba8
movss xmm7, dword [0x18008e660]
mulss xmm6, dword [0x18008e484]
lea rbp, str.arrowright
mov dword [0x1800bf080], r12d
movabs rax, 0x873c9f3104101dd3
mov qword [0x1800d8c88], rax
lea rax, [rsp + 0x130]
mov qword [0x1800bf148], rax
lea rax, [rsp + 0x128]
mov qword [0x1800bf150], rax
mov dword [0x1800bf070], 2
call fcn.18006cdd0
movd xmm1, dword [rsp + 0x128]
cvtdq2ps xmm1, xmm1
movd xmm0, dword [rsp + 0x130]
cvtdq2ps xmm0, xmm0
divss xmm1, xmm0
mulss xmm1, xmm6
movss xmm0, dword [rdi + 0xf4]
mulss xmm0, xmm9
addss xmm0, dword [rdi + 0x130]
movss dword [rsp + 0x40], xmm7
mov eax, dword [rdi + 0x100]
mov dword [rsp + 0x38], eax
movss dword [rsp + 0x30], xmm6
movss dword [rsp + 0x28], xmm1
movss dword [rsp + 0x20], xmm0
movss xmm3, dword [rdi + 0x54]
mov r8, rbp
lea rdx, str.commonmenu
call fcn.1800704c0
movss xmm0, dword [rdi + 0x130]
addss xmm0, dword [rdi + 0xf4]
movss dword [rdi + 0x130], xmm0
mov rcx, rdi
call fcn.1800700b0
nop
mov rcx, rdi
lea r11, [rsp + 0xe0]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
movaps xmm9, xmmword [r11 - 0x40]
movaps xmm10, xmmword [r11 - 0x50]
movaps xmm11, xmmword [r11 - 0x60]
movaps xmm12, xmmword [r11 - 0x70]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
jmp qword [sym.imp.MSVCP140.dll__Mtx_unlock]