Function at 0x40b7c0
Capabilities:
Terminate process

Disassembly:
push edi
push esi
push ebp
push ebx
sub esp, 0x56c
mov dword [esp + 0x4d4], ecx
mov dword [esp + 0x4e8], eax
mov eax, dword [esp + 0x58c]
mov dword [esp + 0x4dc], eax
mov edi, edx
lea edx, [esp + 0x100]
push edx
call sub.avcodec.dll_avcodec_get_frame_defaults
lea eax, [esp + 0x1f4]
push eax
call sub.avcodec.dll_avcodec_get_frame_defaults
add esp, 8
fld qword [0x41e690]
mov ebx, dword [esp + 0x590]
mov eax, dword [esp + 0x4d4]
mov ebp, dword [edi + 0xc]
mov ebp, dword [ebp + 8]
mov edx, dword [eax + 8]
imul eax, dword [0x938514], 0x640
mov ecx, dword [edx + 8]
cmp dword [0x426438], 0
mov dword [esp + 0x4d8], ecx
mov dword [ebx], 0
je 0x40b95d
fild dword [ebp + 0x20]
fild qword [edi + 0x20]
fild qword [edi + 0x28]
fld qword [0x41e698]
mov edx, dword [edi + 0x18]
mov ecx, dword [edx]
mov ebx, dword [edx + 0x38]
mov esi, dword [edx + 0x3c]
add ebx, dword [eax + ecx*8 + 0x8b0420]
adc esi, dword [eax + ecx*8 + 0x8b0424]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], esi
fild qword [esp + 0x28]
fdivrp st(5)
fild dword [ebp + 0x24]
fdivp st(4)
fxch st(3)
fdivp st(4)
fxch st(1)
fsubp st(3)
fsubp st(2)
fcomp st(1)
fnstsw ax
sahf
jbe 0x40b89b
fstp st(0)
xor esi, esi
jmp 0x40b8f4
fcom qword [0x41e6a0]
fnstsw ax
sahf
ja 0x40b8b2
fstp st(0)
mov esi, 1
jmp 0x40b9cc
fstp qword [esp]
call sub.libmmd.dll_rint
fstp qword [esp + 0x30]
movsd xmm0, qword [esp + 0x30]
movsd qword [esp + 0x28], xmm0
fld qword [esp + 0x28]
fnstcw word [esp + 0x10]
movzx eax, word [esp + 0x10]
or eax, 0xc00
mov dword [esp + 0x18], eax
fldcw word [esp + 0x18]
fistp qword [esp + 0x20]
fldcw word [esp + 0x10]
mov esi, dword [esp + 0x20]
test esi, esi
jne 0x40b923
inc dword [0x938694]
cmp dword [0x4264c0], 2
jle 0x40b9cc
call dword [sym.imp.MSVCR90.dll___iob_func]
add eax, 0x40
push eax
push str._drop__n
call sub.MSVCR90.dll_fputs
add esp, 8
jmp 0x40b9cc
cmp esi, 1
jle 0x40b9cc
add dword [0x938698], esi
cmp dword [0x4264c0], 2
jle 0x40b9cc
call dword [sym.imp.MSVCR90.dll___iob_func]
add eax, 0x40
lea edx, [esi - 1]
push edx
push str.__d_dup__n
push eax
call dword [sym.imp.MSVCR90.dll_fprintf]
add esp, 0xc
jmp 0x40b9cc
fild dword [ebp + 0x20]
mov edx, dword [edi + 0x18]
mov ecx, dword [edx]
mov ebx, dword [edx + 0x38]
mov esi, dword [edx + 0x3c]
add ebx, dword [eax + ecx*8 + 0x8b0420]
adc esi, dword [eax + ecx*8 + 0x8b0424]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], esi
fild qword [esp + 0x28]
fdivrp st(2)
fild dword [ebp + 0x24]
fdivp st(1)
fdivp st(1)
fstp qword [esp]
call sub.libmmd.dll_rint
fstp qword [esp + 0x30]
movsd xmm0, qword [esp + 0x30]
movsd qword [esp + 0x28], xmm0
mov esi, 1
fld qword [esp + 0x28]
fnstcw word [esp + 0x10]
movzx eax, word [esp + 0x10]
or eax, 0xc00
mov dword [esp + 0x18], eax
fldcw word [esp + 0x18]
fistp qword [edi + 0x20]
fldcw word [esp + 0x10]
cmp dword [0x938528], 0
jne 0x40b9f6
cmp dword [0x938548], 0
jne 0x40b9ed
mov eax, dword [0x426440]
sub eax, dword [edi + 0x14]
cmp eax, esi
cmovl esi, eax
jmp 0x40b9ff
mov eax, ebp
call fcn.0040c9d0
jmp 0x40b9fd
mov eax, ebp
call fcn.0040c950
mov esi, eax
test esi, esi
jle 0x40c7c1
cmp dword [0x93868c], 1
jne 0x40ba17
mov dword [ebp + 0x34], 0
cmp dword [0x426464], 0xfffffffe
je 0x40ba73
mov eax, dword [esp + 0x4d8]
lea ebx, [esp + 0x10]
push dword [eax + 0x2c]
push dword [eax + 0x28]
push 0
push ebx
call sub.avcodec.dll_avpicture_alloc
mov eax, dword [esp + 0x4e8]
push dword [eax + 0x2c]
push dword [eax + 0x28]
push dword [0x426464]
push dword [esp + 0x4f8]
push 0
push ebx
call sub.avcodec.dll_Ordinal_77
add esp, 0x28
mov eax, dword [esp + 0x4d8]
mov dword [eax + 0x34], 0
mov dword [esp + 0x4dc], ebx
cmp dword [edi + 0x140], 0
jne 0x40ba85
mov ebx, dword [esp + 0x4dc]
jmp 0x40bac1
push dword [edi + 0x14c]
push dword [edi + 0x144]
mov eax, dword [esp + 0x4e0]
push dword [eax + 0x34]
push dword [esp + 0x4e8]
lea edx, [esp + 0x110]
push edx
call sub.avcodec.dll_av_picture_crop
add esp, 0x14
test eax, eax
jl 0x40c934
lea ebx, [esp + 0x100]
cmp dword [edi + 0x164], 0
mov dword [esp + 0x4e0], ebx
lea eax, [edi + 0x38]
mov dword [esp + 0x2e8], eax
mov dword [esp + 0x2e0], eax
je 0x40bb34
cmp dword [edi + 0x30], 0
mov dword [esp + 0x4e0], eax
je 0x40bc8a
push dword [edi + 0x170]
push dword [edi + 0x168]
push dword [ebp + 0x34]
push dword [esp + 0x2f4]
lea eax, [esp + 0x200]
push eax
call sub.avcodec.dll_av_picture_crop
add esp, 0x14
test eax, eax
jl 0x40c7b0
lea eax, [esp + 0x1f0]
mov dword [esp + 0x2e8], eax
mov eax, dword [edi + 0x30]
jmp 0x40bb37
mov eax, dword [edi + 0x30]
test eax, eax
je 0x40bc80
mov eax, dword [esp + 0x2e0]
mov edx, dword [esp + 0x4d4]
mov ecx, dword [edx + 8]
mov dword [esp + 0x4e0], eax
mov eax, dword [ecx + 8]
mov eax, dword [eax + 0x34]
cmp eax, dword [edi + 0x134]
je 0x40bc40
push dword [edi + 0x128]
mov dword [edi + 0x134], eax
call sub.avswscale.dll_sws_freeContext
push 0
push str.sws_flags
push dword [0x938480]
call sub.avcodec.dll_av_get_int
mov dword [esp + 0x4a4], ebp
mov ebp, dword [esp + 0x4e4]
mov dword [esp + 0x4f4], esi
mov esi, dword [ebp + 8]
mov edx, dword [esi + 8]
mov esi, dword [edx + 0x2c]
sub esi, dword [edi + 0x144]
sub esi, dword [edi + 0x148]
mov dword [esp + 0x2f0], ebx
mov ebx, dword [edi + 0xc]
mov ecx, dword [ebx + 8]
mov ebx, dword [edx + 0x28]
mov ebp, dword [ecx + 0x2c]
sub ebx, dword [edi + 0x14c]
sub ebx, dword [edi + 0x150]
sub ebp, dword [edi + 0x168]
sub ebp, dword [edi + 0x16c]
mov dword [0x426430], eax
mov dword [esp + 0x2f4], ebx
push 0
push 0
mov ebx, dword [ecx + 0x28]
sub ebx, dword [edi + 0x170]
sub ebx, dword [edi + 0x174]
push 0
push eax
push dword [ecx + 0x34]
push ebp
push ebx
push dword [edx + 0x34]
push esi
push dword [esp + 0x318]
mov ebx, dword [esp + 0x318]
mov esi, dword [esp + 0x51c]
mov ebp, dword [esp + 0x4cc]
call sub.avswscale.dll_sws_getContext
add esp, 0x38
mov dword [edi + 0x128], eax
test eax, eax
je 0x40c7cc
jmp 0x40bc46
mov eax, dword [edi + 0x128]
mov ecx, dword [esp + 0x2e8]
mov dword [esp + 0x4e4], esi
lea esi, [ebx + 0x10]
lea edx, [ecx + 0x10]
push edx
push ecx
push dword [edi + 0x12c]
push 0
push esi
push ebx
push eax
mov esi, dword [esp + 0x500]
call sub.avswscale.dll_sws_scale
add esp, 0x1c
mov eax, dword [edi + 0x164]
xor ebx, ebx
jmp 0x40bc86
mov eax, dword [edi + 0x164]
test eax, eax
je 0x40bcc0
push 0x4264d8
push dword [edi + 0x174]
push dword [edi + 0x170]
push dword [edi + 0x16c]
push dword [edi + 0x168]
push dword [ebp + 0x34]
push dword [ebp + 0x28]
push dword [ebp + 0x2c]
push ebx
push dword [esp + 0x504]
call sub.avcodec.dll_av_picture_pad
add esp, 0x28
cmp dword [0x93868c], 1
je 0x40c8bb
mov dword [esp + 0x4e4], esi
xor ebx, ebx
lea eax, [esp + 0x3d0]
push eax
call sub.avcodec.dll_av_init_packet
pop ecx
mov edx, dword [esp + 0x4e8]
mov eax, dword [edi + 4]
mov ecx, dword [edx + 8]
mov dword [esp + 0x3e8], eax
test byte [ecx + 0x28], 0x20
je 0x40c188
mov esi, dword [esp + 0x4d8]
mov ecx, dword [esp + 0x4e0]
mov eax, dword [ebp + 0x198]
mov edx, dword [esi + 0x198]
mov dword [ebp + 0x198], edx
mov dword [esp + 0x4a0], eax
mov dword [esp + 0x3e4], 0x20
mov dword [esp + 0x3e0], ecx
mov ecx, dword [esi + 0x198]
test ecx, ecx
je 0x40bda1
mov eax, dword [ebp + 0x198]
mov edx, dword [eax + 0x38]
mov eax, dword [eax + 0x3c]
lea esi, [eax - 0x80000000]
or esi, edx
je 0x40bd93
mov ecx, dword [edi + 0xc]
push dword [ecx + 0x44]
push dword [ecx + 0x40]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push eax
push edx
call sub.avutil.dll_av_rescale_q
add esp, 0x18
mov dword [esp + 0x3d0], eax
mov eax, dword [esp + 0x4d8]
mov dword [esp + 0x3d4], edx
mov ecx, dword [eax + 0x198]
test ecx, ecx
je 0x40bda1
cmp dword [ecx + 0x30], 0
je 0x40bda1
or dword [esp + 0x3ec], 1
mov ecx, dword [edi + 0xc]
mov eax, dword [ecx + 8]
mov ecx, dword [esp + 0x3e8]
mov edx, dword [edi]
mov dword [esp + 0x500], eax
mov esi, edx
shl esi, 4
sub esi, edx
shl esi, 4
mov edx, dword [esi + ecx*4 + 0x8fe940]
test edx, edx
je 0x40c15f
mov eax, dword [esp + 0x3d0]
mov esi, dword [esp + 0x3d4]
mov dword [esp + 0x4c0], eax
mov eax, dword [esp + 0x3d8]
mov dword [esp + 0x4b4], esi
mov esi, dword [esp + 0x3dc]
mov dword [esp + 0x508], eax
mov eax, dword [esp + 0x3e0]
mov dword [esp + 0x538], esi
mov esi, dword [esp + 0x3e4]
mov dword [esp + 0x510], eax
mov eax, dword [esp + 0x3ec]
mov dword [esp + 0x544], esi
mov esi, dword [esp + 0x3f0]
mov dword [esp + 0x530], eax
mov dword [esp + 0x520], esi
mov esi, dword [esp + 0x3f4]
mov dword [esp + 0x518], esi
mov esi, dword [esp + 0x3f8]
mov dword [esp + 0x4c8], esi
mov esi, dword [esp + 0x3fc]
mov dword [esp + 0x4d0], esi
mov esi, dword [esp + 0x400]
mov dword [esp + 0x54c], esi
mov esi, dword [esp + 0x404]
mov dword [esp + 0x4bc], esi
mov esi, dword [esp + 0x408]
mov dword [esp + 0x50c], esi
mov esi, dword [esp + 0x40c]
mov dword [esp + 0x498], ebx
mov ebx, dword [esp + 0x4d0]
mov dword [esp + 0x4f0], eax
mov eax, dword [esp + 0x4b4]
mov dword [esp + 0x4ec], ecx
mov ecx, dword [esp + 0x4bc]
mov dword [esp + 0x4f4], edx
mov edx, dword [esp + 0x4c0]
mov dword [esp + 0x494], ebp
mov ebp, dword [esp + 0x4c8]
mov dword [esp + 0x49c], edi
mov edi, dword [esp + 0x510]
mov dword [esp + 0x410], edx
mov edx, dword [esp + 0x538]
mov dword [esp + 0x414], eax
mov eax, dword [esp + 0x508]
mov dword [esp + 0x418], eax
mov eax, dword [esp + 0x544]
mov dword [esp + 0x41c], edx
mov edx, dword [esp + 0x4ec]
mov dword [esp + 0x420], edi
mov edi, dword [esp + 0x4f0]
mov dword [esp + 0x424], eax
mov eax, dword [esp + 0x520]
mov dword [esp + 0x428], edx
mov edx, dword [esp + 0x518]
mov dword [esp + 0x42c], edi
mov dword [esp + 0x430], eax
mov dword [esp + 0x434], edx
mov dword [esp + 0x438], ebp
mov ebp, dword [esp + 0x530]
mov dword [esp + 0x43c], ebx
mov ebx, dword [esp + 0x54c]
and ebp, 1
mov dword [esp + 0x440], ebx
mov dword [esp + 0x444], ecx
mov ecx, dword [esp + 0x50c]
mov dword [esp + 0x448], ecx
mov dword [esp + 0x44c], esi
push ebp
push dword [esp + 0x3e8]
push dword [esp + 0x3e8]
lea esi, [esp + 0x430]
push esi
lea eax, [esp + 0x430]
push eax
push 0
push dword [esp + 0x518]
push dword [esp + 0x510]
call sub.avcodec.dll_av_bitstream_filter_filter
add esp, 0x20
test eax, eax
je 0x40bffc
lea eax, [esp + 0x3d0]
push eax
call sub.avcodec.dll_av_free_packet
pop ecx
mov dword [esp + 0x434], 0x41630e
mov edx, dword [esp + 0x410]
mov eax, dword [esp + 0x414]
mov ebx, dword [esp + 0x418]
mov ebp, dword [esp + 0x41c]
mov ecx, dword [esp + 0x420]
mov esi, dword [esp + 0x424]
mov edi, dword [esp + 0x428]
mov dword [esp + 0x3d0], edx
mov dword [esp + 0x3d4], eax
mov dword [esp + 0x508], ebx
mov dword [esp + 0x3d8], ebx
mov ebx, dword [esp + 0x42c]
mov dword [esp + 0x538], ebp
mov dword [esp + 0x3dc], ebp
mov ebp, dword [esp + 0x430]
mov dword [esp + 0x510], ecx
mov dword [esp + 0x3e0], ecx
mov ecx, dword [esp + 0x434]
mov dword [esp + 0x544], esi
mov dword [esp + 0x3e4], esi
mov esi, dword [esp + 0x440]
mov dword [esp + 0x4ec], edi
mov dword [esp + 0x3e8], edi
mov edi, dword [esp + 0x448]
mov dword [esp + 0x4f0], ebx
mov dword [esp + 0x3ec], ebx
mov ebx, dword [esp + 0x43c]
mov dword [esp + 0x520], ebp
mov dword [esp + 0x3f0], ebp
mov ebp, dword [esp + 0x438]
mov dword [esp + 0x518], ecx
mov dword [esp + 0x3f4], ecx
mov ecx, dword [esp + 0x444]
mov dword [esp + 0x3f8], ebp
mov dword [esp + 0x3fc], ebx
mov dword [esp + 0x54c], esi
mov dword [esp + 0x400], esi
mov esi, dword [esp + 0x44c]
mov dword [esp + 0x404], ecx
mov dword [esp + 0x50c], edi
mov dword [esp + 0x408], edi
mov edi, dword [esp + 0x4f4]
mov dword [esp + 0x40c], esi
mov edi, dword [edi + 0xc]
test edi, edi
mov dword [esp + 0x4f4], edi
je 0x40c14a
mov edi, dword [esp + 0x3ec]
mov dword [esp + 0x530], edi
jmp 0x40bee8
mov ebx, dword [esp + 0x498]
mov ebp, dword [esp + 0x494]
mov edi, dword [esp + 0x49c]
lea eax, [esp + 0x3d0]
push eax
push dword [esp + 0x4ec]
call sub.avformat.dll_Ordinal_21
add esp, 8
mov eax, dword [esp + 0x4a0]
mov dword [ebp + 0x198], eax
jmp 0x40c786
lea esi, [esp + 0x2e0]
push 0xf0
push dword [esp + 0x4e4]
push esi
call fcn.00419650
add esp, 0xc
mov eax, dword [esp + 0x4dc]
mov ecx, dword [0x938468]
mov edx, dword [eax + 0xa4]
mov dword [esp + 0x384], edx
test dword [ecx + 0xc], 0x20040000
je 0x40c1ee
mov eax, dword [0x4264e4]
cmp eax, 0xffffffff
je 0x40c1da
mov dword [esp + 0x388], eax
jmp 0x40c1ee
mov eax, dword [esp + 0x4dc]
mov edx, dword [eax + 0xa8]
mov dword [esp + 0x388], edx
cmp dword [0x9384bc], 0
je 0x40c208
mov eax, dword [esp + 0x4d4]
mov edx, dword [eax + 8]
cvttss2si eax, dword [edx + 0x54]
jmp 0x40c210
mov eax, dword [edi + 0xc]
cvttss2si eax, dword [eax + 0x54]
cmp dword [0x9386b0], 0
mov dword [esp + 0x328], eax
jne 0x40c22b
mov dword [esp + 0x314], 0
cmp dword [0x93851c], 1
mov eax, dword [edi + 0x20]
mov edx, dword [edi + 0x24]
mov dword [esp + 0x318], eax
mov dword [esp + 0x31c], edx
je 0x40c80a
push esi
push dword [0x426470]
push dword [0x93859c]
push ebp
call sub.avcodec.dll_avcodec_encode_video
add esp, 0x10
mov esi, eax
cmp dword [0x93868c], 1
je 0x40c282
cmp dword [0x426464], 0xfffffffe
je 0x40c28d
lea eax, [ebx + 1]
cmp eax, dword [esp + 0x4e4]
jne 0x40c28d
lea eax, [esp + 0x10]
push eax
call sub.avcodec.dll_avpicture_free
pop ecx
cmp esi, 0xffffffff
je 0x40c7eb
test esi, esi
jle 0x40c786
mov eax, dword [0x93859c]
mov dword [esp + 0x3e0], eax
mov dword [esp + 0x3e4], esi
mov edx, dword [ebp + 0x198]
test edx, edx
je 0x40c317
mov eax, dword [edx + 0x38]
mov ecx, dword [edx + 0x3c]
mov dword [esp + 0x490], ecx
lea ecx, [ecx - 0x80000000]
or ecx, eax
je 0x40c309
mov edx, dword [edi + 0xc]
push dword [edx + 0x44]
push dword [edx + 0x40]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [esp + 0x4a0]
push eax
call sub.avutil.dll_av_rescale_q
add esp, 0x18
mov dword [esp + 0x3d0], eax
mov dword [esp + 0x3d4], edx
mov edx, dword [ebp + 0x198]
test edx, edx
je 0x40c317
cmp dword [edx + 0x30], 0
je 0x40c317
or dword [esp + 0x3ec], 1
cmp dword [0x938514], 0
jle 0x40c362
mov eax, dword [esp + 0x3d4]
add eax, 0x80000000
or eax, dword [esp + 0x3d0]
je 0x40c362
mov eax, dword [0x93852c]
cdq
mov ecx, dword [edi + 0xc]
push dword [ecx + 0x44]
push dword [ecx + 0x40]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push edx
push eax
call sub.avutil.dll_av_rescale_q
add esp, 0x18
add dword [esp + 0x3d0], eax
adc dword [esp + 0x3d4], edx
mov edx, dword [edi + 0xc]
mov eax, dword [edx + 8]
mov edx, dword [esp + 0x3e8]
mov ecx, dword [edi]
mov dword [esp + 0x504], eax
mov eax, ecx
shl eax, 4
sub eax, ecx
shl eax, 4
mov eax, dword [eax + edx*4 + 0x8fe940]
test eax, eax
je 0x40c73c
mov ecx, dword [esp + 0x3d0]
mov dword [esp + 0x4b0], ecx
mov ecx, dword [esp + 0x3d4]
mov dword [esp + 0x514], ecx
mov ecx, dword [esp + 0x3d8]
mov dword [esp + 0x528], ecx
mov ecx, dword [esp + 0x3dc]
mov dword [esp + 0x51c], ecx
mov ecx, dword [esp + 0x3e0]
mov dword [esp + 0x534], ecx
mov ecx, dword [esp + 0x3e4]
mov dword [esp + 0x524], ecx
mov ecx, dword [esp + 0x3ec]
mov dword [esp + 0x550], ecx
mov dword [esp + 0x540], ecx
mov ecx, dword [esp + 0x3f0]
mov dword [esp + 0x4cc], ecx
mov ecx, dword [esp + 0x3f4]
mov dword [esp + 0x4c4], ecx
mov ecx, dword [esp + 0x3f8]
mov dword [esp + 0x53c], ecx
mov ecx, dword [esp + 0x3fc]
mov dword [esp + 0x548], ecx
mov ecx, dword [esp + 0x400]
mov dword [esp + 0x52c], ecx
mov ecx, dword [esp + 0x404]
mov dword [esp + 0x4b8], ecx
mov ecx, dword [esp + 0x408]
mov dword [esp + 0x4ac], ecx
mov ecx, dword [esp + 0x40c]
mov dword [esp + 0x4a8], ecx
mov ecx, dword [esp + 0x4ac]
mov dword [esp + 0x4f8], edx
mov edx, dword [esp + 0x4a8]
mov dword [esp + 0x4fc], eax
mov eax, dword [esp + 0x4b0]
mov dword [esp + 0x498], ebx
mov ebx, dword [esp + 0x4b8]
mov dword [esp + 0x4a4], esi
mov esi, dword [esp + 0x4cc]
mov dword [esp + 0x494], ebp
mov ebp, dword [esp + 0x4c4]
mov dword [esp + 0x49c], edi
mov edi, dword [esp + 0x528]
mov dword [esp + 0x450], eax
mov eax, dword [esp + 0x514]
mov dword [esp + 0x454], eax
mov eax, dword [esp + 0x51c]
mov dword [esp + 0x458], edi
mov edi, dword [esp + 0x534]
mov dword [esp + 0x45c], eax
mov eax, dword [esp + 0x524]
mov dword [esp + 0x460], edi
mov edi, dword [esp + 0x4f8]
mov dword [esp + 0x464], eax
mov eax, dword [esp + 0x550]
mov dword [esp + 0x468], edi
mov dword [esp + 0x46c], eax
mov eax, dword [esp + 0x52c]
mov dword [esp + 0x470], esi
mov esi, dword [esp + 0x548]
mov dword [esp + 0x474], ebp
mov ebp, dword [esp + 0x53c]
mov dword [esp + 0x478], ebp
mov dword [esp + 0x47c], esi
mov dword [esp + 0x480], eax
mov dword [esp + 0x484], ebx
mov dword [esp + 0x488], ecx
mov dword [esp + 0x48c], edx
mov edx, dword [esp + 0x540]
and edx, 1
push edx
push dword [esp + 0x3e8]
push dword [esp + 0x3e8]
lea ecx, [esp + 0x470]
push ecx
lea ebx, [esp + 0x470]
push ebx
push 0
push dword [esp + 0x51c]
push dword [esp + 0x518]
call sub.avcodec.dll_av_bitstream_filter_filter
add esp, 0x20
test eax, eax
je 0x40c5d2
lea eax, [esp + 0x3d0]
push eax
call sub.avcodec.dll_av_free_packet
pop ecx
mov dword [esp + 0x474], 0x41630e
mov eax, dword [esp + 0x450]
mov ebp, dword [esp + 0x454]
mov esi, dword [esp + 0x458]
mov edx, dword [esp + 0x45c]
mov ecx, dword [esp + 0x460]
mov ebx, dword [esp + 0x464]
mov edi, dword [esp + 0x468]
mov dword [esp + 0x3d0], eax
mov dword [esp + 0x514], ebp
mov dword [esp + 0x3d4], ebp
mov ebp, dword [esp + 0x46c]
mov dword [esp + 0x528], esi
mov dword [esp + 0x3d8], esi
mov esi, dword [esp + 0x470]
mov dword [esp + 0x51c], edx
mov dword [esp + 0x3dc], edx
mov edx, dword [esp + 0x478]
mov dword [esp + 0x534], ecx
mov dword [esp + 0x3e0], ecx
mov ecx, dword [esp + 0x47c]
mov dword [esp + 0x524], ebx
mov dword [esp + 0x3e4], ebx
mov ebx, dword [esp + 0x480]
mov dword [esp + 0x4f8], edi
mov dword [esp + 0x3e8], edi
mov edi, dword [esp + 0x4fc]
mov dword [esp + 0x550], ebp
mov dword [esp + 0x3ec], ebp
mov ebp, dword [esp + 0x474]
mov dword [esp + 0x3f0], esi
mov dword [esp + 0x3f4], ebp
mov dword [esp + 0x53c], edx
mov dword [esp + 0x3f8], edx
mov edx, dword [esp + 0x48c]
mov dword [esp + 0x548], ecx
mov dword [esp + 0x3fc], ecx
mov ecx, dword [esp + 0x488]
mov dword [esp + 0x52c], ebx
mov dword [esp + 0x400], ebx
mov ebx, dword [esp + 0x484]
mov dword [esp + 0x404], ebx
mov dword [esp + 0x408], ecx
mov dword [esp + 0x40c], edx
mov edi, dword [edi + 0xc]
test edi, edi
mov dword [esp + 0x4fc], edi
je 0x40c720
mov edi, dword [esp + 0x3ec]
mov dword [esp + 0x540], edi
jmp 0x40c4be
mov ebx, dword [esp + 0x498]
mov esi, dword [esp + 0x4a4]
mov ebp, dword [esp + 0x494]
mov edi, dword [esp + 0x49c]
lea eax, [esp + 0x3d0]
push eax
push dword [esp + 0x4ec]
call sub.avformat.dll_Ordinal_21
add esp, 8
mov eax, dword [esp + 0x3f0]
mov edx, dword [esp + 0x590]
mov dword [0x9386a0], eax
mov eax, dword [edi + 0x18c]
mov dword [edx], esi
test eax, eax
je 0x40c786
mov edx, dword [ebp + 0x11c]
test edx, edx
je 0x40c786
push eax
push edx
call sub.MSVCR90.dll_fputs
add esp, 8
add dword [edi + 0x20], 1
adc dword [edi + 0x24], 0
inc dword [edi + 0x14]
inc ebx
inc dword [0x938530]
cmp ebx, dword [esp + 0x4e4]
jl 0x40bcd6
add esp, 0x56c
pop ebx
pop ebp
pop esi
pop edi
ret
push str.error_padding_picture_n
xor eax, eax
push eax
push eax
call sub.avutil.dll_av_log
add esp, 0xc
add esp, 0x56c
pop ebx
pop ebp
pop esi
pop edi
ret
call dword [sym.imp.MSVCR90.dll___iob_func]
add eax, 0x40
push eax
push str.Cannot_get_resampling_context_n
call sub.MSVCR90.dll_fputs
push 1
call dword [sym.imp.MSVCR90.dll_exit]
add esp, 0xc
call dword [sym.imp.MSVCR90.dll___iob_func]
add eax, 0x40
push eax
push str.Video_encoding_failed_n
call sub.MSVCR90.dll_fputs
push 1
call dword [sym.imp.MSVCR90.dll_exit]
add esp, 0xc
mov eax, 0xf0
pxor xmm0, xmm0
movaps xmmword [esp + eax + 0x2d0], xmm0
movaps xmmword [esp + eax + 0x2c0], xmm0
movaps xmmword [esp + eax + 0x2b0], xmm0
movaps xmmword [esp + eax + 0x2a0], xmm0
movaps xmmword [esp + eax + 0x290], xmm0
sub eax, 0x50
jne 0x40c813
mov dword [esp + 0x2e0], 0x590760
mov dword [esp + 0x2e4], 0x78ab60
mov dword [esp + 0x2e8], 0x809460
mov ecx, dword [ebp + 0x28]
mov dword [esp + 0x2f0], ecx
mov eax, dword [ebp + 0x28]
mov edx, eax
shr edx, 0x1f
add eax, edx
sar eax, 1
mov dword [esp + 0x2f4], eax
mov eax, dword [0x5271b0]
mov ecx, dword [ebp + 0x28]
mov dword [esp + 0x318], eax
mov dword [esp + 0x310], 1
mov edx, ecx
shr edx, 0x1f
add ecx, edx
cdq
mov dword [esp + 0x31c], edx
sar ecx, 1
inc eax
mov dword [esp + 0x2f8], ecx
mov dword [0x5271b0], eax
jmp 0x40c24c
cmp dword [ebp + 0xe4], 0x51
je 0x40c8d2
mov dword [ebp + 0x34], 2
mov eax, 2
jmp 0x40c8de
mov dword [ebp + 0x34], 3
mov eax, 3
cmp dword [edi + 0x140], 0
jne 0x40c8f4
cmp dword [edi + 0x164], 0
je 0x40bccd
lea edx, [esp + 0x10]
push dword [ebp + 0x2c]
push dword [ebp + 0x28]
push eax
push edx
call sub.avcodec.dll_avpicture_alloc
push dword [ebp + 0x2c]
push dword [ebp + 0x28]
push 0
push dword [esp + 0x4fc]
push dword [ebp + 0x34]
lea eax, [esp + 0x34]
push eax
call sub.avcodec.dll_Ordinal_77
add esp, 0x28
lea eax, [esp + 0x10]
mov dword [esp + 0x4e0], eax
jmp 0x40bccd
push str.error_cropping_picture_n
xor eax, eax
push eax
push eax
call sub.avutil.dll_av_log
add esp, 0x578
pop ebx
pop ebp
pop esi
pop edi
ret