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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0xa0
movaps xmmword [rax - 0x38], xmm6
movaps xmmword [rax - 0x48], xmm7
movaps xmmword [rax - 0x58], xmm8
movaps xmmword [rax - 0x68], xmm9
movaps xmmword [rax - 0x78], xmm10
mov rdi, rcx
xor ebp, ebp
lea ebx, [rbp + 1]
cmp byte [0x1800c7fcf], bpl
jne 0x1800206e2
mov dword [0x1800c9058], 0xff
mov ecx, ebx
call fcn.18005e938
mov qword [rsp + 0xd8], rax
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], ebp
mov r9, rax
lea r8, [0x180023bc0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x18002070c
cmp dword [rsp + 0x38], ebp
je 0x180020703
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x180020703
mov qword [rsp + 0xe0], rdi
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
je 0x18002071c
mov ecx, 5
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov ecx, ebx
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rsp + 0x38], ebp
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 0x180020737
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 [0x1800c7fcf], 1
movabs rsi, 0x5f4b6931816e599b
movss xmm9, dword [0x180081008]
cmp byte [rdi + 0x50], 0
je 0x18002082d
cmp byte [rdi + 0x51], 0
je 0x18002082d
mov dword [0x1800b1ba8], ebp
mov qword [0x1800c9248], rsi
mov qword [0x1800b1c70], rbp
mov dword [0x1800b1b98], ebx
call fcn.180023c10
mov ecx, ebx
call qword [sym.imp.USER32.dll_ShowCursor]
movss xmm8, dword [rdi + 0xb0]
addss xmm8, dword [rdi + 0x80]
addss xmm8, dword [rdi + 0xf8]
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 + 0xd8]
call qword [sym.imp.USER32.dll_GetCursorPos]
movd xmm3, dword [rsp + 0xd8]
cvtdq2ps xmm3, xmm3
movd xmm0, dword [rsp + 0xdc]
cvtdq2ps xmm0, xmm0
mulss xmm7, xmm9
movaps xmm2, xmm6
subss xmm2, xmm7
addss xmm7, xmm6
movaps xmm1, xmm10
addss xmm1, xmm8
subss xmm10, xmm8
comiss xmm3, xmm7
ja 0x18002082d
comiss xmm2, xmm3
ja 0x18002082d
comiss xmm0, xmm1
ja 0x18002082d
comiss xmm10, xmm0
ja 0x18002082d
lea rcx, str.Kekkeke
call fcn.18001d380
mov rax, qword [0x1800b48a0]
cmp byte [rax + 0x50], 0
je 0x180020864
movzx eax, byte [0x1800c9569]
test al, al
je 0x180020864
mov dword [0x1800b1ba8], ebp
mov qword [0x1800c9248], rsi
mov qword [0x1800b1c70], rbp
mov dword [0x1800b1b98], ebx
call fcn.180023c10
mov dword [rdi + 0x150], 0
mov word [rdi + 0x154], 0
mov byte [rdi + 0x156], 0
mov ecx, 0x73
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
and al, 1
mov byte [rdi + 0x150], al
mov ecx, 8
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
and al, 1
mov byte [rdi + 0x151], al
mov ecx, 0xd
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
and al, 1
mov byte [rdi + 0x152], al
mov ecx, 0x26
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
and al, 1
mov byte [rdi + 0x153], al
mov ecx, 0x28
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
and al, 1
mov byte [rdi + 0x154], al
mov ecx, 0x25
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
and al, 1
mov byte [rdi + 0x155], al
mov ecx, 0x27
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
and al, 1
mov byte [rdi + 0x156], al
mov rcx, rdi
call fcn.180020ef0
mov rcx, rdi
call fcn.180022db0
cmp byte [rdi + 0x50], 0
je 0x180020b36
mov dword [0x1800b1ba8], ebp
movabs rax, 0xfe99b66d079cf6bc
mov qword [0x1800c9248], rax
mov qword [0x1800b1c70], rbp
mov qword [rsp + 0xd8], rbp
mov dword [rsp + 0xd8], 0x1b
mov rax, qword [rsp + 0xd8]
mov qword [0x1800b1c78], rax
mov qword [rsp + 0xd8], rbp
mov dword [rsp + 0xd8], ebx
mov rax, qword [rsp + 0xd8]
mov qword [0x1800b1c80], rax
mov dword [0x1800b1b98], 3
call fcn.180023c10
mov eax, dword [rdi + 0x58]
mov dword [rdi + 0x158], eax
mov rcx, rdi
call fcn.180021e60
mov rsi, qword [rdi + 0x180]
cmp qword [rdi + 0x178], rsi
je 0x180020b10
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.1800223d0
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x30]
test rax, rax
je 0x180020b10
mov r14, qword [rdi + 0x60]
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x30]
cmp rax, r14
ja 0x180020a15
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 0x180020a51
mov rdx, qword [rsi]
mov rcx, rsi
call qword [rdx + 0x38]
cmp rax, qword [rdi + 0x60]
jb 0x180020a51
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 + 0x158]
mov rbx, rbp
cmp rbp, r14
jae 0x180020b10
lea r15, [r14 - 1]
movss xmm1, dword [rdi + 0xc8]
movaps xmm2, xmm1
mulss xmm2, xmm9
addss xmm2, xmm6
cvtps2pd xmm0, xmm2
cmp rbx, rbp
jne 0x180020a8d
movsd qword [0x1800c9060], xmm0
cmp rbx, r15
jne 0x180020a9a
movsd qword [0x1800c9050], xmm0
mov eax, dword [rdi + 0xe4]
mov dword [rsp + 0x28], eax
movss dword [rsp + 0x20], xmm1
movss xmm3, dword [rdi + 0x5c]
movss xmm1, dword [rdi + 0x54]
call fcn.180023400
movss xmm1, dword [rdi + 0xc8]
addss xmm6, xmm1
inc rbx
cmp rbx, r14
jb 0x180020a71
cmp rbp, r14
jae 0x180020b10
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.1800226a0
inc rbp
cmp rbp, r14
jb 0x180020ad2
mov rax, qword [rdi + 0x180]
mov rbx, qword [rax - 8]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x20]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x18]
mov rcx, rdi
call fcn.180023140
nop
mov rcx, rdi
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x30]
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 rdi
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll__Mtx_unlock]