Function at 0x18006c610
Capabilities:
Log keystrokes via polling

Disassembly:
mov r11, rsp
push r13
sub rsp, 0x40
mov rax, qword [0x1800aef48]
mov r13, rcx
cmp byte [rax], 0
jne 0x18006c91d
mov r8, qword [rcx + 0x4788]
movabs rax, 0x6060606060606061
mov rdx, qword [rcx + 0x4790]
sub rdx, r8
mov dword [rsp + 0x58], 0
imul rdx
sar rdx, 8
mov rax, rdx
shr rax, 0x3f
add rdx, rax
je 0x18006c91d
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
xor esi, esi
mov qword [r11 - 0x10], rdi
xor ebp, ebp
mov qword [r11 - 0x18], r12
mov r12d, dword [0x1800aea00]
mov qword [r11 - 0x20], r14
mov r14, qword gs:[0x58]
mov qword [r11 + 8], rbx
mov qword [r11 - 0x28], r15
mov edi, 4
nop dword [rax + rax]
mov ecx, dword [r8 + rbp + 4]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x18006c8b1
xor edx, edx
call fcn.180062630
mov r15d, edi
mov rbx, rax
test rax, rax
je 0x18006c71a
mov rcx, qword [r14 + r12*8]
mov edx, dword [r15 + rcx]
cmp dword [0x1800bfdb0], edx
jle 0x18006c704
lea rcx, [0x1800bfdb0]
call fcn.180072410
cmp dword [0x1800bfdb0], 0xffffffff
jne 0x18006c704
mov rax, qword [0x1800aee08]
lea rcx, [0x1800bfdb0]
mov qword [0x1800bfdc0], rax
call fcn.1800723a4
mov rax, qword [0x1800bfdc0]
test rax, rax
je 0x18006c71a
mov rcx, rbx
call rax
mov rbx, rax
jmp 0x18006c71c
xor ebx, ebx
mov rax, qword [r13 + 0x4788]
cmp dword [rax + rbp], 1
jne 0x18006c792
mov edx, 1
call fcn.180062630
mov rbx, rax
test rax, rax
je 0x18006c790
mov rcx, qword [r14 + r12*8]
mov edx, dword [r15 + rcx]
cmp dword [0x1800bfdb0], edx
jle 0x18006c77a
lea rcx, [0x1800bfdb0]
call fcn.180072410
cmp dword [0x1800bfdb0], 0xffffffff
jne 0x18006c77a
mov rcx, qword [0x1800aee08]
mov qword [0x1800bfdc0], rcx
lea rcx, [0x1800bfdb0]
call fcn.1800723a4
mov rax, qword [0x1800bfdc0]
test rax, rax
je 0x18006c790
mov rcx, rbx
call rax
mov rbx, rax
jmp 0x18006c792
xor ebx, ebx
mov rdi, qword [r13 + 0x4788]
mov edx, dword [rdi + rbp + 8]
lea eax, [rdx - 2]
cmp eax, 1
jbe 0x18006c988
mov r14, qword [r14 + r12*8]
imul rsi, rsi, 0x2a8
mov eax, dword [r14 + r15]
cmp dword [0x1800bfe48], eax
jle 0x18006c7ef
lea rcx, [0x1800bfe48]
call fcn.180072410
cmp dword [0x1800bfe48], 0xffffffff
jne 0x18006c7ef
mov rax, qword [0x1800aee20]
lea rcx, [0x1800bfe48]
mov qword [0x1800bfe60], rax
call fcn.1800723a4
mov rax, qword [0x1800bfe60]
test rax, rax
je 0x18006c955
lea rcx, [rdi + 0x220]
xor r8d, r8d
add rcx, rsi
xor edx, edx
call rax
mov rdx, qword [r13 + 0x4788]
mov rdi, rax
test rax, rax
je 0x18006c95c
mov ecx, dword [r14 + r15]
cmp dword [0x1800bfe3c], ecx
mov esi, dword [rdx + rbp + 0x2a0]
jle 0x18006c865
lea rcx, [0x1800bfe3c]
call fcn.180072410
cmp dword [0x1800bfe3c], 0xffffffff
jne 0x18006c865
mov rax, qword [0x1800aee28]
lea rcx, [0x1800bfe3c]
mov qword [0x1800bfe40], rax
call fcn.1800723a4
mov rax, qword [0x1800bfe40]
test rax, rax
je 0x18006c924
mov edx, esi
mov rcx, rdi
call rax
test eax, eax
je 0x18006c924
test rbx, rbx
je 0x18006c8a3
mov r8, qword [r13 + 0x4788]
mov rdx, rdi
mov rcx, rbx
mov r8d, dword [r8 + rbp + 0x2a0]
call fcn.180062c70
mov r14, qword gs:[0x58]
mov edi, 4
mov eax, dword [rsp + 0x58]
add rbp, 0x2a8
mov r8, qword [r13 + 0x4788]
inc eax
mov rcx, qword [r13 + 0x4790]
movsxd rsi, eax
sub rcx, r8
mov dword [rsp + 0x58], eax
movabs rax, 0x6060606060606061
imul rcx
sar rdx, 8
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp rsi, rdx
jb 0x18006c6a0
mov r15, qword [rsp + 0x20]
mov r14, qword [rsp + 0x28]
mov r12, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop r13
ret
mov rcx, qword [0x1800aef18]
lea rdx, str.Function__x_does_not_exist_
mov r8, qword [r13 + 0x4788]
mov dword [rcx + 0x804], 0x40600000
mov r8d, dword [r8 + rbp + 0x2a0]
call fcn.18005e4c0
jmp 0x18006c8a3
mov rdx, qword [r13 + 0x4788]
mov rcx, qword [0x1800aef18]
lea r8, [rdx + 0x220]
add r8, rsi
lea rdx, str.Script__s_couldnt_be_loaded_
mov dword [rcx + 0x804], 0x40600000
call fcn.18005e4c0
jmp 0x18006c8a3
mov rcx, qword [rdi + rbp + 0x10]
test rcx, rcx
je 0x18006c9ce
test rbx, rbx
je 0x18006c8ac
cmp edx, 3
jne 0x18006c9be
mov rax, qword [rcx]
mov r8, qword [rax + 0x120]
test r8, r8
je 0x18006c8ac
mov rdx, rbx
call r8
jmp 0x18006c8ac
mov rdx, rcx
mov rcx, rbx
call fcn.180062d90
jmp 0x18006c8ac
mov rcx, qword [0x1800aef18]
lea rdx, str.Function_does_not_exist_
mov dword [rcx + 0x804], 0x40600000
call fcn.18005e4c0
jmp 0x18006c8ac