Function at 0x18005d270
Capabilities:
Log keystrokes via polling

Disassembly:
mov r11, rsp
push r15
sub rsp, 0x40
mov rax, qword [0x18009ce90]
mov r15, rcx
cmp byte [rax], 0
jne 0x18005d68e
mov r8, qword [rcx + 0x45e8]
movabs rax, 0x6060606060606061
mov rdx, qword [rcx + 0x45f0]
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 0x18005d689
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 [0x18009c9b4]
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 0x18005d624
mov rbx, qword [r15 + 0x45e8]
cmp byte [rbx + rbp + 8], 0
je 0x18005d44d
cmp qword [rbx + rbp + 0x10], 0
je 0x18005d42b
xor edx, edx
call fcn.180053f20
mov rbx, rax
test rax, rax
je 0x18005d391
mov rcx, qword [r14 + r13*8]
mov edx, dword [rsi + rcx]
cmp dword [0x1800aee60], edx
jle 0x18005d37e
lea rcx, [0x1800aee60]
call fcn.180062890
cmp dword [0x1800aee60], 0xffffffff
jne 0x18005d37e
mov rax, qword [0x18009cdb8]
lea rcx, [0x1800aee60]
mov qword [0x1800aee70], rax
call fcn.180062830
mov rax, qword [0x1800aee70]
test rax, rax
je 0x18005d391
mov rcx, rbx
call rax
jmp 0x18005d393
xor eax, eax
mov rdx, qword [r15 + 0x45e8]
cmp dword [rdx + rbp], 1
jne 0x18005d410
mov edx, 1
call fcn.180053f20
mov rbx, rax
test rax, rax
je 0x18005d624
mov rcx, qword [r14 + r13*8]
mov edx, dword [rsi + rcx]
cmp dword [0x1800aee60], edx
jle 0x18005d3f4
lea rcx, [0x1800aee60]
call fcn.180062890
cmp dword [0x1800aee60], 0xffffffff
jne 0x18005d3f4
mov rcx, qword [0x18009cdb8]
mov qword [0x1800aee70], rcx
lea rcx, [0x1800aee60]
call fcn.180062830
mov rax, qword [0x1800aee70]
test rax, rax
je 0x18005d624
mov rcx, rbx
call rax
mov rdx, qword [r15 + 0x45e8]
test rax, rax
je 0x18005d624
mov rdx, qword [rdx + rbp + 0x10]
mov rcx, rax
call fcn.180054cf0
jmp 0x18005d624
mov rcx, qword [0x18009ce60]
lea rdx, str.Special_move_does_not_exist_
mov dword [rcx + 0x804], 0x40600000
call fcn.18004f690
jmp 0x18005d624
mov r14, qword [r14 + r13*8]
imul rdi, rdi, 0x2a8
mov eax, dword [r14 + rsi]
cmp dword [0x1800aeee8], eax
jle 0x18005d493
lea rcx, [0x1800aeee8]
call fcn.180062890
cmp dword [0x1800aeee8], 0xffffffff
jne 0x18005d493
mov rax, qword [0x18009cdd8]
lea rcx, [0x1800aeee8]
mov qword [0x1800aef00], rax
call fcn.180062830
mov rax, qword [0x1800aef00]
test rax, rax
je 0x18005d6c6
lea rcx, [rbx + 0x220]
xor r8d, r8d
add rcx, rdi
xor edx, edx
call rax
mov rdx, qword [r15 + 0x45e8]
mov r12, rax
test rax, rax
je 0x18005d6cf
mov ecx, dword [r14 + rsi]
cmp dword [0x1800aeedc], ecx
mov ebx, dword [rdx + rbp + 0x2a0]
jle 0x18005d509
lea rcx, [0x1800aeedc]
call fcn.180062890
cmp dword [0x1800aeedc], 0xffffffff
jne 0x18005d509
mov rax, qword [0x18009cde0]
lea rcx, [0x1800aeedc]
mov qword [0x1800aeee0], rax
call fcn.180062830
mov rax, qword [0x1800aeee0]
test rax, rax
je 0x18005d695
mov edx, ebx
mov rcx, r12
call rax
test eax, eax
je 0x18005d695
xor edx, edx
call fcn.180053f20
mov rbx, rax
test rax, rax
je 0x18005d585
mov ecx, dword [r14 + rsi]
cmp dword [0x1800aee60], ecx
jle 0x18005d572
lea rcx, [0x1800aee60]
call fcn.180062890
cmp dword [0x1800aee60], 0xffffffff
jne 0x18005d572
mov rcx, qword [0x18009cdb8]
mov qword [0x1800aee70], rcx
lea rcx, [0x1800aee60]
call fcn.180062830
mov rax, qword [0x1800aee70]
test rax, rax
je 0x18005d585
mov rcx, rbx
call rax
jmp 0x18005d587
xor eax, eax
mov rcx, qword [r15 + 0x45e8]
cmp dword [rcx + rbp], 1
jne 0x18005d5f9
mov edx, 1
call fcn.180053f20
mov rbx, rax
test rax, rax
je 0x18005d611
mov ecx, dword [r14 + rsi]
cmp dword [0x1800aee60], ecx
jle 0x18005d5e1
lea rcx, [0x1800aee60]
call fcn.180062890
cmp dword [0x1800aee60], 0xffffffff
jne 0x18005d5e1
mov rcx, qword [0x18009cdb8]
mov qword [0x1800aee70], rcx
lea rcx, [0x1800aee60]
call fcn.180062830
mov rax, qword [0x1800aee70]
test rax, rax
je 0x18005d611
mov rcx, rbx
call rax
mov rcx, qword [r15 + 0x45e8]
test rax, rax
je 0x18005d611
mov r8d, dword [rcx + rbp + 0x2a0]
mov rdx, r12
mov rcx, rax
call fcn.180054bd0
mov r12d, dword [rsp + 0x58]
mov r14, qword gs:[0x58]
mov esi, 4
mov r8, qword [r15 + 0x45e8]
inc r12d
mov rcx, qword [r15 + 0x45f0]
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 0x18005d300
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 [0x18009ce60]
lea rdx, str.Function__x_does_not_exist_
mov rax, qword [r15 + 0x45e8]
mov dword [rcx + 0x804], 0x40600000
mov r8d, dword [rax + rbp + 0x2a0]
call fcn.18004f690
jmp 0x18005d611
mov rdx, qword [r15 + 0x45e8]
jmp 0x18005d6d4
mov r12d, dword [rsp + 0x58]
mov rcx, qword [0x18009ce60]
lea r8, [rdx + 0x220]
add r8, rdi
lea rdx, str.Script__s_couldnt_be_loaded_
mov dword [rcx + 0x804], 0x40600000
call fcn.18004f690
jmp 0x18005d616