Function at 0x1800220a0
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, 0xc0
movaps xmmword [rax - 0x48], xmm6
movaps xmmword [rax - 0x58], xmm7
movaps xmmword [rax - 0x68], xmm8
movaps xmmword [rax - 0x78], xmm9
movaps xmmword [rsp + 0x70], xmm10
mov rdi, rcx
xor r12d, r12d
lea ebx, [r12 + 1]
cmp byte [0x1800d55e1], r12b
jne 0x180022166
mov dword [0x1800d55e4], 0xff
mov ecx, ebx
call fcn.18004bb68
mov qword [rsp + 0x108], rax
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], r12d
mov r9, rax
lea r8, [0x180025210]
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 0x180022181
cmp dword [rsp + 0x58], r12d
jne 0x18002213a
mov ecx, ebx
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
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
je 0x18002215d
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
int3
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x50], rdi
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
je 0x180022192
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_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 byte [0x1800d55e1], 1
movabs rsi, 0x5f4b6931816e599b
movss xmm10, dword [0x180064584]
cmp byte [rdi + 0x50], 0
je 0x180022289
cmp byte [rdi + 0x51], 0
je 0x180022289
mov dword [0x1800916a8], r12d
mov qword [0x1800d7768], rsi
mov qword [0x180091770], r12
mov dword [0x180091698], ebx
call fcn.180025260
mov ecx, ebx
call qword [sym.imp.USER32.dll_ShowCursor]
movss xmm8, dword [rdi + 0xb0]
addss xmm8, dword [rdi + 0x80]
addss xmm8, dword [rdi + 0xfc]
movss xmm7, dword [rdi + 0x5c]
movaps xmm6, xmm7
mulss xmm6, xmm10
addss xmm6, dword [rdi + 0x54]
mulss xmm8, xmm10
movaps xmm9, xmm8
addss xmm9, dword [rdi + 0x58]
lea rcx, [rsp + 0x108]
call qword [sym.imp.USER32.dll_GetCursorPos]
movd xmm3, dword [rsp + 0x108]
cvtdq2ps xmm3, xmm3
movd xmm0, dword [rsp + 0x10c]
cvtdq2ps xmm0, xmm0
mulss xmm7, xmm10
movaps xmm2, xmm6
subss xmm2, xmm7
addss xmm7, xmm6
movaps xmm1, xmm9
addss xmm1, xmm8
subss xmm9, xmm8
comiss xmm3, xmm7
ja 0x180022289
comiss xmm2, xmm3
ja 0x180022289
comiss xmm0, xmm1
ja 0x180022289
comiss xmm9, xmm0
ja 0x180022289
lea rcx, str.Kekkeke
call fcn.18001eea0
mov rax, qword [0x180094e20]
cmp byte [rax + 0x50], 0
je 0x1800222c1
movzx eax, byte [0x1800d7841]
test al, al
je 0x1800222c1
mov dword [0x1800916a8], r12d
mov qword [0x1800d7768], rsi
mov qword [0x180091770], r12
mov dword [0x180091698], ebx
call fcn.180025260
mov dword [rdi + 0x130], 0
mov word [rdi + 0x134], 0
mov byte [rdi + 0x136], 0
mov ecx, 0x73
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
and al, 1
mov byte [rdi + 0x130], al
mov ecx, 8
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
and al, 1
mov byte [rdi + 0x131], al
mov ecx, 0xd
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
and al, 1
mov byte [rdi + 0x132], al
mov ecx, 0x26
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
and al, 1
mov byte [rdi + 0x133], al
mov ecx, 0x28
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
and al, 1
mov byte [rdi + 0x134], al
mov ecx, 0x25
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
and al, 1
mov byte [rdi + 0x135], al
mov ecx, 0x27
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
and al, 1
mov byte [rdi + 0x136], al
mov rcx, rdi
call fcn.180022af0
cmp byte [rdi + 0x50], 0
je 0x1800226de
mov dword [0x1800916a8], r12d
movabs rax, 0xfe99b66d079cf6bc
mov qword [0x1800d7768], rax
mov qword [0x180091770], r12
mov qword [rsp + 0x118], r12
mov dword [rsp + 0x118], 0x1b
mov rax, qword [rsp + 0x118]
mov qword [0x180091778], rax
mov qword [rsp + 0x118], r12
mov dword [rsp + 0x118], ebx
mov rax, qword [rsp + 0x118]
mov qword [0x180091780], rax
mov dword [0x180091698], 3
call fcn.180025260
mov eax, dword [rdi + 0x58]
mov dword [rdi + 0x138], eax
mov rcx, rdi
call fcn.180023cf0
mov rsi, qword [rdi + 0x160]
cmp qword [rdi + 0x158], rsi
je 0x18002256f
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.180024270
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x30]
test rax, rax
je 0x18002256f
mov rbp, r12
mov r14, qword [rdi + 0x60]
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x30]
cmp rax, r14
ja 0x18002246e
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 0x1800224aa
mov rdx, qword [rsi]
mov rcx, rsi
call qword [rdx + 0x38]
cmp rax, qword [rdi + 0x60]
jb 0x1800224aa
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x38]
sub rbx, qword [rdi + 0x60]
lea rbp, [rbx + rax]
mov rdx, qword [rsi]
mov rcx, rsi
call qword [rdx + 0x38]
lea r14, [rax + 1]
movss xmm6, dword [rdi + 0x138]
mov rbx, rbp
cmp rbp, r14
jae 0x18002256f
lea r15, [r14 - 1]
movss xmm1, dword [rdi + 0xcc]
nop word [rax + rax]
movaps xmm2, xmm1
mulss xmm2, xmm10
addss xmm2, xmm6
cvtps2pd xmm0, xmm2
cmp rbx, rbp
jne 0x1800224ec
movsd qword [0x1800d65f0], xmm0
cmp rbx, r15
jne 0x1800224f9
movsd qword [0x1800d55f8], xmm0
mov eax, dword [rdi + 0xe8]
mov dword [rsp + 0x28], eax
movss dword [rsp + 0x20], xmm1
movss xmm3, dword [rdi + 0x5c]
movss xmm1, dword [rdi + 0x54]
call fcn.180024bc0
movss xmm1, dword [rdi + 0xcc]
addss xmm6, xmm1
inc rbx
cmp rbx, r14
jb 0x1800224d0
cmp rbp, r14
jae 0x18002256f
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.180024520
inc rbp
cmp rbp, r14
jb 0x180022531
movss xmm0, dword [rdi + 0xfc]
movaps xmm2, xmm0
mulss xmm2, xmm10
addss xmm2, dword [rdi + 0x138]
mov eax, dword [rdi + 0x104]
mov dword [rsp + 0x28], eax
movss dword [rsp + 0x20], xmm0
movss xmm3, dword [rdi + 0x5c]
movss xmm1, dword [rdi + 0x54]
call fcn.180024bc0
movss xmm6, dword [rdi + 0x100]
xorps xmm7, xmm7
lea rbp, str.shop_arrows_upanddown
mov rsi, qword [rdi + 0x160]
cmp qword [rdi + 0x158], rsi
je case.default.0x18002270f
mov rsi, qword [rsi - 8]
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x38]
test rax, rax
jne 0x1800225e4
movss xmm7, dword [0x1800646fc]
jmp 0x180022607
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 case.default.0x18002270f
movss xmm7, dword [0x180064740]
mulss xmm6, dword [0x1800645a0]
lea rbp, str.arrowright
mov dword [0x1800916a8], r12d
movabs rax, 0x873c9f3104101dd3
mov qword [0x1800d7768], rax
lea rax, [rsp + 0x110]
mov qword [0x180091770], rax
lea rax, [rsp + 0x108]
mov qword [0x180091778], rax
mov dword [0x180091698], 2
call fcn.180025260
movd xmm1, dword [rsp + 0x108]
cvtdq2ps xmm1, xmm1
movd xmm0, dword [rsp + 0x110]
cvtdq2ps xmm0, xmm0
divss xmm1, xmm0
mulss xmm1, xmm6
movss xmm0, dword [rdi + 0xfc]
mulss xmm0, xmm10
addss xmm0, dword [rdi + 0x138]
movss dword [rsp + 0x40], xmm7
mov eax, dword [rdi + 0x108]
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.180024cd0
movss xmm0, dword [rdi + 0x138]
addss xmm0, dword [rdi + 0xfc]
movss dword [rdi + 0x138], xmm0
mov rcx, rdi
lea r11, [rsp + 0xc0]
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]
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]
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al