Function at 0x14018ec60
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
mov dword [rsp + 0x10], edx
push rbx
push rdi
sub rsp, 0x48
mov qword [rsp + 0x60], rbp
xor edi, edi
cmp dword [0x14046a3b4], 3
mov ebp, edx
mov qword [rsp + 0x30], r13
mov r13, rcx
jle 0x14018ed0d
mov rax, qword [0x14042ecb0]
cmp byte [rax], dil
je 0x14018ec9a
inc dword [0x14045b530]
test r13, r13
lea rcx, str.Calling_shell_to_execute:___s_
mov rbx, r13
cmove rbx, qword [0x140469678]
call qword [case.0x1400407ae.0]
mov rcx, rax
mov rdx, rbx
call fcn.140185f40
xor edx, edx
lea ecx, [rdx + 0xa]
call fcn.140184470
cmp dword [0x140464664], edi
je 0x14018ecf2
cmp dword [0x140465078], edi
jne 0x14018ecf2
mov rcx, qword [0x1404687e8]
call fcn.1402ab4a0
mov dword [0x140464664], edi
mov dword [0x140465078], edi
mov rax, qword [0x14042ecb0]
cmp byte [rax], dil
je 0x14018ed0d
sub dword [0x14045b530], 1
jns 0x14018ed0d
mov dword [0x14045b530], edi
cmp dword [0x14045b42c], 1
jne 0x14018ed8d
mov rcx, qword [0x140466290]
test rcx, rcx
je 0x14018ed3a
mov rax, qword [rcx]
cmp dword [rax + 0xf0], edi
je 0x14018ed3a
add rcx, 0x858
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [0x14045b4b0]
test eax, eax
jle 0x14018ed84
cmp eax, dword [0x140421828]
jg 0x14018ed84
dec eax
movsxd rcx, eax
mov rax, qword [0x140421838]
mov rdx, qword [rax + rcx*8]
cmp dword [rdx + 0x1ec], edi
je 0x14018ed84
mov ecx, dword [rdx + 0x200]
lea eax, [rcx + 1]
mov dword [rdx + 0x200], eax
test ecx, ecx
jne 0x14018ed84
lea rcx, [rdx + 0x1f8]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rbx, qword [0x140462498]
jmp 0x14018ed92
mov rbx, qword [rsp + 0x70]
mov rax, qword [0x140469678]
mov qword [rsp + 0x40], rsi
cmp byte [rax], dil
jne 0x14018edd0
lea rcx, str.E91:_shell_option_is_empty
call qword [case.0x1400407ae.0]
mov rdi, rax
call fcn.140182a30
test eax, eax
jne 0x14018edc4
mov rcx, rdi
call fcn.140182400
mov rdi, 0xffffffffffffffff
jmp 0x14018f096
mov rcx, qword [0x140464620]
test rcx, rcx
je 0x14018edf0
cmp dword [0x14045b3f8], edi
jne 0x14018ede9
call fcn.140005660
mov qword [0x140464620], rdi
mov qword [rsp + 0x20], r15
test r13, r13
je 0x14018f04a
mov rax, qword [0x140469948]
movzx ecx, byte [rax]
test cl, cl
je 0x14018f04a
mov qword [rsp + 0x38], r12
mov r15, r13
mov r12, qword [0x140469958]
cmp byte [r12], dil
je 0x14018ef1c
cmp cl, 0x28
jne 0x14018ef1c
cmp byte [r13], 0
mov esi, 1
mov rdi, r13
je 0x14018ee83
cmp dword [0x14045b514], 0
je 0x14018ee64
mov rcx, rdi
call qword [0x140420bf8]
cmp eax, 1
jle 0x14018ee64
add esi, eax
dec eax
movsxd rcx, eax
add rdi, rcx
jmp 0x14018ee7b
movzx edx, byte [rdi]
mov rcx, r12
call fcn.14028abb0
lea ecx, [rsi + 1]
test rax, rax
cmove ecx, esi
lea esi, [rcx + 1]
inc rdi
cmp byte [rdi], 0
jne 0x14018ee41
mov ecx, esi
mov edx, 1
call fcn.140032b90
mov r15, rax
test rax, rax
jne 0x14018ee9f
mov r15, r13
jmp 0x14018ef1c
cmp byte [r13], 0
mov rsi, rax
mov qword [rsp + 0x28], r14
mov r14, r13
je 0x14018ef14
cmp dword [0x14045b514], 0
je 0x14018eee7
mov rcx, r14
call qword [0x140420bf8]
movsxd rbp, eax
cmp ebp, 1
jle 0x14018eee7
mov r8, rbp
mov rdx, r14
mov rcx, rsi
call fcn.140003740
lea eax, [rbp - 1]
add rsi, rbp
movsxd rcx, eax
add r14, rcx
jmp 0x14018ef07
movzx edx, byte [r14]
mov rcx, r12
call fcn.14028abb0
test rax, rax
je 0x14018eefe
mov byte [rsi], 0x5e
inc rsi
movzx eax, byte [r14]
mov byte [rsi], al
inc rsi
inc r14
cmp byte [r14], 0
jne 0x14018eeb1
mov ebp, dword [rsp + 0x68]
mov r14, qword [rsp + 0x28]
mov byte [rsi], 0
mov rcx, qword [0x140469948]
mov rdi, 0xffffffffffffffff
mov r12, qword [rsp + 0x38]
mov rax, rdi
cmp byte [rcx + rax + 1], 0
lea rax, [rax + 1]
jne 0x14018ef32
mov rcx, rdi
cmp byte [r15 + rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x14018ef40
lea rcx, [rcx + rax*2]
mov edx, 1
inc rcx
call fcn.140032b90
mov rsi, rax
test rax, rax
je 0x14018f02d
mov rdx, qword [0x140469948]
mov r8, rax
nop dword [rax]
nop word [rax + rax]
movzx ecx, byte [rdx]
lea rdx, [rdx + 1]
mov byte [r8], cl
lea r8, [r8 + 1]
test cl, cl
jne 0x14018ef80
lea rcx, [rax - 1]
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x14018ef96
xor edx, edx
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [r15 + rdx]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x14018efb0
mov r8, qword [0x140469948]
movzx eax, byte [r8]
cmp al, 0x28
jne 0x14018efd8
lea r8, [0x1403b091c]
jmp 0x14018efea
cmp al, 0x22
jne 0x14018efea
cmp byte [r8 + 1], 0x28
jne 0x14018efea
lea r8, [0x1403c5950]
lea rcx, [rsi - 1]
nop
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x14018eff0
xor edx, edx
nop dword [rax]
movzx eax, byte [r8 + rdx]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x14018f000
mov edx, ebp
mov rcx, rsi
call fcn.1401de630
cmp dword [0x14045b3f8], 0
mov edi, eax
jne 0x14018f02d
mov rcx, rsi
call fcn.140005660
cmp r15, r13
je 0x14018f056
test r15, r15
je 0x14018f056
cmp dword [0x14045b3f8], 0
jne 0x14018f056
mov rcx, r15
call fcn.140005660
jmp 0x14018f056
mov edx, ebp
mov rcx, r13
call fcn.1401de630
mov edi, eax
cmp dword [0x14045b548], 0
mov ebp, dword [0x140420f60]
mov esi, dword [0x140420870]
mov r15, qword [rsp + 0x20]
jne 0x14018f096
call fcn.1402c5b50
call fcn.1402a8bf0
cmp ebp, dword [0x140420f60]
jne 0x14018f08a
cmp esi, dword [0x140420870]
je 0x14018f096
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.1402aa920
cmp dword [0x14045b42c], 1
mov r13, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x60]
movsxd rax, edi
mov qword [0x14043cc70], rax
jne 0x14018f18a
mov rsi, qword [0x140466290]
test rsi, rsi
je 0x14018f119
mov rax, qword [rsi]
cmp dword [rax + 0xf0], 0
je 0x14018f119
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rcx, qword [rsp + 0x70]
sub rcx, qword [rsi + 0x858]
mov qword [rsi + 0x858], rcx
sub rcx, qword [0x140462498]
add rcx, rbx
mov qword [rsi + 0x858], rcx
mov rax, qword [rsi]
add qword [rax + 0x118], rcx
mov rcx, qword [rsi]
mov rax, qword [rsi + 0x858]
add qword [rcx + 0x140], rax
mov eax, dword [0x14045b4b0]
test eax, eax
jle 0x14018f18a
cmp eax, dword [0x140421828]
jg 0x14018f18a
dec eax
movsxd rcx, eax
mov rax, qword [0x140421838]
mov rsi, qword [rax + rcx*8]
cmp dword [rsi + 0x1ec], 0
je 0x14018f18a
sub dword [rsi + 0x200], 1
jne 0x14018f18a
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x70]
sub rax, qword [rsi + 0x1f8]
mov qword [rsi + 0x1f8], rax
sub rax, qword [0x140462498]
add rax, rbx
mov qword [rsi + 0x1f8], rax
add qword [rsi + 0x220], rax
add qword [rsi + 0x248], rax
mov rsi, qword [rsp + 0x40]
mov eax, edi
add rsp, 0x48
pop rdi
pop rbx
ret