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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x38]
sub rsp, 0x120
movaps xmmword [rax - 0x28], xmm6
mov rax, qword [0x140081040]
xor rax, rsp
mov qword [rbp], rax
xor r14d, r14d
mov sil, r14b
mov bl, r14b
and dword [rsp + 0x40], r14d
and dword [rsp + 0x44], r14d
and dword [rsp + 0x48], r14d
lea r15d, [r14 + 1]
mov eax, r15d
xchg byte [0x1400810c0], al
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x68], rcx
lea rax, [rsp + 0x40]
mov qword [rsp + 0x70], rax
lea ecx, [r14 + 0x10]
call fcn.14005e9b0
movups xmm0, xmmword [rsp + 0x68]
movdqu xmmword [rax], xmm0
mov qword [rsp + 0x68], rax
lea rcx, [rbp - 0x58]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], r14d
mov r9, rax
lea r8, [0x140009d5c]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp - 0x60], rax
test rax, rax
je 0x140009bd4
mov al, byte [0x140095e64]
test al, al
jne 0x140009b95
movss xmm6, dword [0x140077100]
mov rdi, qword [rsp + 0x50]
jmp 0x140009b74
lea rcx, [0x140095ff0]
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
jne 0x140009bc8
cmp dword [0x14009603c], 0x7fffffff
je 0x140009bb2
lea rcx, [rbp - 0x40]
call fcn.140008888
mov rcx, qword [rax]
mov qword [0x140095e70], rcx
lea rcx, [0x140095ff0]
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
cmp byte [0x140095ee6], r14b
je 0x140009b65
cmp byte [0x140095ed6], r14b
je 0x140009b57
mov ecx, dword [0x140094f5c]
test ecx, ecx
je 0x14000996a
sub ecx, 1
je 0x140009950
cmp ecx, 1
jne 0x140009987
mov byte [0x140094f68], r15b
jmp 0x140009995
mov ecx, dword [0x140094f58]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
setne al
mov byte [0x140094f68], al
jmp 0x14000998d
mov ecx, dword [0x140094f58]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test r15b, al
je 0x140009987
cmp byte [0x140094f68], r14b
sete al
jmp 0x140009962
mov al, byte [0x140094f68]
test al, al
je 0x140009b24
test sil, sil
jne 0x1400099de
test bl, bl
je 0x1400099be
test rdi, rdi
je 0x1400099be
mov rax, qword [0x140095ef8]
test rax, rax
je 0x1400099be
mov rbx, rdi
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rax
jmp 0x1400099e3
mov sil, r15b
lea rcx, [rbp - 0x50]
call fcn.14000b140
mov rax, qword [rbp - 0x50]
mov qword [rsp + 0x38], rax
mov rbx, qword [rbp - 0x48]
mov qword [rsp + 0x30], rbx
jmp 0x1400099e3
mov rbx, qword [rsp + 0x30]
test rbx, rbx
je 0x140009b24
lea rdx, [rbp - 0x30]
lea rcx, [rsp + 0x30]
call fcn.14000bd3c
movss xmm0, dword [rax + 4]
comiss xmm0, dword [0x140076b8c]
jbe 0x140009b24
cmp byte [0x140095ed4], r14b
je 0x140009a62
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x30]
call fcn.14000bdb0
movss xmm0, dword [rsp + 0x58]
andps xmm0, xmm6
movss xmm1, dword [0x1400811a0]
comiss xmm0, xmm1
ja 0x140009a59
movss xmm0, dword [rsp + 0x5c]
andps xmm0, xmm6
comiss xmm0, xmm1
ja 0x140009a59
movss xmm0, dword [rsp + 0x60]
andps xmm0, xmm6
comiss xmm0, xmm1
mov al, r14b
jbe 0x140009a5c
mov al, r15b
mov byte [0x140095f04], al
mov rax, qword [0x140095ef8]
test rax, rax
je 0x140009aed
cmp byte [0x140095ee5], r14b
je 0x140009aed
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x18], r14
mov qword [rbp - 0x10], 8
mov qword [rbp - 8], 0xf
mov rax, qword [str.Humanoid]
mov qword [rbp - 0x20], rax
mov byte [rbp - 0x18], r14b
lea r8, [rbp - 0x20]
lea rdx, [rbp - 0x38]
lea rcx, [rsp + 0x78]
call fcn.14000b90c
nop
mov rdx, qword [rbp - 8]
cmp rdx, 0xf
jbe 0x140009aed
inc rdx
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140009ae8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140009bab
call fcn.14005e9f4
test sil, sil
je 0x140009b10
movsd xmm0, qword [rsp + 0x40]
movsd qword [rbp - 0x70], xmm0
mov eax, dword [rsp + 0x48]
mov dword [rbp - 0x68], eax
lea rdx, [rbp - 0x70]
mov rcx, rbx
call fcn.140008ab4
mov rdi, rbx
mov rax, qword [rsp + 0x38]
mov qword [0x140095ef8], rax
mov bl, r15b
jmp 0x140009b3b
mov sil, r14b
mov bl, r14b
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x38], r14
mov qword [0x140095ef8], r14
cmp dword [0x140095ee0], r15d
jne 0x140009b4d
cmp byte [0x140095ef2], r14b
jne 0x140009b74
mov qword [rbp - 0x80], r15
lea rcx, [rbp - 0x80]
jmp 0x140009b6f
mov qword [rbp - 0x78], 0xa
lea rcx, [rbp - 0x78]
jmp 0x140009b6f
mov qword [rsp + 0x50], r15
lea rcx, [rsp + 0x50]
call fcn.140009c20
mov al, byte [0x1400810c1]
test al, al
jne 0x1400098d4
mov eax, r15d
xchg byte [0x1400810c1], al
mov cl, byte [0x140095e64]
test cl, cl
je 0x140009b74
mov eax, r14d
xchg byte [0x1400810c0], al
cmp dword [rbp - 0x58], r14d
je 0x140009be4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov dword [0x14009603c], 0x7ffffffe
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov ecx, 5
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rbp - 0x58], r14d
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.14005e990
lea r11, [rsp + 0x120]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop rbp
ret