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

Disassembly:
push ebp
mov ebp, eax
push edi
mov edi, edx
push esi
push ebx
sub esp, 0xcc
mov eax, dword [eax + 8]
mov dword [esp + 0x6c], 0
mov dword [esp + 0x2c], eax
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
test edx, edx
je 0x1005797b
mov dword [esp + 8], 0
mov eax, dword [edx]
mov dword [esp + 4], eax
lea eax, [esp + 0x6c]
mov dword [esp], eax
call sub.avutil_59.dll_av_dict_copy
lea eax, [esp + 0x6c]
mov dword [esp], ebp
mov dword [esp + 4], eax
call sub.avutil_59.dll_av_opt_set_dict
mov ebx, eax
test eax, eax
js 0x10057ad6
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x100579ae
mov edx, dword [ebp + 8]
mov edx, dword [edx + 0x24]
test edx, edx
je 0x100579ae
cmp edx, dword [eax]
je 0x10057f80
mov ecx, dword [ebp + 0x30]
test ecx, ecx
je 0x10057fb0
mov edx, dword [ebp + 0x18]
test edx, edx
je 0x10057af0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], ebp
mov dword [esp + 0x5c], edi
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov eax, dword [eax + 0x1c]
mov ebx, dword [eax + ecx*4]
mov eax, dword [ebx + 0x14]
mov ebp, dword [ebx + 0xc]
test eax, eax
jne 0x10057a20
cmp dword [ebp], 1
jne 0x10057a00
mov eax, dword [ebp + 0x88]
test eax, eax
jne 0x10057fd0
mov dword [esp + 0xc], 0x15f90
mov dword [esp + 8], 1
mov dword [esp + 4], 0x21
mov dword [esp], ebx
call sym.avformat_61.dll_avpriv_set_pts_info
mov ecx, dword [ebp]
test ecx, ecx
je 0x10057d00
cmp ecx, 1
jne 0x10057c9a
mov eax, dword [ebp + 0x88]
test eax, eax
jle 0x10058122
mov eax, dword [ebp + 0x8c]
test eax, eax
je 0x10057c80
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + 0x2c]
test al, 0xc
jne 0x10057e50
mov edi, dword [ebx + 0xac]
xor esi, esi
test edi, edi
jg 0x10057a96
jmp 0x10057be0
mov eax, dword [eax]
mov edx, dword [edi]
add esi, 1
mov ecx, dword [edi + 4]
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
cmp dword [ebx + 0xac], esi
jle 0x10057be0
mov edx, dword [ebx + 0xa8]
lea eax, [esi + esi*2]
lea edi, [edx + eax*4]
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x10], 0
mov edx, dword [edi + 4]
mov dword [esp + 0xc], edx
mov edx, dword [edi + 8]
mov dword [esp + 8], edx
lea edx, [eax + 0x18]
add eax, 0x14
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.avcodec_61.dll_av_packet_side_data_new
test eax, eax
jne 0x10057a70
mov ebx, 0xfffffff4
lea eax, [esp + 0x6c]
mov dword [esp], eax
call sub.avutil_59.dll_av_dict_free
add esp, 0xcc
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x2c]
test byte [eax + 0x1d], 0x10
je 0x10057ff1
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + 0x3c]
mov dword [ebp + 0x168], eax
test eax, eax
je 0x10058103
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x10058070
test byte [ebp + 0x59], 4
jne 0x100580d8
lea ebx, [ebp + 0x90]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x10091fa4
mov dword [esp + 4], 0x10091fb1
mov dword [esp], ebx
call sub.avutil_59.dll_av_dict_set
xor esi, esi
jmp 0x10057b76
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov eax, dword [esi]
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.avutil_59.dll_av_dict_set
mov dword [esp + 8], esi
mov dword [esp + 0xc], 2
mov dword [esp + 4], str.encoder_
mov eax, dword [ebp + 0x90]
mov dword [esp], eax
call sub.avutil_59.dll_av_dict_get
mov esi, eax
test eax, eax
jne 0x10057b58
test edi, edi
je 0x10057bb0
mov dword [esp], edi
call sub.avutil_59.dll_av_dict_free
mov eax, dword [esp + 0x6c]
mov dword [edi], eax
mov esi, dword [esp + 0x2c]
xor ebx, ebx
mov eax, dword [esi + 0x54]
test eax, eax
je 0x10057ae2
mov dword [esp], ebp
call eax
mov ebx, eax
test eax, eax
js 0x10058143
sete bl
movzx ebx, bl
jmp 0x10057ae2
mov eax, dword [ebp + 4]
mov dword [esp], eax
call sub.avcodec_61.dll_avcodec_descriptor_get
test eax, eax
je 0x10057bff
test byte [eax + 0x10], 8
je 0x10057bff
mov dword [ebx + 0xc4], 1
mov eax, dword [ebp + 4]
mov dword [esp], eax
call fcn.10007250
mov dword [ebx + 0xe4], eax
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + 0x20]
test eax, eax
je 0x10057c45
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 4]
test ecx, ecx
je 0x10057ed0
cmp edx, 0xd
je 0x10058013
mov eax, dword [esp + 0x34]
mov edx, ebx
call fcn.10057840
test eax, eax
je 0x10058158
cmp dword [ebp], 4
je 0x10057c5f
cmp dword [ebp + 4], 0x1800b
je 0x10057c5f
mov eax, dword [esp + 0x34]
add dword [eax + 0x160], 1
mov ecx, dword [esp + 0x34]
add dword [esp + 0x30], 1
mov eax, dword [esp + 0x30]
cmp eax, dword [ecx + 0x18]
jb 0x100579d4
mov edi, dword [esp + 0x5c]
mov ebp, ecx
jmp 0x10057afe
mov eax, dword [ebp + 4]
mov esi, dword [ebp + 0x74]
mov dword [esp], eax
call sub.avcodec_61.dll_av_get_bits_per_sample
imul esi, eax
sar esi, 3
mov dword [ebp + 0x8c], esi
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + 0x2c]
test al, 0xc
je 0x10057a5f
mov ecx, dword [ebp]
cmp ecx, 3
jbe 0x10057f40
mov dword [esp], ecx
mov ebp, dword [esp + 0x34]
call sub.avutil_59.dll_av_get_media_type_string
mov edx, 0x10091e68
test eax, eax
je 0x10057f6a
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x10], edx
mov eax, dword [eax]
mov dword [esp + 8], str._s_muxer_does_not_support__s_stream_of_type__s_n
mov dword [esp + 4], 0x10
mov dword [esp + 0xc], eax
mov dword [esp], ebp
call sub.avutil_59.dll_av_log
jmp 0x10058009
mov eax, dword [ebp + 0x38]
test eax, eax
jle 0x10057e20
mov eax, dword [ebp + 0x3c]
test eax, eax
jle 0x10057e20
mov esi, dword [ebx + 0x44]
mov edi, dword [ebp + 0x44]
mov eax, dword [ebx + 0x40]
mov edx, dword [ebp + 0x40]
test esi, esi
mov dword [esp + 0x54], esi
setne byte [esp + 0x5a]
test edi, edi
setne byte [esp + 0x5b]
mov dword [esp + 0x44], eax
mov eax, edi
mov dword [esp + 0x40], edx
imul dword [esp + 0x44]
mov dword [esp + 0x50], edi
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x3c], edx
mov edi, dword [esp + 0x3c]
imul esi
mov esi, dword [esp + 0x38]
mov dword [esp + 0x4c], edx
mov edx, dword [esp + 0x4c]
xor esi, eax
mov dword [esp + 0x48], eax
xor edi, edx
or esi, edi
je 0x10057a50
mov edi, dword [esp + 0x44]
fild dword [esp + 0x54]
mov esi, dword [esp + 0x40]
mov dword [esp + 0x38], edi
fild dword [esp + 0x38]
movzx eax, byte [esp + 0x5a]
fdivrp st(1)
fstp qword [esp + 0x38]
fld qword [esp + 0x38]
fild dword [esp + 0x50]
mov dword [esp + 0x38], esi
fild dword [esp + 0x38]
fdivrp st(1)
fstp qword [esp + 0x38]
fld qword [esp + 0x38]
fsubr st(1)
fstp qword [esp + 0x38]
fld qword [esp + 0x38]
fabs
fld xword [0x100925c0]
fmulp st(2)
fcompi st(1)
fstp st(0)
seta dl
and al, byte [esp + 0x5b]
and eax, edx
test esi, esi
setne dl
test al, dl
je 0x10057a50
test edi, edi
je 0x10057a50
mov eax, dword [esp + 0x50]
mov ebp, dword [esp + 0x34]
mov dword [esp + 0x14], esi
mov dword [esp + 0xc], edi
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 8], str.Aspect_ratio_mismatch_between_muxer___d__d__and_encoder_layer___d__d__n
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x10
mov dword [esp], ebp
call sub.avutil_59.dll_av_log
jmp 0x10058009
mov eax, dword [esp + 0x2c]
test byte [eax + 0x1d], 8
jne 0x10057d16
mov ebp, dword [esp + 0x34]
mov dword [esp + 8], str.dimensions_not_set_n
mov dword [esp + 4], 0x10
mov dword [esp], ebp
call sub.avutil_59.dll_av_log
jmp 0x10058009
mov esi, dword [esp + ecx*4 + 0x70]
lea edx, [esi + 1]
mov esi, dword [ecx*4 + 0x100925b0]
mov dword [esp + ecx*4 + 0x70], edx
mov edi, dword [esp + 0x2c]
mov esi, dword [edi + esi]
test al, 8
jne 0x10057ee8
test esi, esi
je 0x10057cb5
test al, 4
je 0x10057a5f
cmp edx, 1
jbe 0x10057a5f
mov dword [esp], ecx
mov ebp, dword [esp + 0x34]
call sub.avutil_59.dll_av_get_media_type_string
test eax, eax
je 0x1005820f
mov edx, str.more_than_one
jmp 0x10057cce
mov eax, dword [esp + 0x34]
mov edx, ebx
call fcn.10057840
test eax, eax
jne 0x1005804c
mov eax, dword [esp + 0x2c]
mov edx, dword [ebp + 4]
mov dword [ebp + 8], 0
mov eax, dword [eax + 0x20]
lea esi, cs:[esi]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym.avformat_61.dll_av_codec_get_tag
mov dword [ebp + 8], eax
jmp 0x10057c45
test esi, esi
je 0x10057cb5
cmp dword [ebp + 4], esi
je 0x10057e75
mov dword [esp], ecx
mov ebp, dword [esp + 0x34]
call sub.avutil_59.dll_av_get_media_type_string
mov dword [esp], esi
mov ebx, eax
call sub.avcodec_61.dll_avcodec_get_name
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x2c]
mov eax, dword [eax]
mov dword [esp + 8], str._s_muxer_supports_only_codec__s_for_type__s_n
mov dword [esp + 4], 0x10
mov dword [esp + 0xc], eax
mov dword [esp], ebp
call sub.avutil_59.dll_av_log
jmp 0x10058009
mov esi, dword [esp + ecx*4 + 0x70]
lea edx, [esi + 1]
mov esi, dword [ecx*4 + 0x100925b0]
mov dword [esp + ecx*4 + 0x70], edx
test esi, esi
jne 0x10057e62
mov dword [esp], ecx
mov ebp, dword [esp + 0x34]
call sub.avutil_59.dll_av_get_media_type_string
test eax, eax
jne 0x10057f6f
mov eax, str.unknown
mov edx, 0x10091e68
jmp 0x10057cce
lea ecx, [esp + 0x6c]
mov dword [esp + 8], 1
mov dword [esp + 4], ecx
mov dword [esp], eax
call sub.avutil_59.dll_av_opt_set_dict2
mov ebx, eax
test eax, eax
jns 0x100579ae
jmp 0x10057ad6
mov dword [esp], 0x10091e7a
call sub.avutil_59.dll_av_strdup
mov dword [ebp + 0x30], eax
test eax, eax
jne 0x100579b9
jmp 0x10057ad1
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov dword [esp + 4], 0x40
mov dword [esp], ebx
call sym.avformat_61.dll_avpriv_set_pts_info
jmp 0x10057a20
mov dword [esp + 8], str.No_streams_to_mux_were_specified_n
mov dword [esp + 4], 0x10
mov dword [esp], ebp
call sub.avutil_59.dll_av_log
mov ebx, 0xffffffea
jmp 0x10057ad6
mov dword [esp + 4], 0xd
mov dword [esp], eax
call sym.avformat_61.dll_av_codec_get_tag
test eax, eax
je 0x10057ea4
mov eax, dword [ebp + 4]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + 0x20]
mov dword [esp], eax
call sym.avformat_61.dll_av_codec_get_tag
cmp eax, 0x20776172
je 0x10057ea4
mov edx, dword [ebp + 8]
test edx, edx
jne 0x10057c32
mov eax, dword [esp + 0x2c]
mov edx, dword [ebp + 4]
mov eax, dword [eax + 0x20]
jmp 0x10057ed0
mov esi, dword [esp + 0x2c]
mov eax, dword [esi + 0x28]
test eax, eax
jle 0x10057b1e
mov dword [esp], eax
call sub.avutil_59.dll_av_mallocz
mov dword [ebp + 0xc], eax
test eax, eax
je 0x10057ad1
mov edx, dword [esi + 0x24]
test edx, edx
je 0x10057b1e
mov dword [eax], edx
mov dword [esp], eax
call sub.avutil_59.dll_av_opt_set_defaults
lea eax, [esp + 0x6c]
mov dword [esp + 8], 1
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sub.avutil_59.dll_av_opt_set_dict2
mov ebx, eax
test eax, eax
jns 0x10057b1e
jmp 0x10057ad6
lea ebx, [ebp + 0x90]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x10091fb1
mov dword [esp], ebx
call sub.avutil_59.dll_av_dict_set
jmp 0x10057b4e
cmp dword [ebp + 0x160], 2
mov eax, 0x10057830
mov edx, 0x1005abe0
cmovge eax, edx
mov dword [ebp + 0x168], eax
jmp 0x10057b13
mov ebp, dword [esp + 0x34]
mov dword [esp + 8], str.sample_rate_not_set_n
mov dword [esp + 4], 0x10
mov dword [esp], ebp
call sub.avutil_59.dll_av_log
jmp 0x10058009
mov eax, dword [esi + 0x58]
test eax, eax
je 0x10057ae2
mov dword [esp], ebp
call eax
jmp 0x10057ae2
mov esi, ebp
mov ebp, dword [esp + 0x34]
mov eax, dword [esi + 4]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x20]
mov dword [esp], eax
call sym.avformat_61.dll_av_codec_get_tag
xor ecx, ecx
mov edx, eax
xor eax, eax
mov dword [esp + eax + 0xa0], ecx
mov dword [esp + eax + 0xa4], 0
add eax, 8
cmp eax, 0x20
jb 0x10058179
lea eax, [esp + 0xa0]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.avutil_59.dll_av_fourcc_make_string
xor ecx, ecx
mov ebx, eax
mov eax, esi
mov esi, dword [esi + 4]
mov edx, dword [eax + 8]
xor eax, eax
mov dword [esp + eax + 0x80], ecx
mov dword [esp + eax + 0x84], 0
add eax, 8
cmp eax, 0x20
jb 0x100581b4
lea eax, [esp + 0x80]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.avutil_59.dll_av_fourcc_make_string
mov dword [esp + 0x14], ebx
mov ebx, 0xbebbb1b7
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], eax
mov dword [esp + 8], str.Tag__s_incompatible_with_output_codec_id__d___s__n
mov dword [esp + 4], 0x10
mov dword [esp], ebp
call sub.avutil_59.dll_av_log
jmp 0x10057ad6
mov eax, str.unknown
jmp 0x10057e9a