Function at 0x18006fca0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x88
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov rax, qword [0x1802247b8]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rbp, r9
mov rbx, r8
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x30], rdx
mov rdi, rcx
xor r15d, r15d
mov qword [rsp + 0x50], r15
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r13d, eax
xor sil, sil
mov ecx, 0x4000
call fcn.180112448
mov r12, rax
mov qword [rsp + 0x70], rax
xor edx, edx
mov r8d, 0x4000
mov rcx, rax
call fcn.180140c00
xor r14d, r14d
cmp qword [rbp + 0x20], r14
jbe 0x18006fe9a
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rdi + 0xd8]
test al, al
jne 0x18006fe97
xor esi, esi
cmp qword [rbx + 8], rsi
jne 0x18006fd4c
or ebx, 0xffffffff
jmp 0x18006fdc5
mov dword [rsp + 0x68], esi
add rbx, 0x30
mov qword [rsp + 0x28], rbx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
xchg dword [rbx], eax
lea r9, [rsp + 0x68]
mov r8d, 0x4000
mov rdx, r12
mov rcx, qword [rsp + 0x20]
mov rcx, qword [rcx + 8]
call fcn.18007d590
test al, al
jne 0x18006fd97
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
xor edx, edx
mov rcx, qword [rsp + 0x28]
xchg dword [rcx], edx
or ebx, 0xffffffff
jmp 0x18006fdc5
xor ecx, ecx
mov rax, qword [rsp + 0x28]
xchg dword [rax], ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [rsp + 0x68]
add r15, rax
mov qword [rsp + 0x50], r15
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, r13d
cmovne r13d, eax
mov ebx, dword [rsp + 0x68]
mov dword [rdi + 0x100], esi
movzx eax, byte [rdi + 0xd8]
test al, al
jne 0x18006fe97
cmp ebx, 0xffffffff
je 0x18006fe97
test ebx, ebx
je 0x18006fe13
mov dword [rsp + 0x6c], 0
mov rsi, qword [rsp + 0x30]
mov rax, qword [rsi]
lea r9, [rsp + 0x6c]
mov r8d, ebx
mov rdx, r12
mov rcx, rsi
call qword [rax]
test al, al
je 0x18006fe81
cmp dword [rsp + 0x6c], ebx
jne 0x18006fe81
jmp 0x18006fe3e
cmp byte [rbp + 0x30], 0
jne 0x18006fe97
mov rcx, qword [rdi + 0x110]
test rcx, rcx
je 0x18006fe30
mov edx, 0x3e8
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
movzx eax, byte [rdi + 0xd8]
test al, al
jne 0x18006fe97
inc r14d
cmp r14d, 0xf
ja 0x18006fe97
mov rcx, qword [rdi + 0xd0]
test rcx, rcx
je 0x18006fe71
mov rdx, qword [rbp + 0x20]
cmp rdx, 0xffffffffffffffff
je 0x18006fe5e
add rdx, qword [rbp + 0x28]
mov r8d, dword [rsp + 0x50]
add r8, qword [rbp + 0x28]
mov rax, qword [rcx]
call qword [rax + 0x10]
test al, al
je 0x18006fe92
cmp r15, qword [rbp + 0x20]
jae 0x18006fe97
mov rbx, qword [rsp + 0x20]
jmp 0x18006fd30
mov sil, 1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi + 0x100], eax
jmp 0x18006fe9a
mov sil, 1
jmp 0x18006fe9a
xor sil, sil
test r12, r12
je 0x18006fea7
mov rcx, r12
call fcn.18013a400
mov qword [rsp + 0x70], 0
mov qword [rdi + 0x108], r15
cmp r15, qword [rbp + 0x20]
sete al
test sil, sil
je 0x18006fed0
xor al, al
movzx ecx, byte [rdi + 0xd8]
test cl, cl
jne 0x18006fedf
movzx eax, al
mov ecx, 1
cmp byte [rbp + 0x30], 0
cmovne eax, ecx
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.180139310
add rsp, 0x88
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret