Function at 0x1001c4a3
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x28
mov eax, dword [0x101db764]
mov edi, dword [ebp + 8]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov ebx, dword [edi + 0x2b0]
mov esi, dword [edi + 0xc]
test ebx, ebx
jne 0x1001c4e7
call fcn.1004cf65
cmp eax, 2
jl 0x1001c4de
inc eax
mov ebx, 0x10
cmp eax, 0x11
cmovl ebx, eax
jmp 0x1001c4e1
xor ebx, ebx
inc ebx
mov dword [edi + 0x2b0], ebx
cmp ebx, 1
jg 0x1001c4fd
mov dword [edi + 0x2b8], 0
xor ebx, ebx
jmp 0x1001c78c
mov dword [ebp - 0x28], esi
push 0x28
call fcn.100539f3
add esp, 4
mov ecx, dword [edi + 0x1c]
mov esi, eax
test esi, esi
mov dword [ecx + 0x14], esi
je 0x1001c751
push 0xb8
push ebx
call fcn.100539a9
add esp, 8
test eax, eax
mov dword [esi], eax
je 0x1001c742
mov dword [ebp - 0x34], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_InitializeSRWLock]
lea eax, [esi + 8]
push eax
call ebx
lea eax, [esi + 0xc]
push eax
call ebx
lea eax, [esi + 0x10]
push eax
call ebx
mov eax, esi
add eax, 0x14
push eax
call dword [sym.imp.KERNEL32.dll_InitializeConditionVariable]
xor eax, eax
xor ebx, ebx
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x30], esi
inc eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x24], eax
mov dword [ebp - 0x1c], eax
push 0x380
call sym.ffmpeg.dll_av_malloc
add esp, 4
mov dword [ebp - 0x14], eax
mov edi, dword [esi]
lea eax, [edi + ebx + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeSRWLock]
lea eax, [edi + ebx + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeSRWLock]
lea eax, [edi + ebx + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeConditionVariable]
lea eax, [edi + ebx + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeConditionVariable]
mov eax, dword [sym.imp.KERNEL32.dll_InitializeConditionVariable]
lea ecx, [edi + ebx + 0x20]
mov dword [ebp - 0x18], ecx
push ecx
call eax
call sym.ffmpeg.dll_av_frame_alloc
mov ecx, dword [ebp - 0x18]
test eax, eax
mov dword [ecx + 0x58], eax
je 0x1001c758
mov dword [edi + ebx], esi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x18], ebx
mov eax, dword [ebp - 0x14]
mov dword [edi + ebx + 0x2c], eax
mov ebx, 0xfffffff4
mov edi, dword [ebp - 0x14]
test edi, edi
je 0x1001c769
push 0x380
mov ebx, dword [ebp - 0x20]
push ebx
push edi
call fcn.101613e0
add esp, 0xc
push 0x74
call sym.ffmpeg.dll_av_malloc
add esp, 4
mov dword [edi + 0x1c], eax
mov edx, edi
mov edi, dword [ebp + 8]
test eax, eax
je 0x1001c76e
mov ecx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x24]
mov edi, eax
lea ecx, [esi + ecx]
mov esi, dword [ebx + 0x1c]
mov dword [ebp - 0x2c], ecx
mov ecx, 0x1d
rep movsd dword es:[edi], dword [esi]
mov edi, edx
mov eax, dword [edx + 0x1c]
mov esi, dword [ebp - 0x2c]
mov dword [eax + 0x14], esi
mov esi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x24]
mov ecx, dword [edx + 0x1c]
lea eax, [eax + esi + 0x30]
test esi, esi
mov dword [ecx + 0x28], eax
je 0x1001c6a3
mov esi, dword [ebp - 0x28]
push dword [esi + 0x38]
call sym.ffmpeg.dll_av_malloc
add esp, 4
mov dword [edi + 0x18], eax
mov ecx, edi
mov edi, dword [ebp + 8]
test eax, eax
mov ebx, 0xfffffff4
je 0x1001c77f
push dword [esi + 0x38]
mov edx, dword [ebp - 0x20]
mov ebx, ecx
push dword [edx + 0x18]
push eax
call fcn.101613e0
add esp, 0xc
mov eax, dword [ebx + 0x1c]
mov dword [eax], 1
mov ecx, dword [esi + 0x40]
test ecx, ecx
je 0x1001c6d7
push dword [ebp - 0x14]
call ecx
add esp, 4
mov ebx, eax
jmp 0x1001c6cf
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0x50]
test ecx, ecx
je 0x1001c6b7
push edi
call ecx
add esp, 4
mov ebx, eax
jmp 0x1001c6b9
xor ebx, ebx
mov esi, edi
mov edi, dword [ebp + 8]
mov edx, esi
mov ecx, edi
push 1
call fcn.1001bdf5
add esp, 4
mov dword [ebp - 0x20], esi
test ebx, ebx
jne 0x1001c77f
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x24]
mov eax, dword [eax + 0x240]
lea esi, [ecx + ebx + 4]
shr eax, 0x10
and eax, 1
mov dword [esi + 0xac], eax
mov eax, dword [ebp - 0x2c]
mov dword [esi + 4], 0x1001c7a0
mov dword [esi + 8], eax
xor eax, eax
push eax
push eax
push esi
push 0x1001cd6b
push eax
push eax
call fcn.101686af
add esp, 0x18
xor ecx, ecx
test eax, eax
mov dword [esi], eax
setne cl
mov dword [esi + 0x10], ecx
je 0x1001c77c
mov eax, dword [ebp - 0x1c]
add ebx, 0xb8
mov esi, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x34]
lea eax, [eax + 1]
jl 0x1001c56a
jmp 0x1001c4f6
mov eax, dword [edi + 0x1c]
add eax, 0x14
push eax
call fcn.10053962
add esp, 4
mov ebx, 0xfffffff4
jmp 0x1001c78c
lea eax, [ebp - 0x14]
push eax
call fcn.10053962
add esp, 4
mov ebx, 0xfffffff4
mov edi, dword [ebp + 8]
jmp 0x1001c77f
mov dword [edx + 0x18], 0
mov ebx, 0xfffffff4
jmp 0x1001c77f
xor ebx, ebx
dec ebx
mov eax, dword [ebp - 0x1c]
push eax
push edi
call fcn.1001c19d
add esp, 8
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1015e65c
mov eax, ebx
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret