Function at 0x10025530
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x80
mov eax, dword [0x101db764]
mov edi, ecx
xor eax, ebp
mov dword [esp + 0x78], eax
mov dword [esp + 0x74], 0
sub esp, 4
mov dword [esp + 0xc], edx
mov dword [esp], edx
call sym.ffmpeg.dll_av_init_packet
add esp, 4
lea ebx, [esp + 0x28]
mov dword [esp + 4], edi
mov eax, dword [edi + 0x50c]
cmp dword [eax + 0x20], 0
jne 0x1002593c
push ebx
push edi
call fcn.10024632
add esp, 8
test eax, eax
js 0x100258d4
mov eax, dword [edi + 0x1c]
mov ecx, dword [esp + 0x48]
mov edi, dword [eax + ecx*4]
mov eax, dword [edi + 0x2b8]
cmp dword [eax + 0x28], 0
je 0x10025654
push dword [eax + 0x10]
call fcn.10006cee
add esp, 4
test eax, eax
je 0x100255d7
mov eax, dword [edi + 0x2b8]
push dword [eax + 0x10]
call fcn.10006eb8
add esp, 4
mov eax, dword [edi + 0xb4]
mov dword [eax + 0x3c], 0
mov eax, dword [edi + 0xe8]
test eax, eax
je 0x1002560b
mov ecx, dword [edi + 0x2b8]
mov edx, dword [edi + 0xb0]
mov ecx, dword [ecx + 0x10]
mov ecx, dword [ecx + 0x10]
cmp ecx, dword [edx + 4]
je 0x1002560b
push eax
call fcn.1001ac86
add esp, 4
mov dword [edi + 0xe8], 0
mov eax, dword [edi + 0x2b8]
push dword [edi + 0xb0]
push dword [eax + 0x10]
call sym.ffmpeg.dll_avcodec_parameters_to_context
add esp, 8
test eax, eax
js 0x10025a68
push dword [edi + 0xb0]
push dword [edi + 8]
call sym.ffmpeg.dll_avcodec_parameters_to_context
add esp, 8
mov esi, eax
test eax, eax
js 0x10025a71
mov eax, dword [edi + 0x2b8]
mov dword [eax + 0x28], 0
jmp 0x10025656
xor esi, esi
cmp dword [edi + 0xe4], 0
mov dword [esp + 0xc], edi
je 0x1002579f
cmp dword [edi + 0xe8], 0
mov eax, dword [esp + 4]
jne 0x100256d5
test byte [eax + 0x448], 0x20
jne 0x100256d5
mov eax, dword [edi + 0xb0]
push dword [eax + 4]
call fcn.1001a890
add esp, 4
test eax, eax
mov dword [edi + 0xe8], eax
je 0x100256b6
mov ecx, dword [edi + 0xe4]
cmp ecx, 5
je 0x100256c5
cmp ecx, 4
je 0x100256ce
cmp ecx, 2
jne 0x100256db
or byte [eax + 0xb0], 1
jmp 0x100256d5
mov dword [edi + 0xe4], 0
jmp 0x1002579f
or byte [eax + 0xb1], 0x10
jmp 0x100256d5
or byte [eax + 0xb0], 2
mov ecx, dword [edi + 0xe4]
test ecx, ecx
je 0x1002579f
cmp dword [edi + 0xe8], 0
je 0x1002579f
cmp dword [edi + 0x34], 0x2f
jg 0x10025865
mov edi, dword [esp + 4]
mov edx, ebx
mov ecx, edi
push dword [esp + 0x48]
call fcn.1002b1e4
add esp, 4
test eax, eax
mov dword [esp + 0x10], eax
js 0x10025bc8
mov edx, dword [esp + 0xc]
xor esi, esi
mov eax, dword [edx + 0x2b8]
mov ecx, dword [edx + 0xb0]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x158]
mov dword [ecx + 0x6c], eax
mov eax, dword [edx + 0x2b8]
mov eax, dword [eax + 0x10]
movsd xmm0, qword [eax + 0x28]
mov eax, dword [edx + 0xb0]
movsd qword [eax + 0x18], xmm0
mov eax, dword [edx + 0x2b8]
mov ecx, dword [edx + 0xb0]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x15c]
mov dword [ecx + 0x68], eax
mov eax, dword [edx + 0x2b8]
mov eax, dword [eax + 0x10]
movsd xmm0, qword [eax + 0x178]
mov eax, dword [edx + 0xb0]
movsd qword [eax + 0x60], xmm0
mov eax, dword [edx + 0x2b8]
mov ecx, dword [edx + 0xb0]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x10]
mov dword [ecx + 4], eax
jmp 0x10025878
mov dword [esp + 0x10], esi
mov esi, ebx
mov ebx, dword [esp + 8]
mov edx, edi
mov ecx, 0x12
mov eax, 0x80000000
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 4]
mov ecx, edi
push eax
mov esi, 0
push esi
push eax
push esi
push ebx
push esi
call fcn.1002b5ff
add esp, 0x18
mov eax, dword [edi + 4]
test byte [eax + 9], 1
je 0x10025860
test byte [ebx + 0x24], 1
je 0x10025860
mov eax, dword [ebx + 0x14]
mov ecx, 0x80000000
xor eax, ecx
or eax, dword [ebx + 0x10]
je 0x10025860
mov esi, dword [esp + 0xc]
push dword [esi]
push edi
call fcn.10025bed
add esp, 8
mov eax, dword [ebx + 0x38]
mov edx, dword [ebx + 0x10]
mov ecx, esi
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 0x3c]
mov dword [esp + 0x14], eax
push dword [ebx + 0x14]
call fcn.10024e11
add esp, 4
lea ecx, [esi + 0x190]
lea edi, [esi + 0x188]
mov dword [esp + 0x1c], ecx
lea ecx, [esi + 0x18c]
mov dword [esp + 0x20], ecx
push 1
xor ecx, ecx
push ecx
push ecx
push edx
push eax
push dword [esp + 0x28]
push dword [esp + 0x30]
push dword [esp + 0x38]
push dword [esp + 0x40]
push edi
mov edi, dword [esp + 0x2c]
call fcn.10025f06
add esp, 0x28
xor esi, esi
inc esi
jmp 0x1002587c
mov dword [esp + 0x10], esi
push ebx
call sym.ffmpeg.dll_av_packet_unref
add esp, 4
mov edi, dword [esp + 4]
xor esi, esi
mov ebx, dword [esp + 8]
test byte [ebx + 0x24], 1
jne 0x100258b5
mov eax, dword [esp + 0xc]
cmp dword [eax + 0x1bc], 0
je 0x100258c3
lea ebx, [esp + 0x28]
push ebx
call sym.ffmpeg.dll_av_packet_unref
add esp, 4
test esi, esi
je 0x100258b1
mov edi, dword [esp + 8]
mov ecx, 0x12
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 4]
xor esi, esi
jmp 0x100258c7
mov eax, dword [esp + 0xc]
mov dword [eax + 0x1bc], 0
lea ebx, [esp + 0x28]
test esi, esi
je 0x1002556e
jmp 0x10025958
mov esi, eax
cmp eax, 0xfffffff5
mov dword [esp + 0x10], 0xfffffff5
je 0x10025bc8
mov eax, dword [edi + 0x18]
test eax, eax
je 0x10025928
xor edi, edi
mov ecx, dword [esp + 4]
mov ecx, dword [ecx + 0x1c]
mov ebx, dword [ecx + edi*4]
cmp dword [ebx + 0xe8], 0
je 0x10025923
cmp dword [ebx + 0xe4], 0
je 0x10025923
mov ecx, dword [esp + 4]
xor edx, edx
push dword [ebx]
call fcn.1002b1e4
add esp, 4
mov eax, dword [esp + 4]
mov eax, dword [eax + 0x18]
inc edi
cmp edi, eax
jb 0x100258f0
mov edi, dword [esp + 4]
mov eax, dword [edi + 0x50c]
cmp dword [eax + 0x20], 0
je 0x10025bdf
lea ecx, [eax + 0x20]
add eax, 0x24
push dword [esp + 8]
push eax
push ecx
call fcn.10025173
add esp, 0xc
mov dword [esp + 0x10], 0
mov edx, dword [esp + 8]
mov eax, dword [edi + 0x1c]
xor esi, esi
mov ecx, dword [edx + 0x20]
mov eax, dword [eax + ecx*4]
mov ecx, dword [eax + 0x1d0]
mov edi, dword [eax + 0x1d4]
mov dword [esp + 0xc], eax
mov eax, ecx
or eax, edi
je 0x10025a7c
mov dword [esp + 0x18], ecx
mov ecx, dword [edx + 0xc]
mov eax, dword [edx + 8]
mov edx, 0x80000000
xor edx, ecx
or edx, eax
je 0x10025a7c
xor edx, edx
xor esi, esi
mov ebx, 0x7ffeffff
mov dword [esp + 0x24], edi
dec edx
cmp ecx, 0x7ffe0000
cmovl ebx, esi
cmovl edx, esi
mov esi, dword [esp + 0xc]
sub eax, edx
sbb ecx, ebx
mov edx, dword [esi + 0xb0]
mov edi, dword [esi + 0x14]
mov dword [esp + 0x14], edx
mov ebx, edi
mov edx, edi
mov dword [esp + 0x20], edi
mov edi, dword [esp + 0x14]
sar ebx, 0x1f
mov edi, dword [edi + 0x6c]
imul edi, dword [esi + 0x10]
mov esi, edi
sar esi, 0x1f
push ebx
push edx
push esi
push edi
push ecx
push eax
call fcn.1005350b
add esp, 0x18
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], edx
push ebx
push dword [esp + 0x24]
push esi
push edi
mov eax, dword [esp + 0x18]
push dword [eax + 0x34]
push dword [eax + 0x30]
call fcn.1005350b
add esp, 0x18
mov ecx, dword [esp + 0x14]
mov ebx, dword [esp + 0x1c]
mov edx, eax
sar edx, 0x1f
add ecx, eax
adc ebx, edx
test eax, eax
jle 0x10025a7a
cmp ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x24]
mov esi, ebx
sbb esi, edi
jl 0x10025a7a
mov esi, dword [esp + 0xc]
mov edi, dword [esp + 0x14]
cmp edi, dword [esi + 0x1d8]
mov edi, dword [esp + 0x1c]
sbb edi, dword [esi + 0x1dc]
mov esi, 0
jge 0x10025a7c
sub ecx, dword [esp + 0x18]
sbb ebx, dword [esp + 0x24]
cmp eax, ecx
sbb edx, ebx
cmovl ecx, eax
mov esi, ecx
jmp 0x10025a7c
mov dword [esp + 0x10], eax
jmp 0x10025bc8
mov dword [esp + 0x10], esi
jmp 0x10025bc8
xor esi, esi
mov ebx, dword [esp + 0xc]
mov eax, dword [ebx + 0x1c8]
mov ecx, dword [ebx + 0x1cc]
or ecx, eax
je 0x10025abc
mov edx, dword [esp + 8]
mov dword [esp + 0x18], esi
mov ecx, dword [edx + 8]
mov edx, dword [edx + 0xc]
mov esi, edx
mov edi, ecx
xor esi, 0x7ffeffff
not edi
or edi, esi
mov esi, dword [esp + 0x18]
je 0x10025ab6
or ecx, edx
jne 0x10025abc
mov dword [ebx + 0x1c0], eax
mov eax, dword [ebx + 0x1c0]
or eax, esi
je 0x10025aef
push 0xa
push 0xb
push dword [esp + 0x10]
call fcn.10008e16
add esp, 0xc
test eax, eax
je 0x10025ae5
mov ecx, dword [ebx + 0x1c0]
mov dword [eax], ecx
mov dword [eax + 4], esi
mov dword [ebx + 0x1c0], 0
cmp dword [ebx + 0x2ac], 0
mov eax, dword [esp + 8]
je 0x10025b6a
cmp dword [ebx + 0x9c], 0
jle 0x10025b60
xor esi, esi
mov edi, 8
mov ebx, dword [ebx + 0x98]
push 0
push dword [ebx + edi]
push eax
call sym.ffmpeg.dll_av_packet_get_side_data
add esp, 0xc
test eax, eax
jne 0x10025b4c
push dword [ebx + edi - 4]
push dword [ebx + edi]
push dword [esp + 0x10]
call fcn.10008e16
add esp, 0xc
test eax, eax
je 0x10025b4c
push dword [ebx + edi - 4]
push dword [ebx + edi - 8]
push eax
call fcn.101613e0
add esp, 0xc
mov ebx, dword [esp + 0xc]
inc esi
add edi, 0xc
mov eax, dword [esp + 8]
cmp esi, dword [ebx + 0x9c]
jl 0x10025b0c
mov dword [ebx + 0x2ac], 0
mov edi, dword [esp + 4]
lea esi, [esp + 0x74]
push esi
push 1
push str.metadata
push edi
call fcn.100551bf
add esp, 0x10
mov eax, dword [esi]
test eax, eax
je 0x10025bc1
or byte [edi + 0x4bc], 1
lea ecx, [edi + 0x48c]
xor edi, edi
push edi
push eax
push ecx
call fcn.1004f5e6
add esp, 0xc
push esi
call sym.ffmpeg.dll_av_dict_free
add esp, 4
push 1
push edi
mov edi, dword [esp + 0xc]
push str.metadata
push edi
call fcn.10054c36
add esp, 0x10
mov ecx, edi
call fcn.100243de
mov ecx, dword [esp + 0x78]
xor ecx, ebp
call fcn.1015e65c
mov eax, dword [esp + 0x10]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
test esi, esi
mov dword [esp + 0x10], esi
jns 0x10025958
jmp 0x10025b6e