Function at 0x10013890
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x54
mov eax, dword [0x100ca040]
xor eax, esp
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x58]
push ebx
push ebp
mov ebp, dword [esp + 0x6c]
mov ebx, ecx
mov ecx, dword [esp + 0x68]
push esi
mov esi, dword [esp + 0x68]
cmp dword [ebx + 4], 4
push edi
mov edi, dword [esp + 0x78]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x38], ebp
mov dword [esp + 0x20], edi
mov dword [esp + 0x3c], 0
je 0x1001399a
xor eax, eax
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], eax
mov esi, edi
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
lea eax, [ebp + 0x1f]
and eax, 0xffffffe0
imul esi, eax
mov dword [esp + 0x24], eax
lea eax, [esi + esi*2]
push eax
call dword [sym.imp.avutil_52.dll_av_malloc]
mov ecx, dword [ebx + 4]
add esp, 4
mov edx, dword [ebx + 0xc]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
add eax, esi
mov dword [esp + 0x44], eax
add eax, esi
mov esi, dword [esp + 0x24]
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], 0
call fcn.1000a290
push 2
push 5
push eax
push edi
push ebp
mov ecx, ebx
call fcn.10013140
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x44]
push ecx
push edi
push 0
push dword [esp + 0x28]
push dword [esp + 0x30]
push eax
call dword [sym.imp.swscale_2.dll_sws_scale]
mov ebx, dword [esp + 0x5c]
add esp, 0x1c
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
jmp 0x100139a8
mov ebx, dword [eax]
mov edx, dword [eax + 4]
mov ecx, dword [eax + 8]
mov eax, dword [esi]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x28], ebx
mov eax, dword [eax]
mov dword [esp + 0x34], eax
test edi, edi
jle 0x10013bb1
sub ecx, ebx
lea esi, [ebp - 7]
sub edx, ebx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], edx
xor ebp, ebp
test esi, esi
jle 0x10013b29
add ecx, ebx
mov dword [esp + 0x10], ebx
lea esi, [edx + ebx]
mov dword [esp + 0x2c], ecx
sub dword [esp + 0x2c], esi
mov edx, ebx
sub edx, esi
sub dword [esp + 0x10], ecx
lea edi, [ecx + 1]
mov dword [esp + 0x30], edx
jmp 0x10013a00
movzx edx, byte [edx + esi]
lea esi, [esi + 8]
or edx, 0xffffff00
movzx ecx, byte [esi - 8]
shl edx, 8
lea edi, [edi + 8]
or edx, ecx
mov ecx, dword [esp + 0x2c]
shl edx, 8
movzx ecx, byte [ecx + esi - 8]
or edx, ecx
mov ecx, dword [esp + 0x10]
mov dword [eax], edx
movzx edx, byte [ecx + edi - 8]
or edx, 0xffffff00
movzx ecx, byte [esi - 7]
shl edx, 8
or edx, ecx
movzx ecx, byte [edi - 8]
shl edx, 8
or edx, ecx
mov dword [eax + 4], edx
movzx edx, byte [ebx + ebp + 2]
movzx ecx, byte [esi - 6]
or edx, 0xffffff00
shl edx, 8
or edx, ecx
movzx ecx, byte [edi - 7]
shl edx, 8
or edx, ecx
mov dword [eax + 8], edx
movzx edx, byte [ebx + ebp + 3]
movzx ecx, byte [esi - 5]
or edx, 0xffffff00
shl edx, 8
or edx, ecx
movzx ecx, byte [edi - 6]
shl edx, 8
or edx, ecx
mov dword [eax + 0xc], edx
movzx edx, byte [ebx + ebp + 4]
movzx ecx, byte [esi - 4]
or edx, 0xffffff00
shl edx, 8
or edx, ecx
movzx ecx, byte [edi - 5]
shl edx, 8
or edx, ecx
mov dword [eax + 0x10], edx
movzx edx, byte [ebx + ebp + 5]
movzx ecx, byte [esi - 3]
or edx, 0xffffff00
shl edx, 8
or edx, ecx
movzx ecx, byte [edi - 4]
shl edx, 8
or edx, ecx
mov dword [eax + 0x14], edx
movzx edx, byte [ebx + ebp + 6]
movzx ecx, byte [esi - 2]
or edx, 0xffffff00
shl edx, 8
or edx, ecx
movzx ecx, byte [edi - 3]
shl edx, 8
or edx, ecx
mov dword [eax + 0x18], edx
movzx edx, byte [ebx + ebp + 7]
add ebp, 8
movzx ecx, byte [esi - 1]
or edx, 0xffffff00
shl edx, 8
or edx, ecx
movzx ecx, byte [edi - 2]
shl edx, 8
or edx, ecx
mov dword [eax + 0x1c], edx
add eax, 0x20
mov edx, dword [esp + 0x30]
cmp ebp, dword [esp + 0x18]
jl 0x10013a00
mov edi, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
cmp ebp, dword [esp + 0x38]
jge 0x10013b84
mov edi, dword [esp + 0x38]
add edx, ebx
mov ecx, ebx
sub ecx, edx
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x1c]
lea esi, [edx + ebp]
sub ecx, edx
add ecx, ebx
sub edi, ebp
mov ebp, dword [esp + 0x30]
mov ebx, ecx
mov dword [esp + 0x10], ecx
movzx edx, byte [esi + ebp]
lea eax, [eax + 4]
movzx ecx, byte [esi]
lea esi, [esi + 1]
or edx, 0xffffff00
shl edx, 8
or edx, ecx
movzx ecx, byte [ebx + esi - 1]
shl edx, 8
or edx, ecx
mov dword [eax - 4], edx
dec edi
jne 0x10013b54
mov ebx, dword [esp + 0x28]
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x7c]
mov eax, dword [esp + 0x34]
add ebx, dword [esp + 0x24]
mov edx, dword [esp + 0x14]
add eax, dword [ecx]
dec edi
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x34], eax
mov dword [esp + 0x20], edi
jne 0x100139d1
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.avutil_52.dll_av_freep]
mov ecx, dword [esp + 0x64]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1008c1b5
add esp, 0x54
ret 0x18