Function at 0x18005d6a0
Capabilities:
Log keystrokes via polling

Disassembly:
mov r11, rsp
push r15
sub rsp, 0x40
mov rax, qword [0x18009dea0]
mov r15, rcx
cmp byte [rax], 0
jne 0x18005dabe
mov r8, qword [rcx + 0x4de8]
movabs rax, 0x6060606060606061
mov rdx, qword [rcx + 0x4df0]
sub rdx, r8
mov qword [r11 - 0x18], r12
imul rdx
xor r12d, r12d
sar rdx, 8
mov rax, rdx
mov dword [rsp + 0x58], r12d
shr rax, 0x3f
add rdx, rax
je 0x18005dab9
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
mov qword [r11 - 0x10], rdi
xor edi, edi
mov qword [r11 - 0x20], r13
xor ebp, ebp
mov r13d, dword [0x18009d9b4]
mov qword [r11 - 0x28], r14
mov r14, qword gs:[0x58]
mov qword [r11 + 8], rbx
mov esi, 4
nop dword [rax + rax]
mov ecx, dword [r8 + rbp + 4]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x18005da54
mov rbx, qword [r15 + 0x4de8]
cmp byte [rbx + rbp + 8], 0
je 0x18005d87d
cmp qword [rbx + rbp + 0x10], 0
je 0x18005d85b
xor edx, edx
call fcn.180054040
mov rbx, rax
test rax, rax
je 0x18005d7c1
mov rcx, qword [r14 + r13*8]
mov edx, dword [rsi + rcx]
cmp dword [0x1800af670], edx
jle 0x18005d7ae
lea rcx, [0x1800af670]
call fcn.180062cd0
cmp dword [0x1800af670], 0xffffffff
jne 0x18005d7ae
mov rax, qword [0x18009ddb8]
lea rcx, [0x1800af670]
mov qword [0x1800af680], rax
call fcn.180062c70
mov rax, qword [0x1800af680]
test rax, rax
je 0x18005d7c1
mov rcx, rbx
call rax
jmp 0x18005d7c3
xor eax, eax
mov rdx, qword [r15 + 0x4de8]
cmp dword [rdx + rbp], 1
jne 0x18005d840
mov edx, 1
call fcn.180054040
mov rbx, rax
test rax, rax
je 0x18005da54
mov rcx, qword [r14 + r13*8]
mov edx, dword [rsi + rcx]
cmp dword [0x1800af670], edx
jle 0x18005d824
lea rcx, [0x1800af670]
call fcn.180062cd0
cmp dword [0x1800af670], 0xffffffff
jne 0x18005d824
mov rcx, qword [0x18009ddb8]
mov qword [0x1800af680], rcx
lea rcx, [0x1800af670]
call fcn.180062c70
mov rax, qword [0x1800af680]
test rax, rax
je 0x18005da54
mov rcx, rbx
call rax
mov rdx, qword [r15 + 0x4de8]
test rax, rax
je 0x18005da54
mov rdx, qword [rdx + rbp + 0x10]
mov rcx, rax
call fcn.180054e10
jmp 0x18005da54
mov rcx, qword [0x18009de70]
lea rdx, str.Special_move_does_not_exist_
mov dword [rcx + 0x804], 0x40600000
call fcn.18004f6b0
jmp 0x18005da54
mov r14, qword [r14 + r13*8]
imul rdi, rdi, 0x2a8
mov eax, dword [r14 + rsi]
cmp dword [0x1800af6f8], eax
jle 0x18005d8c3
lea rcx, [0x1800af6f8]
call fcn.180062cd0
cmp dword [0x1800af6f8], 0xffffffff
jne 0x18005d8c3
mov rax, qword [0x18009ddd8]
lea rcx, [0x1800af6f8]
mov qword [0x1800af710], rax
call fcn.180062c70
mov rax, qword [0x1800af710]
test rax, rax
je 0x18005daf6
lea rcx, [rbx + 0x220]
xor r8d, r8d
add rcx, rdi
xor edx, edx
call rax
mov rdx, qword [r15 + 0x4de8]
mov r12, rax
test rax, rax
je 0x18005daff
mov ecx, dword [r14 + rsi]
cmp dword [0x1800af6ec], ecx
mov ebx, dword [rdx + rbp + 0x2a0]
jle 0x18005d939
lea rcx, [0x1800af6ec]
call fcn.180062cd0
cmp dword [0x1800af6ec], 0xffffffff
jne 0x18005d939
mov rax, qword [0x18009dde0]
lea rcx, [0x1800af6ec]
mov qword [0x1800af6f0], rax
call fcn.180062c70
mov rax, qword [0x1800af6f0]
test rax, rax
je 0x18005dac5
mov edx, ebx
mov rcx, r12
call rax
test eax, eax
je 0x18005dac5
xor edx, edx
call fcn.180054040
mov rbx, rax
test rax, rax
je 0x18005d9b5
mov ecx, dword [r14 + rsi]
cmp dword [0x1800af670], ecx
jle 0x18005d9a2
lea rcx, [0x1800af670]
call fcn.180062cd0
cmp dword [0x1800af670], 0xffffffff
jne 0x18005d9a2
mov rcx, qword [0x18009ddb8]
mov qword [0x1800af680], rcx
lea rcx, [0x1800af670]
call fcn.180062c70
mov rax, qword [0x1800af680]
test rax, rax
je 0x18005d9b5
mov rcx, rbx
call rax
jmp 0x18005d9b7
xor eax, eax
mov rcx, qword [r15 + 0x4de8]
cmp dword [rcx + rbp], 1
jne 0x18005da29
mov edx, 1
call fcn.180054040
mov rbx, rax
test rax, rax
je 0x18005da41
mov ecx, dword [r14 + rsi]
cmp dword [0x1800af670], ecx
jle 0x18005da11
lea rcx, [0x1800af670]
call fcn.180062cd0
cmp dword [0x1800af670], 0xffffffff
jne 0x18005da11
mov rcx, qword [0x18009ddb8]
mov qword [0x1800af680], rcx
lea rcx, [0x1800af670]
call fcn.180062c70
mov rax, qword [0x1800af680]
test rax, rax
je 0x18005da41
mov rcx, rbx
call rax
mov rcx, qword [r15 + 0x4de8]
test rax, rax
je 0x18005da41
mov r8d, dword [rcx + rbp + 0x2a0]
mov rdx, r12
mov rcx, rax
call fcn.180054cf0
mov r12d, dword [rsp + 0x58]
mov r14, qword gs:[0x58]
mov esi, 4
mov r8, qword [r15 + 0x4de8]
inc r12d
mov rcx, qword [r15 + 0x4df0]
movabs rax, 0x6060606060606061
sub rcx, r8
movsxd rdi, r12d
imul rcx
add rbp, 0x2a8
mov dword [rsp + 0x58], r12d
sar rdx, 8
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp rdi, rdx
jb 0x18005d730
mov r14, qword [rsp + 0x20]
mov r13, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x50]
mov r12, qword [rsp + 0x30]
add rsp, 0x40
pop r15
ret
mov rcx, qword [0x18009de70]
lea rdx, str.Function__x_does_not_exist_
mov rax, qword [r15 + 0x4de8]
mov dword [rcx + 0x804], 0x40600000
mov r8d, dword [rax + rbp + 0x2a0]
call fcn.18004f6b0
jmp 0x18005da41
mov rdx, qword [r15 + 0x4de8]
jmp 0x18005db04
mov r12d, dword [rsp + 0x58]
mov rcx, qword [0x18009de70]
lea r8, [rdx + 0x220]
add r8, rdi
lea rdx, str.Script__s_couldnt_be_loaded_
mov dword [rcx + 0x804], 0x40600000
call fcn.18004f6b0
jmp 0x18005da46