Function at 0x40cf3b
Capabilities:
Resolve function by parsing pe exports
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push edi
push esi
push ebx
sub esp, 0x74
mov ecx, eax
mov edx, dword [0x9384d0]
mov eax, dword [0x9384b4]
mov ebx, dword [0x938584]
mov esi, dword [0x93858c]
mov edi, dword [0x938594]
mov dword [0x938574], edx
mov edx, dword [0x93857c]
mov dword [0x938578], eax
mov dword [0x938580], edx
mov dword [0x938588], ebx
mov dword [0x938590], esi
mov dword [0x938598], edi
mov edi, ecx
mov esi, 0x421248
mov dl, byte [edi]
cmp dl, byte [esi]
jne 0x40cbfb
test dl, dl
je 0x40cbf7
mov dl, byte [edi + 1]
cmp dl, byte [esi + 1]
jne 0x40cbfb
add edi, 2
add esi, 2
test dl, dl
jne 0x40cbdb
xor eax, eax
jmp 0x40cc00
sbb eax, eax
or eax, 1
test eax, eax
mov edx, str.pipe:
cmovne edx, ecx
mov dword [esp + 0x44], edx
call sub.avformat.dll_Ordinal_9
mov ebx, eax
mov eax, dword [0x9386d4]
test eax, eax
je 0x40d892
cmp dword [0x9384c8], 0
mov dword [0x9385a0], eax
mov dword [ebx + 8], eax
je 0x40ccd6
cmp dword [0x93855c], 0
je 0x40ccd6
push 0x2e
push dword [esp + 0x48]
call dword [sym.imp.MSVCR90.dll_strrchr]
add esp, 8
mov edi, eax
test edi, edi
je 0x40ccd6
mov edx, dword [esp + 0x44]
mov ecx, edx
and edx, 0xfffffff0
pxor xmm0, xmm0
pcmpeqb xmm0, xmmword [edx]
pmovmskb eax, xmm0
and ecx, 0xf
shr eax, cl
bsf eax, eax
jne 0x40cc81
mov eax, edx
add edx, ecx
call fcn.00419690
mov esi, eax
mov edx, edi
mov ecx, edx
and edx, 0xfffffff0
pxor xmm0, xmm0
pcmpeqb xmm0, xmmword [edx]
pmovmskb eax, xmm0
and ecx, 0xf
shr eax, cl
bsf eax, eax
jne 0x40cca9
mov eax, edx
add edx, ecx
call fcn.00419690
sub esi, eax
test esi, esi
jle 0x40ccd6
push esi
push dword [esp + 0x48]
push 0x90a4c0
call dword [sym.imp.MSVCR90.dll_strncpy]
push 0x410
push str..psnr
push 0x90a4c0
call sub.avutil.dll_av_strlcat
add esp, 0x18
lea eax, [ebx + 0x15c]
mov dword [esp + 0x64], eax
push 0x400
push dword [esp + 0x48]
push eax
call sub.avutil.dll_av_strlcpy
add esp, 0xc
mov ecx, dword [0x9386d4]
mov edi, dword [ecx]
mov esi, 0x421290
mov dl, byte [edi]
cmp dl, byte [esi]
jne 0x40cd1f
test dl, dl
je 0x40cd1b
mov dl, byte [edi + 1]
cmp dl, byte [esi + 1]
jne 0x40cd1f
add edi, 2
add esi, 2
test dl, dl
jne 0x40ccff
xor eax, eax
jmp 0x40cd24
sbb eax, eax
or eax, 1
test eax, eax
jne 0x40cd49
push 0
push str.http:
push dword [esp + 0x4c]
call sub.avutil.dll_av_strstart
add esp, 0xc
test eax, eax
jne 0x40d358
mov ecx, dword [0x9386d4]
cmp dword [ecx + 0x18], 0
jne 0x40cd65
cmp dword [0x938594], 0
jne 0x40cd65
cmp dword [0x938584], 0
jne 0x40cd65
xor esi, esi
jmp 0x40cd6a
mov esi, 1
cmp dword [ecx + 0x14], 0
jne 0x40cd86
cmp dword [0x93858c], 0
jne 0x40cd86
cmp dword [0x93857c], 0
jne 0x40cd86
xor edx, edx
jmp 0x40cd8b
mov edx, 1
cmp dword [ecx + 0x3c], 0
jne 0x40cdab
cmp dword [0x9386d8], 0
jne 0x40cdab
cmp dword [0x9386dc], 0
jne 0x40cdab
xor eax, eax
mov dword [esp + 0x40], eax
jmp 0x40cdb3
mov dword [esp + 0x40], 1
cmp dword [0x531b00], 0
jg 0x40d2a5
xor eax, eax
mov dword [esp + 0x48], eax
test esi, esi
je 0x40cdd2
test edx, edx
jne 0x40cf4a
cmp dword [0x93850c], 1
jle 0x40cf4a
cmp dword [0x938528], 0
jne 0x40cf4a
cmp dword [0x938524], 0
jne 0x40cf4a
cmp dword [0x9386e0], 0
jne 0x40cf4a
cmp dword [0x5271b4], 0
je 0x40ce4e
mov eax, dword [0x426008]
mov edx, dword [0x42600c]
mov dword [esp + 0x48], edx
mov esi, eax
test eax, eax
je 0x40cf4a
cmp dword [0x532780], 0
jne 0x40cf4a
mov dword [0x532780], 0x280
mov dword [0x532aa0], 0x1e0
jmp 0x40cf4a
mov ecx, dword [0x4264f8]
mov edx, dword [0x4264fc]
mov dword [0x5271b4], 1
mov esi, 1
mov dword [esp + 0x34], 0x320
mov edi, dword [esp + 0x34]
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x3c], ebx
xor ebx, ebx
mov ecx, dword [esi*8 + 0x531e20]
mov dword [0x938514], esi
mov eax, esi
mov dword [esp + 0x18], ecx
shl eax, 4
mov ecx, esi
shl ecx, 0xa
lea eax, [eax + ecx + 0x5349e0]
call fcn.0040d8e4
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov dword [0x4264f8], eax
mov edx, ebx
mov dword [0x4264fc], ecx
mov ecx, dword [esi*4 + 0x531b00]
mov dword [esp + 0x2c], ebx
mov eax, edx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x1c], esi
jmp 0x40cef1
mov edi, dword [esp + 0x34]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x38]
inc eax
mov dword [esp + 0x2c], ebx
xor ebx, ebx
cmp eax, dword [esp + 0x20]
jge 0x40d624
mov ecx, dword [edi + eax*4 + 0x569380]
mov esi, dword [ecx + 0x68]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x34], edi
mov edx, ebx
mov ebx, dword [esp + 0x2c]
cmp edx, esi
jae 0x40cede
mov edi, dword [ecx + edx*4 + 0x6c]
mov edi, dword [edi + 8]
mov edi, dword [edi + 0xe0]
inc edi
cmp edi, 5
ja case.default.0x40cf39
mov edi, dword [edi*4 + 0x41d518]
jmp edi
mov eax, 1
jmp case.0x40cf39.2
mov ebx, 1
inc edx
jmp 0x40cf17
xor eax, eax
cmp dword [0x9384d0], 0
mov ecx, dword [esp + 0x40]
cmovne edx, eax
cmp dword [0x9384b4], 0
cmovne esi, eax
cmp dword [0x9384d8], 0
cmovne ecx, eax
mov dword [esp + 0x40], ecx
test esi, esi
je 0x40cf85
mov dword [esp + 0x24], edx
mov eax, ebx
call fcn.0040e3c0
mov edx, dword [esp + 0x24]
test edx, edx
je 0x40d21b
push dword [ebx + 0x68]
push ebx
mov dword [esp + 0x2c], edx
call sub.avformat.dll_av_new_stream
mov edx, dword [esp + 0x2c]
add esp, 8
mov dword [esp + 0x20], eax
cmp dword [esp + 0x20], 0
je 0x40d6f8
push 1
push dword [eax + 8]
mov dword [esp + 0x2c], edx
call sub.avcodec.dll_avcodec_get_context_defaults2
mov edx, dword [esp + 0x2c]
add esp, 8
mov ecx, dword [0x938510]
mov edi, dword [0x9386e4]
mov dword [0x9386e4], 0
mov eax, ecx
shl eax, 4
sub eax, ecx
mov ecx, dword [ebx + 0x68]
shl eax, 4
mov dword [eax + ecx*4 + 0x8fe93c], edi
mov ecx, dword [esp + 0x20]
mov edi, dword [ecx + 8]
mov eax, dword [0x426500]
mov dword [edi + 0x26c], eax
mov eax, dword [0x9386e8]
mov edi, dword [ecx + 8]
mov dword [edi + 0xf8], eax
mov eax, dword [0x9386ec]
mov dword [esp + 0x1c], edi
mov dword [edi + 0xe0], 1
test eax, eax
je 0x40d02e
mov ecx, edi
mov dword [ecx + 0xe8], eax
mov eax, dword [ebx + 8]
test byte [eax + 0x28], 0x40
je 0x40d04d
mov eax, edi
mov ecx, dword [0x93846c]
or dword [eax + 0xc], 0x400000
or dword [ecx + 0xc], 0x400000
cmp dword [0x93858c], 0
je 0x40d06f
mov eax, dword [esp + 0x20]
mov ecx, dword [0x4264f8]
mov dword [eax + 0x4c], 1
mov dword [edi + 0x44], ecx
jmp 0x40d1b4
push 1
xor eax, eax
push eax
push dword [esp + 0x6c]
push eax
push dword [ebx + 8]
mov dword [esp + 0x38], edx
call sub.avformat.dll_av_guess_codec
mov edx, dword [esp + 0x38]
add esp, 0x14
cmp dword [0x9386f0], 0
jle 0x40d0f7
lea edi, [esp + 0x5c]
mov dword [esp + 0x10], eax
mov dword [esp + 0x28], esi
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x24], edx
mov dword [esp + 0x3c], ebx
xor ecx, ecx
mov ebx, ecx
mov eax, dword [0x938560]
mov dword [esp + 0x5c], 0
push edi
push dword [eax + ebx*4]
push dword [0x93846c]
call sub.avcodec.dll_Ordinal_78
add esp, 0xc
mov eax, dword [esp + 0x5c]
test eax, eax
jne 0x40d6c8
fstp st(0)
inc ebx
cmp ebx, dword [0x9386f0]
jl 0x40d0b1
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
mov ebx, dword [esp + 0x3c]
mov ecx, dword [0x93857c]
mov edi, dword [esp + 0x1c]
movss xmm0, dword [0x426454]
test ecx, ecx
cmovne eax, ecx
comiss xmm0, dword [0x41e70c]
mov dword [edi + 0xe4], eax
jbe 0x40d13e
mulss xmm0, dword [0x41e710]
mov ecx, edi
mov edi, dword [esp + 0x20]
or dword [ecx + 0xc], 2
movss dword [edi + 0x54], xmm0
cvttss2si edi, xmm0
mov dword [ecx + 0x218], edi
mov ecx, dword [0x4264f8]
mov edi, dword [esp + 0x1c]
push eax
mov dword [edi + 0x44], ecx
mov dword [esp + 0x28], edx
call sub.avcodec.dll_avcodec_find_encoder
mov edx, dword [esp + 0x28]
add esp, 4
test eax, eax
je 0x40d1b4
mov ecx, dword [eax + 0x3c]
test ecx, ecx
je 0x40d1b4
lea eax, [ecx + 4]
mov ecx, dword [ecx]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
cmp ecx, 0xffffffff
je 0x40d6b3
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 8]
mov edi, dword [eax + 0x48]
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x14]
mov dword [esp + 0x3c], ebx
mov ebx, dword [esp + 0x10]
cmp ecx, ebx
je 0x40d6af
mov ecx, dword [edi]
add edi, 4
cmp ecx, 0xffffffff
jne 0x40d197
mov ebx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x18]
mov dword [eax + 0x48], ecx
mov eax, dword [0x4264fc]
mov ecx, dword [esp + 0x1c]
mov dword [ecx + 0x20], 1
mov dword [ecx + 0x40], eax
mov dword [ecx + 0x24], eax
mov eax, dword [0x9384d4]
test eax, eax
je 0x40d20a
mov ecx, dword [esp + 0x20]
push eax
add ecx, 0xe8
push str.language
push ecx
mov dword [esp + 0x30], edx
call sub.avformat.dll_Ordinal_3
push dword [0x9384d4]
call dword [sym.imp.avutil.dll_av_free]
mov edx, dword [esp + 0x34]
add esp, 0x10
mov dword [0x9384d4], 0
xor eax, eax
mov dword [0x9384d0], eax
mov dword [0x93857c], eax
mov dword [0x93858c], eax
cmp dword [esp + 0x40], 0
je 0x40d231
mov dword [esp + 0x24], edx
mov eax, ebx
call fcn.0040e2a0
mov edx, dword [esp + 0x24]
test edx, edx
je 0x40d243
test esi, esi
je 0x40d243
mov dword [0x4264d4], 0
mov eax, dword [0x938458]
mov edx, dword [0x93845c]
mov dword [ebx + 0x560], eax
mov eax, dword [0x9386f4]
mov dword [ebx + 0x564], edx
test eax, eax
jle 0x40d28f
lea esi, [ebx + 0x1874]
mov edx, dword [0x9386f8]
push dword [edx + eax*8 - 4]
push dword [edx + eax*8 - 8]
push esi
call sub.avformat.dll_Ordinal_3
add esp, 0xc
mov eax, dword [0x9386f4]
dec eax
mov dword [0x9386f4], eax
test eax, eax
jg 0x40d269
push 0
mov eax, dword [ebx + 8]
push dword [eax + 0x38]
push ebx
call sub.avformat.dll_Ordinal_4
add esp, 0xc
jmp 0x40d3e9
mov ecx, dword [0x938518]
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], edx
xor eax, eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], eax
mov edi, dword [ecx*4 + 0x531b00]
imul ecx, ecx, 0x320
xor edx, edx
mov dword [esp + 0x14], edi
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x3c], ebx
jmp 0x40d2f5
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x4c], edx
xor edx, edx
cmp eax, dword [esp + 0x14]
jge 0x40d717
mov esi, dword [ecx + eax*4 + 0x569380]
mov edi, dword [esi + 0x68]
mov dword [esp + 0x1c], ecx
mov ebx, edx
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x18]
cmp ebx, edi
jae 0x40d2e2
mov ecx, dword [esi + ebx*4 + 0x6c]
mov ecx, dword [ecx + 8]
mov ecx, dword [ecx + 0xe0]
inc ecx
cmp ecx, 5
ja case.default.0x40cf39
mov ecx, dword [ecx*4 + 0x41d500]
jmp ecx
mov eax, 1
jmp case.0x40d33d.2
mov dword [esp + 0x48], 1
jmp case.0x40d33d.2
mov edx, 1
inc ebx
jmp 0x40d31b
lea edx, [esp + 0x60]
xor eax, eax
push eax
push 0x1000
push eax
push dword [esp + 0x50]
push edx
call dword [sym.imp.avformat.dll_Ordinal_24]
add esp, 0x14
test eax, eax
jl 0x40d86e
mov eax, dword [esp + 0x60]
mov edx, dword [eax + 0x68]
mov dword [ebx + 0x68], edx
mov eax, dword [esp + 0x60]
cmp dword [eax + 0x68], 0
jbe 0x40d3e2
xor edi, edi
push 0x190
call sub.avutil.dll_av_mallocz
mov esi, eax
mov eax, dword [esp + 0x64]
push 0x190
push dword [eax + edi*4 + 0x6c]
push esi
call fcn.00419650
add esp, 0x10
call sub.avcodec.dll_avcodec_alloc_context
mov dword [esi + 8], eax
mov edx, dword [esp + 0x60]
push 0x410
mov ecx, dword [edx + edi*4 + 0x6c]
push dword [ecx + 8]
push eax
call fcn.00419650
add esp, 0xc
mov dword [ebx + edi*4 + 0x6c], esi
mov eax, dword [esp + 0x60]
inc edi
cmp edi, dword [eax + 0x68]
jb 0x40d391
push eax
call sub.avformat.dll_Ordinal_10
pop ecx
mov eax, dword [0x938510]
mov dword [eax*4 + 0x567fc0], ebx
mov edx, dword [ebx + 8]
inc eax
mov dword [0x938510], eax
mov eax, dword [edx + 0x28]
test al, 2
jne 0x40d83e
test al, 1
jne 0x40d534
cmp dword [0x938484], 0
jne 0x40d4b8
push 0x3a
push dword [esp + 0x48]
call dword [sym.imp.MSVCR90.dll_strchr]
add esp, 8
test eax, eax
je 0x40d448
push 0
push str.file:
push dword [esp + 0x4c]
call sub.avutil.dll_av_strstart
add esp, 0xc
test eax, eax
je 0x40d4b8
push 0x100
push dword [esp + 0x48]
call sub.avformat.dll_Ordinal_122
add esp, 8
test eax, eax
je 0x40d4b8
cmp dword [0x93866c], 0
jne 0x40d74b
call dword [sym.imp.MSVCR90.dll___iob_func]
push dword [esp + 0x44]
mov esi, eax
add esi, 0x40
push str.File__s_already_exists._Overwrite____y_N_
push esi
call dword [sym.imp.MSVCR90.dll_fprintf]
push esi
call dword [sym.imp.MSVCR90.dll_fflush]
add esp, 0x10
call dword [sym.imp.MSVCR90.dll_getchar]
push eax
call dword [sym.imp.MSVCR90.dll_toupper]
pop ecx
cmp eax, 0x59
je 0x40d4b8
push esi
push str.Not_overwriting___exiting_n
call sub.MSVCR90.dll_fputs
push 1
call dword [sym.imp.MSVCR90.dll_exit]
add esp, 0xc
xor esi, esi
cmp dword [str.xwmv], 0
je 0x40d813
mov eax, dword [ebx + 8]
mov eax, dword [eax]
mov dword [esp + 0x3c], ebx
mov ebx, eax
mov ecx, esi
mov esi, dword [ecx*4 + 0x4264e8]
mov edi, ebx
mov dl, byte [edi]
cmp dl, byte [esi]
jne 0x40d4fd
test dl, dl
je 0x40d4f9
mov dl, byte [edi + 1]
cmp dl, byte [esi + 1]
jne 0x40d4fd
add edi, 2
add esi, 2
test dl, dl
jne 0x40d4dd
xor eax, eax
jmp 0x40d502
sbb eax, eax
or eax, 1
test eax, eax
je 0x40d7de
inc ecx
cmp dword [ecx*4 + 0x4264e8], 0
jne 0x40d4d4
mov ebx, dword [esp + 0x3c]
push 1
push dword [esp + 0x48]
lea eax, [ebx + 0x10]
push eax
call dword [sym.imp.avformat.dll_Ordinal_240]
add esp, 0xc
test eax, eax
jl 0x40d7ba
pxor xmm0, xmm0
movaps xmmword [esp + 0x10], xmm0
movaps xmmword [esp + 0x20], xmm0
movaps xmmword [esp + 0x30], xmm0
movaps xmmword [esp + 0x40], xmm0
movq qword [esp + 0x50], xmm0
movd dword [esp + 0x58], xmm0
mov dword [esp + 0x44], 0x9319e0
lea eax, [esp + 0x10]
push eax
push ebx
call sub.avformat.dll_Ordinal_40
add esp, 8
test eax, eax
jl 0x40d796
cmp dword [0x9386f0], 0
movss xmm1, dword [0x41e708]
movss xmm0, dword [0x426460]
mulss xmm0, xmm1
cvttss2si eax, xmm0
movss xmm2, dword [str.333_]
mov ecx, dword [0x426434]
mulss xmm2, xmm1
cvttss2si edx, xmm2
mov dword [ebx + 0x181c], eax
mov dword [ebx + 0x1824], ecx
mov dword [ebx + 0x1820], edx
jle 0x40d5fb
lea esi, [esp + 0x64]
xor edi, edi
mov eax, dword [0x938560]
mov dword [esp + 0x64], 0
push esi
push dword [eax + edi*4]
push dword [0x93847c]
call sub.avcodec.dll_Ordinal_78
add esp, 0xc
mov eax, dword [esp + 0x64]
test eax, eax
jne 0x40d76f
fstp st(0)
inc edi
cmp edi, dword [0x9386f0]
jl 0x40d5c5
mov eax, dword [0x938420]
or eax, dword [0x938424]
jne 0x40d614
xor eax, eax
mov dword [0x9386d4], eax
mov dword [0x9386fc], eax
add esp, 0x74
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.MSVCR90.dll_abort]
mov edx, dword [esp + 0x30]
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x18]
add ecx, dword [esp + 0x2c]
add dword [esp + 0x48], edx
cdq
mov dword [esp + 0x34], edi
mov edi, dword [0x938514]
mov dword [esp + 0x4c], ecx
test ecx, ecx
mov dword [esi*4 + 0x531b00], 0
mov dword [edi*8 + 0x531e20], eax
mov dword [edi*8 + 0x531e24], edx
mov edi, dword [esp + 0x34]
je 0x40d673
cmp dword [esp + 0x48], 0
jne 0x40d6a0
add edi, 0x320
inc esi
cmp esi, dword [0x93850c]
jl 0x40ce87
mov eax, ecx
mov ebx, dword [esp + 0x3c]
mov edx, dword [esp + 0x48]
mov dword [0x426008], eax
mov dword [0x42600c], edx
jmp 0x40ce1e
mov ebx, dword [esp + 0x3c]
mov eax, 1
mov dword [esp + 0x48], eax
jmp 0x40d68c
mov ebx, dword [esp + 0x3c]
cmp ecx, 0xffffffff
jne 0x40d1b4
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 8]
jmp 0x40d1ad
mov eax, dword [eax + 0x28]
test al, 8
je 0x40d0dc
test al, 1
je 0x40d0dc
mov eax, dword [0x938560]
mov edx, dword [eax + ebx*4]
fstp qword [esp + 8]
mov dword [esp], esi
mov dword [esp + 4], edx
call sub.avcodec.dll_av_set_double
jmp 0x40d0de
call dword [sym.imp.MSVCR90.dll___iob_func]
add eax, 0x40
push eax
push str.Could_not_alloc_stream_n
call sub.MSVCR90.dll_fputs
push 1
call dword [sym.imp.MSVCR90.dll_exit]
add esp, 0xc
mov esi, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x4c]
mov ebx, dword [esp + 0x3c]
test eax, eax
cmove esi, eax
mov ecx, dword [esp + 0x48]
test ecx, ecx
cmove edx, ecx
mov ecx, dword [esp + 0x18]
test ecx, ecx
mov edi, dword [esp + 0x40]
cmove edi, ecx
mov dword [esp + 0x40], edi
jmp 0x40cdc6
call dword [sym.imp.MSVCR90.dll___iob_func]
push dword [esp + 0x44]
push str.File__s_already_exists._Exiting._n
add eax, 0x40
push eax
call dword [sym.imp.MSVCR90.dll_fprintf]
push 1
call dword [sym.imp.MSVCR90.dll_exit]
add esp, 0x10
test byte [eax + 0x28], 1
je 0x40d5f0
mov eax, dword [0x938560]
mov edx, dword [eax + edi*4]
fstp qword [esp + 8]
mov dword [esp], ebx
mov dword [esp + 4], edx
call sub.avcodec.dll_av_set_double
jmp 0x40d5f2
call dword [sym.imp.MSVCR90.dll___iob_func]
push dword [esp + 0x64]
push str._s:_Invalid_encoding_parameters_n
add eax, 0x40
push eax
call dword [sym.imp.MSVCR90.dll_fprintf]
push 1
call dword [sym.imp.MSVCR90.dll_exit]
add esp, 0x10
call dword [sym.imp.MSVCR90.dll___iob_func]
push dword [esp + 0x44]
push str.Could_not_open__s_n
add eax, 0x40
push eax
call dword [sym.imp.MSVCR90.dll_fprintf]
push 1
call dword [sym.imp.MSVCR90.dll_exit]
add esp, 0x10
mov ebx, dword [esp + 0x3c]
push 1
mov esi, ecx
lea eax, [ebx + 0x10]
push dword [esp + 0x48]
push str.NULL
push eax
call sub.avformat.dll_Ordinal_133
add esp, 0x10
test eax, eax
jl 0x40d81a
mov eax, dword [esi*4 + 0x4264e8]
test eax, eax
je 0x40d519
jmp 0x40d534
mov eax, dword [str.xwmv]
jmp 0x40d806
call dword [sym.imp.MSVCR90.dll___iob_func]
push dword [esp + 0x44]
push str.Could_not_open__s_n
add eax, 0x40
push eax
call dword [sym.imp.MSVCR90.dll_fprintf]
push 1
call dword [sym.imp.MSVCR90.dll_exit]
add esp, 0x10
push dword [esp + 0x64]
call sub.avformat.dll_av_filename_number_test
pop ecx
test eax, eax
je 0x40d857
mov eax, dword [ebx + 8]
mov eax, dword [eax + 0x28]
jmp 0x40d409
mov eax, dword [esp + 0x64]
mov edx, 0xffffffdf
call fcn.00416030
push 1
call dword [sym.imp.MSVCR90.dll_exit]
pop ecx
call dword [sym.imp.MSVCR90.dll___iob_func]
push dword [esp + 0x44]
push str.Could_not_read_stream_parameters_from__s_n
add eax, 0x40
push eax
call dword [sym.imp.MSVCR90.dll_fprintf]
push 1
call dword [sym.imp.MSVCR90.dll_exit]
add esp, 0x10
xor eax, eax
push eax
push dword [esp + 0x48]
push eax
call sub.avformat.dll_Ordinal_118
add esp, 0xc
mov dword [0x9386d4], eax
test eax, eax
jne 0x40cc22
call dword [sym.imp.MSVCR90.dll___iob_func]
push dword [esp + 0x44]
push str.Unable_to_find_a_suitable_output_format_for__s_n
add eax, 0x40
push eax
call dword [sym.imp.MSVCR90.dll_fprintf]
push 1
call dword [sym.imp.MSVCR90.dll_exit]
add esp, 0x10
lea esi, [esi]
lea edi, [edi]
mov eax, dword [esp + 4]