Function at 0x100d291b
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
mov eax, dword [ecx + 0x318]
xor ebx, ebx
mov dword [ebp - 0x10], eax
mov eax, dword [ecx + 0xc]
push str.kernel32.dll
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
push str.InitializeConditionVariable
push edi
call esi
push str.WakeAllConditionVariable
push edi
mov dword [0x10275ca8], eax
call esi
push str.WakeConditionVariable
push edi
mov dword [0x10275ca4], eax
call esi
push str.SleepConditionVariableCS
push edi
mov dword [0x10275cac], eax
call esi
mov esi, dword [ebp - 0x10]
xor edi, edi
inc edi
mov dword [0x10275cb0], eax
test esi, esi
jne 0x100d29d1
call fcn.101086c9
mov esi, eax
mov eax, dword [ebp + 8]
test dword [eax + 0x2a0], 0x6000
jne 0x100d29aa
cmp dword [eax + 0x2a4], ebx
je 0x100d29ac
mov esi, edi
cmp esi, edi
jle 0x100d29c4
push 0x10
inc esi
pop ecx
cmp esi, ecx
cmovg esi, ecx
mov dword [ebp - 0x10], esi
mov dword [eax + 0x318], esi
jmp 0x100d29d4
mov esi, edi
mov dword [eax + 0x318], edi
mov dword [ebp - 0x10], esi
jmp 0x100d29d4
mov eax, dword [ebp + 8]
cmp esi, edi
jg 0x100d29e7
and dword [eax + 0x320], ebx
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x30
call fcn.1010cffe
mov edi, eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], edi
pop ecx
mov eax, dword [eax + 0x40]
mov dword [eax + 0x1c], edi
cmp esi, 0x9d89d8
jb 0x100d2a09
xor eax, eax
jmp 0x100d2a16
imul eax, esi, 0xd0
push eax
call fcn.1010cffe
pop ecx
mov dword [edi], eax
lea eax, [edi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
and dword [ebp - 8], ebx
mov dword [edi + 0x28], 1
test esi, esi
jle 0x100d29de
push 0x3b0
call sym.ffmpegsumo.dll_av_malloc
imul esi, dword [ebp - 8], 0xd0
mov dword [ebp - 4], eax
pop ecx
add esi, dword [edi]
mov dword [ebp - 0x18], esi
lea eax, [esi + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [esi + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [esi + 0x18]
push 0
push eax
call fcn.100d33fd
lea eax, [esi + 0x1c]
push 0
push eax
call fcn.100d33fd
lea eax, [esi + 0x20]
push 0
push eax
call fcn.100d33fd
add esp, 0x18
call sym.ffmpegsumo.dll_av_frame_alloc
mov dword [esi + 0xa0], eax
test eax, eax
je 0x100d2bc6
mov dword [esi], edi
mov eax, dword [ebp - 4]
mov dword [esi + 0x54], eax
mov edi, dword [ebp - 4]
test edi, edi
je 0x100d2bc1
mov esi, dword [ebp - 0xc]
mov ecx, 0xec
rep movsd dword es:[edi], dword [esi]
push 0x38
call sym.ffmpegsumo.dll_av_malloc
pop ecx
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x40], eax
mov eax, dword [ebp - 4]
mov edi, dword [eax + 0x40]
test edi, edi
je 0x100d2bc1
cmp dword [ebp - 8], 0
mov eax, dword [ebp - 0xc]
push 0xe
pop ecx
mov esi, dword [eax + 0x40]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 4]
mov edi, dword [ebp - 0x18]
mov eax, dword [eax + 0x40]
lea ecx, [edi + 0x58]
mov dword [eax + 0x1c], edi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
mov dword [eax + 0x20], ecx
jne 0x100d2b20
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ecx + 0x4c]
test ecx, ecx
je 0x100d2b10
push eax
call ecx
mov ebx, eax
mov eax, dword [ebp - 4]
pop ecx
push 1
push eax
push dword [ebp + 8]
call fcn.100d3935
add esp, 0xc
jmp 0x100d2b6e
mov esi, dword [ebp - 0x14]
push dword [esi + 0x34]
call sym.ffmpegsumo.dll_av_malloc
pop ecx
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x3c], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x3c], 0
je 0x100d2bc1
mov ecx, dword [ebp - 0xc]
push dword [esi + 0x34]
push dword [ecx + 0x3c]
push dword [eax + 0x3c]
call fcn.101158d0
mov eax, dword [ebp - 4]
add esp, 0xc
mov eax, dword [eax + 0x40]
mov dword [eax], 1
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x100d2b6e
push dword [ebp - 4]
call eax
pop ecx
mov ebx, eax
test ebx, ebx
jne 0x100d2bd3
xor eax, eax
lea esi, [edi + 4]
push eax
push eax
push esi
push 0x100d3be0
push eax
push eax
mov dword [esi + 4], 0x100d3181
mov dword [esi + 8], edi
call fcn.10119b00
add esp, 0x18
mov dword [esi], eax
test eax, eax
sete bl
neg ebx
push 0
pop eax
sete al
mov dword [edi + 0x14], eax
test eax, eax
je 0x100d2bd3
mov eax, dword [ebp - 8]
mov edi, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 8], eax
cmp eax, dword [ebp - 0x10]
jl 0x100d2a30
jmp 0x100d29de
push 0xfffffffffffffff4
pop ebx
jmp 0x100d2bd3
push 0xfffffffffffffff4
lea eax, [ebp - 4]
pop ebx
push eax
call fcn.1010cfb6
pop ecx
mov eax, dword [ebp - 8]
inc eax
push eax
push dword [ebp + 8]
call fcn.100d2725
pop ecx
pop ecx
mov eax, ebx
jmp 0x100d29e0