Function at 0x10045c3d
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
mov dword [ebp - 0xc], ebx
mov esi, dword [ebx + 0x320]
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], edi
test esi, esi
jne 0x10045ca8
call fcn.10066205
test dword [ebx + 0x2a8], 0x6000
jne 0x10045c7d
cmp dword [ebx + 0x2ac], edi
je 0x10045c80
xor eax, eax
inc eax
cmp eax, 1
jle 0x10045c98
lea esi, [eax + 1]
push 0x10
pop eax
cmp esi, eax
cmovg esi, eax
mov dword [ebx + 0x320], esi
jmp 0x10045ca5
xor esi, esi
mov dword [ebx + 0x320], 1
inc esi
mov dword [ebp - 0x10], esi
cmp esi, 1
jg 0x10045cbc
mov dword [ebx + 0x328], edi
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x2c
call fcn.1006c3c1
mov edi, eax
mov eax, dword [ebx + 0x40]
mov dword [ebp - 0x1c], edi
pop ecx
mov dword [eax + 0x14], edi
test edi, edi
jne 0x10045cd8
push 0xfffffffffffffff4
pop eax
jmp 0x10045cb5
cmp esi, 0xa3d70a
jb 0x10045ce4
xor eax, eax
jmp 0x10045cf1
imul eax, esi, 0xc8
push eax
call fcn.1006c3c1
pop ecx
mov dword [edi], eax
test eax, eax
jne 0x10045d06
mov eax, dword [ebx + 0x40]
add eax, 0x14
push eax
call fcn.1006c376
pop ecx
jmp 0x10045cd3
push 0
push 0
lea eax, [edi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionEx]
and dword [ebp - 8], 0
mov dword [edi + 0x28], 1
test esi, esi
jle 0x10045cb3
push 0x3e0
call sym.ffmpeg.dll_av_malloc
imul esi, dword [ebp - 8], 0xc8
pop ecx
push 0
mov dword [ebp + 8], eax
push 0
add esi, dword [edi]
mov dword [ebp - 0x18], esi
lea eax, [esi + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionEx]
push 0
push 0
lea eax, [esi + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionEx]
lea eax, [esi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeConditionVariable]
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeConditionVariable]
lea eax, [esi + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeConditionVariable]
call sym.ffmpeg.dll_av_frame_alloc
mov dword [esi + 0x98], eax
test eax, eax
je 0x10045ed5
mov dword [esi], edi
mov eax, dword [ebp + 8]
mov dword [esi + 0x54], eax
mov edi, dword [ebp + 8]
test edi, edi
je 0x10045ed0
mov esi, dword [ebp - 0xc]
mov ecx, 0xf8
rep movsd dword es:[edi], dword [esi]
push 0x48
call sym.ffmpeg.dll_av_malloc
pop ecx
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x40], eax
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x40]
test edi, edi
je 0x10045ecc
cmp dword [ebp - 8], 0
mov eax, dword [ebp - 0xc]
push 0x12
pop ecx
mov esi, dword [eax + 0x40]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 8]
mov edi, dword [ebp - 0x18]
mov eax, dword [eax + 0x40]
lea ecx, [edi + 0x58]
mov dword [eax + 0x14], edi
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x40]
mov dword [eax + 0x18], ecx
jne 0x10045e79
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov ecx, dword [ecx + 0x4c]
test ecx, ecx
je 0x10045e0a
push eax
call ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
pop ecx
push 1
push eax
push ebx
call fcn.10046a4f
add esp, 0xc
mov esi, dword [ebp - 4]
test esi, esi
jne 0x10045ee9
xor eax, eax
lea esi, [edi + 4]
push eax
push eax
push esi
push 0x100470d4
push eax
push eax
mov dword [esi + 4], 0x100464bc
mov dword [esi + 8], edi
call fcn.10139bf6
xor ecx, ecx
mov dword [esi], eax
add esp, 0x18
test eax, eax
setne cl
dec ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
test eax, eax
setne cl
mov dword [edi + 0x14], ecx
test ecx, ecx
je 0x10045ee6
mov eax, dword [ebp - 8]
mov edi, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 8], eax
cmp eax, dword [ebp - 0x10]
jl 0x10045d23
jmp 0x10045cb3
mov esi, dword [ebp - 0x14]
push dword [esi + 0x34]
call sym.ffmpeg.dll_av_malloc
pop ecx
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x3c], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x3c], 0
je 0x10045ed0
mov ecx, dword [ebp - 0xc]
push dword [esi + 0x34]
push dword [ecx + 0x3c]
push dword [eax + 0x3c]
call fcn.10133dc0
mov eax, dword [ebp + 8]
add esp, 0xc
mov eax, dword [eax + 0x40]
mov dword [eax], 1
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x10045e16
push dword [ebp + 8]
call eax
pop ecx
mov esi, eax
jmp 0x10045e19
and dword [eax + 0x3c], 0
push 0xfffffffffffffff4
pop esi
jmp 0x10045ee9
lea eax, [ebp + 8]
push eax
call fcn.1006c376
pop ecx
mov dword [ebp - 4], 0xfffffff4
mov esi, dword [ebp - 4]
mov eax, dword [ebp - 8]
inc eax
push eax
push ebx
call fcn.10045a36
pop ecx
pop ecx
mov eax, esi
jmp 0x10045cb5