Function at 0x18005af70
Capabilities:
Log keystrokes via polling

Disassembly:
mov r11, rsp
push r14
sub rsp, 0x40
mov r8, qword [rcx + 0x45d8]
movabs rax, 0x6060606060606061
mov rdx, qword [rcx + 0x45e0]
mov r14, rcx
sub rdx, r8
mov dword [rsp + 0x50], 0
imul rdx
sar rdx, 8
mov rax, rdx
shr rax, 0x3f
add rdx, rax
je 0x18005b3da
mov qword [r11 + 0x20], rsi
mov qword [r11 - 0x10], rdi
xor edi, edi
mov qword [r11 - 0x18], r12
mov r12, qword gs:[0x58]
mov qword [r11 - 0x20], r13
mov r13d, dword [0x1800999b4]
mov qword [r11 - 0x28], r15
xor r15d, r15d
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov esi, 4
nop dword [rax]
mov ecx, dword [r15 + r8 + 4]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x18005b365
mov rbx, qword [r14 + 0x45d8]
cmp byte [r15 + rbx + 8], 0
je 0x18005b138
cmp qword [r15 + rbx + 0x10], 0
je 0x18005b116
xor edx, edx
call fcn.180052ec0
mov rbx, rax
test rax, rax
je 0x18005b082
mov rcx, qword [r12 + r13*8]
mov edx, dword [rsi + rcx]
cmp dword [0x1800abe50], edx
jle 0x18005b06f
lea rcx, [0x1800abe50]
call fcn.1800602c0
cmp dword [0x1800abe50], 0xffffffff
jne 0x18005b06f
mov rax, qword [0x180099da0]
lea rcx, [0x1800abe50]
mov qword [0x1800abe60], rax
call fcn.180060260
mov rax, qword [0x1800abe60]
test rax, rax
je 0x18005b082
mov rcx, rbx
call rax
jmp 0x18005b084
xor eax, eax
cmp dword [r14 + 0x70], 1
jne 0x18005b0f4
mov edx, 1
call fcn.180052ec0
mov rbx, rax
test rax, rax
je 0x18005b365
mov rcx, qword [r12 + r13*8]
mov edx, dword [rsi + rcx]
cmp dword [0x1800abe50], edx
jle 0x18005b0df
lea rcx, [0x1800abe50]
call fcn.1800602c0
cmp dword [0x1800abe50], 0xffffffff
jne 0x18005b0df
mov rcx, qword [0x180099da0]
mov qword [0x1800abe60], rcx
lea rcx, [0x1800abe50]
call fcn.180060260
mov rax, qword [0x1800abe60]
test rax, rax
je 0x18005b365
mov rcx, rbx
call rax
test rax, rax
je 0x18005b365
mov rdx, qword [r14 + 0x45d8]
mov rcx, rax
mov rdx, qword [r15 + rdx + 0x10]
call fcn.180053810
jmp 0x18005b365
mov rcx, qword [0x180099e48]
lea rdx, str.Special_move_does_not_exist_
mov dword [rcx + 0x804], 0x40600000
call fcn.18004e630
jmp 0x18005b365
mov rbp, qword [r12 + r13*8]
imul rdi, rdi, 0x2a8
mov eax, dword [rsi + rbp]
cmp dword [0x1800abec8], eax
jle 0x18005b17d
lea rcx, [0x1800abec8]
call fcn.1800602c0
cmp dword [0x1800abec8], 0xffffffff
jne 0x18005b17d
mov rax, qword [0x180099db8]
lea rcx, [0x1800abec8]
mov qword [0x1800abee0], rax
call fcn.180060260
mov rax, qword [0x1800abee0]
test rax, rax
je 0x18005b332
lea rcx, [rbx + 0x220]
xor r8d, r8d
add rcx, rdi
xor edx, edx
call rax
mov rdx, qword [r14 + 0x45d8]
mov r12, rax
test rax, rax
je 0x18005b339
mov ecx, dword [rsi + rbp]
cmp dword [0x1800abebc], ecx
mov ebx, dword [r15 + rdx + 0x2a0]
jle 0x18005b1f3
lea rcx, [0x1800abebc]
call fcn.1800602c0
cmp dword [0x1800abebc], 0xffffffff
jne 0x18005b1f3
mov rax, qword [0x180099dc0]
lea rcx, [0x1800abebc]
mov qword [0x1800abec0], rax
call fcn.180060260
mov rax, qword [0x1800abec0]
test rax, rax
je 0x18005b304
mov edx, ebx
mov rcx, r12
call rax
test eax, eax
je 0x18005b304
xor edx, edx
call fcn.180052ec0
mov rbx, rax
test rax, rax
je 0x18005b26e
mov ecx, dword [rsi + rbp]
cmp dword [0x1800abe50], ecx
jle 0x18005b25b
lea rcx, [0x1800abe50]
call fcn.1800602c0
cmp dword [0x1800abe50], 0xffffffff
jne 0x18005b25b
mov rcx, qword [0x180099da0]
mov qword [0x1800abe60], rcx
lea rcx, [0x1800abe50]
call fcn.180060260
mov rax, qword [0x1800abe60]
test rax, rax
je 0x18005b26e
mov rcx, rbx
call rax
jmp 0x18005b270
xor eax, eax
mov rcx, qword [r14 + 0x45d8]
cmp dword [r15 + rcx], 1
jne 0x18005b2ea
mov edx, 1
call fcn.180052ec0
mov rbx, rax
test rax, rax
je 0x18005b360
mov ecx, dword [rsi + rbp]
cmp dword [0x1800abe50], ecx
jle 0x18005b2ce
lea rcx, [0x1800abe50]
call fcn.1800602c0
cmp dword [0x1800abe50], 0xffffffff
jne 0x18005b2ce
mov rcx, qword [0x180099da0]
mov qword [0x1800abe60], rcx
lea rcx, [0x1800abe50]
call fcn.180060260
mov rax, qword [0x1800abe60]
test rax, rax
je 0x18005b360
mov rcx, rbx
call rax
mov rcx, qword [r14 + 0x45d8]
test rax, rax
je 0x18005b360
mov r8d, dword [r15 + rcx + 0x2a0]
mov rdx, r12
mov rcx, rax
call fcn.1800536f0
jmp 0x18005b360
mov rcx, qword [0x180099e48]
lea rdx, str.Function__x_does_not_exist_
mov rax, qword [r14 + 0x45d8]
mov dword [rcx + 0x804], 0x40600000
mov r8d, dword [r15 + rax + 0x2a0]
call fcn.18004e630
jmp 0x18005b360
mov rdx, qword [r14 + 0x45d8]
mov rcx, qword [0x180099e48]
lea r8, [rdx + 0x220]
add r8, rdi
lea rdx, str.Script__s_couldnt_be_loaded_
mov dword [rcx + 0x804], 0x40600000
call fcn.18004e630
mov esi, 4
mov eax, dword [rsp + 0x50]
add r15, 0x2a8
mov r8, qword [r14 + 0x45d8]
inc eax
mov rcx, qword [r14 + 0x45e0]
mov r12, qword gs:[0x58]
sub rcx, r8
movsxd rdi, eax
mov dword [rsp + 0x50], eax
movabs rax, 0x6060606060606061
imul rcx
sar rdx, 8
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp rdi, rdx
jb 0x18005aff0
mov r15, qword [rsp + 0x20]
mov r13, 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 + 0x58]
add rsp, 0x40
pop r14
ret