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

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
push r15
sub rsp, 0x98
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rbx, rcx
xor edi, edi
mov dword [rsp + 0xc8], edi
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov rax, qword [rbx]
mov edx, dword [rax + 0x58]
test edx, edx
jne 0x1400661b2
lea rcx, [rsp + 0x68]
call fcn.140085e48
mov edi, 1
mov rcx, qword [rax]
call fcn.140085dac
test al, al
jne 0x1400661b2
xor r15b, r15b
jmp 0x1400661b5
mov r15b, 1
test dil, 1
je 0x1400661f1
mov rsi, qword [rsp + 0x70]
test rsi, rsi
je 0x1400661f1
or edi, 0xffffffff
mov eax, edi
lock xadd dword [rsi + 8], eax
add eax, edi
jne 0x1400661f4
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax]
mov eax, edi
lock xadd dword [rsi + 0xc], eax
add eax, edi
jne 0x1400661f4
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x1400661f4
or edi, 0xffffffff
test r15b, r15b
je 0x140066200
xor al, al
jmp 0x140066738
mov rcx, qword [rbx]
mov eax, 1
xchg dword [rcx + 0x58], eax
mov rcx, qword [rbx]
add rcx, 8
lea rdx, [rsp + 0x78]
call fcn.140069e20
mov rsi, qword [rax + 8]
mov r15, qword [rax]
test rsi, rsi
je 0x140066230
lock inc dword [rsi + 0xc]
lock inc dword [rsi + 0xc]
mov rcx, qword [0x14033c900]
test rcx, rcx
je 0x14006624d
mov eax, edi
lock xadd dword [rcx + 0xc], eax
add eax, edi
jne 0x14006624d
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov qword [0x14033c900], rsi
mov qword [0x14033c8f8], r15
test rsi, rsi
je 0x140066274
mov eax, edi
lock xadd dword [rsi + 0xc], eax
add eax, edi
jne 0x140066274
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rsi, qword [rsp + 0x80]
test rsi, rsi
je 0x1400662a8
mov eax, edi
lock xadd dword [rsi + 8], eax
add eax, edi
jne 0x1400662a8
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax]
mov eax, edi
lock xadd dword [rsi + 0xc], eax
add eax, edi
jne 0x1400662a8
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rbx]
add rcx, 0xe8
lea rdx, [rsp + 0x58]
call fcn.140085dc8
nop
mov rcx, qword [rsp + 0x58]
test rcx, rcx
setne al
test al, al
jne 0x140066312
mov rax, qword [rbx]
add rax, 0x58
mov ecx, 4
xchg dword [rax], ecx
mov rbx, qword [rsp + 0x60]
test rbx, rbx
je 0x14006630b
mov eax, edi
lock xadd dword [rbx + 8], eax
add eax, edi
jne 0x14006630b
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
add eax, edi
jne 0x14006630b
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor al, al
jmp 0x140066738
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rbx + 8]
mov dword [rcx], eax
mov rax, qword [rbx + 8]
cmp dword [rax], 0
jge 0x14006636d
mov rax, qword [rbx]
add rax, 0x58
mov ecx, 4
xchg dword [rax], ecx
mov rbx, qword [rsp + 0x60]
test rbx, rbx
je 0x140066366
mov eax, edi
lock xadd dword [rbx + 8], eax
add eax, edi
jne 0x140066366
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
add eax, edi
jne 0x140066366
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor al, al
jmp 0x140066738
mov rcx, qword [rbx]
add rcx, 0x60
lea rdx, [rsp + 0x38]
call fcn.140085dc8
nop
mov rsi, qword [rsp + 0x38]
test rsi, rsi
setne al
test al, al
mov rax, qword [rbx]
jne 0x14006640d
add rax, 0x58
mov ecx, 4
xchg dword [rax], ecx
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400663d5
mov eax, edi
lock xadd dword [rcx + 8], eax
add eax, edi
jne 0x1400663d5
mov rbx, qword [rsp + 0x40]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
add eax, edi
jne 0x1400663d5
mov rcx, qword [rsp + 0x40]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rbx, qword [rsp + 0x60]
test rbx, rbx
je 0x140066406
mov eax, edi
lock xadd dword [rbx + 8], eax
add eax, edi
jne 0x140066406
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
add eax, edi
jne 0x140066406
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor al, al
jmp 0x140066738
mov r15d, 0x88
mov rcx, qword [rax + r15]
mov rax, qword [rcx]
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0xc8]
call qword [rax + 0x60]
nop
mov r8, qword [rsi]
mov rdx, rax
mov rcx, rsi
call qword [r8 + 0xa8]
nop
mov rcx, qword [rsp + 0xc8]
test rcx, rcx
je 0x140066454
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
nop
mov rcx, qword [rbx]
mov rcx, qword [rcx + 0xd8]
mov rax, qword [rcx]
call qword [rax + 0x128]
test al, al
je 0x1400664aa
mov rax, qword [rbx]
mov rcx, qword [rax + r15]
mov rax, qword [rcx]
lea rdx, [rsp + 0xd0]
call qword [rax + 0x68]
nop
mov r8, qword [rsi]
mov rdx, rax
mov rcx, rsi
call qword [r8 + 0xa8]
nop
mov rcx, qword [rsp + 0xd0]
test rcx, rcx
je 0x1400664aa
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
nop
mov rcx, qword [rbx]
add rcx, 0x20
lea rdx, [rsp + 0x48]
call fcn.140085dc8
mov rcx, qword [rsp + 0x48]
test rcx, rcx
setne al
test al, al
jne 0x140066586
mov rax, qword [rbx]
add rax, 0x58
mov ecx, 4
xchg dword [rax], ecx
mov rdx, qword [rsp + 0x50]
test rdx, rdx
je 0x140066515
mov eax, edi
lock xadd dword [rdx + 8], eax
add eax, edi
jne 0x140066515
mov rbx, qword [rsp + 0x50]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
add eax, edi
jne 0x140066515
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14006654e
mov eax, edi
lock xadd dword [rcx + 8], eax
add eax, edi
jne 0x14006654e
mov rbx, qword [rsp + 0x40]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
add eax, edi
jne 0x14006654e
mov rcx, qword [rsp + 0x40]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rbx, qword [rsp + 0x60]
test rbx, rbx
je 0x14006657f
mov eax, edi
lock xadd dword [rbx + 8], eax
add eax, edi
jne 0x14006657f
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
add eax, edi
jne 0x14006657f
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor al, al
jmp 0x140066738
call fcn.140020240
mov rcx, qword [rbx + 8]
mov dword [rcx], eax
mov rax, qword [rbx + 8]
cmp dword [rax], 0
jge 0x140066656
mov rax, qword [rbx]
add rax, 0x58
mov ecx, 4
xchg dword [rax], ecx
mov rdx, qword [rsp + 0x50]
test rdx, rdx
je 0x1400665e5
mov eax, edi
lock xadd dword [rdx + 8], eax
add eax, edi
jne 0x1400665e5
mov rbx, qword [rsp + 0x50]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
add eax, edi
jne 0x1400665e5
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14006661e
mov eax, edi
lock xadd dword [rcx + 8], eax
add eax, edi
jne 0x14006661e
mov rbx, qword [rsp + 0x40]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
add eax, edi
jne 0x14006661e
mov rcx, qword [rsp + 0x40]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rbx, qword [rsp + 0x60]
test rbx, rbx
je 0x14006664f
mov eax, edi
lock xadd dword [rbx + 8], eax
add eax, edi
jne 0x14006664f
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
add eax, edi
jne 0x14006664f
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor al, al
jmp 0x140066738
lea rcx, [rsp + 0xd8]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0xd8]
sub rax, qword [rsp + 0x20]
imul rax, rax, 0x3e8
dec rax
add rax, qword [rsp + 0x28]
cqo
idiv qword [rsp + 0x28]
mov rcx, rax
call fcn.1400670a4
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400666c8
mov eax, edi
lock xadd dword [rcx + 8], eax
add eax, edi
jne 0x1400666c8
mov rbx, qword [rsp + 0x50]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
add eax, edi
jne 0x1400666c8
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140066701
mov eax, edi
lock xadd dword [rcx + 8], eax
add eax, edi
jne 0x140066701
mov rbx, qword [rsp + 0x40]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
add eax, edi
jne 0x140066701
mov rcx, qword [rsp + 0x40]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rbx, qword [rsp + 0x60]
test rbx, rbx
je 0x140066732
mov eax, edi
lock xadd dword [rbx + 8], eax
add eax, edi
jne 0x140066732
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx]
mov edx, edi
lock xadd dword [rbx + 0xc], edx
add edx, edi
jne 0x140066732
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx + reloc.OLEAUT32.dll_VariantClear]
mov al, 1
jmp 0x140066738
add rsp, 0x98
pop r15
pop rdi
pop rsi
pop rbx
ret