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

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xf0
mov qword [rbp - 0x61], 0xfffffffffffffffe
mov qword [rsp + 0x140], rbx
mov rax, qword [0x1402d68f8]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov r13, rdx
mov rsi, rcx
mov qword [rbp - 0x51], rdx
xor r14b, r14b
mov qword [rbp - 0x11], SafeArrayGetDim
xor edi, edi
mov qword [rbp - 0x19], rdi
mov byte [rbp - 0x29], dil
mov qword [rbp - 0x31], SafeArrayGetDim
mov qword [rbp - 0x39], rdi
mov byte [rbp - 0x49], dil
cmp qword [rdx + 0x18], 0x10
jb 0x140006b6f
mov rdx, qword [rdx]
lea rcx, [rbp - 9]
call fcn.1400072b0
nop
nop dword [rax]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, eax
sub edx, dword [rsi + 0xc]
mov rax, qword [rsi + 0x38]
imul ecx, dword [rax + 0x438], 0x3e8
cmp edx, ecx
jae 0x140006e5f
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rbx, [rbp - 9]
cmp qword [rbp + 0xf], 8
cmovae rbx, qword [rbp - 9]
cmp qword [0x1402e8938], 0
jne 0x140006bda
mov ecx, 1
call fcn.14002bc64
mov qword [rsp + 0x20], rax
mov qword [0x1402e8938], rax
mov rdx, rbx
call fcn.140005650
test eax, eax
je 0x140006c3a
mov edx, eax
call fcn.140005860
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140006c3a
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, eax
sub edx, dword [rsi + 0xc]
mov rax, qword [rsi + 0x38]
imul ecx, dword [rax + 0x438], 0x3e8
cmp edx, ecx
jae 0x140006c28
mov edx, 0x3e8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140006bf6
mov r14b, 1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r14b, r14b
jne 0x140006e5f
mov rax, qword [rsi + 0x38]
mov r12, qword [rax + 0x328]
mov r15, rdi
test r12, r12
je 0x140006b80
xor r14b, r14b
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
sub ecx, dword [rsi + 0xc]
mov rdx, qword [rsi + 0x38]
imul eax, dword [rdx + 0x438], 0x3e8
cmp ecx, eax
jae 0x140006e5f
mov rbx, qword [rdx + 0x320]
mov rbx, qword [rbx]
cmp rbx, qword [rdx + 0x320]
je 0x140006e4c
nop dword [rax]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, eax
sub edx, dword [rsi + 0xc]
mov rax, qword [rsi + 0x38]
imul ecx, dword [rax + 0x438], 0x3e8
cmp edx, ecx
jae 0x140006e4c
lea rdx, [rbx + 0x20]
lea rax, [rbp - 0x29]
cmp rax, rdx
je 0x140006cce
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rbp - 0x29]
call fcn.140002670
lea rdx, [rbx + 0x40]
lea rax, [rbp - 0x49]
cmp rax, rdx
je 0x140006ceb
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rbp - 0x49]
call fcn.140002670
lea rax, [rsp + 0x28]
mov qword [rsp + 0x20], rax
lea rdx, [rbp - 0x49]
cmp qword [rbp - 0x31], 0x10
cmovae rdx, qword [rbp - 0x49]
mov qword [rsp + 0x40], SafeArrayGetDim
mov qword [rsp + 0x38], rdi
mov byte [rsp + 0x28], 0
cmp byte [rdx], 0
jne 0x140006d20
mov r8, rdi
jmp 0x140006d2e
or r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], 0
jne 0x140006d24
lea rcx, [rsp + 0x28]
call fcn.140002540
nop
lea rdx, [rbp - 0x29]
cmp qword [rbp - 0x11], 0x10
cmovae rdx, qword [rbp - 0x29]
mov qword [rbp - 0x69], SafeArrayGetDim
mov qword [rbp - 0x71], rdi
mov byte [rsp + 0x48], 0
cmp byte [rdx], 0
jne 0x140006d62
mov r8, rdi
jmp 0x140006d70
or r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], 0
jne 0x140006d66
lea rcx, [rsp + 0x48]
call fcn.140002540
nop
lea r8, [rsp + 0x28]
lea rdx, [rsp + 0x48]
call fcn.140006720
mov rdi, rax
test rax, rax
je 0x140006de6
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, eax
sub edx, dword [rsi + 0xc]
mov rax, qword [rsi + 0x38]
imul ecx, dword [rax + 0x438], 0x3e8
cmp edx, ecx
jae 0x140006dd8
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov edx, 1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x140006dd5
cmp eax, 0x102
jne 0x140006dd8
jmp 0x140006d92
mov r14b, 1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r14b, r14b
jne 0x140006e5d
cmp byte [rbx + 0x19], 0
jne 0x140006e36
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], 0
jne 0x140006e10
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
jne 0x140006e36
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x140006e02
jmp 0x140006e36
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], 0
jne 0x140006e33
nop word [rax + rax]
cmp rbx, qword [rax + 0x10]
jne 0x140006e33
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x140006e20
mov rbx, rax
mov rax, qword [rsi + 0x38]
cmp rbx, qword [rax + 0x320]
mov edi, 0
jne 0x140006c90
inc r15
cmp r15, r12
jb 0x140006c51
jmp 0x140006b80
xor edi, edi
mov r8, qword [rbp + 0xf]
cmp r8, 8
jb 0x140006e79
inc r8
mov rdx, qword [rbp - 9]
lea rcx, [rbp - 9]
call fcn.1400037a0
mov qword [rbp + 0xf], 7
mov qword [rbp + 7], rdi
mov word [rbp - 9], di
mov rax, qword [rbp - 0x31]
cmp rax, 0x10
jb 0x140006edf
inc rax
mov rcx, qword [rbp - 0x49]
cmp rax, 0x1000
jb 0x140006eda
test cl, 0x1f
je 0x140006ead
call fcn.1401e9ae4
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x140006ebc
call fcn.1401e9ae4
int3
sub rcx, rax
cmp rcx, 8
jae 0x140006ecb
call fcn.1401e9ae4
int3
cmp rcx, 0x27
jbe 0x140006ed7
call fcn.1401e9ae4
int3
mov rcx, rax
call fcn.14002bcb8
mov qword [rbp - 0x31], SafeArrayGetDim
mov qword [rbp - 0x39], rdi
mov byte [rbp - 0x49], 0
mov rax, qword [rbp - 0x11]
cmp rax, 0x10
jb 0x140006f45
inc rax
mov rcx, qword [rbp - 0x29]
cmp rax, 0x1000
jb 0x140006f40
test cl, 0x1f
je 0x140006f13
call fcn.1401e9ae4
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x140006f22
call fcn.1401e9ae4
int3
sub rcx, rax
cmp rcx, 8
jae 0x140006f31
call fcn.1401e9ae4
int3
cmp rcx, 0x27
jbe 0x140006f3d
call fcn.1401e9ae4
int3
mov rcx, rax
call fcn.14002bcb8
mov qword [rbp - 0x11], SafeArrayGetDim
mov qword [rbp - 0x19], rdi
mov byte [rbp - 0x29], 0
mov rax, qword [r13 + 0x18]
cmp rax, 0x10
jb 0x140006fab
inc rax
mov rcx, qword [r13]
cmp rax, 0x1000
jb 0x140006fa6
test cl, 0x1f
je 0x140006f79
call fcn.1401e9ae4
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x140006f88
call fcn.1401e9ae4
int3
sub rcx, rax
cmp rcx, 8
jae 0x140006f97
call fcn.1401e9ae4
int3
cmp rcx, 0x27
jbe 0x140006fa3
call fcn.1401e9ae4
int3
mov rcx, rax
call fcn.14002bcb8
mov qword [r13 + 0x18], SafeArrayGetDim
mov qword [r13 + 0x10], rdi
cmp qword [r13 + 0x18], 0x10
jb 0x140006fc2
mov r13, qword [r13]
mov byte [r13], 0
mov eax, 1
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.1401e30a0
mov rbx, qword [rsp + 0x140]
add rsp, 0xf0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret