Function at 0x140019474
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 - 0x28]
sub rsp, 0x110
movaps xmmword [rax - 0x28], xmm6
mov rax, qword [0x14016e040]
xor rax, rsp
mov qword [rbp - 0x10], rax
xor r15d, r15d
mov r14b, r15b
xor eax, eax
mov qword [rbp - 0x20], rax
mov dword [rbp - 0x18], eax
lea eax, [r15 + 1]
xchg byte [0x14016e0d4], al
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x70], rcx
lea rax, [rbp - 0x20]
mov qword [rsp + 0x78], rax
lea ecx, [r15 + 0x10]
call fcn.140118c10
movups xmm0, xmmword [rsp + 0x70]
movdqu xmmword [rax], xmm0
mov qword [rsp + 0x48], rax
lea rcx, [rbp - 0x50]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], r15d
mov r9, rax
lea r8, [0x14001992c]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp - 0x58], rax
test rax, rax
je 0x14001984c
mov al, byte [0x14016e0d5]
test al, al
je 0x140019814
movss xmm6, dword [0x140154e10]
mov sil, byte [rsp + 0x30]
mov rdi, qword [rsp + 0x48]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [0x14016e0e0]
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
jne 0x140019840
cmp dword [0x14016e12c], 0x7fffffff
je 0x14001982a
lea rcx, [rbp - 0x38]
call fcn.14000243c
mov rcx, qword [rax]
mov qword [0x1402330c8], rcx
lea rcx, [0x14016e0e0]
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
mov ecx, 0x1e
call qword [sym.imp.KERNEL32.dll_Sleep]
mov al, byte [0x1402330c0]
test al, al
jne 0x1400197fb
mov qword [rbp - 0x70], 1
mov rbx, qword [rsp + 0x40]
test r14b, r14b
je 0x1400195d1
movsd xmm0, qword [rbp - 0x20]
movsd qword [rsp + 0x70], xmm0
mov eax, dword [rbp - 0x18]
mov dword [rsp + 0x78], eax
lea rdx, [rsp + 0x70]
mov rcx, rbx
call fcn.1400183f8
lea rcx, [rbp - 0x70]
call fcn.140018148
cmp byte [0x140233146], r15b
je 0x1400197ed
cmp byte [0x14023313e], r15b
je 0x1400197ed
mov ecx, dword [0x1401bcbfc]
test ecx, ecx
je 0x14001962a
sub ecx, 1
je 0x140019610
cmp ecx, 1
jne 0x140019646
mov byte [0x1401bcc08], cl
jmp 0x140019654
mov ecx, dword [0x1401bcbf8]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
setne al
mov byte [0x1401bcc08], al
jmp 0x14001964c
mov ecx, dword [0x1401bcbf8]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x140019646
cmp byte [0x1401bcc08], r15b
sete al
jmp 0x140019622
mov al, byte [0x1401bcc08]
test al, al
je 0x1400197d6
mov rax, qword [0x140233158]
test r14b, r14b
jne 0x1400196a5
test sil, sil
je 0x140019679
test rdi, rdi
je 0x140019679
test rax, rax
je 0x140019679
mov rbx, rdi
mov qword [rsp + 0x38], rax
jmp 0x1400196a0
cmp qword [rsp + 0x38], r15
jne 0x1400196a5
mov r14b, 1
lea rcx, [rbp - 0x48]
call fcn.14001ed18
mov rax, qword [rbp - 0x48]
mov qword [rsp + 0x38], rax
mov rbx, qword [rbp - 0x40]
mov rax, qword [0x140233158]
mov qword [rsp + 0x40], rbx
test rbx, rbx
je 0x1400197d6
cmp byte [0x14023313c], r15b
je 0x14001970b
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x40]
call fcn.14001f9a0
movss xmm0, dword [rbp - 0x80]
andps xmm0, xmm6
movss xmm1, dword [0x14016e230]
comiss xmm0, xmm1
ja 0x1400196f7
movss xmm0, dword [rbp - 0x7c]
andps xmm0, xmm6
comiss xmm0, xmm1
ja 0x1400196f7
movss xmm0, dword [rbp - 0x78]
andps xmm0, xmm6
comiss xmm0, xmm1
mov al, r15b
jbe 0x1400196f9
mov al, 1
mov byte [0x140233163], al
mov rbx, qword [rsp + 0x40]
mov rax, qword [0x140233158]
test rax, rax
je 0x1400197c2
cmp byte [0x140233145], r15b
je 0x140019765
mov qword [rbp - 0x68], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], 8
mov qword [rsp + 0x68], reloc.WS2_32.dll_ntohs
mov rax, qword [str.Humanoid]
mov qword [rsp + 0x50], rax
mov byte [rsp + 0x58], r15b
lea r8, [rsp + 0x50]
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x68]
call fcn.14001f5b4
mov rax, qword [0x140233158]
test rax, rax
je 0x1400197c2
cmp byte [0x140233144], r15b
je 0x1400197c2
lea rdx, [rsp + 0x48]
lea rcx, [0x140233158]
call fcn.14001f790
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], 8
mov qword [rsp + 0x68], reloc.WS2_32.dll_ntohs
mov rax, qword [str.Humanoid]
mov qword [rsp + 0x50], rax
mov byte [rsp + 0x58], r15b
lea r8, [rsp + 0x50]
lea rdx, [rbp - 0x28]
lea rcx, [rsp + 0x48]
call fcn.14001f5b4
mov rdi, rbx
mov rax, qword [rsp + 0x38]
mov qword [0x140233158], rax
mov sil, 1
jmp 0x1400197ed
mov r14b, r15b
mov sil, r15b
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x38], r15
mov qword [0x140233158], r15
mov al, byte [0x1402330c0]
test al, al
je 0x1400195a8
mov eax, 1
xchg byte [0x14016e0d5], al
mov cl, byte [0x14016e0d5]
test cl, cl
jne 0x140019537
mov eax, r15d
xchg byte [0x14016e0d4], al
cmp dword [rbp - 0x50], r15d
je 0x14001985c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
nop
mov dword [0x14016e12c], 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 - 0x50], r15d
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140118ad0
lea r11, [rsp + 0x110]
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