Function at 0x40e3c0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push edi
push esi
push ebx
sub esp, 0x74
mov esi, eax
push dword [esi + 0x68]
push esi
call sub.avformat.dll_av_new_stream
add esp, 8
mov edi, eax
test edi, edi
je 0x40e988
push 0
push dword [edi + 8]
call sub.avcodec.dll_avcodec_get_context_defaults2
add esp, 8
mov eax, dword [0x938510]
mov edx, dword [0x938724]
mov ebx, dword [esi + 0x68]
mov ecx, eax
shl ecx, 4
sub ecx, eax
mov eax, dword [0x426500]
mov dword [0x938724], 0
shl ecx, 4
mov dword [ecx + ebx*4 + 0x8fe93c], edx
mov edx, dword [edi + 8]
mov dword [edx + 0x26c], eax
mov ebx, dword [edi + 8]
mov eax, dword [0x938728]
test eax, eax
je 0x40e43a
mov dword [ebx + 0xe8], eax
mov edx, dword [0x9384a4]
test dl, 1
jne 0x40e452
test edx, edx
jne 0x40e465
mov eax, dword [esi + 8]
test byte [eax + 0x28], 0x40
je 0x40e465
mov eax, dword [0x938468]
or dword [ebx + 0xc], 0x400000
or dword [eax + 0xc], 0x400000
test dl, 2
je 0x40e47d
mov eax, dword [0x938468]
or dword [ebx + 0x25c], 8
or dword [eax + 0x25c], 8
cmp dword [0x938594], 0
je 0x40e4f3
mov dword [edi + 0x4c], 1
mov dword [ebx + 0xe0], 0
cvtsi2ss xmm1, dword [0x532aa0]
cvtsi2ss xmm0, dword [0x532780]
mulss xmm1, dword [0x938714]
divss xmm1, xmm0
pxor xmm2, xmm2
mov dword [esp + 8], 0xff
movss xmm2, xmm1
cvtps2pd xmm3, xmm2
movsd qword [esp], xmm3
call sub.avutil.dll_av_d2q
mov dword [edi + 0xe0], eax
mov dword [edi + 0xe4], edx
mov dword [ebx + 0x190], eax
mov eax, dword [edi + 0xe4]
mov dword [ebx + 0x194], eax
jmp 0x40e8c8
xor edx, edx
push edx
push edx
lea eax, [esi + 0x15c]
push eax
push edx
push dword [esi + 8]
call sub.avformat.dll_av_guess_codec
mov edx, dword [0x938584]
test edx, edx
cmovne eax, edx
mov dword [ebx + 0xe4], eax
push eax
call sub.avcodec.dll_avcodec_find_encoder
add esp, 0x18
mov esi, eax
cmp dword [0x9386f0], 0
jle 0x40e57d
lea eax, [esp + 0x34]
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], edi
xor edx, edx
mov edi, eax
mov esi, edx
mov ecx, dword [0x938560]
mov dword [esp + 0x34], 0
push edi
push dword [ecx + esi*4]
push dword [0x938468]
call sub.avcodec.dll_Ordinal_78
add esp, 0xc
mov ecx, dword [esp + 0x34]
test ecx, ecx
jne 0x40e955
fstp st(0)
inc esi
cmp esi, dword [0x9386f0]
jl 0x40e53e
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov eax, dword [0x426510]
mov edx, dword [0x426514]
mov dword [ebx + 0x24], eax
mov dword [ebx + 0x20], edx
test esi, esi
je 0x40e66d
mov ecx, dword [esi + 0x2c]
mov dword [esp + 0x10], ecx
test ecx, ecx
je 0x40e66d
mov ecx, dword [0x41d548]
mov dword [esp + 0x28], ecx
mov ecx, dword [0x41d54c]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x10]
cmp dword [ecx + 4], 0
je 0x40e94e
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ebx
mov ebx, ecx
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], edi
push dword [ebx + 4]
push dword [ebx]
push dword [esp + 0x2c]
push dword [esp + 0x2c]
call sub.avutil.dll_av_sub_q
add esp, 0x10
mov ecx, edx
mov edi, eax
neg edi
test eax, eax
jl 0x40e604
mov edi, eax
mov eax, dword [esp + 0x2c]
imul edi
mov dword [esp + 0x30], edi
mov esi, eax
mov edi, edx
mov eax, ecx
imul dword [esp + 0x28]
sub esi, eax
sbb edi, edx
or esi, edi
je 0x40e649
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x1c]
sar edi, 0x1f
or edi, 1
cmovl esi, dword [esp + 0x30]
cmovl eax, ebx
mov dword [esp + 0x28], esi
mov dword [esp + 0x1c], eax
mov edi, dword [esp + 0x2c]
cmovl edi, ecx
mov dword [esp + 0x2c], edi
add ebx, 8
cmp dword [ebx + 4], 0
jne 0x40e5e3
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
mov edi, dword [esp + 0x18]
mov edx, dword [eax]
mov dword [ebx + 0x24], edx
mov eax, dword [eax + 4]
mov dword [ebx + 0x20], eax
mov edx, dword [0x532780]
add edx, dword [0x533720]
add edx, dword [0x533400]
cvtsi2ss xmm0, edx
mov dword [ebx + 0x28], edx
mov eax, dword [0x532aa0]
add eax, dword [0x532dc0]
add eax, dword [0x5330e0]
cvtsi2ss xmm1, eax
mulss xmm1, dword [0x938714]
divss xmm1, xmm0
mov dword [esp + 8], 0xff
mov dword [ebx + 0x2c], eax
pxor xmm2, xmm2
movss xmm2, xmm1
cvtps2pd xmm3, xmm2
movsd qword [esp], xmm3
call sub.avutil.dll_av_d2q
mov dword [ebx + 0x190], eax
mov dword [ebx + 0x194], edx
mov edx, dword [0x42650c]
mov dword [ebx + 0x34], edx
mov dword [edi + 0xe0], eax
mov eax, dword [ebx + 0x194]
mov dword [edi + 0xe4], eax
test esi, esi
je 0x40e721
mov edx, dword [esi + 0x30]
test edx, edx
je 0x40e721
mov esi, dword [edx]
lea eax, [edx + 4]
mov ecx, esi
cmp esi, 0xffffffff
je 0x40e940
mov edx, dword [ebx + 0x34]
cmp ecx, edx
je 0x40e940
mov ecx, dword [eax]
add eax, 4
cmp ecx, 0xffffffff
jne 0x40e70c
mov dword [ebx + 0x34], esi
cmp dword [0x9384b0], 0
je 0x40e731
mov dword [ebx + 0x30], 0
movss xmm1, dword [0x93872c]
pxor xmm0, xmm0
ucomiss xmm1, xmm0
jp 0x40e748
je 0x40e92e
movss xmm0, dword [0x41e714]
mulss xmm1, xmm0
cvttss2si eax, xmm1
or dword [ebx + 0xc], 2
movss dword [edi + 0x54], xmm1
mov dword [ebx + 0x218], eax
mov eax, dword [0x938550]
test eax, eax
je 0x40e776
mov dword [ebx + 0x230], eax
mov eax, dword [0x938554]
test eax, eax
je 0x40e785
mov dword [ebx + 0x234], eax
mov edi, dword [0x426518]
mov eax, dword [str.texqComp]
mov dword [ebx + 0x6c], edi
mov edi, dword [0x938730]
mov dword [ebx + 0x138], eax
xor esi, esi
test edi, edi
je 0x40e84a
lea eax, [esp + 0x18]
push eax
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x18]
push ecx
push str._d__d__d
push edi
call dword [sym.imp.MSVCR90.dll_sscanf]
add esp, 0x14
cmp eax, 3
jne 0x40e90f
mov eax, esi
shl eax, 4
add eax, 0x10
push eax
push dword [ebx + 0x130]
call sub.avutil.dll_av_realloc
add esp, 8
mov ecx, dword [esp + 0x10]
mov dword [ebx + 0x130], eax
mov edx, esi
shl edx, 4
mov dword [eax + edx], ecx
mov eax, dword [esp + 0x14]
mov ecx, dword [ebx + 0x130]
mov dword [ecx + edx + 4], eax
mov eax, dword [esp + 0x18]
test eax, eax
jle 0x40e8de
mov ecx, dword [ebx + 0x130]
mov dword [ecx + edx + 8], eax
mov eax, dword [ebx + 0x130]
mov dword [eax + edx + 0xc], 0x3f800000
push 0x2f
push edi
call dword [sym.imp.MSVCR90.dll_strchr]
add esp, 8
mov edi, eax
lea eax, [edi + 1]
test edi, edi
cmovne edi, eax
inc esi
test edi, edi
jne 0x40e7a9
cmp dword [ebx + 0x254], 0
mov dword [ebx + 0x134], esi
jne 0x40e874
mov eax, dword [ebx + 0x144]
lea edx, [eax + eax*2]
mov ecx, edx
sar ecx, 1
shr ecx, 0x1e
add ecx, edx
sar ecx, 2
mov dword [ebx + 0x254], ecx
mov eax, dword [0x9386b0]
mov edx, dword [0x426450]
mov ecx, dword [0x9386e8]
mov dword [ebx + 0x278], eax
add edx, 0xfffffff8
cmp dword [0x9384c8], 0
mov dword [ebx + 0x280], edx
mov dword [ebx + 0xf8], ecx
je 0x40e8aa
or dword [ebx + 0xc], 0x8000
mov eax, dword [0x938734]
test eax, eax
je 0x40e8c8
cmp eax, 1
je 0x40e8c1
or dword [ebx + 0xc], 0x400
jmp 0x40e8c8
or dword [ebx + 0xc], 0x200
xor eax, eax
mov dword [0x9384b4], eax
mov dword [0x938584], eax
add esp, 0x74
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret
movss xmm0, dword [0x41e718]
mov ecx, dword [ebx + 0x130]
mov dword [ecx + edx + 8], 0
neg eax
cvtsi2ss xmm1, eax
divss xmm1, xmm0
mov eax, dword [ebx + 0x130]
movss dword [eax + edx + 0xc], xmm1
jmp 0x40e82b
call dword [sym.imp.MSVCR90.dll___iob_func]
add eax, 0x40
push eax
push str.error_parsing_rc_override_n
call sub.MSVCR90.dll_fputs
push 1
call dword [sym.imp.MSVCR90.dll_exit]
add esp, 0xc
cmp dword [0x9384bc], 0
je 0x40e767
jmp 0x40e748
cmp ecx, 0xffffffff
je 0x40e71e
jmp 0x40e721
xor eax, eax
jmp 0x40e662
mov ecx, dword [ecx + 0x28]
test cl, 0x10
je 0x40e56a
test cl, 1
je 0x40e56a
mov ecx, dword [0x938560]
mov ecx, dword [ecx + esi*4]
fstp qword [esp + 8]
mov dword [esp], ebx
mov dword [esp + 4], ecx
call sub.avcodec.dll_av_set_double
jmp 0x40e56c
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, esi
lea edi, [edi]