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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008dbcd
mov eax, dword fs:[0]
push eax
sub esp, 0x1f4
mov eax, dword [0x100b400c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x1d8]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x1e0], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x1dc], esi
mov dword [ebp - 0x1e8], eax
call fcn.10009c50
mov dword [ebp - 4], 0
cmp dword [edi + 0x1c18], 0
jne 0x1006abae
push dword [edi + 0x74]
lea edx, [ebp - 0x1d8]
mov ecx, esi
call fcn.1006a430
add esp, 4
test al, al
je 0x1006abae
push 0x64
lea eax, [ebp - 0xd8]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov ebx, dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
push eax
call ebx
add esp, 4
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
push 0x64
mov edi, eax
call dword [sym.imp.KERNEL32.dll_Sleep]
call esi
push eax
call ebx
add esp, 4
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
push 0x64
mov esi, eax
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call ebx
add esp, 4
push edi
push esi
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
push eax
lea eax, [ebp - 0xd8]
push str._d_d_d
push eax
call fcn.10009aa0
add esp, 0x14
mov dword [ebp - 0xf4], 0
xor eax, eax
mov dword [ebp - 0xe4], 0
lea ecx, [ebp - 0xd8]
mov dword [ebp - 0xe0], 7
mov word [ebp - 0xf4], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1006a825
sub ecx, edx
lea eax, [ebp - 0xd8]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xf4]
call fcn.100052a0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xf4]
cmp dword [ebp - 0xe0], 8
mov eax, dword [ebp - 0x1e0]
cmovae ecx, dword [ebp - 0xf4]
cmp dword [eax + 0x14], 8
jb 0x1006a86d
mov eax, dword [eax]
push 0
push 0x100a59b4
push ecx
mov edx, eax
lea ecx, [ebp - 0x200]
call fcn.1005b4a0
add esp, 0xc
lea ecx, [ebp - 0xf4]
push eax
call fcn.100075b0
mov edx, dword [ebp - 0x1ec]
cmp edx, 8
jb 0x1006a8d3
mov ecx, dword [ebp - 0x200]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1006a8c9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1006a8c9
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1007face
add esp, 8
push 0x40
lea eax, [ebp - 0x134]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x134]
push 1
call fcn.100012c0
push 0xa
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x114]
push str.ffmpeg.exe
mov dword [ebp - method.CCmdOpts.virtual_0], vtable.CCmdFFmpegOpts.0
call fcn.10003db0
push 0xa
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x114]
push str.ffmpeg.exe
mov dword [ebp - method.CCmdOpts.virtual_0], vtable.CFFmpegOpts.0
mov byte [ebp - 0x124], 0
call fcn.10003db0
mov byte [ebp - 4], 4
cmp dword [ebp - 0x150], 0
jne 0x1006a99f
mov ebx, dword [ebp - 0x1dc]
cmp dword [ebx + 0x1d0], 8
lea edx, [ebx + 0x1bc]
jb 0x1006a95e
mov edx, dword [edx]
lea ecx, [ebp - 0x1e0]
call fcn.10001c70
push eax
lea ecx, [ebp - 0x108]
mov byte [ebp - 4], 5
call fcn.100037a0
mov byte [ebp - 4], 4
or esi, 0xffffffff
mov edx, dword [ebp - 0x1e0]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1006a9f8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x1006a9f8
cmp dword [ebp - 0x138], 8
lea edx, [ebp - 0x14c]
lea ecx, [ebp - 0x1e4]
cmovae edx, dword [ebp - 0x14c]
call fcn.10001c70
push eax
lea ecx, [ebp - 0x108]
mov byte [ebp - 4], 6
call fcn.100037a0
mov byte [ebp - 4], 4
or esi, 0xffffffff
mov edx, dword [ebp - 0x1e4]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1006a9f2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x1dc]
push 0
push 0x10091b60
push 0x10094a28
lea ecx, [ebp - 0x134]
call fcn.10001d90
mov eax, dword [ebp - 0x1cc]
cmp eax, 0x17004
je 0x1006aa28
cmp eax, 0x1780d
mov eax, 0x100a59b4
jne 0x1006aa2d
mov eax, 0x10095dd4
push eax
lea eax, [ebp - 0x134]
push str._scodec
push eax
call fcn.10001fb0
mov edx, dword [ebx + 0x244]
add esp, 0xc
mov ecx, dword [ebx + 0x240]
call fcn.10089a40
cvtsd2ss xmm0, xmm0
divss xmm0, dword [0x100a6698]
cvtss2sd xmm0, xmm0
comisd xmm0, xmmword [0x100a64e8]
jbe 0x1006aa8b
cvttsd2si eax, xmm0
push eax
push 0x10094a08
lea eax, [ebp - 0x134]
push 0x10091a54
push eax
call fcn.10001fb0
add esp, 0x10
cmp dword [ebp - 0xe0], 8
lea edx, [ebp - 0xf4]
lea ecx, [ebp - 0xdc]
mov dword [ebp - 0xdc], 0
cmovae edx, dword [ebp - 0xf4]
call fcn.10001c70
push 0
push 0x10091b60
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x134]
push dword [ebp - 0xdc]
call fcn.10001d90
cmp dword [ebp - 0xe0], 8
lea edx, [ebp - 0xf4]
lea eax, [ebx + 0x1bc]
cmovae edx, dword [ebp - 0xf4]
cmp dword [eax + 0x14], 8
jb 0x1006aaf2
mov eax, dword [eax]
mov ecx, dword [ebp - 0x1e8]
push 0xffffffffffffffff
push edx
push 1
push ebx
push eax
push 0xd
lea eax, [ebp - 0x134]
push eax
call fcn.100177c0
cmp dword [ebp - 0xe0], 8
lea edx, [ebp - 0xf4]
cmovae edx, dword [ebp - 0xf4]
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1006ab26
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebx + 0x288]
call fcn.100052a0
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0xdc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x1006ab61
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x134]
call fcn.10001590
mov edx, dword [ebp - 0xe0]
cmp edx, 8
jb 0x1006abae
mov ecx, dword [ebp - 0xf4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1006aba4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1006aba4
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1007face
add esp, 8
lea ecx, [ebp - 0x1d8]
call fcn.1000ae90
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1007fac0
mov esp, ebp
pop ebp
ret 0x10