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

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xc0
mov qword [rbp - 0x29], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1402d68f8]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov rsi, rcx
mov qword [rbp + 0x27], SafeArrayGetDim
xor r12d, r12d
mov qword [rbp + 0x1f], r12
mov byte [rbp + 0xf], r12b
mov qword [rbp + 7], SafeArrayGetDim
mov qword [rbp - 1], r12
mov byte [rbp - 0x11], r12b
mov rax, qword [rcx + 0x38]
mov r15, qword [rax + 0x328]
mov r14d, r12d
test r15, r15
je 0x1400065fb
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rsi + 0xc]
mov rdx, qword [rsi + 0x38]
imul ecx, dword [rdx + 0x438], 0x3e8
cmp eax, ecx
jae 0x1400065fb
mov rbx, qword [rdx + 0x320]
mov rbx, qword [rbx]
cmp rbx, qword [rdx + 0x320]
je 0x1400065ef
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rsi + 0xc]
mov rcx, qword [rsi + 0x38]
imul edx, dword [rcx + 0x438], 0x3e8
cmp eax, edx
jae 0x1400065ef
lea rdx, [rbx + 0x20]
lea rax, [rbp + 0xf]
cmp rax, rdx
je 0x140006463
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rbp + 0xf]
call fcn.140002670
lea rdx, [rbx + 0x40]
lea rax, [rbp - 0x11]
cmp rax, rdx
je 0x140006480
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rbp - 0x11]
call fcn.140002670
lea rax, [rbp - 0x69]
mov qword [rbp - 0x21], rax
lea rdx, [rbp - 0x11]
cmp qword [rbp + 7], 0x10
cmovae rdx, qword [rbp - 0x11]
mov qword [rbp - 0x51], SafeArrayGetDim
mov qword [rbp - 0x59], r12
mov byte [rbp - 0x69], 0
cmp byte [rdx], 0
jne 0x1400064b0
mov r8, r12
jmp 0x1400064be
or r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], 0
jne 0x1400064b4
lea rcx, [rbp - 0x69]
call fcn.140002540
nop
lea rdx, [rbp + 0xf]
cmp qword [rbp + 0x27], 0x10
cmovae rdx, qword [rbp + 0xf]
mov qword [rbp - 0x31], SafeArrayGetDim
mov qword [rbp - 0x39], r12
mov byte [rbp - 0x49], 0
cmp byte [rdx], 0
jne 0x1400064f0
mov r8, r12
jmp 0x1400064fe
or r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], 0
jne 0x1400064f4
lea rcx, [rbp - 0x49]
call fcn.140002540
nop
lea r8, [rbp - 0x69]
lea rdx, [rbp - 0x49]
call fcn.140006720
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rsi + 0xc]
mov rcx, qword [rsi + 0x38]
imul edx, dword [rcx + 0x438], 0x3e8
cmp eax, edx
jae 0x140006547
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
test rdi, rdi
je 0x140006480
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rsi + 0xc]
mov rcx, qword [rsi + 0x38]
imul edx, dword [rcx + 0x438], 0x3e8
cmp eax, edx
jae 0x140006582
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov edx, 1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x140006547
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [rbx + 0x19], 0
jne 0x1400065de
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], 0
jne 0x1400065be
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
jne 0x1400065de
nop word [rax + rax]
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x1400065b0
jmp 0x1400065de
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], 0
jne 0x1400065db
cmp rbx, qword [rax + 0x10]
jne 0x1400065db
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x1400065c8
mov rbx, rax
mov rax, qword [rsi + 0x38]
cmp rbx, qword [rax + 0x320]
jne 0x140006427
inc r14
cmp r14, r15
jb 0x1400063f1
or ebx, 0xffffffff
nop
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rsi + 0xc]
mov rcx, qword [rsi + 0x38]
imul edx, dword [rcx + 0x438], 0x3e8
cmp eax, edx
jae 0x140006633
mov edx, 0x3e8
mov rcx, qword [rcx + 0x540]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, eax
test eax, eax
jne 0x140006600
cmp ebx, 0xffffffff
setne bl
mov rax, qword [rbp + 7]
cmp rax, 0x10
jb 0x14000668f
inc rax
mov rcx, qword [rbp - 0x11]
cmp rax, 0x1000
jb 0x14000668a
test cl, 0x1f
je 0x14000665d
call fcn.1401e9ae4
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x14000666c
call fcn.1401e9ae4
int3
sub rcx, rax
cmp rcx, 8
jae 0x14000667b
call fcn.1401e9ae4
int3
cmp rcx, 0x27
jbe 0x140006687
call fcn.1401e9ae4
int3
mov rcx, rax
call fcn.14002bcb8
mov qword [rbp + 7], SafeArrayGetDim
mov qword [rbp - 1], r12
mov byte [rbp - 0x11], 0
mov rax, qword [rbp + 0x27]
cmp rax, 0x10
jb 0x1400066f5
inc rax
mov rcx, qword [rbp + 0xf]
cmp rax, 0x1000
jb 0x1400066f0
test cl, 0x1f
je 0x1400066c3
call fcn.1401e9ae4
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x1400066d2
call fcn.1401e9ae4
int3
sub rcx, rax
cmp rcx, 8
jae 0x1400066e1
call fcn.1401e9ae4
int3
cmp rcx, 0x27
jbe 0x1400066ed
call fcn.1401e9ae4
int3
mov rcx, rax
call fcn.14002bcb8
movzx eax, bl
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.1401e30a0
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret