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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0xd5c
mov dword [esp + 0x88], eax
mov dword [esp + 0x94], edx
mov dword [esp + 0xa0], ecx
lea eax, [esp + 0xccc]
mov dword [esp + 0x2c], eax
mov ecx, 0x19
xor eax, eax
mov edi, dword [esp + 0x2c]
rep stosd dword es:[edi], eax
mov eax, edx
shl eax, 4
mov dword [esp], eax
call sub.avutil_50.dll_av_mallocz
mov dword [esp + 0x78], eax
test eax, eax
je 0x407aca
mov dword [esp + 0x6c], 0
cmp dword [esp + 0x94], 0
jle 0x406456
mov edx, dword [esp + 0x94]
lea ecx, [edx*4]
xor eax, eax
mov esi, dword [esp + 0x78]
xor edx, edx
mov ebx, dword [eax + 0x41f1e0]
mov dword [esi + eax*4 + 4], edx
mov ebx, dword [ebx + 0x14]
mov dword [esi + eax*4 + 0xc], ebx
add edx, ebx
add eax, 4
cmp eax, ecx
jne 0x406438
mov dword [esp + 0x6c], edx
mov ecx, dword [esp + 0x6c]
lea eax, [ecx*4]
mov dword [esp], eax
call sub.avutil_50.dll_av_mallocz
mov dword [esp + 0x60], eax
test eax, eax
je 0x407aca
cmp dword [esp + 0x6c], 0
jle 0x40660a
xor ebx, ebx
mov esi, eax
jmp 0x406494
mov dword [esi + ebx*4], eax
inc ebx
cmp ebx, dword [esp + 0x6c]
jge 0x40660a
mov dword [esp], 0x78
call sub.avutil_50.dll_av_mallocz
test eax, eax
jne 0x406486
mov dword [esp], 0x41fe40
call sub.avutil_50.dll_av_freep
mov edi, dword [esp + 0x78]
mov dword [esp], edi
call sub.avutil_50.dll_av_free
mov dword [esp + 0x84], 0
mov dword [esp + 0x8c], 0
xor ebx, ebx
xor esi, esi
mov edi, dword [esp + 0x60]
mov eax, dword [edi + esi*4]
mov dword [esp], eax
call sub.avutil_50.dll_av_free
inc esi
cmp dword [esp + 0x6c], esi
jg 0x4064da
mov esi, dword [esp + 0x60]
mov dword [esp], esi
call sub.avutil_50.dll_av_free
cmp dword [esp + 0x8c], 0
je 0x4065fd
cmp dword [esp + 0x84], 0
jle 0x4065ee
xor edi, edi
mov ebp, dword [esp + 0x8c]
jmp 0x4065b5
mov eax, dword [esi + 0x164]
test eax, eax
je 0x40653e
mov dword [esp], eax
call sub.msvcrt.dll_fclose
mov dword [esi + 0x164], 0
mov eax, dword [esi + 0x160]
mov dword [esp], eax
call sub.avutil_50.dll_av_fifo_free
mov eax, dword [esi + 0xc]
mov eax, dword [eax + 8]
add eax, 0x3b8
mov dword [esp], eax
call sub.avutil_50.dll_av_freep
mov eax, dword [esi + 0x30]
mov dword [esp], eax
call sub.avutil_50.dll_av_free
mov eax, dword [esi + 0x138]
mov dword [esp], eax
call sub.avutil_50.dll_av_free
mov eax, dword [esi + 0x2c]
test eax, eax
jne 0x4065de
mov eax, dword [esi + 0x148]
test eax, eax
je 0x406591
mov dword [esp], eax
call sub.avcodec_52.dll_audio_resample_close
mov eax, dword [esi + 0x15c]
test eax, eax
je 0x4065a3
mov dword [esp], eax
call sub.avcodec_52.dll_av_audio_convert_free
mov dword [esp], esi
call sub.avutil_50.dll_av_free
inc edi
cmp edi, dword [esp + 0x84]
jge 0x4065ee
mov esi, dword [ebp + edi*4]
test esi, esi
je 0x4065ab
mov eax, dword [esi + 0xc]
mov edx, dword [eax + 0x44]
test edx, edx
je 0x406522
mov eax, dword [eax + 8]
add eax, 0x18
mov dword [esp], eax
call sub.avutil_50.dll_av_freep
jmp 0x406522
mov eax, dword [esi + 0x120]
mov dword [esp], eax
call sub.swscale_0.dll_sws_freeContext
jmp 0x40657f
mov edi, dword [esp + 0x8c]
mov dword [esp], edi
call sub.avutil_50.dll_av_free
mov eax, ebx
add esp, 0xd5c
pop ebx
pop esi
pop edi
pop ebp
ret
cmp dword [esp + 0x94], 0
jle 0x406679
xor ebp, ebp
xor ecx, ecx
mov edi, dword [ecx*4 + 0x41f1e0]
mov edx, dword [edi + 0x14]
test edx, edx
je 0x40666f
xor esi, esi
jmp 0x406632
inc esi
cmp dword [edi + 0x14], esi
jbe 0x40666f
mov eax, dword [esp + 0x60]
mov ebx, dword [eax + ebp*4]
inc ebp
mov eax, dword [edi + esi*4 + 0x18]
mov dword [ebx + 8], eax
mov dword [ebx], ecx
mov dword [ebx + 4], esi
mov dword [ebx + 0xc], 1
mov eax, dword [0x41f388]
test eax, eax
je 0x40662c
mov dword [esp + 0x30], ecx
call sub.avformat_52.dll_av_gettime
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x24], edx
mov ecx, dword [esp + 0x30]
inc esi
cmp dword [edi + 0x14], esi
ja 0x406632
inc ecx
cmp dword [esp + 0x94], ecx
jg 0x406618
cmp dword [esp + 0x88], 0
jle 0x406f5e
mov dword [esp + 0x84], 0
xor ebx, ebx
xor ecx, ecx
jmp 0x4066a8
add ecx, edx
inc ebx
cmp ebx, dword [esp + 0x88]
jge 0x406735
mov eax, dword [ebx*4 + 0x41f040]
mov edx, dword [eax + 0x14]
test edx, edx
jne 0x406698
mov esi, dword [eax + 8]
test byte [esi + 0x29], 0x10
jne 0x406698
mov dword [esp + 0x84], ecx
mov dword [esp + 0xc], 1
lea edx, [eax + 0x68]
mov dword [esp + 8], edx
mov dword [esp + 4], ebx
mov dword [esp], eax
call sub.avformat_52.dll_av_dump_format
mov dword [esp + 8], ebx
mov dword [esp + 4], str.Output_file__d_does_not_contain_any_stream_n
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call fcn.00401728
mov dword [esp + 0x8c], 0
mov ebx, 0xffffffea
mov dword [esp], 0x41fe40
call sub.avutil_50.dll_av_freep
mov esi, dword [esp + 0x78]
mov dword [esp], esi
call sub.avutil_50.dll_av_free
cmp dword [esp + 0x6c], 0
jg 0x4064d4
jmp 0x4064ec
mov dword [esp + 0x84], ecx
cmp dword [esp + 0xd70], 0
jle 0x40675a
mov edx, dword [esp + 0xd70]
cmp dword [esp + 0x84], edx
jne 0x407a88
mov eax, dword [esp + 0xa0]
xor esi, esi
mov edx, dword [esp + 0x78]
jmp 0x4067d0
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
test ebx, ebx
js 0x406a73
cmp dword [esp + 0x94], ebx
jle 0x406a73
test ecx, ecx
js 0x406a73
mov edi, ebx
shl edi, 4
cmp ecx, dword [edx + edi + 0xc]
jge 0x406a73
mov ebx, dword [eax + 8]
mov ecx, dword [eax + 0xc]
test ebx, ebx
js 0x407ab5
cmp dword [esp + 0x94], ebx
jle 0x407ab5
test ecx, ecx
js 0x407ab5
add eax, 0x10
mov edi, ebx
shl edi, 4
cmp ecx, dword [edx + edi + 0xc]
jge 0x407ab5
inc esi
cmp dword [esp + 0xd70], esi
jg 0x406769
mov ecx, dword [esp + 0x84]
lea eax, [ecx*4]
mov dword [esp], eax
call sub.avutil_50.dll_av_mallocz
mov dword [esp + 0x8c], eax
mov dword [esp + 0x7c], eax
test eax, eax
je 0x40814f
cmp dword [esp + 0x88], 0
jle 0x406c43
mov dword [esp + 0x70], 0
mov dword [esp + 0x80], 0
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp + 0x98], eax
mov dword [esp + 0xa4], eax
mov ebx, dword [esp + 0x80]
mov ebx, dword [ebx*4 + 0x41f040]
mov dword [esp + 0x74], ebx
mov esi, dword [ebx + 0x14]
test esi, esi
je 0x406c28
mov eax, dword [esp + 0x70]
shl eax, 4
mov esi, dword [esp + 0xa0]
lea eax, [esi + eax + 8]
mov dword [esp + 0x68], eax
xor eax, eax
mov dword [esp + 0x64], 0
jmp 0x406965
mov esi, eax
mov ebp, dword [esp + 0x68]
mov edx, dword [ebp - 8]
shl edx, 4
mov eax, dword [ebp - 4]
mov ebx, dword [esp + 0x78]
add eax, dword [ebx + edx + 4]
mov dword [esi + 8], eax
mov edi, dword [esp + 0x60]
mov eax, dword [edi + eax*4]
mov edx, dword [eax + 8]
mov edx, dword [edx + 8]
mov ecx, dword [ecx + 8]
mov ebp, dword [ecx + 0xdc]
cmp dword [edx + 0xdc], ebp
je 0x40691e
mov edx, dword [esi]
mov eax, dword [edx*4 + 0x41f040]
mov dword [esp + 0xc], 1
lea ecx, [eax + 0x68]
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.avformat_52.dll_av_dump_format
mov eax, dword [esi + 4]
mov dword [esp + 0x14], eax
mov eax, dword [esi]
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x68]
mov eax, dword [edx - 4]
mov dword [esp + 0xc], eax
mov eax, dword [edx - 8]
mov dword [esp + 8], eax
mov dword [esp + 4], str.Codec_type_mismatch_for_mapping__d._d_____d._d_n
mov ecx, dword [esp + 0x98]
mov dword [esp], ecx
call fcn.00401728
mov eax, 1
call fcn.00401af4
mov eax, dword [esi + 8]
mov eax, dword [edi + eax*4]
mov dword [eax + 0xc], 0
mov edi, dword [esp + 0x68]
mov edx, dword [edi]
shl edx, 4
mov eax, dword [edi + 4]
mov ebp, dword [esp + 0x78]
add eax, dword [ebp + edx + 4]
mov edx, dword [esp + 0x60]
mov eax, dword [edx + eax*4]
mov ecx, dword [esp + 0x5c]
mov dword [ecx + 0x18], eax
inc dword [esp + 0x64]
inc dword [esp + 0x70]
mov eax, dword [esp + 0x64]
add dword [esp + 0x68], 0x10
mov ebx, dword [esp + 0x74]
cmp dword [ebx + 0x14], eax
jbe 0x406c28
mov edi, dword [esp + 0x80]
mov edx, dword [edi*4 + 0x41f600]
mov eax, dword [edx + eax*4]
mov dword [esp + 0x5c], eax
mov ebp, dword [esp + 0x70]
mov edx, dword [esp + 0x7c]
mov dword [edx + ebp*4], eax
mov ebx, dword [esp + 0x64]
mov esi, dword [esp + 0x74]
mov ecx, dword [esi + ebx*4 + 0x18]
mov dword [eax + 0xc], ecx
mov ebx, dword [esp + 0xd70]
test ebx, ebx
jg 0x40687c
mov edx, dword [esp + 0x6c]
test edx, edx
jle 0x406b58
mov ebx, dword [0x41f3a4]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x90], 0
mov dword [esp + 0x9c], 0xffffffff
mov dword [esp + 0x4c], 0
nop
mov esi, dword [esp + 0x4c]
mov edi, dword [esp + 0x60]
mov esi, dword [edi + esi*4]
mov dword [esp + 0x48], esi
mov eax, dword [esp + 0x34]
test eax, eax
je 0x406b24
mov eax, dword [esi]
mov esi, dword [eax*4 + 0x41f1e0]
mov edi, dword [esi + 0xf40]
mov dword [esp + 0x38], edi
test edi, edi
je 0x406aa8
mov ebp, dword [esi + 0xf44]
mov dword [esp + 0x44], ebp
mov dword [esp + 0x50], 1
xor eax, eax
xor ecx, ecx
jmp 0x406a31
inc ecx
mov eax, ecx
cmp ecx, dword [esp + 0x38]
je 0x406ab0
mov edx, dword [esp + 0x44]
mov eax, dword [edx + eax*4]
mov ebx, dword [esp + 0x34]
cmp dword [eax], ebx
jne 0x406a28
mov ebx, dword [eax + 0x18]
test ebx, ebx
je 0x406a28
mov ebp, dword [eax + 0x14]
mov eax, dword [esp + 0x48]
mov edi, dword [eax + 8]
xor edx, edx
xor eax, eax
jmp 0x406a5f
inc eax
mov edx, eax
cmp eax, ebx
je 0x406a28
mov edx, dword [ebp + edx*4]
cmp dword [esi + edx*4 + 0x18], edi
jne 0x406a58
mov dword [esp + 0x50], 0
jmp 0x406a58
mov dword [esp + 0xc], ecx
mov dword [esp + 8], ebx
mov dword [esp + 4], str.Could_not_find_input_stream__d._d_n
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call fcn.00401728
mov dword [esp + 0x8c], 0
mov ebx, 0xffffffea
jmp 0x40670d
mov dword [esp + 0x50], 1
mov edx, dword [esp + 0x48]
mov ebp, dword [edx + 0xc]
test ebp, ebp
je 0x406ae8
mov eax, dword [edx + 8]
cmp dword [eax + 0x48], 0x30
je 0x406ae8
mov edi, dword [esp + 0x50]
test edi, edi
jne 0x406ae8
mov ecx, dword [eax + 8]
mov ebx, dword [esp + 0x5c]
mov edx, dword [ebx + 0xc]
mov edx, dword [edx + 8]
mov esi, dword [edx + 0xdc]
cmp dword [ecx + 0xdc], esi
je 0x406b2e
nop
inc dword [esp + 0x4c]
mov ebp, dword [esp + 0x6c]
cmp dword [esp + 0x4c], ebp
jne 0x4069d8
mov esi, dword [esp + 0x90]
test esi, esi
je 0x406b62
mov ebp, dword [esp + 0x5c]
mov eax, dword [ebp + 8]
mov edx, dword [esp + 0x60]
mov eax, dword [edx + eax*4]
mov dword [eax + 0xc], 0
mov ecx, ebp
jmp 0x406944
mov dword [esp + 0x50], 0
jmp 0x406ab0
mov eax, dword [eax + 0x1d8]
cmp eax, dword [esp + 0x9c]
jle 0x406ae8
mov edi, dword [esp + 0x4c]
mov dword [ebx + 8], edi
mov dword [esp + 0x9c], eax
mov dword [esp + 0x90], 1
jmp 0x406ae8
mov edi, dword [0x41f3a4]
mov dword [esp + 0x34], edi
mov ebx, dword [esp + 0x34]
test ebx, ebx
je 0x406bc5
mov ebx, dword [esp + 0x5c]
mov eax, dword [ebx]
mov ecx, dword [eax*4 + 0x41f040]
mov dword [esp + 0xc], 1
lea edx, [ecx + 0x68]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [esp], ecx
call sub.avformat_52.dll_av_dump_format
mov eax, dword [ebx + 4]
mov dword [esp + 0xc], eax
mov eax, dword [ebx]
mov dword [esp + 8], eax
mov dword [esp + 4], str.Could_not_find_input_stream_matching_output_stream__d._d_n
mov esi, dword [esp + 0xa4]
mov dword [esp], esi
call fcn.00401728
mov eax, 1
call fcn.00401af4
jmp 0x406b05
mov ecx, dword [esp + 0x6c]
test ecx, ecx
jle 0x406b6a
mov edx, dword [esp + 0x5c]
mov eax, dword [edx + 0xc]
mov eax, dword [eax + 8]
mov ebx, dword [eax + 0xdc]
xor esi, esi
xor eax, eax
mov edi, dword [esp + 0x6c]
mov ebp, dword [esp + 0x60]
jmp 0x406bf1
inc eax
cmp eax, edi
je 0x406c1a
mov edx, dword [ebp + eax*4]
mov edx, dword [edx + 8]
mov ecx, dword [edx + 8]
cmp dword [ecx + 0xdc], ebx
jne 0x406bec
cmp dword [edx + 0x48], 0x30
je 0x406bec
mov ecx, dword [esp + 0x5c]
mov dword [ecx + 8], eax
mov esi, 1
inc eax
cmp eax, edi
jne 0x406bf1
test esi, esi
jne 0x406b05
jmp 0x406b6a
inc dword [esp + 0x80]
mov esi, dword [esp + 0x80]
cmp dword [esp + 0x88], esi
jg 0x406839
mov dword [esp + 0x38], 0
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov ebp, dword [esp + 0x84]
cmp dword [esp + 0x38], ebp
jge 0x406f6e
mov edi, dword [esp + 0x38]
mov ebp, dword [esp + 0x7c]
mov esi, dword [ebp + edi*4]
mov eax, dword [esi]
mov edx, dword [eax*4 + 0x41f040]
mov eax, dword [esi + 8]
mov ecx, dword [esp + 0x60]
mov eax, dword [ecx + eax*4]
mov dword [esp + 0x34], eax
mov ecx, dword [esi + 0xc]
mov ebp, dword [ecx + 8]
mov eax, dword [eax + 8]
mov ebx, dword [eax + 8]
cmp dword [0x41905c], 0
je 0x406cd6
mov dword [esp + 8], 0x10
mov eax, dword [eax + 0x170]
mov dword [esp + 4], eax
add ecx, 0x170
mov dword [esp], ecx
mov dword [esp + 0x30], edx
call sub.avformat_52.dll_av_metadata_copy
mov ecx, dword [esi + 0xc]
mov edi, dword [esp + 0x34]
mov eax, dword [edi + 8]
mov edx, dword [esp + 0x30]
mov edi, dword [eax + 0xcc]
mov dword [ecx + 0xcc], edi
mov edi, dword [ebx + 0x348]
mov dword [ebp + 0x348], edi
mov edi, dword [ebx + 0x384]
mov dword [ebp + 0x384], edi
cmp dword [ecx + 0x44], 0
je 0x407b08
mov esi, dword [ebx + 0x1c]
mov edi, esi
sar edi, 0x1f
add esi, 8
adc edi, 0
cmp edi, 0
ja 0x40814f
cmp esi, 0x7fffffff
ja 0x40814f
mov eax, dword [ebx + 0xe0]
mov dword [ebp + 0xe0], eax
mov eax, dword [ebx + 0xdc]
mov dword [ebp + 0xdc], eax
cmp dword [ebp + 0xe4], 0
jne 0x406d9c
mov eax, dword [edx + 8]
mov eax, dword [eax + 0x34]
test eax, eax
je 0x406d90
mov ecx, dword [ebx + 0xe4]
mov dword [esp + 4], ecx
mov dword [esp], eax
mov dword [esp + 0x30], edx
call sub.avformat_52.dll_av_codec_get_id
cmp eax, dword [ebp + 0xe0]
mov edx, dword [esp + 0x30]
je 0x406d90
mov eax, dword [ebx + 0xe0]
mov dword [esp + 4], eax
mov eax, dword [edx + 8]
mov eax, dword [eax + 0x34]
mov dword [esp], eax
call sub.avformat_52.dll_av_codec_get_tag
test eax, eax
jne 0x406d9c
mov eax, dword [ebx + 0xe4]
mov dword [ebp + 0xe4], eax
mov eax, dword [ebx + 4]
mov dword [ebp + 4], eax
mov eax, dword [ebx + 0x138]
mov dword [ebp + 0x138], eax
mov eax, dword [ebx + 0x140]
mov dword [ebp + 0x140], eax
mov dword [esp], esi
call sub.avutil_50.dll_av_mallocz
mov dword [ebp + 0x18], eax
test eax, eax
je 0x40814f
mov esi, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x1c]
mov edi, eax
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 0x1c]
mov dword [ebp + 0x1c], eax
cmp dword [0x41f39c], 0
jne 0x406e4a
mov edx, dword [ebx + 0x36c]
mov ecx, dword [esp + 0x34]
mov eax, dword [ecx + 8]
fild dword [eax + 0x3c]
fidivr dword [eax + 0x38]
fstp qword [esp + 0xb8]
fld qword [esp + 0xb8]
fild dword [ebx + 0x24]
fidivr dword [ebx + 0x20]
fstp qword [esp + 0xb8]
fld qword [esp + 0xb8]
mov dword [esp + 0xa8], edx
fild dword [esp + 0xa8]
fmulp st(1)
fucomp st(1)
fnstsw ax
test ah, 0x45
jne 0x406e48
fld xword [0x41c680]
fucompp
fnstsw ax
test ah, 0x45
jne 0x406e4a
jmp 0x4080fc
fstp st(0)
mov edx, dword [esp + 0x34]
mov eax, dword [edx + 8]
mov edx, dword [eax + 0x3c]
mov eax, dword [eax + 0x38]
mov dword [ebp + 0x20], eax
mov dword [ebp + 0x24], edx
mov eax, dword [ebp + 0xdc]
cmp eax, 1
je 0x406ed4
cmp eax, 3
je 0x406ec6
test eax, eax
jne 0x406ec1
mov eax, dword [ebx + 0x34]
mov dword [ebp + 0x34], eax
mov eax, dword [ebx + 0x28]
mov dword [ebp + 0x28], eax
mov eax, dword [ebx + 0x2c]
mov dword [ebp + 0x2c], eax
mov eax, dword [ebx + 0x108]
mov dword [ebp + 0x108], eax
cmp dword [ebp + 0xdc], 0
jne 0x406eb8
mov eax, dword [ebp + 0x28]
imul eax, dword [ebp + 0x2c]
imul eax, eax, 6
mov edx, dword [0x419064]
add eax, 0xc8
cmp eax, edx
jge 0x406eb3
mov eax, edx
mov dword [0x419064], eax
inc dword [esp + 0x38]
jmp 0x406c5b
call sub.msvcrt.dll_abort
mov eax, dword [ebx + 0x28]
mov dword [ebp + 0x28], eax
mov eax, dword [ebx + 0x2c]
mov dword [ebp + 0x2c], eax
jmp 0x406e8f
cmp dword [0x419028], 0x100
je 0x406f02
mov dword [esp + 4], str._acodec_copy_and__vol_are_incompatible__frames_are_not_decoded__n
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call fcn.00401728
mov eax, 1
call fcn.00401af4
mov eax, dword [ebx + 0x350]
mov edx, dword [ebx + 0x354]
mov dword [ebp + 0x350], eax
mov dword [ebp + 0x354], edx
mov eax, dword [ebx + 0x40]
mov dword [ebp + 0x40], eax
mov eax, dword [ebx + 0x44]
mov dword [ebp + 0x44], eax
mov eax, dword [ebx + 0x4c]
mov dword [ebp + 0x4c], eax
mov eax, dword [ebx + 0x10c]
mov dword [ebp + 0x10c], eax
dec eax
je 0x407ae9
cmp dword [ebp + 0xe0], 0x15003
jne 0x406e8f
mov dword [ebp + 0x10c], 0
jmp 0x406e8f
mov dword [esp + 0x84], 0
jmp 0x40673c
cmp dword [0x41fe40], 0
je 0x408356
mov dword [esp + 0x34], 0
mov edi, dword [esp + 0x84]
cmp dword [esp + 0x34], edi
jge 0x40818d
mov edx, dword [esp + 0x34]
lea eax, [edx*4]
mov ecx, dword [esp + 0x7c]
mov ebx, dword [ecx + edx*4]
cmp dword [ebx + 0x10], 0
je 0x40706a
cmp edx, dword [0x41f424]
jge 0x4070dd
mov edx, dword [0x41f428]
mov edx, dword [edx + eax]
mov eax, dword [ebx + 8]
mov esi, dword [esp + 0x60]
mov eax, dword [esi + eax*4]
mov eax, dword [eax + 8]
mov ebp, dword [eax + 8]
test edx, edx
je 0x4070ed
cmp dword [ebp + 0x3b8], 0
je 0x40703e
mov eax, dword [ebx + 0xc]
mov esi, dword [eax + 8]
mov eax, dword [ebp + 0x3bc]
mov dword [esp], eax
mov dword [esp + 0x30], edx
call sub.avutil_50.dll_av_malloc
mov dword [esi + 0x3b8], eax
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x3b8]
test eax, eax
mov edx, dword [esp + 0x30]
je 0x408156
mov esi, dword [ebp + 0x3b8]
mov ecx, dword [ebp + 0x3bc]
mov edi, eax
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + 8]
mov ecx, dword [ebp + 0x3bc]
mov dword [eax + 0x3bc], ecx
mov dword [esp + 4], edx
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + 8]
mov dword [esp], eax
call sub.avcodec_52.dll_avcodec_open
test eax, eax
js 0x407073
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x1c]
cdq
add dword [0x41fe48], eax
adc dword [0x41fe4c], edx
inc dword [esp + 0x34]
jmp 0x406f83
mov eax, dword [ebx + 4]
mov dword [esp + 0x10], eax
mov eax, dword [ebx]
mov dword [esp + 0xc], eax
mov dword [esp + 8], str.Error_while_opening_encoder_for_output_stream__d._d___maybe_incorrect_parameters_such_as_bit_rate__rate__width_or_height
mov dword [esp + 4], 0x400
lea eax, [esp + 0x8cc]
mov dword [esp], eax
call fcn.00410500
mov esi, 1
mov ebx, 0xffffffea
xor edi, edi
cmp dword [esp + 0x88], edi
jle 0x407156
mov eax, dword [edi*4 + 0x41f040]
mov dword [esp + 0xc], 1
lea edx, [eax + 0x68]
mov dword [esp + 8], edx
mov dword [esp + 4], edi
mov dword [esp], eax
call sub.avformat_52.dll_av_dump_format
inc edi
jmp 0x4070ab
mov eax, dword [ebx + 8]
mov ecx, dword [esp + 0x60]
mov eax, dword [ecx + eax*4]
mov eax, dword [eax + 8]
mov ebp, dword [eax + 8]
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + 8]
mov eax, dword [eax + 0xe0]
mov dword [esp], eax
call sub.avcodec_52.dll_avcodec_find_encoder
mov edx, eax
test eax, eax
jne 0x406fdd
mov eax, dword [ebx + 4]
mov dword [esp + 0x14], eax
mov eax, dword [ebx]
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + 8]
mov eax, dword [eax + 0xe0]
mov dword [esp + 0xc], eax
mov dword [esp + 8], str.Encoder__codec_id__d__not_found_for_output_stream__d._d
mov dword [esp + 4], 0x400
lea eax, [esp + 0x8cc]
mov dword [esp], eax
call fcn.00410500
mov esi, 1
mov ebx, 0xffffffea
jmp 0x4070a9
cmp dword [0x41904c], 0
js 0x407219
mov ebp, dword [sym.imp.msvcrt.dll__iob]
add ebp, 0x40
mov dword [esp + 4], str.Stream_mapping:_n
mov dword [esp], ebp
call fcn.00401728
mov dword [esp + 0x34], 0
mov edi, dword [esp + 0x84]
cmp dword [esp + 0x34], edi
jge 0x407219
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x7c]
mov edi, dword [ecx + edx*4]
mov eax, dword [edi + 8]
mov edx, dword [esp + 0x60]
mov eax, dword [edx + eax*4]
mov edx, dword [edi + 4]
mov dword [esp + 0x14], edx
mov edx, dword [edi]
mov dword [esp + 0x10], edx
mov edx, dword [eax + 4]
mov dword [esp + 0xc], edx
mov eax, dword [eax]
mov dword [esp + 8], eax
mov dword [esp + 4], str.__Stream__d._d_____d._d
mov dword [esp], ebp
call fcn.00401728
mov eax, dword [edi + 0x18]
mov edx, dword [edi + 8]
mov ecx, dword [esp + 0x60]
cmp eax, dword [ecx + edx*4]
je 0x407200
mov edx, dword [eax + 4]
mov dword [esp + 0xc], edx
mov eax, dword [eax]
mov dword [esp + 8], eax
mov dword [esp + 4], str.__sync__d._d_
mov dword [esp], ebp
call fcn.00401728
mov dword [esp + 4], 0x419959
mov dword [esp], ebp
call fcn.00401728
inc dword [esp + 0x34]
jmp 0x407184
test ebx, ebx
jne 0x408165
test esi, esi
je 0x40726f
mov dword [esp + 0xc], 0x800
lea esi, [esp + 0xc8]
mov dword [esp + 8], esi
mov ebp, dword [esp + 0x88]
mov dword [esp + 4], ebp
mov dword [esp], 0x41f040
call sub.avformat_52.dll_avf_sdp_create
mov dword [esp + 4], esi
mov dword [esp], str.SDP:_n_s_n
call fcn.00401ad8
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x20
mov dword [esp], eax
call sub.msvcrt.dll_fflush
cmp dword [0x41fb14], 0
jne 0x4072a5
cmp dword [0x41904c], 0
js 0x4072a5
mov dword [esp + 4], str.Press__q__to_stop_encoding_n
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call fcn.00401728
mov dword [esp], 0x40895c
call sub.avformat_52.dll_url_set_interrupt_cb
mov dword [esp + 4], 0x4088c0
mov dword [esp], 2
call sub.msvcrt.dll_signal
mov dword [esp + 4], 0x4088c0
mov dword [esp], 0xf
call sub.msvcrt.dll_signal
call sub.avformat_52.dll_av_gettime
mov dword [0x41fe50], eax
mov dword [0x41fe54], edx
xor esi, esi
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp + 0x4c], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x34], ebx
mov eax, dword [0x41fe5c]
test eax, eax
jne 0x40866e
cmp dword [0x41fb14], 0
jne 0x407323
cmp dword [0x41fe58], 0
jne 0x40866e
call sub.msvcrt.dll__kbhit
test eax, eax
jne 0x408799
mov eax, dword [0x41f3f0]
mov dword [esp + 0x44], eax
fld qword [0x41c670]
fld st(0)
or ebp, 0xffffffff
xor edi, edi
mov dword [esp + 0x74], edi
mov dword [esp + 0x48], esi
jmp 0x40746b
mov edx, dword [esp + 0x74]
mov ebx, dword [esp + 0x7c]
mov ecx, dword [ebx + edx*4]
mov eax, dword [ecx + 8]
mov esi, dword [esp + 0x60]
mov eax, dword [esi + eax*4]
cmp dword [eax + 0x60], 0
jne 0x407467
mov edi, dword [eax]
mov dword [esp + 0x38], edi
cmp byte [esp + edi + 0xccc], 0
jne 0x407467
mov edx, dword [ecx + 0xc]
mov ebx, dword [edx + 0x20]
mov esi, dword [edx + 0x24]
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], esi
mov esi, dword [edx + 0x38]
mov dword [esp + 0x5c], esi
mov edi, dword [edx + 0x3c]
mov dword [esp + 0x64], edi
mov ebx, dword [eax + 0x30]
mov esi, dword [eax + 0x34]
mov eax, dword [esp + 0x38]
shl eax, 4
fld st(0)
mov edi, dword [esp + 0x78]
cmp dword [edi + eax], 0
jne 0x407448
fstp st(0)
mov dword [esp + 0xb0], ebx
mov dword [esp + 0xb4], esi
fild qword [esp + 0xb0]
fstp qword [esp + 0xb8]
fld qword [esp + 0xb8]
fxch st(1)
fucom st(1)
fnstsw ax
test ah, 0x45
jne 0x407a81
fstp st(0)
cmp dword [esp + 0x44], 0
je 0x4073f6
mov ebp, dword [esp + 0x38]
fild qword [esp + 0x50]
fstp qword [esp + 0xb8]
fld qword [esp + 0xb8]
fild dword [esp + 0x64]
fidivr dword [esp + 0x5c]
fstp qword [esp + 0xb8]
fld qword [esp + 0xb8]
fmulp st(1)
fstp qword [esp + 0xb8]
fld qword [esp + 0xb8]
fxch st(2)
fucom st(2)
fnstsw ax
test ah, 0x45
jne 0x40744c
fstp st(0)
cmp dword [esp + 0x44], 0
je 0x407a78
jmp 0x40744e
fstp st(1)
jmp 0x40744e
fstp st(2)
mov eax, dword [edx + 8]
mov eax, dword [eax + 0xdc]
mov edx, dword [eax*4 + section..data]
cmp dword [ecx + 0x14], edx
jge 0x408769
inc dword [esp + 0x74]
mov ecx, dword [esp + 0x84]
cmp dword [esp + 0x74], ecx
jl 0x407346
fstp st(0)
fstp st(0)
mov esi, dword [esp + 0x48]
test ebp, ebp
js 0x408771
mov eax, dword [0x41f37c]
or eax, dword [0x41f378]
je 0x4074db
mov dword [esp + 0xc], 1
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov eax, dword [0x41f040]
mov eax, dword [eax + 0x10]
mov dword [esp], eax
call sub.avformat_52.dll_avio_seek
cmp edx, dword [0x41f37c]
ja 0x40866e
jb 0x4074db
cmp eax, dword [0x41f378]
jae 0x40866e
mov ebx, dword [ebp*4 + 0x41f1e0]
mov dword [esp + 0x44], ebx
lea edi, [esp + 0xc8]
mov dword [esp + 4], edi
mov dword [esp], ebx
call sub.avformat_52.dll_av_read_frame
cmp eax, 0xfffffff5
je 0x40872d
test eax, eax
js 0x408653
mov ecx, 0x19
xor eax, eax
mov edi, dword [esp + 0x2c]
rep stosd dword es:[edi], eax
cmp dword [0x41f380], 0
je 0x40755b
mov eax, dword [esp + 0xe0]
mov edx, dword [esp + 0x44]
mov eax, dword [edx + eax*4 + 0x18]
mov dword [esp + 0x10], eax
mov eax, dword [0x41f384]
mov dword [esp + 0xc], eax
lea ecx, [esp + 0xc8]
mov dword [esp + 8], ecx
mov dword [esp + 4], 0x30
mov dword [esp], 0
call sub.avformat_52.dll_av_pkt_dump_log2
mov ebx, dword [esp + 0xe0]
mov dword [esp + 0x38], ebx
mov eax, ebp
shl eax, 4
add eax, dword [esp + 0x78]
cmp ebx, dword [eax + 0xc]
jge 0x408705
add ebx, dword [eax + 4]
mov dword [esp + 0x48], ebx
mov edi, dword [esp + 0x60]
mov ebx, dword [edi + ebx*4]
cmp dword [ebx + 0xc], 0
jne 0x408705
mov esi, dword [esp + 0xd0]
mov edi, dword [esp + 0xd4]
lea eax, [edi - 0x80000000]
or eax, esi
je 0x4075f7
mov eax, dword [ebx + 8]
mov edx, dword [eax + 0x3c]
mov eax, dword [eax + 0x38]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
mov dword [esp + 8], 1
mov dword [esp + 0xc], 0xf4240
mov eax, dword [ebx]
mov edx, dword [eax*8 + 0x41fb24]
mov eax, dword [eax*8 + 0x41fb20]
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.avutil_50.dll_av_rescale_q
add eax, esi
adc edx, edi
mov dword [esp + 0xd0], eax
mov dword [esp + 0xd4], edx
mov esi, dword [esp + 0xc8]
mov edi, dword [esp + 0xcc]
lea eax, [edi - 0x80000000]
xor edx, edx
mov ecx, 0x80000000
or eax, esi
je 0x407669
mov eax, dword [ebx + 8]
mov edx, dword [eax + 0x3c]
mov eax, dword [eax + 0x38]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
mov dword [esp + 8], 1
mov dword [esp + 0xc], 0xf4240
mov eax, dword [ebx]
mov edx, dword [eax*8 + 0x41fb24]
mov eax, dword [eax*8 + 0x41fb20]
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.avutil_50.dll_av_rescale_q
mov ecx, edx
mov edx, eax
add edx, esi
adc ecx, edi
mov dword [esp + 0xc8], edx
mov dword [esp + 0xcc], ecx
mov eax, dword [esp + 0x38]
cmp eax, dword [ebp*4 + 0x41f7c0]
jge 0x40778a
mov eax, dword [ebp*4 + 0x41f960]
mov esi, dword [esp + 0x38]
fld qword [eax + esi*8]
fldz
fxch st(1)
fucom st(1)
fnstsw ax
fstp st(1)
and ah, 0x45
cmp ah, 0x40
je 0x407788
lea eax, [ecx - 0x80000000]
or eax, edx
je 0x407709
mov dword [esp + 0xb0], edx
mov dword [esp + 0xb4], ecx
fild qword [esp + 0xb0]
fstp qword [esp + 0xb8]
fld qword [esp + 0xb8]
fmul st(1)
fstp qword [esp + 0xb8]
fld qword [esp + 0xb8]
fnstcw word [esp + 0xae]
mov ax, word [esp + 0xae]
mov ah, 0xc
mov word [esp + 0xac], ax
fldcw word [esp + 0xac]
fistp qword [esp + 0xc8]
fldcw word [esp + 0xae]
mov eax, dword [esp + 0xd0]
mov edx, dword [esp + 0xd4]
lea ecx, [edx - 0x80000000]
or ecx, eax
je 0x407989
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], edx
fild qword [esp + 0xb0]
fstp qword [esp + 0xb8]
fld qword [esp + 0xb8]
fmulp st(1)
fstp qword [esp + 0xb8]
fld qword [esp + 0xb8]
fnstcw word [esp + 0xae]
mov ax, word [esp + 0xae]
mov ah, 0xc
mov word [esp + 0xac], ax
fldcw word [esp + 0xac]
fistp qword [esp + 0xd0]
fldcw word [esp + 0xae]
jmp 0x40778a
fstp st(0)
mov esi, dword [esp + 0xd0]
mov eax, dword [esp + 0xd4]
lea ecx, [eax - 0x80000000]
or ecx, esi
je 0x40798b
mov edx, dword [ebx + 0x28]
mov ecx, dword [ebx + 0x2c]
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x3c]
sub ecx, 0x80000000
or ecx, edx
je 0x40798b
mov edi, dword [esp + 0x44]
mov ecx, dword [edi + 4]
test byte [ecx + 0x25], 2
je 0x40798b
mov dword [esp + 0x10], 1
mov dword [esp + 0x14], 0xf4240
mov edi, dword [ebx + 8]
mov ebp, dword [edi + 0x3c]
mov edi, dword [edi + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 0xc], ebp
mov dword [esp], esi
mov dword [esp + 4], eax
call sub.avutil_50.dll_av_rescale_q
mov ecx, edx
mov edx, eax
mov esi, eax
mov edi, ecx
sub esi, dword [esp + 0x38]
sbb edi, dword [esp + 0x3c]
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], edi
test edi, edi
js 0x408749
fild qword [esp + 0x50]
fld dword [0x41c5d8]
fmul dword [0x41901c]
fxch st(1)
fucompp
fnstsw ax
test ah, 0x45
je 0x407859
add edx, 1
adc ecx, 0
cmp ecx, dword [ebx + 0x34]
jg 0x40798b
jl 0x407859
cmp edx, dword [ebx + 0x30]
jae 0x40798b
cmp dword [0x41f398], 0
jne 0x40798b
mov ecx, dword [ebx]
mov eax, dword [ecx*8 + 0x41fb20]
mov edx, dword [ecx*8 + 0x41fb24]
sub eax, dword [esp + 0x50]
sbb edx, dword [esp + 0x54]
mov dword [ecx*8 + 0x41fb20], eax
mov dword [ecx*8 + 0x41fb24], edx
cmp dword [0x41904c], 2
jle 0x4078c1
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x54]
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov dword [esp + 4], str.timestamp_discontinuity__I64d__new_offset__I64d_n
mov edx, dword [esp + 0x4c]
mov dword [esp], edx
call fcn.00401728
mov ebp, dword [ebx + 8]
mov eax, dword [ebp + 0x38]
mov edx, dword [ebp + 0x3c]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
mov dword [esp + 8], 1
mov dword [esp + 0xc], 0xf4240
mov esi, dword [esp + 0x50]
mov edi, dword [esp + 0x54]
mov dword [esp], esi
mov dword [esp + 4], edi
call sub.avutil_50.dll_av_rescale_q
mov esi, dword [esp + 0xd0]
mov edi, dword [esp + 0xd4]
sub esi, eax
sbb edi, edx
mov dword [esp + 0xd0], esi
mov dword [esp + 0xd4], edi
mov eax, dword [esp + 0xc8]
mov edx, dword [esp + 0xcc]
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], edx
mov eax, dword [esp + 0x3c]
sub eax, 0x80000000
or eax, dword [esp + 0x38]
je 0x40798b
mov eax, dword [ebp + 0x38]
mov edx, dword [ebp + 0x3c]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
mov dword [esp + 8], 1
mov dword [esp + 0xc], 0xf4240
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
mov dword [esp], edx
mov dword [esp + 4], ecx
call sub.avutil_50.dll_av_rescale_q
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x3c]
sub esi, eax
sbb edi, edx
mov dword [esp + 0xc8], esi
mov dword [esp + 0xcc], edi
jmp 0x40798b
fstp st(0)
mov eax, dword [0x419050]
mov edx, dword [0x419054]
cmp edx, 0x7fffffff
je 0x40873b
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], 0xf4240
add eax, dword [0x41faf8]
adc edx, dword [0x41fafc]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
mov eax, dword [ebx + 8]
mov edx, dword [eax + 0x3c]
mov eax, dword [eax + 0x38]
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0xc8]
mov edx, dword [esp + 0xcc]
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.avutil_50.dll_av_compare_ts
test eax, eax
jns 0x4086fe
lea edi, [esp + 0xc8]
mov dword [esp + 4], edi
mov ebp, dword [esp + 0x84]
mov dword [esp], ebp
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x48]
mov eax, ebx
call fcn.004024c4
test eax, eax
jns 0x408705
cmp dword [0x41904c], 0
js 0x407a4f
mov eax, dword [ebx + 4]
mov dword [esp + 0xc], eax
mov eax, dword [ebx]
mov dword [esp + 8], eax
mov dword [esp + 4], str.Error_while_decoding_stream__d._d_n
mov eax, dword [esp + 0x68]
mov dword [esp], eax
call fcn.00401728
cmp dword [0x41f3a8], 0
je 0x407a62
mov eax, 1
call fcn.00401af4
lea edx, [esp + 0xc8]
mov dword [esp], edx
call sub.avcodec_52.dll_av_free_packet
xor esi, esi
jmp 0x407300
mov ebp, dword [esp + 0x38]
jmp 0x40744e
fstp st(1)
jmp 0x4073f6
mov dword [esp + 4], str.Number_of_stream_maps_must_match_number_of_output_streams_n
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call fcn.00401728
mov dword [esp + 0x8c], 0
mov ebx, 0xffffffea
jmp 0x40670d
mov dword [esp + 0xc], ecx
mov dword [esp + 8], ebx
mov dword [esp + 4], str.Could_not_find_sync_stream__d._d_n
jmp 0x406a83
mov dword [esp], 0x41fe40
call sub.avutil_50.dll_av_freep
mov ecx, dword [esp + 0x78]
mov dword [esp], ecx
call sub.avutil_50.dll_av_free
xor ebx, ebx
jmp 0x4065fd
cmp dword [ebp + 0xe0], 0x15001
jne 0x406f3f
mov dword [ebp + 0x10c], 0
jmp 0x406f3f
mov edx, dword [ebp + 0xdc]
cmp edx, 1
je 0x408081
cmp edx, 3
je 0x408046
test edx, edx
jne 0x406ec1
mov edx, dword [ecx + 8]
cmp dword [edx + 0x34], 0xffffffff
jne 0x407b5d
mov dword [esp + 4], str.Video_pixel_format_is_unknown__stream_cannot_be_encoded_n
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call fcn.00401728
mov eax, 1
call fcn.00401af4
mov ecx, dword [esi + 0xc]
mov edi, dword [esp + 0x34]
mov eax, dword [edi + 8]
mov edx, dword [ebx + 0x28]
cmp dword [ebp + 0x28], edx
je 0x40805d
mov dword [esi + 0x2c], 1
mov dword [ebp + 0x348], 0
mov edi, dword [ebx + 0x2c]
mov dword [esi + 0x124], edi
mov dword [esi + 0x128], edx
mov edx, dword [ebx + 0x34]
mov dword [esi + 0x12c], edx
mov dword [esi + 0x10], 1
mov edx, dword [esp + 0x34]
mov dword [edx + 0x10], 1
mov ebx, dword [ecx + 8]
mov edi, dword [eax + 8]
mov eax, dword [ebx + 0x34]
mov dword [esp + 0xd40], eax
call sub.avfilter_1.dll_avfilter_graph_alloc
mov dword [0x41fe60], eax
mov ecx, dword [esp + 0x34]
mov eax, dword [ecx + 8]
mov eax, dword [eax + 8]
mov dword [esp + 0x1c], 0xf4240
mov dword [esp + 0x18], 1
mov edx, dword [eax + 0x34]
mov dword [esp + 0x14], edx
mov edx, dword [eax + 0x2c]
mov dword [esp + 0x10], edx
mov eax, dword [eax + 0x28]
mov dword [esp + 0xc], eax
mov dword [esp + 8], str._d:_d:_d:_d:_d
mov dword [esp + 4], 0xff
lea eax, [esp + 0xc8]
mov dword [esp], eax
call fcn.00410500
mov edx, dword [0x41fe60]
mov dword [esp], str.buffer
mov dword [esp + 0x30], edx
call sub.avfilter_1.dll_avfilter_get_by_name
mov edx, dword [esp + 0x30]
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], 0
lea edx, [esp + 0xc8]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0x419b6b
mov dword [esp + 4], eax
mov eax, dword [esp + 0x34]
add eax, 0x68
mov dword [esp], eax
call sub.avfilter_1.dll_avfilter_graph_create_filter
test eax, eax
js 0x408022
mov eax, dword [0x41fe60]
mov dword [esp + 0x14], eax
lea eax, [esp + 0xd40]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x419b6f
mov dword [esp + 4], 0x419080
mov eax, dword [esp + 0x34]
add eax, 0x64
mov dword [esp], eax
call sub.avfilter_1.dll_avfilter_graph_create_filter
test eax, eax
js 0x408022
mov ecx, dword [esp + 0x34]
mov ecx, dword [ecx + 0x68]
mov dword [esp + 0x44], ecx
mov eax, dword [edi + 0x28]
cmp dword [ebx + 0x28], eax
jne 0x407cc2
mov edx, dword [edi + 0x2c]
cmp dword [ebx + 0x2c], edx
je 0x407d96
mov dword [esp + 8], 0
mov dword [esp + 4], str.sws_flags
mov eax, dword [0x41ff9c]
mov dword [esp], eax
call sub.avutil_50.dll_av_get_int
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x2c]
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0x28]
mov dword [esp + 0xc], eax
mov dword [esp + 8], str._d:_d:flags0x_X
mov dword [esp + 4], 0xff
lea ecx, [esp + 0xc8]
mov dword [esp], ecx
call fcn.00410500
mov edi, dword [0x41fe60]
mov dword [esp], str.scale
call sub.avfilter_1.dll_avfilter_get_by_name
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], 0
lea edi, [esp + 0xc8]
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], eax
lea eax, [esp + 0xd44]
mov dword [esp], eax
call sub.avfilter_1.dll_avfilter_graph_create_filter
test eax, eax
js 0x408022
mov dword [esp + 0xc], 0
mov eax, dword [esp + 0xd44]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [esp + 0x44]
mov dword [esp], eax
call sub.avfilter_1.dll_avfilter_link
test eax, eax
js 0x408022
mov edx, dword [esp + 0xd44]
mov dword [esp + 0x44], edx
mov dword [esp + 8], 0
mov dword [esp + 4], str.sws_flags
mov eax, dword [0x41ff9c]
mov dword [esp], eax
call sub.avutil_50.dll_av_get_int
mov dword [esp + 0xc], eax
mov dword [esp + 8], str.flags0x_X
mov dword [esp + 4], 0xff
lea ecx, [esp + 0xc8]
mov dword [esp], ecx
call fcn.00410500
mov edi, dword [0x41fe60]
lea eax, [esp + 0xc8]
mov dword [esp], eax
call sub.avutil_50.dll_av_strdup
mov dword [edi + 8], eax
cmp dword [0x41f3cc], 0
je 0x407ff3
mov dword [esp], 0x10
call sub.avutil_50.dll_av_malloc
mov edi, eax
mov dword [esp], 0x10
call sub.avutil_50.dll_av_malloc
mov dword [esp], 0x419b9f
mov dword [esp + 0x30], eax
call sub.avutil_50.dll_av_strdup
mov dword [edi], eax
mov ecx, dword [esp + 0x44]
mov dword [edi + 4], ecx
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [esp], 0x419b6f
call sub.avutil_50.dll_av_strdup
mov edx, dword [esp + 0x30]
mov dword [edx], eax
mov ecx, dword [esp + 0x34]
mov eax, dword [ecx + 0x64]
mov dword [edx + 4], eax
mov dword [edx + 8], 0
mov dword [edx + 0xc], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edi
mov dword [esp + 8], edx
mov eax, dword [0x41f3cc]
mov dword [esp + 4], eax
mov eax, dword [0x41fe60]
mov dword [esp], eax
call sub.avfilter_1.dll_avfilter_graph_parse
test eax, eax
js 0x408022
mov dword [esp], 0x41f3cc
call sub.avutil_50.dll_av_freep
mov dword [esp + 4], 0
mov eax, dword [0x41fe60]
mov dword [esp], eax
call sub.avfilter_1.dll_avfilter_graph_config
test eax, eax
js 0x408022
mov edx, dword [esp + 0x34]
mov eax, dword [edx + 0x64]
mov eax, dword [eax + 0x14]
mov eax, dword [eax]
mov edx, dword [eax + 0x18]
mov dword [ebx + 0x28], edx
mov eax, dword [eax + 0x1c]
mov dword [ebx + 0x2c], eax
cmp dword [esi + 0x10], 0
je 0x406e8f
test dword [ebp + 0xc], 0x600
je 0x406e8f
mov eax, dword [0x41f3c0]
test eax, eax
jne 0x407efa
mov eax, str.ffmpeg2pass
mov ebx, dword [esp + 0x38]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 8], str._s__d.log
mov dword [esp + 4], 0x400
lea edi, [esp + 0xc8]
mov dword [esp], edi
call fcn.00410500
test byte [ebp + 0xd], 2
je 0x407f8f
mov dword [esp + 4], 0x419bc4
lea eax, [esp + 0xc8]
mov dword [esp], eax
call sub.msvcrt.dll_fopen
mov ebx, eax
test eax, eax
jne 0x407f84
call sub.msvcrt.dll__errno
mov eax, dword [eax]
mov dword [esp], eax
call sub.msvcrt.dll_strerror
mov dword [esp + 0xc], eax
lea edx, [esp + 0xc8]
mov dword [esp + 8], edx
mov dword [esp + 4], str.Cannot_write_log_file__s_for_pass_1_encoding:__s_n
mov ecx, dword [esp + 0x4c]
mov dword [esp], ecx
call fcn.00401728
mov eax, 1
call fcn.00401af4
mov dword [esi + 0x164], ebx
jmp 0x406e8f
lea eax, [esp + 0xd48]
mov dword [esp + 8], eax
lea eax, [esp + 0xd4c]
mov dword [esp + 4], eax
lea ebx, [esp + 0xc8]
mov dword [esp], ebx
call fcn.0040eea0
test eax, eax
jns 0x407fe1
lea esi, [esp + 0xc8]
mov dword [esp + 8], esi
mov dword [esp + 4], str.Error_reading_log_file__s_for_pass_2_encoding_n
mov edi, dword [esp + 0x48]
mov dword [esp], edi
call fcn.00401728
mov eax, 1
call fcn.00401af4
mov eax, dword [esp + 0xd4c]
mov dword [ebp + 0x11c], eax
jmp 0x406e8f
mov dword [esp + 0xc], 0
mov edi, dword [esp + 0x34]
mov eax, dword [edi + 0x64]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [esp + 0x44]
mov dword [esp], eax
call sub.avfilter_1.dll_avfilter_link
test eax, eax
jns 0x407ea0
mov dword [esp + 4], str.Error_opening_filters__n
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call fcn.00401728
mov dword [esp], 1
call sub.msvcrt.dll_exit
mov dword [esi + 0x10], 1
mov ecx, dword [esp + 0x34]
mov dword [ecx + 0x10], 1
jmp 0x407ed5
mov edi, dword [ebx + 0x2c]
cmp dword [ebp + 0x2c], edi
jne 0x407b69
mov edi, dword [ebx + 0x34]
cmp dword [ebp + 0x34], edi
jne 0x407b69
mov dword [esi + 0x2c], 0
jmp 0x407b7a
mov dword [esp], 0x400
call sub.avutil_50.dll_av_fifo_alloc
mov dword [esi + 0x160], eax
test eax, eax
je 0x40814f
mov dword [esi + 0x158], 0xfffffffa
mov eax, dword [ebx + 0x40]
mov edx, 1
cmp dword [ebp + 0x40], eax
jne 0x4080be
xor edx, edx
cmp dword [0x41f390], 1
setg dl
mov dword [esi + 0x144], edx
mov edx, dword [ebp + 0x44]
mov dword [ebx + 0x338], edx
mov ecx, dword [esp + 0x34]
mov dword [ecx + 0x10], 1
mov dword [esi + 0x10], 1
mov edx, dword [ebx + 0x48]
mov dword [esi + 0x14c], edx
mov dword [esi + 0x154], eax
mov eax, dword [ebx + 0x44]
mov dword [esi + 0x150], eax
jmp 0x407ed5
mov eax, dword [ebx + 0x20]
mov esi, dword [ebx + 0x24]
mov dword [ebp + 0x24], esi
imul edx, eax
mov dword [ebp + 0x20], edx
mov dword [esp + 0x18], 0x7fffffff
mov dword [esp + 0x1c], 0
mov eax, dword [ebp + 0x24]
mov dword [esp + 0x10], eax
mov esi, eax
sar esi, 0x1f
mov dword [esp + 0x14], esi
mov dword [esp + 8], edx
mov edi, edx
sar edi, 0x1f
mov dword [esp + 0xc], edi
lea eax, [ebp + 0x24]
mov dword [esp + 4], eax
lea eax, [ebp + 0x20]
mov dword [esp], eax
call sub.avutil_50.dll_av_reduce
jmp 0x406e5d
xor ebx, ebx
jmp 0x40670d
mov esi, 1
mov ebx, 0xfffffff4
jmp 0x4070a9
lea eax, [esp + 0x8cc]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x419ed0
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call fcn.00401728
jmp 0x40670d
xor esi, esi
cmp esi, dword [esp + 0x6c]
jge 0x4081e4
lea eax, [esi*4]
mov ebp, dword [esp + 0x60]
mov ebx, dword [ebp + esi*4]
cmp dword [ebx + 0x10], 0
je 0x4081e1
cmp esi, dword [0x41fb18]
jge 0x4087f2
mov edx, dword [0x41fb1c]
mov eax, dword [edx + eax]
test eax, eax
je 0x4087f2
mov dword [esp + 4], eax
mov eax, dword [ebx + 8]
mov eax, dword [eax + 8]
mov dword [esp], eax
call sub.avcodec_52.dll_avcodec_open
test eax, eax
js 0x4086e4
inc esi
jmp 0x40818f
xor esi, esi
cmp esi, dword [esp + 0x6c]
jge 0x40829e
mov eax, dword [esp + 0x60]
mov ebx, dword [eax + esi*4]
mov eax, dword [ebx + 8]
mov edi, dword [eax + 0x1d0]
xor edx, edx
xor ecx, ecx
test edi, edi
je 0x408272
mov edx, dword [eax + 8]
imul edx, dword [edx + 0x108], 0xfff0bdc0
fild dword [eax + 0x1d4]
push edi
fidivr dword [esp]
fstp qword [esp + 0xbc]
fld qword [esp + 0xbc]
mov dword [esp], edx
fidivr dword [esp]
add esp, 4
fnstcw word [esp + 0xae]
mov ax, word [esp + 0xae]
mov ah, 0xc
mov word [esp + 0xac], ax
fldcw word [esp + 0xac]
fistp qword [esp + 0xb0]
fldcw word [esp + 0xae]
mov edx, dword [esp + 0xb0]
mov ecx, dword [esp + 0xb4]
mov dword [ebx + 0x30], edx
mov dword [ebx + 0x34], ecx
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x2c], 0x80000000
lea eax, [ebx + 0x38]
mov dword [esp], eax
call fcn.0040efb0
mov dword [ebx + 0x58], 1
inc esi
jmp 0x4081e6
xor edi, edi
xor esi, esi
cmp esi, dword [0x41fb08]
jge 0x40839b
mov ecx, dword [0x41fb0c]
add ecx, edi
mov edx, dword [ecx]
mov eax, dword [ecx + 0xc]
test eax, eax
js 0x40834d
test edx, edx
js 0x40834d
cmp dword [esp + 0x88], edx
jle 0x408441
cmp dword [esp + 0x94], eax
jle 0x408428
mov edx, dword [edx*4 + 0x41f040]
mov dword [esp + 0xd38], edx
mov eax, dword [eax*4 + 0x41f1e0]
mov dword [esp + 0xd3c], eax
mov edx, ecx
xor eax, eax
mov cl, byte [edx + 4]
cmp cl, 0x67
je 0x40845a
jg 0x4083e5
cmp cl, 0x63
je 0x40861d
inc eax
add edx, 0xc
cmp eax, 2
jne 0x408305
mov dword [esp + 8], 0x10
mov eax, dword [esp + 0xd34]
mov eax, dword [eax]
mov dword [esp + 4], eax
mov eax, dword [esp + 0xd30]
mov dword [esp], eax
call sub.avformat_52.dll_av_metadata_copy
inc esi
add edi, 0x18
jmp 0x4082a2
mov eax, dword [0x419064]
mov dword [esp], eax
call sub.avutil_50.dll_av_malloc
mov dword [0x41fe40], eax
test eax, eax
jne 0x406f7b
mov eax, dword [0x419064]
mov dword [esp + 8], eax
mov dword [esp + 4], str.Cannot_allocate__d_bytes_output_buffer_n
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call fcn.00401728
mov ebx, 0xfffffff4
jmp 0x40670d
cmp dword [0x419058], 0
je 0x408473
xor ebx, ebx
cmp dword [esp + 0x88], ebx
jle 0x408473
mov dword [esp + 8], 0x10
mov eax, dword [0x41f1e0]
mov eax, dword [eax + 0xf74]
mov dword [esp + 4], eax
mov eax, dword [ebx*4 + 0x41f040]
add eax, 0xf74
mov dword [esp], eax
call sub.avformat_52.dll_av_metadata_copy
inc ebx
jmp 0x4083aa
cmp cl, 0x70
je 0x40852e
cmp cl, 0x73
jne 0x408320
mov ebx, dword [edx + 8]
test ebx, ebx
js 0x408515
mov ecx, dword [esp + eax*4 + 0xd38]
cmp ebx, dword [ecx + 0x14]
jae 0x408515
mov ecx, dword [ecx + ebx*4 + 0x18]
add ecx, 0x170
mov dword [esp + eax*4 + 0xd30], ecx
jmp 0x408320
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.input_file
mov dword [esp + 8], str.Invalid__s_index__d_while_processing_metadata_maps_n
jmp 0x407088
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], str.output_file
mov dword [esp + 8], str.Invalid__s_index__d_while_processing_metadata_maps_n
jmp 0x407088
mov ecx, dword [esp + eax*4 + 0xd38]
add ecx, 0xf74
mov dword [esp + eax*4 + 0xd30], ecx
jmp 0x408320
xor ebx, ebx
mov esi, dword [0x41fb00]
cmp ebx, esi
jge 0x4084c3
lea eax, [ebx*8]
add eax, dword [0x41fb04]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
test ecx, ecx
js 0x4084c0
test edx, edx
js 0x4084c0
cmp dword [esp + 0x94], ecx
jle 0x40858e
cmp dword [esp + 0x88], edx
jle 0x40855c
mov eax, ecx
call fcn.00401818
mov esi, dword [0x41fb00]
inc ebx
jmp 0x40847b
xor ebx, ebx
test esi, esi
jne 0x4085c7
cmp dword [esp + 0x94], esi
jle 0x4085c5
mov eax, dword [esi*4 + 0x41f1e0]
cmp dword [eax + 0xf5c], 0
je 0x4085bf
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x88], edi
jle 0x4085c7
mov edx, edi
mov eax, esi
call fcn.00401818
mov ebx, eax
test eax, eax
js 0x4085b5
inc edi
jmp 0x4084f2
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str.stream
mov dword [esp + 8], str.Invalid__s_index__d_while_processing_metadata_maps_n
jmp 0x407088
mov ebx, dword [edx + 8]
test ebx, ebx
js 0x40859c
mov ecx, dword [esp + eax*4 + 0xd38]
cmp ebx, dword [ecx + 0xf40]
jae 0x40859c
mov ecx, dword [ecx + 0xf44]
mov ecx, dword [ecx + ebx*4]
add ecx, 0x1c
mov dword [esp + eax*4 + 0xd30], ecx
jmp 0x408320
mov dword [esp + 0xc], edx
mov dword [esp + 8], str.Invalid_output_file_index__d_in_chapter_mapping._n
mov dword [esp + 4], 0x400
lea eax, [esp + 0x8cc]
mov dword [esp], eax
call fcn.00410500
mov esi, 1
mov ebx, 0xffffffea
jmp 0x4070a9
mov dword [esp + 0xc], ecx
mov dword [esp + 8], str.Invalid_input_file_index__d_in_chapter_mapping._n
jmp 0x408568
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str.program
mov dword [esp + 8], str.Invalid__s_index__d_while_processing_metadata_maps_n
jmp 0x407088
mov esi, 1
jmp 0x4070a9
inc esi
jmp 0x4084cd
xor ebx, ebx
mov esi, 1
xor edi, edi
cmp dword [esp + 0x88], edi
jle 0x4070a9
mov eax, dword [edi*4 + 0x41f040]
mov dword [esp], eax
call sub.avformat_52.dll_av_write_header
test eax, eax
js 0x4087c5
mov eax, dword [edi*4 + 0x41f040]
mov eax, dword [eax + 8]
mov eax, dword [eax]
mov dword [esp + 4], 0x419e92
mov dword [esp], eax
call sub.msvcrt.dll_strcmp
test eax, eax
sete al
movzx eax, al
neg eax
and esi, eax
inc edi
jmp 0x4085ce
mov ebx, dword [edx + 8]
test ebx, ebx
js 0x4087ac
mov ecx, dword [esp + eax*4 + 0xd38]
cmp ebx, dword [ecx + 0xf5c]
jae 0x4087ac
mov ecx, dword [ecx + 0xf60]
mov ecx, dword [ecx + ebx*4]
add ecx, 0x24
mov dword [esp + eax*4 + 0xd30], ecx
jmp 0x408320
shl ebp, 4
mov eax, dword [esp + 0x78]
mov dword [eax + ebp], 1
cmp dword [0x41f3a0], 0
je 0x4072f3
mov ebx, dword [esp + 0x34]
xor esi, esi
cmp dword [esp + 0x6c], esi
jle 0x4086a7
mov edi, dword [esp + 0x60]
mov eax, dword [edi + esi*4]
cmp dword [eax + 0x10], 0
je 0x4086a4
mov dword [esp + 4], 0
mov ebp, dword [esp + 0x84]
mov dword [esp], ebp
mov ecx, dword [esp + 0x7c]
mov edx, esi
call fcn.004024c4
inc esi
jmp 0x408674
mov dword [esp + 8], 0x4194b6
mov dword [esp + 4], 0xfffffff8
mov dword [esp], 0
call sub.avutil_50.dll_av_log
xor esi, esi
cmp dword [esp + 0x88], esi
jle 0x408838
mov eax, dword [esi*4 + 0x41f040]
mov dword [esp], eax
call sub.avformat_52.dll_av_write_trailer
inc esi
jmp 0x4086c5
mov eax, dword [ebx + 4]
mov dword [esp + 0x10], eax
mov eax, dword [ebx]
mov dword [esp + 0xc], eax
mov dword [esp + 8], str.Error_while_opening_decoder_for_input_stream__d._d
jmp 0x407088
mov dword [ebx + 0x60], 1
lea ecx, [esp + 0xc8]
mov dword [esp], ecx
call sub.avcodec_52.dll_av_free_packet
xor ecx, ecx
mov edx, dword [esp + 0x84]
mov eax, dword [esp + 0x7c]
call fcn.00405734
xor esi, esi
jmp 0x4072f3
mov byte [esp + ebp + 0xccc], 1
inc esi
jmp 0x4072f3
cmp eax, 0xffffffff
jne 0x4079a2
jmp 0x4079f9
mov edi, dword [esp + 0x50]
mov ebp, dword [esp + 0x54]
neg edi
adc ebp, 0
neg ebp
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], ebp
fild qword [esp + 0x38]
jmp 0x407828
fstp st(0)
fstp st(0)
mov esi, dword [esp + 0x48]
test esi, esi
je 0x40866e
mov ecx, 0x19
xor eax, eax
mov edi, dword [esp + 0x2c]
rep stosd dword es:[edi], eax
mov dword [esp], 0x2710
call fcn.004104b0
xor esi, esi
jmp 0x4072f3
call sub.msvcrt.dll__getch
cmp eax, 0x71
jne 0x407323
jmp 0x40866e
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str.chapter
mov dword [esp + 8], str.Invalid__s_index__d_while_processing_metadata_maps_n
jmp 0x407088
mov dword [esp + 0xc], edi
mov dword [esp + 8], str.Could_not_write_header_for_output_file__d__incorrect_codec_parameters___
mov dword [esp + 4], 0x400
lea eax, [esp + 0x8cc]
mov dword [esp], eax
call fcn.00410500
mov ebx, 0xffffffea
jmp 0x4070a9
mov eax, dword [ebx + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax + 0xe0]
mov dword [esp], eax
call sub.avcodec_52.dll_avcodec_find_decoder
test eax, eax
jne 0x4081c7
mov eax, dword [ebx + 4]
mov dword [esp + 0x14], eax
mov eax, dword [ebx]
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax + 0xe0]
mov dword [esp + 0xc], eax
mov dword [esp + 8], str.Decoder__codec_id__d__not_found_for_input_stream__d._d
jmp 0x407130
mov ecx, 1
mov edx, dword [esp + 0x84]
mov eax, dword [esp + 0x7c]
call fcn.00405734
xor edi, edi
cmp dword [esp + 0x84], edi
jle 0x408889
mov eax, dword [esp + 0x7c]
mov esi, dword [eax + edi*4]
cmp dword [esi + 0x10], 0
je 0x408886
mov eax, dword [esi + 0xc]
mov eax, dword [eax + 8]
add eax, 0x11c
mov dword [esp], eax
call sub.avutil_50.dll_av_freep
mov eax, dword [esi + 0xc]
mov eax, dword [eax + 8]
mov dword [esp], eax
call sub.avcodec_52.dll_avcodec_close
inc edi
jmp 0x40884f
xor esi, esi
cmp dword [esp + 0x6c], esi
jle 0x4088af
mov edx, dword [esp + 0x60]
mov eax, dword [edx + esi*4]
cmp dword [eax + 0x10], 0
je 0x4088ac
mov eax, dword [eax + 8]
mov eax, dword [eax + 8]
mov dword [esp], eax
call sub.avcodec_52.dll_avcodec_close
inc esi
jmp 0x40888b
mov dword [esp], 0x41fe60
call sub.avfilter_1.dll_avfilter_graph_free
jmp 0x40670d