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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x9c
mov ecx, dword [esp + 0xb0]
mov eax, dword [esp + 0xb0]
mov ebx, dword [esp + 0xb4]
mov edi, dword [ecx + 8]
mov eax, dword [eax + 0x40]
test edi, edi
mov esi, dword [eax + 0x18]
je 0x6faf3dc0
cmp edi, 1
je 0x6faf3d00
mov dword [esp + 0x14], 0x252
mov dword [esp + 0x10], 0x7063e200
mov dword [esp + 0xc], 0x7063e420
mov dword [esp + 8], 0x7063e264
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.avutil_54.dll_av_log
call sub.msvcrt.dll_abort
nop
mov dword [esp], ebx
call sub.avutil_54.dll_av_frame_get_channels
mov ebp, eax
mov eax, dword [ebx + 0x50]
mov dword [esp], eax
call sub.avutil_54.dll_av_sample_fmt_is_planar
test eax, eax
mov eax, dword [ebx + 0x50]
cmovne edi, ebp
cmp dword [esi + 0x10], eax
je 0x6faf3f50
mov dword [esp], esi
call sub.avutil_54.dll_av_buffer_pool_uninit
mov dword [esp + 0x10], 0
mov eax, dword [ebx + 0x50]
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 0x4c]
mov dword [esp + 4], ebp
mov dword [esp + 8], eax
lea eax, [esi + 0x3c]
mov dword [esp], eax
call sub.avutil_54.dll_av_samples_get_buffer_size
test eax, eax
js 0x6faf3f96
mov dword [esp + 4], 0
mov eax, dword [esi + 0x3c]
mov dword [esp], eax
call sub.avutil_54.dll_av_buffer_pool_init
test eax, eax
mov dword [esi], eax
je 0x6faf3f91
mov eax, dword [ebx + 0x50]
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], ebp
mov dword [esi + 0x10], eax
mov eax, dword [ebx + 0x4c]
mov dword [esi + 0x54], eax
mov eax, dword [esp + 0xb0]
mov eax, dword [eax + 8]
mov dword [ebx + 0x120], 1
test eax, eax
je 0x6faf436f
cmp eax, 1
je 0x6faf4000
mov eax, 0xffffffff
add esp, 0x9c
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [ebx + 0x50]
cmp dword [esi + 0x10], ecx
mov edx, dword [ebx + 0x44]
mov edi, dword [ebx + 0x48]
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], edi
jne 0x6faf4170
cmp edx, dword [esi + 0x14]
jne 0x6faf4170
cmp edi, dword [esi + 0x18]
jne 0x6faf4170
mov dword [ebx + 0x120], 1
mov edi, dword [ebx]
mov esi, dword [eax + 0x18]
test edi, edi
jne 0x6faf42c4
lea ecx, [ebx + 4]
mov eax, ebx
mov dword [ebx], 0
mov dword [ebx + 0x1c], 0
xor edi, edi
and ecx, 0xfffffffc
sub eax, ecx
add eax, 0x20
and eax, 0xfffffffc
mov dword [ecx + edi], 0
add edi, 4
cmp edi, eax
jb 0x6faf3e42
mov dword [ebx + 0x40], ebx
mov ebp, ebx
xor edi, edi
mov esi, esi
lea edi, [edi]
mov eax, dword [esi + edi*4]
test eax, eax
je 0x6faf3e95
mov edx, dword [esi + edi*4 + 0x3c]
mov dword [ebp + 0x20], edx
mov dword [esp], eax
call sub.avutil_54.dll_av_buffer_pool_get
test eax, eax
mov dword [ebp + 0x168], eax
je 0x6faf40b8
mov eax, dword [eax + 4]
add edi, 1
add ebp, 4
mov dword [ebp - 4], eax
cmp edi, 4
jne 0x6faf3e60
mov eax, edi
shl edi, 2
xor ebp, ebp
neg eax
lea edx, [eax*4 + 0x20]
lea eax, [ebx + edi]
lea ecx, [eax + 4]
mov dword [eax], 0
mov dword [edx + eax - 4], 0
and ecx, 0xfffffffc
sub eax, ecx
add eax, edx
and eax, 0xfffffffc
mov dword [ecx + ebp], 0
add ebp, 4
cmp ebp, eax
jb 0x6faf3ec3
lea eax, [ebx + edi + 0x20]
lea ecx, [eax + 4]
mov dword [eax], 0
mov dword [edx + eax - 4], 0
and ecx, 0xfffffffc
sub eax, ecx
add edx, eax
xor eax, eax
and edx, 0xfffffffc
mov dword [ecx + eax], 0
add eax, 4
cmp eax, edx
jb 0x6faf3ef2
mov eax, dword [ebx + 4]
test eax, eax
je 0x6faf3f12
mov esi, dword [ebx + 8]
test esi, esi
je 0x6faf4334
mov eax, dword [esp + 0xb0]
test byte [eax + 0x2b1], 0x80
je 0x6faf3f3e
mov dword [esp + 0xc], ebx
mov dword [esp + 8], str.default_get_buffer_called_on_pic__p_n
mov dword [esp + 4], 0x30
mov dword [esp], eax
call sub.avutil_54.dll_av_log
add esp, 0x9c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
cmp dword [esi + 0x4c], edi
jne 0x6faf3d26
cmp ebp, dword [esi + 0x50]
jne 0x6faf3d26
mov eax, dword [esi + 0x54]
cmp dword [ebx + 0x4c], eax
jne 0x6faf3d26
jmp 0x6faf3d8a
add eax, 0x2f
mov dword [esp + 4], sub.avutil_54.dll_av_buffer_allocz
mov dword [esp], eax
call sub.avutil_54.dll_av_buffer_pool_init
test eax, eax
mov dword [ebp], eax
jne 0x6faf42a2
mov eax, 0xfffffff4
mov dword [esp], esi
mov dword [esp + 0x2c], eax
call sub.avutil_54.dll_av_buffer_pool_uninit
lea edx, [esi + 4]
mov dword [esp], edx
call sub.avutil_54.dll_av_buffer_pool_uninit
lea edx, [esi + 8]
mov dword [esp], edx
call sub.avutil_54.dll_av_buffer_pool_uninit
lea edx, [esi + 0xc]
mov dword [esp], edx
call sub.avutil_54.dll_av_buffer_pool_uninit
mov dword [esi + 0x10], 0xffffffff
mov dword [esi + 0x54], 0
mov dword [esi + 0x50], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x14], 0
mov eax, dword [esp + 0x2c]
add esp, 0x9c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0xb0]
mov eax, dword [eax + 0x40]
mov esi, dword [eax + 0x18]
mov ebp, dword [esi + 0x4c]
mov eax, dword [esi + 0x3c]
cmp ebp, 8
mov dword [ebx + 0x20], eax
jle 0x6faf4070
xor eax, eax
cmp ebp, 0x1ffffffe
jle 0x6faf4320
sub ebp, 8
mov dword [ebx + 0x40], eax
cmp ebp, 0x1ffffffe
mov dword [ebx + 0x18c], ebp
jle 0x6faf42f0
mov dword [ebx + 0x188], 0
lea eax, [ebx + 0x40]
add ebx, 0x188
mov dword [esp], eax
call sub.avutil_54.dll_av_freep
mov dword [esp], ebx
call sub.avutil_54.dll_av_freep
mov eax, 0xfffffff4
jmp 0x6faf3db4
mov edx, dword [ebx + 0x18c]
mov dword [ebx + 0x40], ebx
test edx, edx
jne 0x6faf437e
test ebp, ebp
jle 0x6faf40d0
xor edi, edi
jmp 0x6faf40a3
mov edx, dword [ebx + 0x40]
mov eax, dword [eax + 4]
mov dword [ebx + edi*4], eax
mov dword [edx + edi*4], eax
add edi, 1
cmp edi, ebp
jge 0x6faf4110
mov eax, dword [esi]
mov dword [esp], eax
call sub.avutil_54.dll_av_buffer_pool_get
test eax, eax
mov dword [ebx + edi*4 + 0x168], eax
jne 0x6faf4090
mov dword [esp], ebx
call fcn.6fc60670
add esp, 0x9c
mov eax, 0xfffffff4
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0xb0]
test byte [eax + 0x2b1], 0x80
je 0x6faf3f3e
mov eax, dword [esp + 0xb0]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], str.default_get_buffer_called_on_frame__p
mov dword [esp + 4], 0x30
mov dword [esp], eax
call sub.avutil_54.dll_av_log
xor eax, eax
jmp 0x6faf3db4
mov eax, dword [ebx + 0x18c]
xor edi, edi
mov ebp, 0x20
test eax, eax
jg 0x6faf413a
jmp 0x6faf40d0
mov edx, dword [eax + 4]
mov eax, dword [ebx + 0x40]
add edi, 1
mov dword [eax + ebp], edx
add ebp, 4
cmp edi, dword [ebx + 0x18c]
jge 0x6faf40d0
mov eax, dword [ebx + 0x188]
lea edx, [eax + edi*4]
mov eax, dword [esi]
mov dword [esp + 0x2c], edx
mov dword [esp], eax
call sub.avutil_54.dll_av_buffer_pool_get
mov edx, dword [esp + 0x2c]
mov dword [edx], eax
mov eax, dword [ebx + 0x188]
mov eax, dword [eax + edi*4]
test eax, eax
jne 0x6faf4123
jmp 0x6faf40b8
lea eax, [esi + 0x1c]
mov dword [esp + 0xc], eax
lea eax, [esp + 0x3c]
mov dword [esp + 8], eax
lea eax, [esp + 0x38]
mov dword [esp + 4], eax
mov eax, dword [esp + 0xb0]
mov dword [esp], eax
call sym.avcodec_56.dll_avcodec_align_dimensions2
mov ebp, dword [esp + 0x38]
mov edi, dword [esp + 0xb0]
mov dword [esp + 8], ebp
mov eax, dword [edi + 0x8c]
mov dword [esp + 4], eax
lea eax, [esp + 0x70]
mov dword [esp], eax
call sub.avutil_54.dll_av_image_fill_linesizes
mov eax, dword [esp + 0x38]
mov ebp, eax
neg ebp
and ebp, eax
add ebp, eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x38], ebp
cdq
idiv dword [esi + 0x20]
mov eax, dword [esp + 0x70]
mov ecx, edx
cdq
idiv dword [esi + 0x1c]
mov eax, dword [esp + 0x78]
or ecx, edx
cdq
idiv dword [esi + 0x24]
mov eax, dword [esp + 0x7c]
or ecx, edx
cdq
idiv dword [esi + 0x28]
or ecx, edx
jne 0x6faf41a1
lea eax, [esp + 0x70]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0xb0]
mov eax, dword [eax + 0x8c]
mov dword [esp + 4], eax
lea eax, [esp + 0x50]
mov dword [esp], eax
call sub.avutil_54.dll_av_image_fill_pointers
test eax, eax
js 0x6faf3daf
mov edi, dword [esp + 0x54]
mov edx, dword [esp + 0x50]
test edi, edi
mov ebp, edx
je 0x6faf4352
mov ecx, edi
sub ecx, edx
mov edx, dword [esp + 0x58]
mov dword [esp + 0x40], ecx
test edx, edx
je 0x6faf4359
mov ecx, edx
sub ecx, edi
mov edi, dword [esp + 0x5c]
mov dword [esp + 0x44], ecx
test edi, edi
je 0x6faf4365
mov ecx, edi
sub ecx, edx
mov edx, edi
mov edi, 3
mov dword [esp + 0x48], ecx
sub ebp, edx
add eax, ebp
mov ebp, esi
mov dword [esp + edi*4 + 0x40], eax
xor edi, edi
mov dword [esp], ebp
call sub.avutil_54.dll_av_buffer_pool_uninit
mov eax, dword [esp + edi*4 + 0x70]
mov dword [ebp + 0x3c], eax
mov eax, dword [esp + edi*4 + 0x40]
test eax, eax
jne 0x6faf3f73
add edi, 1
add ebp, 4
cmp edi, 4
jne 0x6faf4287
mov eax, dword [ebx + 0x50]
mov dword [esi + 0x10], eax
mov eax, dword [ebx + 0x44]
mov dword [esi + 0x14], eax
mov eax, dword [ebx + 0x48]
mov dword [esi + 0x18], eax
jmp 0x6faf3d8a
mov eax, dword [esp + 0xb0]
mov dword [esp + 8], str.pic__data_0__NULL_in_avcodec_default_get_buffer_n
mov dword [esp + 4], 0x10
mov dword [esp], eax
call sub.avutil_54.dll_av_log
mov eax, 0xffffffff
jmp 0x6faf3db4
shl ebp, 2
mov dword [esp], ebp
call sub.avutil_54.dll_av_mallocz
test eax, eax
mov dword [ebx + 0x188], eax
je 0x6faf404b
mov ecx, dword [ebx + 0x40]
test ecx, ecx
je 0x6faf404b
mov ebp, 8
jmp 0x6faf4085
lea eax, [ebp*4]
mov dword [esp], eax
call sub.avutil_54.dll_av_mallocz
jmp 0x6faf4029
mov ecx, dword [esp + 0xb0]
mov edx, dword [ecx + 0x8c]
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.avutil_54.dll_avpriv_set_systematic_pal2
jmp 0x6faf3f12
xor edi, edi
jmp 0x6faf427b
mov edx, edi
mov edi, 1
jmp 0x6faf427b
mov edi, 2
jmp 0x6faf427b
mov eax, dword [esp + 0xb0]
mov eax, dword [eax + 0x40]
jmp 0x6faf3e16
mov dword [esp + 0x14], 0x272
mov dword [esp + 0x10], 0x7063e200
mov dword [esp + 0xc], str.frame__nb_extended_buf__0
jmp 0x6faf3cdd