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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x46c
mov ebp, eax
mov dword [esp + 0xa8], edx
mov dword [esp + 0xac], ecx
mov eax, dword [eax + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x48]
mov dword [esp], eax
call sub.avutil_50.dll_av_get_bits_per_sample_fmt
mov dword [esp + 0xd8], eax
mov eax, dword [ebp + 0x2c]
sub eax, 0x80000000
or eax, dword [ebp + 0x28]
je 0x402778
mov eax, dword [esp + 0x484]
test eax, eax
je 0x4027c0
lea edx, [esp + 0x368]
mov dword [esp + 0x9c], edx
mov ecx, 0x10
mov edi, edx
mov esi, dword [esp + 0x484]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x484]
mov edx, dword [ecx + 8]
mov eax, dword [ecx + 0xc]
lea ecx, [eax - 0x80000000]
or ecx, edx
je 0x402584
mov dword [esp + 0x10], 1
mov dword [esp + 0x14], 0xf4240
mov ecx, dword [ebp + 8]
mov ebx, dword [ecx + 0x3c]
mov ecx, dword [ecx + 0x38]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebx
mov dword [esp], edx
mov dword [esp + 4], eax
call sub.avutil_50.dll_av_rescale_q
mov dword [ebp + 0x30], eax
mov dword [ebp + 0x34], edx
mov dword [ebp + 0x28], eax
mov dword [ebp + 0x2c], edx
mov ebx, dword [esp + 0x484]
mov edx, dword [ebx]
mov eax, dword [ebx + 4]
lea ecx, [eax - 0x80000000]
or ecx, edx
je 0x40278c
mov dword [esp + 0x10], 1
mov dword [esp + 0x14], 0xf4240
mov ecx, dword [ebp + 8]
mov ebx, dword [ecx + 0x3c]
mov ecx, dword [ecx + 0x38]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebx
mov dword [esp], edx
mov dword [esp + 4], eax
call sub.avutil_50.dll_av_rescale_q
mov dword [esp + 0xd0], eax
mov dword [esp + 0xd4], edx
mov edx, dword [esp + 0x37c]
mov dword [esp + 0xb0], edx
test edx, edx
jle 0x4027a8
mov eax, dword [ebp + 0x28]
mov edx, dword [ebp + 0x2c]
mov dword [ebp + 0x30], eax
mov dword [ebp + 0x34], edx
mov edi, dword [esp + 0xb0]
mov esi, dword [esp + 0x484]
cmp dword [esi + 0x14], edi
je 0x402660
mov edi, dword [ebp + 0x5c]
test edi, edi
je 0x404bf8
cmp dword [0x41904c], 1
jle 0x402660
mov edx, dword [esp + 0x484]
mov eax, dword [edx + 0x18]
mov dword [esp + 8], eax
mov dword [esp + 4], str.Multiple_frames_in_a_packet_from_stream__d_n
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call fcn.00401728
mov dword [ebp + 0x5c], 1
mov ecx, dword [esp + 0x37c]
mov dword [esp + 0xb0], ecx
lea esi, [esi]
mov dword [esp + 0x458], 0
mov ebx, dword [esp + 0x378]
mov dword [esp + 0x100], ebx
mov ebx, dword [ebp + 0x10]
test ebx, ebx
jne 0x4028cb
mov edi, dword [ebp + 8]
mov ecx, dword [edi + 8]
mov eax, dword [ecx + 0xdc]
test eax, eax
je 0x402854
dec eax
je 0x404919
mov dword [esp + 0x37c], 0
mov dword [esp + 0x108], 0
mov dword [esp + 0x10c], 0
mov eax, edi
mov ebx, dword [edi + 8]
mov edx, dword [ebx + 0xdc]
test edx, edx
je 0x40498c
mov dword [esp + 0x104], 0
cmp edx, 1
je 0x404a70
mov edi, dword [0x41f388]
test edi, edi
jne 0x404a0c
test edx, edx
jne 0x40480c
mov eax, dword [ebp + 0x64]
test eax, eax
je 0x40480c
mov eax, dword [eax + 0x14]
mov eax, dword [eax]
mov dword [esp], eax
call sub.avfilter_1.dll_avfilter_poll_frame
xor ecx, ecx
test eax, eax
setne cl
mov edx, dword [0x41faf8]
mov eax, dword [0x41fafc]
mov ebx, eax
or ebx, edx
je 0x402ce0
cmp eax, dword [ebp + 0x34]
jl 0x402ce0
jg 0x402745
cmp edx, dword [ebp + 0x30]
jbe 0x402ce0
mov edi, dword [esp + 0x104]
mov dword [esp], edi
call sub.avutil_50.dll_av_free
mov ebx, dword [esp + 0x10c]
test ebx, ebx
je 0x4025d9
mov eax, dword [esp + 0x10c]
mov dword [esp], eax
call sub.avcodec_52.dll_avsubtitle_free
jmp 0x4025d9
mov eax, dword [ebp + 0x30]
mov edx, dword [ebp + 0x34]
mov dword [ebp + 0x28], eax
mov dword [ebp + 0x2c], edx
jmp 0x402507
mov dword [esp + 0xd0], 0
mov dword [esp + 0xd4], 0x80000000
jmp 0x4025d9
mov ecx, dword [esp + 0x484]
test ecx, ecx
je 0x402820
xor eax, eax
add esp, 0x46c
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [esp + 0x368]
mov dword [esp + 0x9c], eax
mov dword [esp], eax
call sub.avcodec_52.dll_av_init_packet
mov dword [esp + 0x378], 0
mov dword [esp + 0x37c], 0
mov eax, dword [ebp + 0x28]
mov edx, dword [ebp + 0x2c]
mov dword [ebp + 0x30], eax
mov dword [ebp + 0x34], edx
mov dword [esp + 0xd0], 0
mov dword [esp + 0xd4], 0x80000000
mov dword [esp + 0xb0], 0
jmp 0x402660
mov eax, dword [ebp + 0x28]
mov edx, dword [ebp + 0x2c]
mov ebx, dword [ebp + 0x34]
xor ebx, edx
mov ecx, dword [ebp + 0x30]
xor ecx, eax
or ebx, ecx
je 0x4029b0
mov dword [ebp + 0x30], eax
mov dword [ebp + 0x34], edx
cmp dword [esp + 0xb0], 0
jne 0x4025fb
jmp 0x402660
mov esi, dword [ecx + 0x20]
test esi, esi
je 0x40269f
mov eax, dword [edi + 0x68]
test eax, eax
je 0x405254
mov ebx, dword [eax + 0x24]
inc ebx
mov eax, 0xf4240
imul esi
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], edx
mov eax, ebx
cdq
mov esi, dword [esp + 0x7c]
imul esi, ebx
mov eax, dword [esp + 0x78]
imul eax, edx
add esi, eax
mov eax, dword [esp + 0x78]
mul ebx
mov dword [esp + 0x78], eax
add edx, esi
mov dword [esp + 0x7c], edx
mov eax, dword [ecx + 0x24]
mov dword [esp + 8], eax
cdq
mov dword [esp + 0xc], edx
mov ecx, dword [esp + 0x78]
mov ebx, dword [esp + 0x7c]
mov dword [esp], ecx
mov dword [esp + 4], ebx
call fcn.004101a0
add dword [ebp + 0x28], eax
adc dword [ebp + 0x2c], edx
jmp 0x40269f
mov edi, dword [ebp + 8]
mov edx, dword [edi + 8]
mov eax, dword [edx + 0xdc]
cmp eax, 1
je 0x40541b
cmp eax, 3
je 0x4053bb
test eax, eax
jne 0x405379
mov eax, dword [edx + 0x28]
imul eax, dword [edx + 0x2c]
lea eax, [eax + eax*2]
mov ecx, 2
cdq
idiv ecx
mov dword [esp + 0x458], eax
lea edx, [esp + 0x238]
mov dword [esp], edx
mov dword [esp + 0x60], edx
call sub.avcodec_52.dll_avcodec_get_frame_defaults
mov ecx, dword [esp + 0xd0]
mov ebx, dword [esp + 0xd4]
mov dword [esp + 0x368], ecx
mov dword [esp + 0x36c], ebx
mov ecx, dword [ebp + 0x30]
mov ebx, dword [ebp + 0x34]
mov dword [esp + 0x370], ecx
mov dword [esp + 0x374], ebx
mov ebx, dword [esp + 0x9c]
mov dword [esp + 0xc], ebx
lea eax, [esp + 0x45c]
mov dword [esp + 8], eax
mov edx, dword [esp + 0x60]
mov dword [esp + 4], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov dword [esp], eax
call sub.avcodec_52.dll_avcodec_decode_video2
mov edx, eax
mov eax, dword [ebp + 8]
fild dword [esp + 0x280]
fstp dword [eax + 0x4c]
test edx, edx
js 0x405379
cmp dword [esp + 0x45c], 0
jne 0x4055be
xor eax, eax
cmp dword [esp + 0x484], 0
jne 0x4027b5
nop
mov edx, dword [esp + 0x480]
test edx, edx
jle 0x4027b3
xor ebp, ebp
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp + 0x9c], eax
mov dword [esp + 0x90], eax
jmp 0x4029ea
inc ebp
cmp dword [esp + 0x480], ebp
jle 0x4027b3
mov ecx, dword [esp + 0xac]
mov ebx, dword [ecx + ebp*4]
mov esi, dword [esp + 0xa8]
cmp dword [ebx + 8], esi
jne 0x4029dc
mov eax, dword [ebx + 0xc]
mov esi, dword [eax + 8]
mov eax, dword [ebx]
mov eax, dword [eax*4 + 0x41f040]
mov dword [esp + 0x8c], eax
mov eax, dword [esi + 0xdc]
cmp eax, 1
je 0x404828
test eax, eax
jne 0x402a39
mov edi, dword [esp + 0x8c]
mov eax, dword [edi + 8]
test byte [eax + 0x28], 0x20
jne 0x4029dc
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x4029dc
mov dword [esp + 0x98], ebp
jmp 0x402b5a
mov dword [esp + 0xc], 0
mov eax, dword [0x419064]
mov dword [esp + 8], eax
mov eax, dword [0x41fe40]
mov dword [esp + 4], eax
mov dword [esp], esi
call sub.avcodec_52.dll_avcodec_encode_video
mov edi, eax
test eax, eax
js 0x4048c4
mov eax, edi
cdq
add dword [0x41fe70], edi
adc dword [0x41fe74], edx
mov eax, dword [esi + 0x190]
test eax, eax
je 0x402aa0
mov ebp, dword [eax + 0x30]
test ebp, ebp
je 0x402aa0
or dword [esp + 0x344], 1
mov eax, dword [ebx + 0x164]
test eax, eax
je 0x402ac8
mov edx, dword [esi + 0x118]
test edx, edx
je 0x402ac8
mov dword [esp + 8], edx
mov dword [esp + 4], 0x419808
mov dword [esp], eax
call fcn.00401728
test edi, edi
jle 0x402b8a
mov eax, dword [0x41fe40]
mov dword [esp + 0x338], eax
mov dword [esp + 0x33c], edi
mov eax, dword [esi + 0x190]
test eax, eax
je 0x402b98
mov ebp, dword [eax + 0x38]
mov eax, dword [eax + 0x3c]
lea ecx, [eax - 0x80000000]
or ecx, ebp
je 0x402b98
mov edi, dword [ebx + 0xc]
mov edx, dword [edi + 0x38]
mov ecx, dword [edi + 0x3c]
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ecx
mov edx, dword [esi + 0x20]
mov ecx, dword [esi + 0x24]
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
mov dword [esp], ebp
mov dword [esp + 4], eax
call sub.avutil_50.dll_av_rescale_q
mov dword [esp + 0x328], eax
mov dword [esp + 0x32c], edx
mov ecx, dword [edi + 8]
mov eax, dword [ebx + 0x28]
mov dword [esp], eax
lea edx, [esp + 0x328]
mov eax, dword [esp + 0x8c]
call fcn.004022d0
lea eax, [esp + 0x328]
mov dword [esp], eax
call sub.avcodec_52.dll_av_init_packet
mov eax, dword [ebx + 4]
mov dword [esp + 0x340], eax
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + 8]
mov eax, dword [eax + 0xdc]
test eax, eax
je 0x402a4c
dec eax
je 0x402ba0
mov ebp, dword [esp + 0x98]
jmp 0x4029dc
mov edi, dword [ebx + 0xc]
jmp 0x402b3e
mov eax, dword [ebx + 0x160]
mov dword [esp], eax
call sub.avutil_50.dll_av_fifo_size
mov edi, eax
test eax, eax
jg 0x402c1c
mov dword [esp + 0xc], 0
mov eax, dword [0x419064]
mov dword [esp + 8], eax
mov eax, dword [0x41fe40]
mov dword [esp + 4], eax
mov dword [esp], esi
call sub.avcodec_52.dll_avcodec_encode_audio
mov edi, eax
test eax, eax
jns 0x402bfd
mov dword [esp + 4], str.Audio_encoding_failed_n
mov eax, dword [esp + 0x90]
mov dword [esp], eax
call fcn.00401728
mov eax, 1
call fcn.00401af4
mov eax, edi
cdq
add dword [0x41fe68], edi
adc dword [0x41fe6c], edx
or dword [esp + 0x344], 1
jmp 0x402ac8
mov eax, dword [esi + 0x48]
mov dword [esp], eax
call sub.avutil_50.dll_av_get_bits_per_sample_fmt
mov ebp, eax
sar ebp, 3
mov edx, dword [esi + 0x4c]
mov dword [esp + 0x78], edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], edi
mov eax, dword [0x41fe78]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x160]
mov dword [esp], eax
call sub.avutil_50.dll_av_fifo_generic_read
mov eax, dword [esi + 0x84]
test byte [eax + 0x20], 0x40
je 0x4036a0
imul ebp, dword [esi + 0x44]
mov eax, edi
cdq
idiv ebp
mov dword [esi + 0x4c], eax
mov eax, dword [0x41fe78]
mov dword [esp + 0xc], eax
mov eax, dword [0x419064]
mov dword [esp + 8], eax
mov eax, dword [0x41fe40]
mov dword [esp + 4], eax
mov dword [esp], esi
call sub.avcodec_52.dll_avcodec_encode_audio
mov edi, eax
mov ecx, dword [ebx + 0xc]
mov eax, dword [esi + 0x40]
mov dword [esp + 0x10], eax
cdq
mov dword [esp + 0x14], edx
mov eax, dword [ecx + 0x38]
mov dword [esp + 8], eax
cdq
mov dword [esp + 0xc], edx
mov eax, dword [esi + 0x4c]
imul dword [ecx + 0x3c]
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.avutil_50.dll_av_rescale
mov dword [esp + 0x348], eax
mov ecx, dword [esp + 0x78]
mov dword [esi + 0x4c], ecx
test edi, edi
jg 0x402bfd
jmp 0x402bb4
test ecx, ecx
je 0x402745
mov esi, dword [esp + 0xb0]
mov edi, esi
sar edi, 0x1f
mov dword [esp + 0x110], esi
mov dword [esp + 0x114], edi
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp + 0xe4], eax
mov dword [esp + 0xb8], ebp
mov edi, dword [esp + 0xb8]
mov eax, dword [edi + 8]
mov eax, dword [eax + 8]
mov esi, dword [eax + 0xdc]
test esi, esi
jne 0x402d5d
mov eax, dword [edi + 0x64]
test eax, eax
je 0x402d5d
lea edx, [esp + 0x44c]
mov dword [esp + 0xc], edx
mov edx, edi
add edx, 0x74
mov dword [esp + 8], edx
lea edx, [esp + 0x238]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0040f3f0
mov ecx, dword [esp + 0xb8]
mov eax, dword [ecx + 0x74]
test eax, eax
je 0x402dab
mov ebx, ecx
mov dword [esp + 0x10], 1
mov dword [esp + 0x14], 0xf4240
mov edx, dword [esp + 0x44c]
mov ecx, dword [esp + 0x450]
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
mov edx, dword [eax + 0x4c]
mov eax, dword [eax + 0x48]
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.avutil_50.dll_av_rescale_q
mov dword [ebx + 0x30], eax
mov dword [ebx + 0x34], edx
mov ebx, dword [esp + 0x480]
test ebx, ebx
jle 0x404860
mov dword [esp + 0x98], 0
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp + 0x11c], eax
jmp 0x402df3
inc dword [esp + 0x98]
mov edx, dword [esp + 0x98]
cmp dword [esp + 0x480], edx
jle 0x404860
mov esi, dword [esp + 0x98]
mov edi, dword [esp + 0xac]
mov ebx, dword [edi + esi*4]
mov eax, dword [esp + 0xa8]
cmp dword [ebx + 8], eax
jne 0x402dd8
mov eax, dword [ebx]
mov eax, dword [eax*4 + 0x41f040]
mov dword [esp + 0xbc], eax
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x4033b8
mov edx, dword [esp + 0xb8]
mov edx, dword [edx + 0x10]
test edx, edx
je 0x4036cd
mov eax, dword [ebx + 0xc]
mov ebp, dword [eax + 8]
mov eax, dword [ebp + 0xdc]
cmp eax, 1
je 0x4039ac
cmp eax, 3
je 0x40370c
test eax, eax
jne 0x403704
mov ecx, dword [esp + 0xb8]
mov eax, dword [ecx + 0x74]
mov eax, dword [eax + 0x60]
test eax, eax
je 0x402e86
mov edx, dword [eax + 0xc]
mov eax, dword [eax + 8]
mov dword [ebp + 0x188], eax
mov dword [ebp + 0x18c], edx
mov esi, dword [esp + 0xb8]
mov eax, dword [esi + 8]
mov eax, dword [eax + 8]
mov dword [esp + 0xb4], eax
mov eax, dword [ebx + 0x18]
mov edx, dword [eax + 0x34]
mov eax, dword [eax + 0x30]
sub eax, dword [0x41faf8]
sbb edx, dword [0x41fafc]
mov dword [esp + 0x128], eax
mov dword [esp + 0x12c], edx
fild qword [esp + 0x128]
fstp qword [esp + 0x130]
fld qword [esp + 0x130]
fld dword [0x41c5d8]
fdivp st(1)
fstp qword [esp + 0x130]
fld qword [esp + 0x130]
fild dword [ebp + 0x24]
fidivr dword [ebp + 0x20]
fstp qword [esp + 0x130]
fld qword [esp + 0x130]
fdivp st(1)
fstp qword [esp + 0x130]
fld qword [esp + 0x130]
mov edx, dword [0x419014]
test edx, edx
je 0x4048ec
fild qword [ebx + 0x20]
fstp qword [esp + 0x130]
fld qword [esp + 0x130]
fsubr st(1)
fstp qword [esp + 0x130]
fld qword [esp + 0x130]
fld st(0)
fld xword [0x41c5e0]
fucomp st(1)
fnstsw ax
test ah, 0x45
je 0x404c0c
cmp edx, 2
je 0x404f91
test edx, edx
js 0x404f79
fstp st(2)
fxch st(1)
jmp 0x402f6b
fstp st(2)
fxch st(1)
fld xword [0x41c610]
fxch st(1)
fucompp
fnstsw ax
test ah, 0x45
jne 0x404fdc
fstp dword [esp + 0x13c]
fld dword [esp + 0x13c]
fistp dword [esp + 0x454]
mov esi, dword [esp + 0x454]
test esi, esi
je 0x404c18
cmp esi, 1
jle 0x402fc0
lea eax, [esi - 1]
add dword [0x41fe94], eax
cmp dword [0x41904c], 2
jg 0x405233
nop
mov eax, dword [section..data]
sub eax, dword [ebx + 0x14]
mov dword [esp + 0xa0], esi
cmp esi, eax
jle 0x402fda
mov dword [esp + 0xa0], eax
mov ecx, dword [esp + 0xa0]
test ecx, ecx
jle 0x404601
mov ecx, dword [esp + 0xb8]
mov eax, dword [ecx + 8]
mov eax, dword [eax + 8]
mov esi, dword [eax + 0x2c]
cmp dword [ebx + 0x124], esi
jne 0x403010
mov edi, dword [eax + 0x28]
cmp dword [ebx + 0x128], edi
je 0x40513f
mov eax, dword [eax + 0x34]
mov dword [esp], eax
call sub.avcodec_52.dll_avcodec_get_pix_fmt_name
mov ecx, dword [esp + 0xb8]
mov edx, dword [ecx + 8]
mov edx, dword [edx + 8]
mov dword [esp + 0x18], eax
mov eax, dword [edx + 0x2c]
mov dword [esp + 0x14], eax
mov eax, dword [edx + 0x28]
mov dword [esp + 0x10], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0xc], eax
mov eax, dword [ecx]
mov dword [esp + 8], eax
mov dword [esp + 4], str.Input_Stream__d._d_frame_size_changed_to__dx_d___s_n
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call fcn.00401728
mov edx, dword [ebx + 0x2c]
test edx, edx
je 0x404e40
mov dword [esp + 0xa4], 0
mov dword [esp + 0x90], 0
lea esi, [esp + 0x238]
mov dword [esp + 0x80], esi
lea edi, [esp + 0x328]
mov dword [esp + 0x78], edi
lea eax, [esp + 0x148]
mov dword [esp + 0x4c], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp + 0xc0], eax
jmp 0x40329f
mov edx, dword [esp + 0xb8]
mov eax, dword [edx + 8]
fld dword [eax + 0x4c]
fnstcw word [esp + 0x126]
mov ax, word [esp + 0x126]
mov ah, 0xc
mov word [esp + 0x124], ax
fldcw word [esp + 0x124]
fistp dword [esp + 0x120]
fldcw word [esp + 0x126]
mov eax, dword [esp + 0x120]
mov dword [esp + 0x190], eax
mov edi, dword [0x41f458]
test edi, edi
jne 0x403116
mov dword [esp + 0x17c], 0
mov ecx, dword [ebx + 0x20]
mov edx, dword [ebx + 0x24]
mov dword [esp + 0x180], ecx
mov dword [esp + 0x184], edx
mov eax, dword [ebx + 0x140]
cmp eax, dword [ebx + 0x13c]
jge 0x40315d
mov esi, dword [ebx + 0x138]
cmp edx, dword [esi + eax*8 + 4]
jl 0x40315d
jg 0x40314b
cmp ecx, dword [esi + eax*8]
jb 0x40315d
mov dword [esp + 0x17c], 1
inc eax
mov dword [ebx + 0x140], eax
lea ecx, [esp + 0x148]
mov dword [esp + 0xc], ecx
mov eax, dword [0x419064]
mov dword [esp + 8], eax
mov eax, dword [0x41fe40]
mov dword [esp + 4], eax
mov dword [esp], ebp
call sub.avcodec_52.dll_avcodec_encode_video
mov edi, eax
cmp eax, 0
jl 0x404838
je 0x403279
mov eax, dword [0x41fe40]
mov dword [esp + 0x338], eax
mov dword [esp + 0x33c], edi
mov esi, dword [ebp + 0x190]
mov eax, dword [esi + 0x38]
mov dword [esp + 0x8c], eax
mov eax, dword [esi + 0x3c]
lea ecx, [eax - 0x80000000]
or ecx, dword [esp + 0x8c]
je 0x403208
mov ecx, dword [ebx + 0xc]
mov edx, dword [ecx + 0x38]
mov ecx, dword [ecx + 0x3c]
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ecx
mov edx, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x24]
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x8c]
mov dword [esp], ecx
mov dword [esp + 4], eax
call sub.avutil_50.dll_av_rescale_q
mov dword [esp + 0x328], eax
mov dword [esp + 0x32c], edx
mov esi, dword [esi + 0x30]
test esi, esi
je 0x403217
or dword [esp + 0x344], 1
mov eax, dword [ebx + 0xc]
mov ecx, dword [eax + 8]
mov eax, dword [ebx + 0x28]
mov dword [esp], eax
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0xbc]
call fcn.004022d0
mov eax, edi
cdq
add dword [0x41fe70], edi
adc dword [0x41fe74], edx
mov eax, dword [ebx + 0x164]
test eax, eax
je 0x4033ac
mov edx, dword [ebp + 0x118]
test edx, edx
je 0x4033ac
mov dword [esp + 8], edx
mov dword [esp + 4], 0x419808
mov dword [esp], eax
call fcn.00401728
mov dword [esp + 0xa4], edi
add dword [ebx + 0x20], 1
adc dword [ebx + 0x24], 0
inc dword [ebx + 0x14]
inc dword [esp + 0x90]
mov esi, dword [esp + 0x90]
cmp dword [esp + 0xa0], esi
jle 0x40460c
mov edx, dword [esp + 0x78]
mov dword [esp], edx
call sub.avcodec_52.dll_av_init_packet
mov eax, dword [ebx + 4]
mov dword [esp + 0x340], eax
mov ecx, dword [esp + 0xbc]
mov eax, dword [ecx + 8]
test byte [eax + 0x28], 0x20
jne 0x40330c
mov edi, dword [esp + 0x4c]
mov esi, dword [esp + 0x80]
mov ecx, 0x3c
rep movsd dword es:[edi], dword [esi]
mov eax, dword [0x41ff84]
test dword [eax + 0xc], 0x20040000
je 0x4032f6
mov eax, dword [0x419048]
cmp eax, 0xffffffff
je 0x4032f6
mov dword [esp + 0x1f0], eax
mov eax, dword [0x41f3bc]
test eax, eax
jne 0x4030b8
mov eax, dword [ebx + 0xc]
jmp 0x4030c2
mov edi, dword [ebp + 0x190]
mov esi, dword [esp + 0xb4]
mov eax, dword [esi + 0x190]
mov dword [ebp + 0x190], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0x338], eax
mov dword [esp + 0x33c], 0x20
mov esi, dword [ebx + 0xc]
mov eax, dword [esi + 0x38]
mov edx, dword [esi + 0x3c]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
mov eax, dword [ebp + 0x20]
mov edx, dword [ebp + 0x24]
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov eax, dword [ebx + 0x20]
mov edx, dword [ebx + 0x24]
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.avutil_50.dll_av_rescale_q
mov dword [esp + 0x328], eax
mov dword [esp + 0x32c], edx
or dword [esp + 0x344], 1
mov ecx, dword [esi + 8]
mov eax, dword [ebx + 0x28]
mov dword [esp], eax
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0xbc]
call fcn.004022d0
mov dword [ebp + 0x190], edi
jmp 0x403279
mov dword [esp + 0xa4], edi
jmp 0x403279
mov eax, dword [ebx + 0xc]
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 [0x41faf8]
mov edx, dword [0x41fafc]
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.avutil_50.dll_av_rescale_q
mov esi, eax
mov edi, edx
lea edx, [esp + 0x328]
mov dword [esp + 0x78], edx
mov dword [esp], edx
call sub.avcodec_52.dll_av_init_packet
mov eax, dword [ebx + 0x14]
test eax, eax
jne 0x403429
mov ecx, dword [esp + 0x484]
test byte [ecx + 0x1c], 1
jne 0x403429
mov ebp, dword [0x41f3ac]
test ebp, ebp
je 0x402dd8
lea edx, [esp + 0x148]
mov dword [esp], edx
mov dword [esp + 0x60], edx
call sub.avcodec_52.dll_avcodec_get_frame_defaults
mov ebp, dword [ebx + 0xc]
mov eax, dword [ebp + 8]
mov edx, dword [esp + 0x60]
mov dword [eax + 0x190], edx
mov edx, dword [esp + 0x484]
mov edx, dword [edx + 0x1c]
mov dword [esp + 0x80], edx
and edx, 1
mov dword [esp + 0x178], edx
mov eax, dword [eax + 0xdc]
cmp eax, 1
je 0x404b38
test eax, eax
jne 0x40349c
mov edx, dword [esp + 0x110]
mov ecx, dword [esp + 0x114]
add dword [0x41fe70], edx
adc dword [0x41fe74], ecx
add dword [ebx + 0x20], 1
adc dword [ebx + 0x24], 0
mov eax, dword [ebx + 4]
mov dword [esp + 0x340], eax
mov ecx, dword [esp + 0x484]
mov ecx, dword [ecx]
mov dword [esp + 0x8c], ecx
mov edx, dword [esp + 0x484]
mov eax, dword [edx + 4]
lea edx, [eax - 0x80000000]
or edx, ecx
je 0x404b0c
mov ecx, dword [esp + 0xb8]
mov ecx, dword [ecx + 8]
mov dword [esp + 0x90], ecx
mov edx, dword [ebp + 0x38]
mov ecx, dword [ebp + 0x3c]
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x90]
mov edx, dword [ecx + 0x38]
mov ecx, dword [ecx + 0x3c]
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
mov edx, dword [esp + 0x8c]
mov dword [esp], edx
mov dword [esp + 4], eax
call sub.avutil_50.dll_av_rescale_q
sub eax, esi
sbb edx, edi
mov dword [esp + 0x328], eax
mov dword [esp + 0x32c], edx
mov ebp, dword [ebx + 0xc]
mov eax, dword [esp + 0x484]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov dword [esp + 0x8c], edx
mov eax, edx
sub eax, 0x80000000
or eax, ecx
je 0x404ad0
mov eax, dword [ebp + 0x38]
mov edx, dword [ebp + 0x3c]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x90]
mov eax, dword [edx + 0x38]
mov edx, dword [edx + 0x3c]
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov dword [esp], ecx
mov ecx, dword [esp + 0x8c]
mov dword [esp + 4], ecx
call sub.avutil_50.dll_av_rescale_q
sub eax, esi
sbb edx, edi
mov dword [esp + 0x330], eax
mov dword [esp + 0x334], edx
mov eax, dword [ebp + 0x38]
mov edx, dword [ebp + 0x3c]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
mov esi, dword [esp + 0x90]
mov eax, dword [esi + 0x38]
mov edx, dword [esi + 0x3c]
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov edi, dword [esp + 0x484]
mov eax, dword [edi + 0x20]
mov dword [esp], eax
cdq
mov dword [esp + 4], edx
call sub.avutil_50.dll_av_rescale_q
mov dword [esp + 0x348], eax
mov ecx, dword [esp + 0x80]
mov dword [esp + 0x344], ecx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0xe0]
cmp eax, 0x1c
je 0x4047e8
cmp eax, 1
je 0x4047e8
cmp eax, 2
je 0x4047e8
mov eax, dword [esp + 0x80]
and eax, 1
mov dword [esp + 0x18], eax
mov esi, dword [esp + 0xb0]
mov dword [esp + 0x14], esi
mov edi, dword [esp + 0x100]
mov dword [esp + 0x10], edi
lea eax, [esp + 0x33c]
mov dword [esp + 0xc], eax
lea eax, [esp + 0x338]
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x90]
mov eax, dword [edx + 0x68]
mov dword [esp], eax
call sub.avcodec_52.dll_av_parser_change
test eax, eax
je 0x403667
mov dword [esp + 0x34c], 0x40f65c
mov eax, dword [ebx + 0xc]
mov ecx, dword [eax + 8]
mov eax, dword [ebx + 0x28]
mov dword [esp], eax
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0xbc]
call fcn.004022d0
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + 8]
inc dword [eax + 0x50]
inc dword [ebx + 0x14]
mov eax, dword [esp + 0x78]
mov dword [esp], eax
call sub.avcodec_52.dll_av_free_packet
jmp 0x402dd8
mov edx, dword [esi + 0x44]
imul edx, dword [esi + 0x4c]
imul edx, ebp
cmp edx, dword [0x41fe7c]
ja 0x404b6c
mov ecx, edx
sub ecx, edi
mov edx, dword [0x41fe78]
add edx, edi
mov edi, edx
xor eax, eax
rep stosb byte es:[edi], al
jmp 0x402c72
mov dword [esp + 0x14], 0x678
mov dword [esp + 0x10], str.ffmpeg.c
mov dword [esp + 0xc], str.ist__decoding_needed
mov dword [esp + 8], str.Assertion__s_failed_at__s:_d_n
mov dword [esp + 4], 8
mov dword [esp], 0
call sub.avutil_50.dll_av_log
lea esi, [esi]
call sub.msvcrt.dll_abort
lea esi, [esi]
mov ecx, dword [esp + 0x484]
mov ecx, dword [ecx]
mov dword [esp + 0xa4], ecx
mov esi, dword [esp + 0x484]
mov esi, dword [esi + 4]
mov dword [esp + 0xb4], esi
mov edi, dword [esp + 0xb8]
add edi, 8
mov dword [esp + 0xc0], edi
mov eax, esi
sub eax, 0x80000000
or eax, ecx
je 0x404f44
mov esi, dword [0x41fe9c]
test esi, esi
je 0x40521d
xor eax, eax
cmp dword [ebp + 0xe0], 0x17001
sete al
inc eax
mov dword [esp + 0xa0], eax
mov dword [esp + 0x90], 0
lea edx, [esp + 0x3c8]
mov dword [esp + 0xcc], edx
lea ecx, [esp + 0x328]
mov dword [esp + 0x78], ecx
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp + 0xdc], eax
mov dword [esp + 0x80], ebp
jmp 0x4037e4
mov ecx, dword [esi + 8]
mov eax, dword [ebx + 0x28]
mov dword [esp], eax
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0xbc]
call fcn.004022d0
inc dword [esp + 0x90]
mov eax, dword [esp + 0xa0]
cmp dword [esp + 0x90], eax
jge 0x402dd8
mov dword [esp + 0x10], 1
mov dword [esp + 0x14], 0xf4240
mov esi, dword [esp + 0xc0]
mov eax, dword [esi]
mov edx, dword [eax + 0x3c]
mov eax, dword [eax + 0x38]
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov edi, dword [esp + 0xa4]
mov dword [esp], edi
mov eax, dword [esp + 0xb4]
mov dword [esp + 4], eax
call sub.avutil_50.dll_av_rescale_q
mov esi, eax
mov edi, edx
mov ebp, dword [esp + 0x3cc]
mov dword [esp + 0x10], 1
mov dword [esp + 0x14], 0xf4240
mov dword [esp + 8], 1
mov dword [esp + 0xc], 0x3e8
mov dword [esp], ebp
mov dword [esp + 4], 0
call sub.avutil_50.dll_av_rescale_q
add eax, esi
adc edx, edi
mov dword [esp + 0x3e0], eax
mov dword [esp + 0x3e4], edx
sub dword [esp + 0x3d0], ebp
mov dword [esp + 0x3cc], 0
mov edx, dword [esp + 0xcc]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0x100000
mov eax, dword [0x41fe9c]
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x80]
mov dword [esp], ecx
call sub.avcodec_52.dll_avcodec_encode_subtitle
mov esi, eax
test eax, eax
js 0x403984
mov eax, dword [esp + 0x78]
mov dword [esp], eax
call sub.avcodec_52.dll_av_init_packet
mov eax, dword [ebx + 4]
mov dword [esp + 0x340], eax
mov eax, dword [0x41fe9c]
mov dword [esp + 0x338], eax
mov dword [esp + 0x33c], esi
mov esi, dword [ebx + 0xc]
mov eax, dword [esi + 0x38]
mov edx, dword [esi + 0x3c]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
mov dword [esp + 8], 1
mov dword [esp + 0xc], 0xf4240
mov eax, dword [esp + 0x3e0]
mov edx, dword [esp + 0x3e4]
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.avutil_50.dll_av_rescale_q
mov dword [esp + 0x328], eax
mov dword [esp + 0x32c], edx
mov ecx, dword [esp + 0x80]
cmp dword [ecx + 0xe0], 0x17001
jne 0x4037b0
mov ecx, dword [esp + 0x90]
test ecx, ecx
jne 0x403978
mov edi, dword [esp + 0x3cc]
lea ecx, [edi + edi*4]
lea ecx, [edi + ecx*2]
lea edi, [edi + ecx*4]
shl edi, 1
xor ebp, ebp
add edi, eax
adc ebp, edx
mov dword [esp + 0x328], edi
mov dword [esp + 0x32c], ebp
jmp 0x4037b0
mov edi, dword [esp + 0x3d0]
jmp 0x403954
mov dword [esp + 4], str.Subtitle_encoding_failed_n
mov edi, dword [esp + 0xdc]
mov dword [esp], edi
call fcn.00401728
mov eax, 1
call fcn.00401af4
jmp 0x4038b9
mov ecx, dword [esp + 0x458]
mov dword [esp + 0xcc], ecx
mov edi, ecx
sar edi, 0x1f
mov dword [esp + 0xc0], ecx
mov dword [esp + 0xc4], edi
mov edi, dword [esp + 0xb8]
mov eax, dword [edi + 8]
mov eax, dword [eax + 8]
mov dword [esp + 0xfc], eax
mov eax, dword [ebp + 0x48]
mov dword [esp], eax
call sub.avutil_50.dll_av_get_bits_per_sample_fmt
test eax, eax
js 0x404ee2
sar eax, 3
mov dword [esp + 0xa4], eax
mov edx, dword [esp + 0xfc]
mov eax, dword [edx + 0x48]
mov dword [esp], eax
call sub.avutil_50.dll_av_get_bits_per_sample_fmt
test eax, eax
js 0x404eda
sar eax, 3
mov dword [esp + 0xe0], eax
mov eax, dword [ebp + 0x84]
mov eax, dword [eax + 8]
mov dword [esp], eax
call sub.avcodec_52.dll_av_get_bits_per_sample
mov dword [esp + 0xb4], eax
mov ecx, dword [esp + 0xa4]
shl ecx, 3
mov dword [esp + 0xdc], ecx
mov esi, dword [esp + 0xc0]
mov edi, dword [esp + 0xc4]
mov dword [esp + 0x90], esi
mov dword [esp + 0x94], edi
cdq
mov dword [esp + 0xe8], eax
mov dword [esp + 0xec], edx
mov edx, ecx
sar ecx, 0x1f
mov dword [esp + 0xf0], edx
mov dword [esp + 0xf4], ecx
mov dword [esp + 0xa0], ebx
mov edi, dword [esp + 0xfc]
nop
mov eax, dword [esp + 0xe0]
imul eax, dword [edi + 0x44]
mov dword [esp + 0x78], eax
mov ecx, eax
sar ecx, 0x1f
mov dword [esp + 0x7c], ecx
mov eax, dword [edi + 0x40]
mov dword [esp + 0x80], eax
mov ebx, eax
sar ebx, 0x1f
mov dword [esp + 0x84], ebx
mov ecx, dword [esp + 0x78]
mov ebx, dword [esp + 0x7c]
add ecx, 0xffffffff
adc ebx, 0xffffffff
add ecx, dword [esp + 0x90]
adc ebx, dword [esp + 0x94]
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x7c]
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov dword [esp], ecx
mov dword [esp + 4], ebx
call fcn.004101a0
mov ecx, edx
mov edx, dword [ebp + 0x40]
mov dword [esp + 0x78], edx
mov ebx, edx
sar ebx, 0x1f
mov dword [esp + 0x7c], ebx
imul ecx, edx
mov esi, dword [esp + 0x7c]
imul esi, eax
add ecx, esi
mul edx
lea edx, [ecx + edx]
mov ecx, dword [esp + 0x80]
mov ebx, dword [esp + 0x84]
add ecx, eax
adc ebx, edx
mov eax, dword [esp + 0x80]
mov edx, dword [esp + 0x84]
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov dword [esp], ecx
mov dword [esp + 4], ebx
call fcn.004101a0
mov ebx, eax
mov esi, edx
add ebx, 0x1388
adc esi, 0
add ebx, ebx
adc esi, esi
mov ecx, dword [ebp + 0x4c]
mov dword [esp + 0x80], ecx
mov edx, ecx
sar edx, 0x1f
mov dword [esp + 0x84], edx
mov dword [esp + 0x8c], ebx
cmp esi, dword [esp + 0x84]
jg 0x403ba0
jl 0x403b92
cmp ebx, ecx
jae 0x403ba0
mov dword [esp + 0x8c], ecx
mov esi, dword [esp + 0x84]
mov ebx, dword [esp + 0xa4]
imul ebx, dword [ebp + 0x44]
mov eax, ebx
sar eax, 0x1f
mov dword [esp + 0x7c], eax
imul esi, ebx
mov dword [esp + 0x80], esi
mov esi, dword [esp + 0x7c]
imul esi, dword [esp + 0x8c]
add dword [esp + 0x80], esi
mov eax, dword [esp + 0x8c]
mul ebx
mov dword [esp + 0x78], eax
mov ebx, dword [esp + 0x80]
add edx, ebx
mov dword [esp + 0x7c], edx
imul ecx, dword [ebp + 0x44]
imul ecx, dword [esp + 0xa4]
mov dword [esp + 0x80], ecx
mov esi, ecx
sar esi, 0x1f
mov dword [esp + 0x84], esi
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x7c]
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0x84]
cmp dword [esp + 0x7c], edx
jg 0x403c45
jl 0x403c2f
cmp dword [esp + 0x78], ecx
jae 0x403c45
mov ecx, dword [esp + 0x80]
mov ebx, dword [esp + 0x84]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], ebx
mov ebx, dword [esp + 0xdc]
cmp dword [esp + 0xb4], ebx
jle 0x403cc2
mov ecx, dword [esp + 0xb4]
imul ecx, dword [esp + 0x44]
mov esi, dword [esp + 0xec]
imul esi, dword [esp + 0x40]
add ecx, esi
mov eax, dword [esp + 0xb4]
mul dword [esp + 0x40]
mov dword [esp + 0x80], eax
add edx, ecx
mov dword [esp + 0x84], edx
mov edx, dword [esp + 0xf0]
mov ecx, dword [esp + 0xf4]
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x80]
mov ebx, dword [esp + 0x84]
mov dword [esp], ecx
mov dword [esp + 4], ebx
call fcn.004101a0
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], edx
mov ebx, dword [esp + 0x40]
mov esi, dword [esp + 0x44]
add ebx, 0x4000
adc esi, 0
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], esi
cmp esi, 0
jle 0x404558
mov dword [esp + 4], str.Buffer_sizes_too_large_n
mov esi, dword [esp + 0xe4]
mov dword [esp], esi
call fcn.00401728
mov eax, 1
call fcn.00401af4
mov eax, dword [esp + 0x78]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x41fe7c
mov dword [esp], 0x41fe78
call sub.avcodec_52.dll_av_fast_malloc
mov edx, dword [esp + 0x80]
mov dword [esp + 8], edx
mov dword [esp + 4], 0x41fe88
mov dword [esp], 0x41fe84
call sub.avcodec_52.dll_av_fast_malloc
mov eax, dword [0x41fe78]
test eax, eax
je 0x40458c
mov esi, dword [0x41fe84]
test esi, esi
je 0x40458c
mov esi, dword [edi + 0x44]
cmp dword [ebp + 0x44], esi
je 0x40451c
mov ebx, dword [esp + 0xa0]
mov dword [ebx + 0x144], 1
mov edx, 1
mov ecx, ebx
mov eax, dword [edi + 0x48]
cmp dword [ecx + 0x14c], eax
je 0x404538
mov ecx, 1
test edx, edx
je 0x403db2
mov ebx, dword [esp + 0xa0]
mov ebx, dword [ebx + 0x148]
test ebx, ebx
je 0x404818
test ecx, ecx
je 0x403f19
mov dword [esp], eax
call sub.avutil_50.dll_av_get_sample_fmt_name
mov edx, eax
mov ecx, dword [edi + 0x40]
mov eax, dword [esp + 0xa0]
mov ebx, dword [eax + 0x150]
mov eax, dword [eax + 0x14c]
mov dword [esp], eax
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], ecx
call sub.avutil_50.dll_av_get_sample_fmt_name
mov dword [esp + 0x28], esi
mov edx, dword [esp + 0x60]
mov dword [esp + 0x24], edx
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], eax
mov edx, dword [esp + 0xa0]
mov eax, dword [edx + 0x154]
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0xb8]
mov eax, dword [ecx + 4]
mov dword [esp + 0x10], eax
mov eax, dword [ecx]
mov dword [esp + 0xc], eax
mov dword [esp + 8], str.Input_stream__d._d_frame_changed_from_rate:_d_fmt:_s_ch:_d_to_rate:_d_fmt:_s_ch:_d_n
mov dword [esp + 4], 0x20
mov dword [esp], 0
call sub.avutil_50.dll_av_log
mov eax, dword [edi + 0x48]
mov ebx, dword [esp + 0xa0]
mov dword [ebx + 0x14c], eax
mov edx, dword [edi + 0x44]
mov dword [ebx + 0x150], edx
mov edx, dword [edi + 0x40]
mov dword [ebx + 0x154], edx
mov edx, dword [ebx + 0x148]
test edx, edx
je 0x403e7e
mov dword [esp], edx
call sub.avcodec_52.dll_audio_resample_close
mov eax, dword [edi + 0x48]
cmp dword [0x41f390], 1
jle 0x4045b4
cmp eax, 1
je 0x403eab
mov dword [esp + 4], str.Warning__using_s16_intermediate_sample_format_for_resampling_n
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call fcn.00401728
mov eax, dword [edi + 0x48]
mov dword [esp + 0x24], 0x9999999a
mov dword [esp + 0x28], 0x3fe99999
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0xa
mov dword [esp + 0x18], 0x10
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x48]
mov dword [esp + 0x10], eax
mov eax, dword [edi + 0x40]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x40]
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x44]
mov dword [esp], eax
call sub.avcodec_52.dll_av_audio_resample_init
mov esi, dword [esp + 0xa0]
mov dword [esi + 0x148], eax
test eax, eax
je 0x404934
mov edx, dword [esi + 0x144]
test edx, edx
jne 0x403fb2
mov edx, dword [ebp + 0x48]
mov eax, dword [edi + 0x48]
cmp edx, eax
je 0x403fb2
lea ecx, [eax + eax*4]
add ecx, edx
mov ebx, dword [esp + 0xa0]
cmp ecx, dword [ebx + 0x158]
je 0x403fb2
mov ecx, dword [ebx + 0x15c]
test ecx, ecx
je 0x403f5b
mov dword [esp], ecx
call sub.avcodec_52.dll_av_audio_convert_free
mov eax, dword [edi + 0x48]
mov edx, dword [ebp + 0x48]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 1
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov dword [esp], edx
call sub.avcodec_52.dll_av_audio_convert_alloc
mov esi, dword [esp + 0xa0]
mov dword [esi + 0x15c], eax
test eax, eax
je 0x404efd
mov eax, dword [edi + 0x48]
lea eax, [eax + eax*4]
add eax, dword [ebp + 0x48]
mov edx, dword [esp + 0xa0]
mov dword [edx + 0x158], eax
mov esi, dword [0x41f390]
test esi, esi
je 0x404d94
mov ecx, dword [esp + 0xa0]
mov eax, dword [ecx + 0x18]
mov edx, dword [eax + 0x34]
mov eax, dword [eax + 0x30]
sub eax, dword [0x41faf8]
sbb edx, dword [0x41fafc]
mov dword [esp + 0x128], eax
mov dword [esp + 0x12c], edx
fild qword [esp + 0x128]
fstp qword [esp + 0x130]
fld qword [esp + 0x130]
fld dword [0x41c5d8]
fdivp st(1)
fstp qword [esp + 0x130]
fld qword [esp + 0x130]
fild dword [ebp + 0x40]
fmulp st(1)
fild qword [ecx + 0x20]
fstp qword [esp + 0x130]
fld qword [esp + 0x130]
fsubp st(1)
mov eax, dword [ecx + 0x160]
mov dword [esp], eax
fstp xword [esp + 0x50]
call sub.avutil_50.dll_av_fifo_size
mov ecx, dword [ebp + 0x44]
shl ecx, 1
cdq
idiv ecx
fld xword [esp + 0x50]
push eax
fisub dword [esp]
add esp, 4
fstp qword [esp + 0x130]
fld qword [esp + 0x130]
mov ecx, dword [edi + 0x40]
mov edx, dword [ebp + 0x40]
mov esi, dword [edi + 0x44]
fld st(0)
fabs
fld dword [0x41c5dc]
fxch st(1)
fucom st(1)
fnstsw ax
fstp st(1)
test ah, 0x45
jne 0x404e50
mov ebx, dword [esp + 0xb8]
mov ebx, dword [ebx + 0x58]
test ebx, ebx
jne 0x4040c8
fld dword [0x419018]
mov dword [esp + 0x120], edx
fild dword [esp + 0x120]
fstp dword [esp + 0x13c]
fld dword [esp + 0x13c]
fmulp st(1)
fxch st(1)
fucompp
fnstsw ax
test ah, 0x45
je 0x4040ca
jmp 0x40509c
fstp st(0)
shl esi, 1
mov dword [esp + 0x120], ecx
fild dword [esp + 0x120]
fmul st(1)
push edx
fidiv dword [esp]
add esp, 4
fstp qword [esp + 0x130]
fld qword [esp + 0x130]
fnstcw word [esp + 0x126]
mov ax, word [esp + 0x126]
mov ah, 0xc
mov word [esp + 0x124], ax
fldcw word [esp + 0x124]
fistp dword [esp + 0x120]
fldcw word [esp + 0x126]
mov eax, dword [esp + 0x120]
imul esi, eax
test esi, esi
js 0x404e7c
mov edx, dword [esp + 0xcc]
add edx, esi
mov dword [esp + 0x78], edx
mov dword [esp + 4], edx
mov eax, dword [0x41fe8c]
mov dword [esp], eax
fstp qword [esp + 0x50]
call sub.avutil_50.dll_av_realloc
mov dword [0x41fe8c], eax
mov dword [esp + 0x40], esi
mov ecx, esi
sar ecx, 0x1f
mov dword [esp + 0x44], ecx
mov edx, dword [esp + 0x90]
mov ecx, dword [esp + 0x94]
sub edx, dword [esp + 0xc0]
sbb ecx, dword [esp + 0xc4]
mov dword [esp + 0x90], edx
mov dword [esp + 0x94], ecx
cmp dword [esp + 0x44], ecx
fld qword [esp + 0x50]
jge 0x4044e0
mov ebx, dword [esp + 0xa0]
mov dword [esp + 0x90], eax
mov edi, dword [esp + 0xb8]
mov dword [edi + 0x58], 0
xor eax, eax
mov edi, dword [esp + 0x90]
mov ecx, esi
rep stosb byte es:[edi], al
mov esi, dword [esp + 0x108]
mov ecx, dword [esp + 0xcc]
rep movsb byte es:[edi], byte [esi]
cmp dword [0x41904c], 2
jg 0x4051ca
fstp st(0)
mov edi, dword [esp + 0x78]
mov dword [esp + 0xcc], edi
mov edi, dword [ebx + 0x144]
test edi, edi
jne 0x404b84
mov eax, dword [ebp + 0x48]
mov edi, dword [esp + 0xfc]
cmp dword [edi + 0x48], eax
je 0x404e70
lea edi, [esp + 0x434]
xor eax, eax
mov ecx, 0x18
rep stosb byte es:[edi], al
mov edx, dword [esp + 0x90]
mov dword [esp + 0x434], edx
lea edi, [esp + 0x41c]
mov cl, 0x18
rep stosb byte es:[edi], al
mov edx, dword [0x41fe78]
mov dword [esp + 0x41c], edx
lea edi, [esp + 0x404]
mov cl, 0x18
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0xe0]
mov dword [esp + 0x404], ecx
lea edi, [esp + 0x3ec]
mov ecx, 0x18
rep stosb byte es:[edi], al
mov esi, dword [esp + 0xa4]
mov dword [esp + 0x3ec], esi
mov eax, dword [esp + 0xcc]
cdq
idiv dword [esp + 0xe0]
mov esi, eax
mov dword [esp + 0x14], eax
lea eax, [esp + 0x404]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x434]
mov dword [esp + 0xc], eax
lea eax, [esp + 0x3ec]
mov dword [esp + 8], eax
lea eax, [esp + 0x41c]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x15c]
mov dword [esp], eax
call sub.avcodec_52.dll_av_audio_convert
test eax, eax
js 0x40529a
mov edi, dword [0x41fe78]
imul esi, dword [esp + 0xa4]
mov dword [esp + 0xcc], esi
cmp dword [ebp + 0x4c], 1
jle 0x404c34
mov eax, dword [ebx + 0x160]
mov dword [esp], eax
call sub.avutil_50.dll_av_fifo_size
add eax, dword [esp + 0xcc]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x160]
mov dword [esp], eax
call sub.avutil_50.dll_av_fifo_realloc2
test eax, eax
js 0x405153
mov dword [esp + 0xc], 0
mov edx, dword [esp + 0xcc]
mov dword [esp + 8], edx
mov dword [esp + 4], edi
mov eax, dword [ebx + 0x160]
mov dword [esp], eax
call sub.avutil_50.dll_av_fifo_generic_write
mov esi, dword [ebp + 0x44]
imul esi, dword [ebp + 0x4c]
imul esi, dword [esp + 0xa4]
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp + 0x90], eax
mov dword [esp + 0x8c], esi
jmp 0x40442e
mov dword [esp + 0x78], edx
mov esi, edx
sar esi, 0x1f
mov dword [esp + 0x7c], esi
mov esi, dword [esp + 0x78]
mov edi, dword [esp + 0x7c]
add dword [0x41fe68], esi
adc dword [0x41fe6c], edi
mov eax, dword [ebx + 4]
mov dword [esp + 0x340], eax
mov eax, dword [0x41fe84]
mov dword [esp + 0x338], eax
mov dword [esp + 0x33c], edx
mov eax, dword [ebp + 0x190]
test eax, eax
je 0x404401
mov edx, dword [eax + 0x38]
mov eax, dword [eax + 0x3c]
lea ecx, [eax - 0x80000000]
or ecx, edx
je 0x404401
mov ecx, dword [ebx + 0xc]
mov esi, dword [ecx + 0x38]
mov edi, dword [ecx + 0x3c]
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
mov esi, dword [ebp + 0x20]
mov edi, dword [ebp + 0x24]
mov dword [esp + 8], esi
mov dword [esp + 0xc], edi
mov dword [esp], edx
mov dword [esp + 4], eax
call sub.avutil_50.dll_av_rescale_q
mov dword [esp + 0x328], eax
mov dword [esp + 0x32c], edx
or dword [esp + 0x344], 1
mov eax, dword [ebx + 0x28]
mov dword [esp], eax
mov ecx, ebp
lea edx, [esp + 0x328]
mov eax, dword [esp + 0xbc]
call fcn.004022d0
mov eax, dword [ebp + 0x4c]
cdq
add dword [ebx + 0x20], eax
adc dword [ebx + 0x24], edx
mov eax, dword [ebx + 0x160]
mov dword [esp], eax
call sub.avutil_50.dll_av_fifo_size
cmp dword [esp + 0x8c], eax
jg 0x402dd8
lea esi, [esp + 0x328]
mov dword [esp], esi
call sub.avcodec_52.dll_av_init_packet
mov dword [esp + 0xc], 0
mov edi, dword [esp + 0x8c]
mov dword [esp + 8], edi
mov eax, dword [0x41fe78]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x160]
mov dword [esp], eax
call sub.avutil_50.dll_av_fifo_generic_read
mov eax, dword [0x41fe78]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 8], eax
mov eax, dword [0x41fe84]
mov dword [esp + 4], eax
mov dword [esp], ebp
call sub.avcodec_52.dll_avcodec_encode_audio
mov edx, eax
test eax, eax
jns 0x404370
mov dword [esp + 4], str.Audio_encoding_failed_n
mov ecx, dword [esp + 0x90]
mov dword [esp], ecx
mov dword [esp + 0x60], eax
call fcn.00401728
mov eax, 1
call fcn.00401af4
mov edx, dword [esp + 0x60]
jmp 0x404370
jg 0x4044f0
cmp esi, edx
jbe 0x40419d
fstp st(0)
jmp 0x4044f2
fstp st(0)
mov ecx, dword [esp + 0xc0]
mov ebx, dword [esp + 0xc4]
add ecx, dword [esp + 0x40]
adc ebx, dword [esp + 0x44]
mov dword [esp + 0x90], ecx
mov dword [esp + 0x94], ebx
jmp 0x403a98
mov ecx, dword [esp + 0xa0]
mov edx, dword [ecx + 0x144]
mov eax, dword [edi + 0x48]
cmp dword [ecx + 0x14c], eax
jne 0x403d94
cmp esi, dword [ecx + 0x150]
jne 0x403d94
mov ebx, dword [edi + 0x40]
cmp dword [ecx + 0x154], ebx
setne cl
movzx ecx, cl
jmp 0x403d99
jl 0x404566
cmp ebx, 0x7fffffff
ja 0x403cea
cmp dword [esp + 0x7c], 0
jl 0x403d0b
jg 0x403cea
cmp dword [esp + 0x78], 0x7fffffff
jbe 0x403d0b
jmp 0x403cea
mov dword [esp + 4], str.Out_of_memory_in_do_audio_out_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
jmp 0x403d61
mov esi, dword [esp + 0xa0]
mov edx, dword [esi + 0x14c]
cmp edx, dword [ebp + 0x48]
jne 0x403e8b
mov ecx, dword [ebp + 0x44]
cmp dword [esi + 0x150], ecx
jne 0x403e8b
mov ebx, dword [ebp + 0x40]
cmp dword [esi + 0x154], ebx
jne 0x403e8b
mov dword [esi + 0x148], 0
mov dword [esi + 0x144], 0
jmp 0x403f27
mov dword [esp + 0xa4], 0
mov eax, dword [0x41f7a4]
test eax, eax
je 0x402dd8
mov ecx, dword [esp + 0xa4]
test ecx, ecx
je 0x402dd8
mov edx, dword [0x41fe98]
test edx, edx
je 0x405383
mov eax, dword [ebx + 0xc]
mov esi, dword [eax + 8]
mov eax, dword [esi + 0xdc]
test eax, eax
jne 0x402dd8
mov eax, dword [esi + 0x190]
fild dword [eax + 0x48]
fstp dword [esp + 0x13c]
fld dword [esp + 0x13c]
fdiv dword [0x41c61c]
fstp qword [esp + 0xc]
mov eax, dword [ebx + 0x14]
mov dword [esp + 8], eax
mov dword [esp + 4], str.frame__5d_q__2.1f
mov eax, dword [0x41fe98]
mov dword [esp], eax
call fcn.00401728
test byte [esi + 0xd], 0x80
jne 0x4052b9
mov edi, dword [esp + 0xa4]
mov dword [esp + 8], edi
mov dword [esp + 4], str.f_size__6d
mov eax, dword [0x41fe98]
mov dword [esp], eax
call fcn.00401728
fild dword [esi + 0x24]
fidivr dword [esi + 0x20]
fstp qword [esp + 0x130]
fld qword [esp + 0x130]
fild qword [ebx + 0x20]
fstp qword [esp + 0x130]
fld qword [esp + 0x130]
fmul st(1)
fstp qword [esp + 0x130]
fld qword [esp + 0x130]
fld st(0)
fld xword [0x41c630]
fucomp st(1)
fnstsw ax
test ah, 0x45
jne 0x404703
fstp st(0)
fstp st(0)
fld qword [0x41c5d0]
fld st(0)
mov ecx, dword [0x41fe70]
mov ebx, dword [0x41fe74]
mov eax, ecx
mov edx, ebx
shld edx, eax, 3
shl eax, 3
mov dword [esp + 0x128], eax
mov dword [esp + 0x12c], edx
fild qword [esp + 0x128]
fstp qword [esp + 0x130]
fld qword [esp + 0x130]
fdivrp st(1)
fld dword [0x41c63c]
fdiv st(1), st(0)
fxch st(1)
fstp qword [esp + 0x20]
fxch st(2)
mov edx, dword [esp + 0xa4]
lea eax, [edx*8]
push eax
fidivr dword [esp]
add esp, 4
fdivrp st(2)
fxch st(1)
fstp qword [esp + 0x18]
fstp qword [esp + 0x10]
mov dword [esp + 0x128], ecx
mov dword [esp + 0x12c], ebx
fild qword [esp + 0x128]
fstp qword [esp + 0x130]
fld qword [esp + 0x130]
fld dword [0x41c640]
fmulp st(1)
fstp qword [esp + 8]
mov dword [esp + 4], str.s_size__8.0fkB_time__0.3f_br__7.1fkbits_s_avg_br__7.1fkbits_s
mov eax, dword [0x41fe98]
mov dword [esp], eax
call fcn.00401728
mov eax, dword [esi + 0x190]
mov eax, dword [eax + 0x34]
mov dword [esp], eax
call sub.avcodec_52.dll_av_get_pict_type_char
movsx eax, al
mov dword [esp + 8], eax
mov dword [esp + 4], str.type__c_n
mov eax, dword [0x41fe98]
mov dword [esp], eax
call fcn.00401728
jmp 0x402dd8
mov esi, dword [esp + 0x100]
mov dword [esp + 0x338], esi
mov edi, dword [esp + 0xb0]
mov dword [esp + 0x33c], edi
jmp 0x40366d
mov ecx, 1
jmp 0x40271c
test ecx, ecx
je 0x403e7e
jmp 0x403dba
cmp dword [esi + 0x4c], 1
jg 0x402a39
jmp 0x4029dc
mov dword [esp + 4], str.Video_encoding_failed_n
mov esi, dword [esp + 0xc0]
mov dword [esp], esi
call fcn.00401728
mov eax, 1
call fcn.00401af4
jmp 0x403279
mov ecx, dword [esp + 0xb8]
mov eax, dword [ecx + 8]
mov eax, dword [eax + 8]
mov esi, dword [eax + 0xdc]
test esi, esi
jne 0x404984
mov eax, dword [ecx + 0x64]
test eax, eax
je 0x404984
mov eax, dword [eax + 0x14]
mov eax, dword [eax]
mov dword [esp], eax
call sub.avfilter_1.dll_avfilter_poll_frame
xor ebx, ebx
test eax, eax
setne bl
mov esi, dword [esp + 0xb8]
mov eax, dword [esi + 0x74]
test eax, eax
je 0x4048b0
mov dword [esp], eax
call sub.avfilter_1.dll_avfilter_unref_buffer
test ebx, ebx
jne 0x402d18
mov ebp, dword [esp + 0xb8]
jmp 0x402745
mov dword [esp + 4], str.Video_encoding_failed_n
mov edx, dword [esp + 0x9c]
mov dword [esp], edx
call fcn.00401728
mov eax, 1
call fcn.00401af4
jmp 0x402a78
fstp dword [esp + 0x13c]
fld dword [esp + 0x13c]
fistp dword [esp + 0x454]
mov eax, dword [esp + 0x454]
mov dword [ebx + 0x20], eax
cdq
mov dword [ebx + 0x24], edx
mov esi, 1
jmp 0x402fc0
mov ebx, 0xf4240
mov eax, dword [ecx + 0x4c]
imul ebx
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], edx
mov eax, dword [ecx + 0x40]
jmp 0x4028a3
mov eax, dword [ebp + 0x40]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x44]
mov dword [esp + 0x10], eax
mov eax, dword [edi + 0x40]
mov dword [esp + 0xc], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 8], eax
mov dword [esp + 4], str.Can_not_resample__d_channels____d_Hz_to__d_channels____d_Hz_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 [esp + 0xa0]
mov edx, dword [eax + 0x144]
jmp 0x403f19
xor ebx, ebx
jmp 0x40489a
mov ecx, dword [0x41f3c4]
test ecx, ecx
jne 0x404fec
mov dword [esp + 0x104], 0
test edx, edx
jne 0x4026de
mov ecx, dword [ebp + 0x68]
test ecx, ecx
je 0x4026e7
mov edx, dword [eax + 0x168]
test edx, edx
je 0x404b58
mov edx, dword [eax + 0x16c]
mov eax, dword [eax + 0x168]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
mov eax, dword [ebp + 0x30]
mov edx, dword [ebp + 0x34]
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
lea edx, [esp + 0x238]
mov dword [esp + 4], edx
mov dword [esp], ecx
call sub.avfilter_1.dll_av_vsrc_buffer_add_frame
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0xdc]
jmp 0x4026de
mov dword [esp + 0x10], 0xf4240
mov dword [esp + 0x14], 0
mov dword [esp + 8], 0xf4240
mov dword [esp + 0xc], 0
mov eax, dword [ebp + 0x30]
mov edx, dword [ebp + 0x34]
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.avutil_50.dll_av_rescale
mov esi, eax
mov ebx, edx
call sub.avformat_52.dll_av_gettime
sub eax, dword [ebp + 0x20]
sbb edx, dword [ebp + 0x24]
cmp ebx, edx
jle 0x404eea
sub esi, eax
mov dword [esp], esi
call fcn.004104b0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0xdc]
jmp 0x4026f5
mov esi, dword [0x419028]
cmp esi, 0x100
je 0x4026e7
mov ebx, dword [0x41fe64]
mov edi, dword [esp + 0x458]
shr edi, 1
je 0x4026e7
xor ecx, ecx
jmp 0x404ab5
cmp eax, 0x7fff
jle 0x404aa8
mov eax, 0x7fff
mov word [ebx + ecx*2], ax
inc ecx
cmp ecx, edi
je 0x4026e7
movsx eax, word [ebx + ecx*2]
imul eax, esi
sub eax, 0xffffff80
sar eax, 8
cmp eax, 0xffff8000
jge 0x404a9c
mov eax, 0xffff8000
jmp 0x404aa8
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 ecx, dword [esp + 0xb8]
mov eax, dword [ecx + 0x30]
mov edx, dword [ecx + 0x34]
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.avutil_50.dll_av_rescale_q
jmp 0x403583
mov dword [esp + 0x328], 0
mov dword [esp + 0x32c], 0x80000000
mov ecx, dword [esp + 0xb8]
mov ecx, dword [ecx + 8]
mov dword [esp + 0x90], ecx
jmp 0x40352a
mov eax, dword [esp + 0x110]
mov edx, dword [esp + 0x114]
add dword [0x41fe68], eax
adc dword [0x41fe6c], edx
jmp 0x40349c
mov eax, dword [ebx + 0x188]
mov edx, dword [ebx + 0x18c]
jmp 0x4049d2
mov eax, 1
mov dword [esp + 0x60], edx
call fcn.00401af4
mov edx, dword [esp + 0x60]
jmp 0x4036b6
mov edi, dword [0x41fe78]
mov ecx, dword [esp + 0xe0]
mov edx, dword [esp + 0xfc]
imul ecx, dword [edx + 0x44]
mov eax, dword [esp + 0xcc]
cdq
idiv ecx
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x90]
mov dword [esp + 8], ecx
mov dword [esp + 4], edi
mov eax, dword [ebx + 0x148]
mov dword [esp], eax
call sub.avcodec_52.dll_audio_resample
mov esi, dword [esp + 0xa4]
imul esi, dword [ebp + 0x44]
imul eax, esi
mov dword [esp + 0xcc], eax
mov esi, dword [ebx + 0x144]
test esi, esi
jne 0x4042e8
mov dword [esp + 0x90], edi
jmp 0x4041fe
mov esi, dword [0x41904c]
test esi, esi
jg 0x402622
jmp 0x402660
fstp st(0)
fstp st(0)
fstp st(0)
jmp 0x404c18
fstp st(0)
fstp st(0)
inc dword [0x41fe90]
cmp dword [0x41904c], 2
jg 0x40517a
xor esi, esi
jmp 0x402fc0
lea eax, [esp + 0x328]
mov dword [esp + 0x78], eax
mov dword [esp], eax
call sub.avcodec_52.dll_av_init_packet
mov ecx, dword [esp + 0xa4]
imul ecx, dword [ebp + 0x44]
mov eax, dword [esp + 0xcc]
cdq
idiv ecx
cdq
add dword [ebx + 0x20], eax
adc dword [ebx + 0x24], edx
mov eax, dword [esp + 0xcc]
cdq
idiv dword [esp + 0xa4]
mov esi, eax
mov edx, dword [esp + 0xb4]
test edx, edx
je 0x404c94
imul eax, dword [esp + 0xb4]
test eax, eax
js 0x405345
mov esi, eax
sar esi, 3
mov eax, esi
cdq
cmp edx, dword [esp + 0x84]
jl 0x404ccd
jg 0x404cab
cmp esi, dword [esp + 0x80]
jbe 0x404ccd
mov dword [esp + 4], str.Internal_error__buffer_size_too_small_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 dword [esp + 0xc], edi
mov dword [esp + 8], esi
mov eax, dword [0x41fe84]
mov dword [esp + 4], eax
mov dword [esp], ebp
call sub.avcodec_52.dll_avcodec_encode_audio
mov esi, eax
test eax, eax
js 0x40525f
mov eax, esi
cdq
add dword [0x41fe68], esi
adc dword [0x41fe6c], edx
mov eax, dword [ebx + 4]
mov dword [esp + 0x340], eax
mov eax, dword [0x41fe84]
mov dword [esp + 0x338], eax
mov dword [esp + 0x33c], esi
mov eax, dword [ebp + 0x190]
test eax, eax
je 0x404d6f
mov ecx, dword [eax + 0x38]
mov edx, dword [eax + 0x3c]
lea eax, [edx - 0x80000000]
or eax, ecx
je 0x404d6f
mov eax, dword [ebx + 0xc]
mov esi, dword [eax + 0x38]
mov edi, dword [eax + 0x3c]
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
mov esi, dword [ebp + 0x20]
mov edi, dword [ebp + 0x24]
mov dword [esp + 8], esi
mov dword [esp + 0xc], edi
mov dword [esp], ecx
mov dword [esp + 4], edx
call sub.avutil_50.dll_av_rescale_q
mov dword [esp + 0x328], eax
mov dword [esp + 0x32c], edx
or dword [esp + 0x344], 1
mov eax, dword [ebx + 0x28]
mov dword [esp], eax
mov ecx, ebp
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0xbc]
call fcn.004022d0
jmp 0x402dd8
mov ebx, dword [esp + 0xa0]
mov eax, dword [ebx + 0x18]
mov edx, dword [eax + 0x34]
mov eax, dword [eax + 0x30]
sub eax, dword [0x41faf8]
sbb edx, dword [0x41fafc]
mov dword [esp + 0x128], eax
mov dword [esp + 0x12c], edx
fild qword [esp + 0x128]
fstp qword [esp + 0x130]
fld qword [esp + 0x130]
fld dword [0x41c5d8]
fdivp st(1)
fstp qword [esp + 0x130]
fld qword [esp + 0x130]
fild dword [ebp + 0x40]
fmulp st(1)
fstp dword [esp + 0x13c]
fld dword [esp + 0x13c]
fistp dword [esp + 0x454]
mov esi, dword [esp + 0x454]
mov eax, dword [ebx + 0x160]
mov dword [esp], eax
call sub.avutil_50.dll_av_fifo_size
mov edx, dword [ebp + 0x44]
neg edx
lea ecx, [edx + edx]
cdq
idiv ecx
add eax, esi
mov dword [ebx + 0x20], eax
cdq
mov dword [ebx + 0x24], edx
mov ecx, dword [esp + 0x108]
mov dword [esp + 0x90], ecx
jmp 0x4041f0
mov eax, 1
call fcn.00401af4
jmp 0x40306a
fstp st(0)
fstp st(0)
mov ebx, dword [esp + 0xa0]
mov esi, dword [esp + 0x108]
mov dword [esp + 0x90], esi
jmp 0x4041f0
mov edi, dword [esp + 0x90]
jmp 0x4042e8
mov ebx, dword [esp + 0xa0]
mov eax, dword [esp + 0xcc]
neg eax
cmp esi, eax
jge 0x404e92
mov esi, eax
add dword [esp + 0xcc], esi
cmp dword [0x41904c], 2
jg 0x405199
fstp st(0)
mov edx, dword [esp + 0xcc]
test edx, edx
je 0x402dd8
mov edi, dword [esp + 0x108]
sub edi, esi
mov dword [esp + 0x90], edi
mov eax, dword [esp + 0xb8]
mov dword [eax + 0x58], 0
jmp 0x4041f0
add eax, 7
jmp 0x403a18
add eax, 7
jmp 0x4039f4
jl 0x404a5f
cmp esi, eax
ja 0x404a55
jmp 0x404a5f
mov eax, dword [ebp + 0x48]
mov dword [esp], eax
call sub.avutil_50.dll_av_get_sample_fmt_name
mov esi, eax
mov eax, dword [edi + 0x48]
mov dword [esp], eax
call sub.avutil_50.dll_av_get_sample_fmt_name
mov dword [esp + 0xc], esi
mov dword [esp + 8], eax
mov dword [esp + 4], str.Cannot_convert__s_sample_format_to__s_sample_format_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
jmp 0x403f9c
mov dword [esp + 4], str.Subtitle_packets_must_have_a_pts_n
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call fcn.00401728
mov edi, dword [0x41f3a8]
test edi, edi
je 0x402dd8
mov eax, 1
call fcn.00401af4
jmp 0x402dd8
mov edi, dword [esp + 0xbc]
mov eax, dword [edi + 8]
test byte [eax + 0x29], 4
je 0x402f67
fstp st(1)
jmp 0x404f93
fstp st(1)
fld xword [0x41c5f0]
fucomp st(1)
fnstsw ax
test ah, 5
je 0x404c14
fld xword [0x41c600]
fxch st(1)
fucompp
fnstsw ax
test ah, 0x45
jne 0x404fe0
fstp dword [esp + 0x13c]
fld dword [esp + 0x13c]
fistp dword [esp + 0x454]
mov eax, dword [esp + 0x454]
mov dword [ebx + 0x20], eax
cdq
mov dword [ebx + 0x24], edx
jmp 0x404fe2
fstp st(0)
jmp 0x404fe2
fstp st(0)
mov esi, 1
jmp 0x402fc0
mov eax, dword [ebx + 0x2c]
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x28]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x34]
mov dword [esp], eax
call sub.avcodec_52.dll_avpicture_get_size
mov dword [esp], eax
call sub.avutil_50.dll_av_malloc
mov dword [esp + 0x104], eax
test eax, eax
je 0x405329
mov esi, eax
lea edx, [esp + 0x238]
mov eax, dword [ebx + 0x2c]
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0x28]
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 0x34]
mov dword [esp + 8], eax
mov dword [esp + 4], esi
lea esi, [esp + 0x3a8]
mov dword [esp], esi
mov dword [esp + 0x60], edx
call sub.avcodec_52.dll_avpicture_fill
mov eax, dword [ebx + 0x2c]
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0x28]
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 0x34]
mov dword [esp + 8], eax
mov edx, dword [esp + 0x60]
mov dword [esp + 4], edx
mov dword [esp], esi
call sub.avcodec_52.dll_avpicture_deinterlace
test eax, eax
mov edx, dword [esp + 0x60]
js 0x40557b
mov ecx, 8
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 8]
mov edx, dword [ebx + 0xdc]
jmp 0x4049a5
mov ebx, dword [esp + 0xa0]
mov ecx, dword [0x41f390]
cmp ecx, 1
jle 0x405285
mov esi, ecx
neg esi
fnstcw word [esp + 0x126]
mov ax, word [esp + 0x126]
mov ah, 0xc
mov word [esp + 0x124], ax
fldcw word [esp + 0x124]
fist dword [esp + 0x120]
fldcw word [esp + 0x126]
mov eax, dword [esp + 0x120]
cmp esi, eax
jg 0x4050f7
mov esi, eax
cmp eax, ecx
jle 0x4050f7
mov esi, ecx
mov eax, dword [ebx + 0x144]
test eax, eax
je 0x405715
cmp dword [0x41904c], 2
jg 0x40534d
fstp st(0)
mov dword [esp + 8], edx
mov dword [esp + 4], esi
mov eax, dword [ebx + 0x148]
mov eax, dword [eax]
mov dword [esp], eax
call sub.avcodec_52.dll_av_resample_compensate
mov edx, dword [esp + 0x108]
mov dword [esp + 0x90], edx
jmp 0x4041f0
mov eax, dword [eax + 0x34]
cmp dword [ebx + 0x12c], eax
jne 0x403013
jmp 0x40306a
mov dword [esp + 4], str.av_fifo_realloc2___failed_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
jmp 0x404321
mov dword [esp + 4], str._drop__n
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call fcn.00401728
xor esi, esi
jmp 0x402fc0
fchs
fldcw word [esp + 0x124]
fistp dword [esp + 8]
fldcw word [esp + 0x126]
mov dword [esp + 4], str.discarding__d_audio_samples_n
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call fcn.00401728
jmp 0x404ea8
fnstcw word [esp + 0x126]
mov ax, word [esp + 0x126]
mov ah, 0xc
mov word [esp + 0x124], ax
fldcw word [esp + 0x124]
fistp dword [esp + 8]
fldcw word [esp + 0x126]
mov dword [esp + 4], str.adding__d_audio_samples_of_silence_n
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call fcn.00401728
mov eax, dword [esp + 0x78]
mov dword [esp + 0xcc], eax
jmp 0x4041f0
mov dword [esp], 0x100000
call sub.avutil_50.dll_av_malloc
mov dword [0x41fe9c], eax
jmp 0x40375b
mov dword [esp + 8], eax
mov dword [esp + 4], str.__d_dup__n
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call fcn.00401728
jmp 0x402fc0
mov ebx, dword [ecx + 0x36c]
jmp 0x40286e
mov dword [esp + 4], str.Audio_encoding_failed_n
mov edx, dword [esp + 0x11c]
mov dword [esp], edx
call fcn.00401728
mov eax, 1
call fcn.00401af4
jmp 0x404cf0
fstp st(0)
mov eax, dword [esp + 0x108]
mov dword [esp + 0x90], eax
jmp 0x4041f0
mov dword [esp], str.av_audio_convert___failed_n
call fcn.00401ad8
mov ecx, dword [0x41f3a8]
test ecx, ecx
je 0x402dd8
jmp 0x404f6a
mov eax, dword [esi + 0x190]
fild qword [eax + 0x78]
mov ebp, dword [eax + 0x7c]
test ebp, ebp
js 0x4055b3
fstp qword [esp + 0x130]
fld qword [esp + 0x130]
mov eax, dword [esi + 0x2c]
imul eax, dword [esi + 0x28]
fld dword [0x41c5c8]
fld st(0)
push eax
fimul dword [esp]
add esp, 4
fmulp st(1)
fdivp st(1)
fstp qword [esp]
call sub.msvcrt.dll_log
fld dword [0x41c5c4]
fmulp st(1)
fdiv qword [0x41c628]
fstp qword [esp + 8]
mov dword [esp + 4], str.PSNR__6.2f
mov eax, dword [0x41fe98]
mov dword [esp], eax
call fcn.00401728
jmp 0x404691
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 8]
mov edx, dword [ebx + 0xdc]
mov dword [esp + 0x104], 0
jmp 0x4049a5
add eax, 7
jmp 0x404c8f
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], esi
fstp qword [esp + 8]
mov dword [esp + 4], str.compensating_audio_timestamp_drift:_f_compensation:_d_in:_d_n
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call fcn.00401728
mov edx, dword [ebp + 0x40]
jmp 0x405114
mov eax, 0xffffffff
jmp 0x4027b5
mov dword [esp + 4], 0x41980b
mov dword [esp], eax
call sub.msvcrt.dll_fopen
mov dword [0x41fe98], eax
test eax, eax
jne 0x404636
mov dword [esp], str.fopen
call sub.msvcrt.dll_perror
mov eax, 1
call fcn.00401af4
jmp 0x404636
mov ecx, dword [esp + 0x9c]
mov dword [esp + 0xc], ecx
lea eax, [esp + 0x45c]
mov dword [esp + 8], eax
lea ebx, [esp + 0x3c8]
mov dword [esp + 4], ebx
mov dword [esp], edx
call sub.avcodec_52.dll_avcodec_decode_subtitle2
test eax, eax
js 0x405379
cmp dword [esp + 0x45c], 0
je 0x40299e
mov dword [esp + 0x37c], 0
mov dword [esp + 0x108], 0
mov dword [esp + 0x10c], ebx
mov edi, dword [ebp + 8]
jmp 0x4026c0
cmp dword [esp + 0x484], 0
je 0x40546c
mov esi, dword [esp + 0x484]
mov eax, dword [esi + 0x14]
shl eax, 1
cmp eax, 0x2ee00
jae 0x40543d
mov eax, 0x2ee00
cmp eax, dword [0x41fe80]
jbe 0x40546c
mov dword [0x41fe80], eax
mov eax, dword [0x41fe64]
mov dword [esp], eax
call sub.avutil_50.dll_av_free
mov eax, dword [0x41fe80]
mov dword [esp], eax
call sub.avutil_50.dll_av_malloc
mov dword [0x41fe64], eax
mov edi, dword [ebp + 8]
mov eax, dword [0x41fe80]
mov dword [esp + 0x458], eax
mov eax, dword [esp + 0x9c]
mov dword [esp + 0xc], eax
lea eax, [esp + 0x458]
mov dword [esp + 8], eax
mov eax, dword [0x41fe64]
mov dword [esp + 4], eax
mov eax, dword [edi + 8]
mov dword [esp], eax
call sub.avcodec_52.dll_avcodec_decode_audio3
mov ebx, eax
test eax, eax
js 0x405379
add dword [esp + 0x378], eax
sub dword [esp + 0x37c], eax
mov esi, dword [esp + 0x458]
test esi, esi
jle 0x4025d9
mov edx, dword [0x41fe64]
mov dword [esp + 0x108], edx
mov edi, dword [ebp + 8]
mov ecx, dword [edi + 8]
mov dword [esp + 0x98], ecx
mov eax, dword [esp + 0xd8]
sar eax, 3
mov dword [esp + 8], eax
cdq
mov dword [esp + 0xc], edx
mov dword [esp], 0xf4240
mov dword [esp + 4], 0
call fcn.004101a0
mov dword [esp + 0x78], eax
mov ecx, edx
mov eax, esi
cdq
imul ecx, esi
mov eax, dword [esp + 0x78]
imul eax, edx
add ecx, eax
mov eax, dword [esp + 0x78]
mul esi
mov dword [esp + 0x78], eax
add edx, ecx
mov dword [esp + 0x7c], edx
mov edx, dword [esp + 0x98]
mov eax, dword [edx + 0x44]
imul eax, dword [edx + 0x40]
mov dword [esp + 8], eax
mov ecx, eax
sar ecx, 0x1f
mov dword [esp + 0xc], ecx
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x7c]
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.004101a0
add dword [ebp + 0x28], eax
adc dword [ebp + 0x2c], edx
mov dword [esp + 0xb0], ebx
mov dword [esp + 0x10c], 0
jmp 0x4026c0
mov dword [esp + 4], str.Deinterlacing_failed_n
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call fcn.00401728
mov edi, dword [esp + 0x104]
mov dword [esp], edi
call sub.avutil_50.dll_av_free
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 8]
mov edx, dword [ebx + 0xdc]
jmp 0x40499a
fadd dword [0x41c620]
jmp 0x4052cd
mov eax, dword [esp + 0x318]
mov edx, dword [esp + 0x31c]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x310]
mov edx, dword [esp + 0x314]
mov dword [esp + 4], eax
mov dword [esp + 8], edx
lea eax, [ebp + 0x38]
mov dword [esp], eax
call fcn.0040efec
mov ebx, eax
mov esi, edx
mov dword [ebp + 0x30], eax
mov dword [ebp + 0x34], edx
mov dword [ebp + 0x28], eax
mov dword [ebp + 0x2c], edx
mov edi, dword [ebp + 8]
mov eax, dword [edi + 8]
mov dword [esp + 0x98], eax
mov ecx, dword [eax + 0x20]
test ecx, ecx
je 0x4056c3
mov eax, dword [edi + 0x68]
test eax, eax
je 0x4056ff
mov eax, dword [eax + 0x24]
inc eax
mov dword [esp + 0x78], eax
mov eax, 0xf4240
imul ecx
mov dword [esp + 0xc0], eax
mov dword [esp + 0xc4], edx
mov edx, dword [esp + 0x78]
mov ecx, edx
sar ecx, 0x1f
mov dword [esp + 0x80], edx
mov dword [esp + 0x84], ecx
mov ecx, dword [esp + 0x78]
imul ecx, dword [esp + 0xc4]
mov eax, dword [esp + 0x84]
imul eax, dword [esp + 0xc0]
add ecx, eax
mov eax, dword [esp + 0x78]
mul dword [esp + 0xc0]
mov dword [esp + 0x78], eax
add edx, ecx
mov dword [esp + 0x7c], edx
mov edx, dword [esp + 0x98]
mov eax, dword [edx + 0x24]
mov dword [esp + 8], eax
mov ecx, eax
sar ecx, 0x1f
mov dword [esp + 0xc], ecx
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x7c]
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.004101a0
add eax, ebx
adc edx, esi
mov dword [ebp + 0x28], eax
mov dword [ebp + 0x2c], edx
mov dword [esp + 0x37c], 0
mov dword [esp + 0x108], 0
mov dword [esp + 0xd0], 0
mov dword [esp + 0xd4], 0x80000000
mov dword [esp + 0x10c], 0
jmp 0x4026c0
mov edx, dword [esp + 0x98]
mov edx, dword [edx + 0x36c]
mov dword [esp + 0x78], edx
jmp 0x405630
fstp st(0)
mov dword [esp + 0x14], 0x37a
mov dword [esp + 0x10], str.ffmpeg.c
mov dword [esp + 0xc], str.ost__audio_resample
jmp 0x4036e5