Function at 0x402600
Capabilities:
Read file on windows
Terminate process

Disassembly:
push edi
push esi
push ebp
push ebx
sub esp, 0xa1c
mov edi, ecx
mov dword [esp + 0x9ec], edx
mov dword [esp + 0x9e8], eax
mov eax, dword [esp + 0xa3c]
shl eax, 4
push eax
call sub.avutil.dll_av_mallocz
pop ecx
mov esi, eax
test esi, esi
je 0x4061d3
cmp dword [esp + 0xa3c], 0
jle 0x4026b6
mov eax, dword [esp + 0xa3c]
mov edx, eax
shr edx, 0x1f
add edx, eax
sar edx, 1
xor ebx, ebx
test edx, edx
jbe 0x40358a
mov dword [esp + 0x30], edx
xor eax, eax
mov ebp, dword [edi + eax*8]
lea edx, [eax + eax]
shl edx, 4
mov dword [esi + edx + 4], ebx
mov ecx, dword [ebp + 0x68]
mov dword [esi + edx + 0xc], ecx
add ebx, dword [ebp + 0x68]
mov ebp, dword [edi + eax*8 + 4]
inc eax
mov dword [esi + edx + 0x14], ebx
mov ecx, dword [ebp + 0x68]
mov dword [esi + edx + 0x1c], ecx
add ebx, dword [ebp + 0x68]
cmp eax, dword [esp + 0x30]
jb 0x40265f
lea ecx, [eax + eax + 1]
lea eax, [ecx - 1]
cmp eax, dword [esp + 0xa3c]
jae 0x4026b8
mov edx, dword [edi + ecx*4 - 4]
shl ecx, 4
mov dword [ecx + esi - 0xc], ebx
mov eax, dword [edx + 0x68]
mov dword [ecx + esi - 4], eax
add ebx, dword [edx + 0x68]
jmp 0x4026b8
xor ebx, ebx
lea eax, [ebx*4]
push eax
call sub.avutil.dll_av_mallocz
pop ecx
mov dword [esp + 0xa10], eax
cmp dword [esp + 0xa10], 0
je 0x4061b5
test ebx, ebx
jle 0x4061c5
mov dword [esp + 0xa0c], edi
mov edi, eax
xor ebp, ebp
push 0x60
call sub.avutil.dll_av_mallocz
pop ecx
test eax, eax
je 0x4061b5
mov dword [edi + ebp*4], eax
inc ebp
cmp ebp, ebx
jl 0x4026ee
mov edi, dword [esp + 0xa0c]
mov dword [esp + 0x9f0], eax
cmp dword [esp + 0xa3c], 0
jle 0x40280c
mov ebp, eax
mov ecx, dword [esp + 0xa3c]
mov dword [esp + 0x9c8], ebx
mov dword [esp + 0x9f4], esi
xor edx, edx
mov dword [esp + 0x30], edx
xor eax, eax
mov esi, dword [edi + eax*4]
cmp dword [esi + 0x68], 0
jbe 0x4027ee
mov dword [esp + 0x34], eax
mov ebx, edx
mov dword [esp + 0xa0c], edi
mov edi, dword [esp + 0x30]
mov eax, dword [esp + 0xa10]
mov edx, dword [esp + 0x34]
mov ebp, dword [eax + edi*4]
mov eax, dword [esi + ebx*4 + 0x6c]
inc edi
mov dword [ebp + 8], eax
mov dword [ebp], edx
mov dword [ebp + 4], ebx
mov ecx, dword [esi + ebx*4 + 0x6c]
mov edx, dword [ecx + 8]
cmp dword [edx + 0xe0], 3
je 0x406171
mov edx, dword [edx + 0xe4]
cmp edx, 0xc94d484e
je 0x4027ae
cmp edx, 0xce554c4c
je 0x4027ae
mov dword [ebp + 0xc], 1
jmp 0x4027b5
mov dword [ebp + 0x10], 1
mov eax, dword [eax + 8]
cmp dword [eax + 0x38], 0
je 0x4027d0
call sub.avformat.dll_Ordinal_18
mov dword [ebp + 0x28], 0
mov dword [ebp + 0x20], eax
mov dword [ebp + 0x24], edx
inc ebx
cmp ebx, dword [esi + 0x68]
jb 0x40275f
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0xa3c]
mov dword [esp + 0x30], edi
mov edi, dword [esp + 0xa0c]
xor edx, edx
inc eax
cmp eax, ecx
jl 0x402741
mov ebx, dword [esp + 0x9c8]
mov esi, dword [esp + 0x9f4]
mov dword [esp + 0x9f0], ebp
fld qword [0x41e5a8]
fstp qword [esp + 0x9a8]
fldz
fst dword [esp + 0x9e0]
fst qword [esp + 0x9b0]
fst qword [esp + 0x998]
fstp qword [esp + 0x9a0]
mov dword [esp + 0x9cc], 1
xor ebp, ebp
mov dword [esp + 0x9dc], ebp
mov dword [esp + 0xa04], ebp
call dword [sym.imp.MSVCR90.dll___iob_func]
mov ecx, dword [esp + 0xa3c]
mov dword [esp + 0x9d8], eax
mov edx, ebx
mov dword [esp + 0x9f4], esi
mov dword [esp + 0xa0c], edi
shr edx, 0x1f
add edx, ebx
sar edx, 1
mov dword [esp + 0x9d4], edx
mov edx, ecx
and edx, 7
neg edx
add edx, ecx
mov dword [esp + 0x9d0], edx
pxor xmm0, xmm0
xor esi, esi
cmp dword [esp + 0x9ec], 0
jle 0x4028de
mov edi, dword [esp + 0x9ec]
mov dword [esp + 0x9c8], ebx
mov ebx, dword [esp + 0x9e8]
xor eax, eax
mov edx, dword [ebx + eax*4]
mov ecx, dword [edx + 0x68]
test ecx, ecx
je 0x406151
add esi, ecx
inc eax
cmp eax, edi
jl 0x4028bb
mov ebx, dword [esp + 0x9c8]
mov dword [esp + 0xa04], edx
cmp dword [esp + 0xa44], 0
jle 0x4029b1
cmp esi, dword [esp + 0xa44]
jne 0x406131
mov dword [esp + 0x9e4], esi
mov esi, dword [esp + 0x9f4]
mov dword [esp + 0x98c], ebp
mov ebp, dword [esp + 0xa40]
mov dword [esp + 0x9c8], ebx
xor eax, eax
mov ecx, eax
shl ecx, 4
mov ebx, dword [ebp + ecx]
mov edx, dword [ecx + ebp + 4]
test ebx, ebx
jl 0x406128
cmp ebx, dword [esp + 0xa3c]
jge 0x406128
test edx, edx
jl 0x406128
mov edi, ebx
shl edi, 4
cmp edx, dword [edi + esi + 0xc]
jge 0x406105
mov edx, dword [ecx + ebp + 8]
mov ecx, dword [ecx + ebp + 0xc]
test edx, edx
jl 0x4060fc
cmp edx, dword [esp + 0xa3c]
jge 0x4060fc
test ecx, ecx
jl 0x4060fc
mov ebx, edx
shl ebx, 4
cmp ecx, dword [ebx + esi + 0xc]
jge 0x4060d9
inc eax
cmp eax, dword [esp + 0xa44]
jl 0x40291e
mov ebp, dword [esp + 0x98c]
mov ebx, dword [esp + 0x9c8]
mov dword [esp + 0x9f4], esi
mov esi, dword [esp + 0x9e4]
lea eax, [esi*4]
push eax
call sub.avutil.dll_av_mallocz
pop ecx
mov edi, eax
test edi, edi
je 0x4060ac
test esi, esi
jle 0x4029fa
mov dword [esp + 0x9c8], ebx
xor eax, eax
mov ebx, eax
push 0x190
call sub.avutil.dll_av_mallocz
pop ecx
test eax, eax
je 0x4060bf
mov dword [edi + ebx*4], eax
inc ebx
cmp ebx, esi
jl 0x4029d8
mov ebx, dword [esp + 0x9c8]
test ebp, ebp
jne 0x402bdc
cmp dword [esp + 0x9ec], 0
jle 0x402bcf
mov eax, dword [0x93850c]
mov dword [esp + 0x9e4], esi
mov esi, dword [esp + 0x9ec]
xor edx, edx
xor ecx, ecx
mov dword [esp + 0x98c], ebp
mov ebp, dword [esp + 0x9e8]
mov dword [esp + 0xa00], edi
mov dword [esp + 0x9b8], edx
mov dword [esp + 0x974], eax
mov dword [esp + 0x9c8], ebx
mov ebx, edx
mov edx, dword [ebp + ecx*4]
cmp dword [edx + 0x68], 0
jbe 0x402ba3
mov eax, dword [0x938514]
mov esi, dword [esp + 0x9f0]
mov ebp, dword [esp + 0x9b8]
mov dword [esp + 0x9bc], eax
mov edi, ebx
mov dword [esp + 0xa04], edx
mov dword [esp + 0xa08], ecx
mov ebx, dword [esp + 0xa00]
mov eax, dword [esp + 0xa08]
mov edx, dword [esp + 0xa04]
mov ebx, dword [ebx + ebp*4]
inc ebp
cmp dword [esp + 0xa44], 0
mov dword [ebx], eax
mov dword [ebx + 4], edi
mov edx, dword [edx + edi*4 + 0x6c]
mov dword [ebx + 0xc], edx
jle 0x4035ce
mov esi, dword [esp + 0xa40]
mov ecx, ebp
shl ecx, 4
mov eax, dword [ecx + esi - 0x10]
mov esi, dword [ecx + esi - 0xc]
mov ecx, dword [esp + 0x9f4]
mov dword [esp + 0x9fc], eax
mov dword [esp + 0x9f8], esi
shl eax, 4
mov eax, dword [eax + ecx + 4]
add eax, esi
mov esi, dword [esp + 0xa10]
mov dword [ebx + 8], eax
mov esi, dword [esi + eax*4]
mov ecx, dword [esi + 8]
mov eax, dword [ecx + 8]
mov ecx, dword [eax + 0xe0]
mov edx, dword [edx + 8]
cmp ecx, dword [edx + 0xe0]
jne 0x403594
cmp dword [esp + 0xa44], 0
mov dword [esi + 0xc], 0
jle 0x402b68
mov eax, dword [esp + 0xa40]
mov dword [esp + 0x9f0], esi
mov esi, dword [esp + 0x9f4]
mov edx, ebp
shl edx, 4
mov ecx, dword [edx + eax - 8]
shl ecx, 4
mov ecx, dword [ecx + esi + 4]
add ecx, dword [edx + eax - 4]
mov eax, dword [esp + 0xa10]
mov esi, dword [esp + 0x9f0]
mov edx, dword [eax + ecx*4]
mov dword [ebx + 0x18], edx
jmp 0x402b6b
mov dword [ebx + 0x18], esi
mov eax, dword [esp + 0xa04]
inc edi
cmp edi, dword [eax + 0x68]
jb 0x402a8b
mov edx, eax
mov ecx, dword [esp + 0xa08]
mov dword [esp + 0x9f0], esi
mov esi, dword [esp + 0x9ec]
mov dword [esp + 0x9b8], ebp
mov ebp, dword [esp + 0x9e8]
xor ebx, ebx
inc ecx
cmp ecx, esi
jl 0x402a53
mov esi, dword [esp + 0x9e4]
mov ebp, dword [esp + 0x98c]
mov edi, dword [esp + 0xa00]
mov ebx, dword [esp + 0x9c8]
mov dword [esp + 0xa04], edx
test esi, esi
jg 0x402cd3
jmp 0x402d32
cmp dword [esp + 0x9ec], 0
jle 0x402c7a
mov dword [esp + 0x9e4], esi
mov dword [esp + 0x98c], ebp
mov ebp, dword [esp + 0x9ec]
mov dword [esp + 0x9c8], ebx
mov ebx, dword [esp + 0x9e8]
xor eax, eax
mov dword [esp + 0x9c4], eax
xor ecx, ecx
mov esi, eax
mov eax, dword [ebx + ecx*4]
cmp dword [eax + 0x68], 0
jbe 0x402c59
mov ebp, dword [esp + 0x9c4]
mov edx, esi
mov ebx, dword [edi + ebp*4]
inc ebp
mov dword [ebx], ecx
mov dword [ebx + 4], edx
mov esi, dword [eax + edx*4 + 0x6c]
mov dword [ebx + 0xc], esi
inc edx
cmp edx, dword [eax + 0x68]
jb 0x402c2c
mov ebx, dword [esp + 0x9e8]
mov dword [esp + 0x9c4], ebp
mov ebp, dword [esp + 0x9ec]
xor esi, esi
inc ecx
cmp ecx, ebp
jl 0x402c1a
mov esi, dword [esp + 0x9e4]
mov ebp, dword [esp + 0x98c]
mov ebx, dword [esp + 0x9c8]
mov dword [esp + 0xa04], eax
test esi, esi
jle 0x402d32
mov ecx, dword [esp + 0xa10]
mov dword [esp + 0x98c], ebp
mov dword [esp + 0x9c8], ebx
xor edx, edx
mov ebx, dword [edx*8 + 0x590480]
mov ebp, dword [edx*8 + 0x590484]
mov eax, dword [edi + edx*4]
mov dword [eax + 0x28], ebx
mov ebx, dword [edx*4 + 0x590660]
mov dword [eax + 0x2c], ebp
mov dword [eax + 8], ebx
mov ebx, dword [ecx + ebx*4]
mov dword [eax + 0x18], ebx
inc edx
cmp edx, esi
jl 0x402c99
mov ebp, dword [esp + 0x98c]
mov ebx, dword [esp + 0x9c8]
mov dword [esp + 0x98c], ebp
mov dword [esp + 0x9c8], ebx
mov ebx, dword [esp + 0xa10]
xor eax, eax
mov ebp, dword [edi + eax*4]
mov ecx, dword [ebp + 8]
mov edx, dword [ebx + ecx*4]
mov ecx, dword [edx + 8]
mov ecx, dword [ecx + 8]
mov ebp, dword [ebp + 0xc]
cmp dword [ebp + 0x4c], 0
jne 0x402d18
cmp dword [ecx + 0xe0], 0
jne 0x402d18
mov ecx, dword [edx]
mov dword [ecx*4 + 0x887d60], 1
inc eax
cmp eax, esi
jl 0x402cea
mov ebp, dword [esp + 0x98c]
mov ebx, dword [esp + 0x9c8]
mov dword [esp + 0x9f0], edx
mov dword [esp + 0x9e4], esi
mov dword [esp + 0x98c], ebp
mov dword [esp + 0xa00], edi
mov dword [esp + 0x9c8], ebx
xor eax, eax
mov ebp, eax
cmp ebp, dword [esp + 0x9e4]
jge 0x403af0
mov ebx, dword [esp + 0xa00]
mov edi, dword [esp + 0xa10]
mov ebx, dword [ebx + ebp*4]
mov esi, dword [ebx + 8]
mov ecx, dword [edi + esi*4]
mov edx, dword [ebx + 0xc]
mov edi, dword [edx + 8]
mov dword [esp + 0x9f0], ecx
mov ecx, dword [ecx + 8]
mov esi, dword [ecx + 8]
xor edx, edx
push edx
push edx
push str.language
push dword [ecx + 0xe8]
call sub.avformat.dll_Ordinal_2
add esp, 0x10
mov edx, eax
test edx, edx
je 0x402dd6
mov eax, dword [ebx + 0xc]
xor ecx, ecx
push ecx
push ecx
push str.language
push dword [eax + 0xe8]
mov dword [esp + 0x9a0], edx
call sub.avformat.dll_Ordinal_2
mov edx, dword [esp + 0x9a0]
add esp, 0x10
test eax, eax
je 0x403861
mov edx, dword [ebx + 0xc]
cmp dword [edx + 0x4c], 0
je 0x402f60
cmp dword [edi + 0xe8], 0
mov edx, dword [esi + 0xe4]
mov dword [edi + 0xe4], edx
mov edx, dword [esi + 0xe0]
mov dword [edi + 0xe0], edx
jne 0x402e65
mov ecx, dword [esp + 0xa04]
mov ebx, dword [ecx + 8]
mov ecx, dword [ebx + 0x34]
test ecx, ecx
je 0x402e59
push dword [esi + 0xe8]
push ecx
call sub.avformat.dll_av_codec_get_id
add esp, 8
cmp eax, dword [edi + 0xe4]
jne 0x402e34
mov edx, dword [edi + 0xe0]
jmp 0x402e59
mov edx, dword [esp + 0xa04]
push dword [esi + 0xe4]
mov ecx, dword [edx + 8]
push dword [ecx + 0x34]
call sub.avformat.dll_av_codec_get_tag
add esp, 8
mov edx, dword [edi + 0xe0]
test eax, eax
ja 0x402e65
mov ecx, dword [esi + 0xe8]
mov dword [edi + 0xe8], ecx
mov ecx, dword [esi + 4]
mov dword [edi + 4], ecx
mov ebx, dword [esi + 0x18]
mov dword [edi + 0x18], ebx
mov ecx, dword [esi + 0x1c]
mov ebx, dword [esp + 0x9f0]
mov dword [edi + 0x1c], ecx
cvtsi2sd xmm0, dword [esi + 0x24]
mov eax, dword [esi + 0x20]
cvtsi2sd xmm2, eax
divsd xmm2, xmm0
mov ebx, dword [ebx + 8]
cvtsi2sd xmm1, dword [ebx + 0x44]
mov ecx, dword [ebx + 0x40]
cvtsi2sd xmm3, ecx
divsd xmm3, xmm1
comisd xmm2, xmm3
jbe 0x402ebd
movsd xmm0, qword [0x41e5d0]
comisd xmm0, xmm3
jbe 0x402ebd
mov dword [edi + 0x20], eax
mov ecx, dword [esi + 0x24]
jmp 0x402ec3
mov dword [edi + 0x20], ecx
mov ecx, dword [ebx + 0x44]
mov dword [edi + 0x24], ecx
cmp edx, 1
je 0x402f25
test edx, edx
jne 0x402f16
cmp dword [0x938690], 0
jne 0x403880
mov edx, dword [esi + 0x34]
mov dword [edi + 0x34], edx
mov ebx, dword [esi + 0x28]
mov dword [edi + 0x28], ebx
mov ecx, dword [esi + 0x2c]
imul ebx, ecx
mov dword [edi + 0x2c], ecx
mov esi, dword [esi + 0x10c]
mov dword [edi + 0x10c], esi
mov edi, dword [0x426470]
shl ebx, 2
cmp ebx, edi
cmovge edi, ebx
mov dword [0x426470], edi
jmp 0x403584
cmp edx, 3
je 0x403584
call dword [sym.imp.MSVCR90.dll_abort]
mov edx, dword [esi + 0x358]
mov ecx, dword [esi + 0x35c]
mov dword [edi + 0x358], edx
mov dword [edi + 0x35c], ecx
mov ebx, dword [esi + 0x40]
mov dword [edi + 0x40], ebx
mov edx, dword [esi + 0x44]
mov dword [edi + 0x44], edx
mov edx, dword [esi + 0x4c]
mov dword [edi + 0x4c], edx
mov esi, dword [esi + 0x110]
mov dword [edi + 0x110], esi
jmp 0x403584
mov edx, dword [edi + 0xe0]
cmp edx, 1
je 0x403396
test edx, edx
jne 0x403360
mov edx, dword [0x938514]
mov eax, dword [edx*4 + 0x533a40]
add eax, dword [edx*4 + 0x533d60]
mov ecx, dword [edx*4 + 0x5343a0]
add ecx, dword [edx*4 + 0x534080]
add eax, ecx
mov dword [esp + 0x944], edx
je 0x402fbb
mov dword [ebx + 0x140], 1
mov dword [esp + 0x920], 1
jmp 0x402fce
mov dword [ebx + 0x140], 0
xor edx, edx
mov dword [esp + 0x920], edx
mov edx, dword [esp + 0x944]
mov eax, dword [edx*4 + 0x532dc0]
add eax, dword [edx*4 + 0x5330e0]
mov ecx, dword [edx*4 + 0x533400]
add ecx, dword [edx*4 + 0x533720]
add eax, ecx
je 0x403006
mov dword [ebx + 0x164], 1
mov edx, 1
jmp 0x403012
mov dword [ebx + 0x164], 0
xor edx, edx
mov ecx, dword [edi + 0x34]
cmp ecx, 3
je 0x40301f
cmp ecx, 2
jne 0x40303e
cmp dword [esp + 0x920], 0
jne 0x40302d
test edx, edx
je 0x40303e
mov dword [edi + 0x34], 0
mov dword [0x93868c], 1
call sub.avcodec.dll_Ordinal_76
mov edx, dword [esi + 0x34]
mov dword [esp + 0x94c], edx
cmp edx, 3
je 0x403078
cmp dword [esp + 0x94c], 2
je 0x403078
mov edx, dword [ebx + 0x140]
mov ecx, dword [ebx + 0x164]
mov dword [esp + 0x940], edx
mov dword [esp + 0x93c], ecx
jmp 0x4030e4
mov edx, dword [ebx + 0x140]
mov dword [esp + 0x940], edx
test edx, edx
jne 0x40309a
mov edx, dword [ebx + 0x164]
mov dword [esp + 0x93c], edx
test edx, edx
je 0x4030e4
test eax, eax
jne 0x4030d7
mov edx, dword [esp + 0x94c]
mov dword [esi + 0x34], 0
mov ecx, dword [ebx + 0x140]
mov dword [0x426464], edx
mov edx, dword [ebx + 0x164]
mov dword [esp + 0x940], ecx
mov dword [esp + 0x93c], edx
xor edx, edx
mov dword [esp + 0x94c], edx
jmp 0x4030e4
mov edx, dword [ebx + 0x164]
mov dword [esp + 0x93c], edx
mov dword [esp + 0x950], ebx
mov ebx, dword [0x938514]
mov ecx, dword [ebx*4 + 0x5343a0]
mov edx, dword [ebx*4 + 0x533400]
mov eax, dword [ebx*4 + 0x533720]
mov dword [esp + 0x948], ebx
mov ebx, dword [ebx*4 + 0x534080]
neg ecx
add ecx, edx
mov dword [esp + 0x934], edx
mov dword [esp + 0x930], eax
mov dword [esp + 0x938], ebx
add ecx, eax
sub ecx, ebx
add ecx, dword [esi + 0x28]
mov ebx, dword [esp + 0x950]
cmp ecx, dword [edi + 0x28]
jne 0x403184
mov edx, dword [esp + 0x948]
mov ecx, dword [edx*4 + 0x532dc0]
add ecx, dword [edx*4 + 0x5330e0]
mov eax, dword [esi + 0x2c]
sub eax, dword [edx*4 + 0x533a40]
sub eax, dword [edx*4 + 0x533d60]
add eax, ecx
cmp eax, dword [edi + 0x2c]
jne 0x403184
mov edx, dword [esp + 0x94c]
cmp edx, dword [edi + 0x34]
jne 0x403184
mov dword [ebx + 0x30], 0
xor edx, edx
jmp 0x403190
mov dword [ebx + 0x30], 1
mov edx, 1
cmp dword [esp + 0x940], 0
je 0x4031bb
mov ecx, dword [esp + 0x948]
mov ecx, dword [ecx*4 + 0x533a40]
mov dword [ebx + 0x144], ecx
mov ecx, dword [esp + 0x938]
mov dword [ebx + 0x14c], ecx
cmp dword [esp + 0x93c], 0
je 0x40331a
mov eax, dword [esp + 0x948]
mov ecx, dword [eax*4 + 0x532dc0]
mov dword [ebx + 0x168], ecx
mov ecx, dword [esp + 0x934]
mov dword [ebx + 0x170], ecx
test edx, edx
mov ecx, dword [eax*4 + 0x5330e0]
mov dword [ebx + 0x16c], ecx
mov ecx, dword [esp + 0x930]
mov dword [ebx + 0x174], ecx
je 0x4038e0
lea edx, [ebx + 0x38]
mov dword [esp + 0x898], edx
push edx
call sub.avcodec.dll_avcodec_get_frame_defaults
push dword [edi + 0x2c]
push dword [edi + 0x28]
push dword [edi + 0x34]
push dword [esp + 0x8a8]
call sub.avcodec.dll_avpicture_alloc
add esp, 0x14
test eax, eax
jne 0x4038c0
push 0
push str.sws_flags
push dword [0x938480]
call sub.avcodec.dll_av_get_int
mov dword [esp + 0x898], eax
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x2c]
mov edx, dword [edi + 0x2c]
mov dword [esp + 0x89c], ebp
mov ebp, dword [0x938514]
sub eax, dword [ebp*4 + 0x534080]
sub eax, dword [ebp*4 + 0x5343a0]
sub ecx, dword [ebp*4 + 0x533a40]
sub ecx, dword [ebp*4 + 0x533d60]
sub edx, dword [ebp*4 + 0x532dc0]
sub edx, dword [ebp*4 + 0x5330e0]
mov dword [esp + 0x95c], ebx
mov ebx, dword [esp + 0x898]
mov dword [0x426430], ebx
mov dword [esp + 0x8a0], eax
mov eax, dword [edi + 0x28]
sub eax, dword [ebp*4 + 0x533400]
sub eax, dword [ebp*4 + 0x533720]
xor ebp, ebp
push ebp
push ebp
push ebp
push ebx
push dword [edi + 0x34]
push edx
push eax
push dword [esi + 0x34]
push ecx
push dword [esp + 0x8c4]
mov ebx, dword [esp + 0x984]
mov ebp, dword [esp + 0x8c4]
call sub.avswscale.dll_sws_getContext
add esp, 0x34
mov dword [ebx + 0x128], eax
test eax, eax
je 0x4038a0
mov edx, dword [0x938514]
mov ecx, dword [esi + 0x2c]
sub ecx, dword [edx*4 + 0x533a40]
sub ecx, dword [edx*4 + 0x533d60]
mov dword [ebx + 0x12c], ecx
jmp 0x403322
test edx, edx
jne 0x40320c
mov ecx, dword [esp + 0x9f0]
mov edx, dword [esi + 0x34]
mov dword [ebx + 0x10], 1
mov dword [ebx + 0x134], edx
mov edx, dword [0x426464]
mov dword [ecx + 0x10], 1
cmp edx, 0xfffffffe
je 0x40334e
mov dword [esi + 0x34], edx
cmp dword [0x93868c], 1
je 0x403a35
mov edx, dword [ebx + 0x10]
jmp 0x403383
cmp edx, 3
je 0x40336b
call dword [sym.imp.MSVCR90.dll_abort]
mov edx, dword [esp + 0x9f0]
mov dword [ebx + 0x10], 1
mov dword [edx + 0x10], 1
mov edx, dword [ebx + 0x10]
test edx, edx
jne 0x40344e
mov edx, dword [edi + 0xe0]
jmp 0x403565
push 0x40000
call sub.avutil.dll_av_fifo_alloc
pop ecx
mov dword [ebx + 0x188], eax
test eax, eax
je 0x40390e
mov edx, dword [edi + 0x44]
cmp edx, dword [esi + 0x44]
jne 0x4033cb
mov edx, dword [edi + 0x40]
cmp edx, dword [esi + 0x40]
jne 0x4033db
mov dword [ebx + 0x178], 0
jmp 0x4033e5
cmp dword [esi + 0xe4], 0xd74d4139
je 0x403ad1
mov dword [ebx + 0x178], 1
cmp dword [edi + 0x44], 0
jne 0x4033f1
mov edx, dword [esi + 0x44]
mov dword [edi + 0x44], edx
mov ecx, dword [esi + 0x358]
mov edx, dword [esi + 0x35c]
push edx
mov dword [edi + 0x358], ecx
mov dword [edi + 0x35c], edx
push ecx
call sub.avutil.dll_av_get_channel_layout_nb_channels
add esp, 8
cmp eax, dword [edi + 0x44]
je 0x403426
xor edx, edx
mov dword [edi + 0x358], edx
mov dword [edi + 0x35c], edx
mov ecx, dword [esp + 0x9f0]
mov dword [ebx + 0x180], 0xfffffff9
mov edx, dword [edi + 0x44]
mov dword [esi + 0x340], edx
mov dword [ecx + 0x10], 1
mov dword [ebx + 0x10], 1
test dword [edi + 0xc], 0x600
je 0x40338b
mov ecx, dword [0x9384c0]
lea esi, [esp + 0x450]
push ebp
mov edx, str.avc2pass
test ecx, ecx
cmove ecx, edx
push ecx
push str._s__d.log
push 0x400
push esi
call dword [sym.imp.MSVCR90.dll__snprintf]
add esp, 0x14
cmp dword [edi + 0xe4], 0x1c
je 0x403aa7
test dword [edi + 0xc], 0x200
je 0x4034cc
push 0x420d64
lea edx, [esp + 0x454]
push edx
call sub.avutil.dll_fopen_utf8
add esp, 8
test eax, eax
je 0x403a55
mov dword [ebx + 0x18c], eax
mov edx, dword [edi + 0xe0]
jmp 0x403565
push 0x41ed80
lea edx, [esp + 0x454]
push edx
call sub.avutil.dll_fopen_utf8
add esp, 8
mov esi, eax
test esi, esi
je 0x403a8e
push 2
push 0
push esi
call dword [sym.imp.MSVCR90.dll_fseek]
push esi
call dword [sym.imp.MSVCR90.dll_ftell]
mov dword [esp + 0x904], eax
xor edx, edx
push edx
push edx
push esi
call dword [sym.imp.MSVCR90.dll_fseek]
mov edx, dword [esp + 0x910]
lea ecx, [edx + 1]
push ecx
call sub.avutil.dll_av_malloc
add esp, 0x20
mov ebx, eax
test ebx, ebx
je 0x403a6e
push esi
push dword [esp + 0x8f8]
push 1
push ebx
call dword [sym.imp.MSVCR90.dll_fread]
mov dword [esp + 0x900], eax
push esi
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 0x14
mov edx, dword [esp + 0x8f0]
mov byte [edx + ebx], 0
mov edx, dword [edi + 0xe0]
mov dword [edi + 0x120], ebx
test edx, edx
jne 0x403584
mov ecx, dword [0x426470]
mov edx, dword [edi + 0x28]
imul edx, dword [edi + 0x2c]
shl edx, 2
cmp edx, ecx
cmovge ecx, edx
mov dword [0x426470], ecx
inc ebp
jmp 0x402d52
mov ecx, 1
jmp 0x402693
mov edx, dword [esp + 0x9f8]
mov ecx, dword [esp + 0x9fc]
mov ebx, dword [esp + 0xa08]
mov eax, dword [esp + 0x9d8]
add eax, 0x40
push edi
push ebx
push edx
push ecx
push str.Codec_type_mismatch_for_mapping__d._d_____d._d_n
push eax
call dword [sym.imp.MSVCR90.dll_fprintf]
push 1
call dword [sym.imp.MSVCR90.dll_exit]
add esp, 0x1c
cmp dword [esp + 0x9c8], 0
jle 0x40369f
mov esi, dword [esp + 0x9c8]
mov ecx, dword [edx + 8]
mov dword [esp + 0x994], edi
mov dword [esp + 0x9b8], ebp
mov ebp, dword [esp + 0xa10]
xor eax, eax
mov edi, dword [ebp + eax*4]
cmp dword [edi + 0xc], 0
je 0x40361f
mov edi, dword [edi + 8]
mov edi, dword [edi + 8]
mov edi, dword [edi + 0xe0]
cmp edi, dword [ecx + 0xe0]
je 0x403841
inc eax
cmp eax, esi
jl 0x4035fd
mov ebp, dword [esp + 0xa10]
mov ecx, dword [ecx + 0xe0]
xor eax, eax
mov dword [esp + 0x9c0], ebx
mov ebx, eax
mov esi, dword [ebp + ebx*4]
mov edi, dword [esi + 8]
mov edi, dword [edi + 8]
cmp ecx, dword [edi + 0xe0]
jne 0x403678
mov ecx, dword [esp + 0x9c0]
mov eax, ebx
mov dword [ecx + 8], ebx
inc ebx
cmp ebx, dword [esp + 0x9c8]
jge 0x40382f
mov ecx, dword [edx + 8]
mov ecx, dword [ecx + 0xe0]
mov eax, 1
jmp 0x40363c
inc ebx
cmp ebx, dword [esp + 0x9c8]
jl 0x40363c
mov ebx, dword [esp + 0x9c0]
mov edi, dword [esp + 0x994]
mov ebp, dword [esp + 0x9b8]
test eax, eax
jne 0x4037f3
cmp dword [esp + 0x974], 0
je 0x403805
mov eax, dword [edx + 8]
mov ecx, dword [eax + 0xe0]
mov edx, dword [esi + 8]
mov dword [esp + 0x970], eax
mov eax, dword [edx + 8]
cmp ecx, dword [eax + 0xe0]
je 0x4037e1
cmp ecx, 1
jne 0x403720
cmp dword [esp + 0x9bc], 0
mov edx, dword [esp + 0x970]
mov ecx, dword [edx + 0x40]
mov dword [eax + 0x40], ecx
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + 8]
mov esi, dword [esi + 8]
mov ecx, dword [esi + 8]
mov edx, dword [eax + 0x44]
mov dword [ecx + 0x44], edx
mov dword [0x938520], 1
jle 0x4037e1
mov eax, dword [esp + 0xa10]
mov dword [ebx + 8], 0
mov esi, dword [eax]
jmp 0x402b18
test ecx, ecx
jne 0x4037e1
mov dword [0x93851c], 1
push 0x1fa400
push 0x10
push 0x590760
call fcn.004195e0
push 0x7e900
push 0x80
push 0x78ab60
call fcn.004195e0
push 0x7e900
push 0x80
push 0x809460
call fcn.004195e0
add esp, 0x24
cmp dword [esp + 0x9bc], 0
mov eax, dword [ebx + 0xc]
mov ecx, dword [eax + 8]
mov edx, dword [esi + 8]
mov eax, dword [edx + 8]
mov ecx, dword [ecx + 0x28]
mov dword [eax + 0x28], ecx
mov edx, dword [ebx + 0xc]
mov edx, dword [edx + 8]
mov eax, dword [esi + 8]
mov eax, dword [eax + 8]
mov ecx, dword [edx + 0x2c]
mov dword [eax + 0x2c], ecx
mov edx, dword [ebx + 0xc]
mov ecx, dword [edx + 8]
mov esi, dword [esi + 8]
mov edx, dword [esi + 8]
mov eax, dword [ecx + 0x34]
mov dword [edx + 0x34], eax
mov dword [ebx + 8], 0
jle 0x4037d3
mov ecx, dword [esp + 0xa10]
mov eax, dword [ebx + 0xc]
mov edx, dword [eax + 8]
mov esi, dword [edx + 0xe0]
mov dword [ebx + 8], esi
mov esi, dword [ecx + esi*4]
jmp 0x402b18
mov eax, dword [esp + 0xa10]
mov esi, dword [eax]
jmp 0x402b18
mov eax, dword [esp + 0xa10]
mov edx, dword [ebx + 8]
mov esi, dword [eax + edx*4]
jmp 0x402b18
mov eax, dword [ebx + 8]
mov edx, dword [esp + 0xa10]
mov esi, dword [edx + eax*4]
jmp 0x402b18
mov ebx, dword [esp + 0xa08]
mov eax, dword [esp + 0x9d8]
push edi
add eax, 0x40
push ebx
push str.Could_not_find_input_stream_matching_output_stream__d._d_n
push eax
call dword [sym.imp.MSVCR90.dll_fprintf]
push 1
call dword [sym.imp.MSVCR90.dll_exit]
add esp, 0x14
mov ebx, ecx
mov edi, dword [esp + 0x994]
mov ebp, dword [esp + 0x9b8]
jmp 0x4037f6
mov edi, dword [esp + 0x994]
mov ebp, dword [esp + 0x9b8]
mov edx, dword [esp + 0xa10]
mov dword [ebx + 8], eax
mov esi, dword [edx + eax*4]
jmp 0x402b18
push dword [edx + 4]
push str.language
mov ecx, dword [ebx + 0xc]
add ecx, 0xe8
push ecx
call sub.avformat.dll_Ordinal_3
add esp, 0xc
jmp 0x402dd6
mov eax, dword [esp + 0x9d8]
add eax, 0x40
push eax
push str._vcodec_copy_and__vhook_are_incompatible__frames_are_not_decoded__n
call sub.MSVCR90.dll_fputs
push 1
call dword [sym.imp.MSVCR90.dll_exit]
add esp, 0xc
mov eax, dword [esp + 0x9d8]
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
mov eax, dword [esp + 0x9d8]
add eax, 0x40
push eax
push str.Cannot_allocate_temp_picture__check_pix_fmt_n
call sub.MSVCR90.dll_fputs
push 1
call dword [sym.imp.MSVCR90.dll_exit]
add esp, 0xc
lea edx, [ebx + 0x38]
mov dword [esp + 0x3c], edx
push edx
call sub.avcodec.dll_avcodec_get_frame_defaults
push dword [edi + 0x2c]
push dword [edi + 0x28]
push dword [edi + 0x34]
push dword [esp + 0x4c]
call sub.avcodec.dll_avpicture_alloc
add esp, 0x14
test eax, eax
jne 0x40390e
mov edx, dword [ebx + 0x30]
jmp 0x40331a
mov ebp, dword [esp + 0x98c]
mov edi, dword [esp + 0xa00]
mov ebx, dword [esp + 0x9c8]
mov esi, dword [esp + 0x9f4]
mov dword [esp + 0x30], 0xfffffff4
push 0x93859c
call sub.avutil.dll_av_freep
push esi
call dword [sym.imp.avutil.dll_av_free]
add esp, 8
cmp dword [esp + 0xa10], 0
je 0x403988
test ebx, ebx
jle 0x40397a
mov dword [esp + 0xa00], edi
mov edi, dword [esp + 0xa10]
xor esi, esi
push dword [edi + esi*4]
call dword [sym.imp.avutil.dll_av_free]
pop ecx
inc esi
cmp esi, ebx
jl 0x403964
mov edi, dword [esp + 0xa00]
push dword [esp + 0xa10]
call dword [sym.imp.avutil.dll_av_free]
pop ecx
test edi, edi
je 0x403a26
cmp dword [0x938544], 0
je 0x4039a1
test ebp, ebp
jne 0x403a26
cmp dword [esp + 0x9e4], 0
jle 0x403a1e
mov ebp, dword [esp + 0x9e4]
xor esi, esi
mov ebx, dword [edi + esi*4]
test ebx, ebx
je 0x403a19
mov eax, dword [ebx + 0x18c]
test eax, eax
je 0x4039d7
push eax
call dword [sym.imp.MSVCR90.dll_fclose]
pop ecx
mov dword [ebx + 0x18c], 0
push dword [ebx + 0x188]
call sub.avutil.dll_av_fifo_free
push dword [ebx + 0x38]
call dword [sym.imp.avutil.dll_av_free]
add esp, 8
cmp dword [ebx + 0x30], 0
je 0x403a00
push dword [ebx + 0x128]
call sub.avswscale.dll_sws_freeContext
pop ecx
mov eax, dword [ebx + 0x17c]
test eax, eax
je 0x403a11
push eax
call sub.avcodec.dll_audio_resample_close
pop ecx
push ebx
call dword [sym.imp.avutil.dll_av_free]
pop ecx
inc esi
cmp esi, ebp
jl 0x4039b4
push edi
call dword [sym.imp.avutil.dll_av_free]
pop ecx
mov eax, dword [esp + 0x30]
add esp, 0xa1c
pop ebx
pop ebp
pop esi
pop edi
ret
cmp dword [edi + 0xe4], 0xe
je 0x403a46
mov edx, dword [ebx + 0x10]
jmp 0x403383
mov dword [edi + 0x34], 2
mov edx, dword [ebx + 0x10]
jmp 0x403383
lea eax, [esp + 0x450]
push eax
call dword [sym.imp.MSVCR90.dll_perror]
push 1
call dword [sym.imp.MSVCR90.dll_exit]
add esp, 8
mov eax, dword [esp + 0x9d8]
add eax, 0x40
push eax
push str.Could_not_allocate_log_buffer_n
call sub.MSVCR90.dll_fputs
push 1
call dword [sym.imp.MSVCR90.dll_exit]
add esp, 0xc
lea eax, [esp + 0x450]
push eax
call dword [sym.imp.MSVCR90.dll_perror]
push 1
call dword [sym.imp.MSVCR90.dll_exit]
add esp, 8
lea esi, [esp + 0x450]
mov edx, dword [ebx + 0xc]
mov ecx, dword [edx + 8]
mov dword [ecx + 0x120], esi
mov ebx, dword [ebx + 0xc]
mov edx, dword [ebx + 8]
mov dword [edx + 0x11c], esi
mov edx, dword [edi + 0xe0]
jmp 0x403565
mov dword [ebx + 0x178], 1
mov edx, 2
cmp dword [esi + 0x44], 2
cmovl edx, dword [esi + 0x44]
mov dword [esi + 0x44], edx
jmp 0x4033e5
cmp dword [0x93859c], 0
mov esi, dword [esp + 0x9e4]
mov ebp, dword [esp + 0x98c]
mov edi, dword [esp + 0xa00]
mov ebx, dword [esp + 0x9c8]
je 0x406093
test esi, esi
jle 0x403ce7
mov dword [esp + 0x9e4], esi
mov dword [esp + 0x98c], ebp
mov dword [esp + 0xa00], edi
mov dword [esp + 0x9c8], ebx
xor eax, eax
mov ebp, eax
mov edx, dword [esp + 0xa00]
mov ebx, dword [edx + ebp*4]
cmp dword [ebx + 0x10], 0
je 0x403cbd
mov edx, dword [ebx + 0xc]
mov ecx, dword [edx + 8]
push dword [ecx + 0xe4]
call sub.avcodec.dll_avcodec_find_encoder
pop ecx
mov dword [esp + 0x96c], eax
mov edx, dword [ebx + 0xc]
mov ecx, dword [edx + 8]
mov edx, dword [ecx + 0xe4]
cmp edx, 0x1c
je 0x406003
cmp edx, 0xc1544945
je 0x403b9b
cmp edx, 0xc9504834
je 0x403b9b
cmp edx, 0xa0435548
jne 0x403be7
mov edx, dword [0x9385a0]
mov edi, dword [edx]
mov esi, str.matroska
mov dl, byte [edi]
cmp dl, byte [esi]
jne 0x403bc8
test dl, dl
je 0x403bc4
mov dl, byte [edi + 1]
cmp dl, byte [esi + 1]
jne 0x403bc8
add edi, 2
add esi, 2
test dl, dl
jne 0x403ba8
xor eax, eax
jmp 0x403bcd
sbb eax, eax
or eax, 1
test eax, eax
jne 0x403bdd
mov dword [ecx + 0x3ec], 1
jmp 0x403be7
mov dword [ecx + 0x3ec], 0
cmp dword [esp + 0x96c], 0
je 0x405fdd
mov edx, dword [ebx + 0x18]
test edx, edx
je 0x403c5e
mov edx, dword [edx + 8]
mov esi, dword [edx + 8]
cmp dword [esi + 0x3c0], 0
je 0x403c5e
push dword [esi + 0x3c4]
call sub.avutil.dll_av_malloc
pop ecx
mov edx, dword [ebx + 0xc]
mov ecx, dword [edx + 8]
mov dword [ecx + 0x3c0], eax
mov edi, dword [ebx + 0xc]
mov edx, dword [edi + 8]
mov edx, dword [edx + 0x3c0]
test edx, edx
je 0x405315
push dword [esi + 0x3c4]
push dword [esi + 0x3c0]
push edx
call fcn.00419650
add esp, 0xc
mov edx, dword [ebx + 0xc]
mov ecx, dword [edx + 8]
mov esi, dword [esi + 0x3c4]
mov dword [ecx + 0x3c4], esi
cmp dword [0x426474], 0xffffffff
je 0x403c8a
mov edx, dword [ebx + 0xc]
mov ecx, dword [edx + 8]
add ecx, 0xc0
mov byte [ecx + 0xa], 0
mov word [ecx + 8], 0x7461
mov dword [ecx + 4], 0x6d726f66
mov dword [ecx], 0x5f677064
push dword [esp + 0x96c]
mov edx, dword [ebx + 0xc]
push dword [edx + 8]
call sub.avcodec.dll_avcodec_open
add esp, 8
test eax, eax
jl 0x405fb7
mov ecx, dword [ebx + 0xc]
mov ebx, dword [ecx + 8]
mov eax, dword [ebx + 0x1c]
cdq
add dword [0x938410], eax
adc dword [0x938414], edx
inc ebp
cmp ebp, dword [esp + 0x9e4]
jl 0x403b41
mov esi, dword [esp + 0x9e4]
mov ebp, dword [esp + 0x98c]
mov edi, dword [esp + 0xa00]
mov ebx, dword [esp + 0x9c8]
cmp dword [0x93856c], 0
jne 0x403e4e
mov ecx, dword [0x426468]
test ecx, ecx
jl 0x403df1
xor eax, eax
mov dword [esp + 0x910], eax
test esi, esi
mov dword [esp + 0x90c], eax
jle 0x403d8d
mov dword [esp + 0x8ec], ecx
mov dword [esp + 0x98c], ebp
mov dword [esp + 0x9c8], ebx
xor eax, eax
mov ecx, dword [esp + 0xa10]
mov ebx, dword [edi + eax*4]
mov edx, dword [ebx + 8]
mov ebp, dword [ecx + edx*4]
mov ebx, dword [ebx + 0xc]
mov ecx, dword [ebx + 8]
cmp dword [ebx + 0x4c], 0
mov edx, dword [ebp + 8]
mov edx, dword [edx + 8]
jne 0x403d6c
cmp dword [ecx + 0xe0], 0
jne 0x403d6c
mov ecx, dword [edx + 0x28]
mov dword [esp + 0x910], ecx
mov ecx, dword [edx + 0x2c]
mov dword [esp + 0x90c], ecx
inc eax
cmp eax, esi
jl 0x403d2d
mov ecx, dword [esp + 0x8ec]
mov ebx, dword [esp + 0x9c8]
mov dword [esp + 0x9f0], ebp
mov ebp, dword [esp + 0x98c]
cmp ecx, ebx
jge 0x403dd2
mov eax, dword [esp + 0xa10]
mov ecx, dword [eax + ecx*4]
mov eax, dword [ecx + 8]
mov eax, dword [eax + 8]
cmp dword [eax + 0xe0], 3
mov dword [esp + 0x9f0], ecx
mov dword [esp + 0x8f8], eax
je 0x403dc3
xor eax, eax
mov dword [esp + 0x8fc], eax
jmp 0x403de2
mov ecx, dword [eax + 0x3c0]
mov dword [esp + 0x8fc], ecx
jmp 0x403de2
xor eax, eax
mov dword [esp + 0x8fc], eax
mov dword [esp + 0x8f8], eax
cmp dword [0x426478], 0xffffffff
je 0x40531e
jmp 0x403e4e
test esi, esi
jle 0x403e4e
mov dword [esp + 0x98c], ebp
mov edx, esi
mov esi, dword [esp + 0xa10]
mov dword [esp + 0x9c8], ebx
xor eax, eax
mov ebp, eax
mov eax, dword [edi + ebp*4]
mov ecx, dword [eax + 8]
mov ebx, dword [esi + ecx*4]
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx + 8]
mov ecx, dword [ebx + 8]
cmp dword [eax + 0xe0], 3
mov ecx, dword [ecx + 8]
je 0x40544d
inc ebp
cmp ebp, edx
jl 0x403e10
mov ebp, dword [esp + 0x98c]
mov dword [esp + 0x9f0], ebx
mov ebx, dword [esp + 0x9c8]
mov esi, edx
test ebp, ebp
jne 0x404211
test ebx, ebx
jle 0x4042fa
mov dword [esp + 0x9e4], esi
mov dword [esp + 0x98c], ebp
mov dword [esp + 0xa00], edi
xor eax, eax
mov ebp, eax
mov edx, dword [esp + 0xa10]
mov esi, dword [edx + ebp*4]
cmp dword [esi + 0x10], 0
je 0x4041f1
mov edx, dword [esi + 8]
mov ecx, dword [edx + 8]
mov edx, dword [ecx + 0xe4]
cmp edx, 0xc94d4842
je 0x403ea7
cmp edx, 0xc94d484e
jne 0x403ebf
mov edx, dword [0x9385c0]
mov dword [ecx + 0x408], edx
mov ecx, dword [esi + 8]
mov edx, dword [ecx + 8]
mov edx, dword [edx + 0xe4]
push edx
call dword [sym.imp.avcodec.dll_avcodec_find_decoder]
pop ecx
test eax, eax
je 0x40567b
push eax
mov edx, dword [esi + 8]
push dword [edx + 8]
call sub.avcodec.dll_avcodec_open
add esp, 8
test eax, eax
jl 0x40564a
mov edx, dword [esi + 8]
mov ecx, dword [edx + 8]
cmp dword [ecx + 0xe0], 0
jne 0x4041f1
cmp dword [0x9384fc], 0
je 0x403f51
mov edx, dword [0x9385c4]
test edx, edx
je 0x40549a
push 1
push edx
call dword [0x9385e4]
push dword [0x9385e8]
push dword [0x9385ec]
push dword [0x9385f0]
push dword [0x9385c4]
call dword [0x9385f4]
push dword [0x9385f8]
push 0x888080
push dword [0x9385c4]
call dword [0x9385fc]
add esp, 0x24
cmp dword [0x9384f0], 0
je 0x404036
mov edx, 0x8884a0
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 0x403f87
mov eax, edx
add edx, ecx
call fcn.00419690
test eax, eax
jbe 0x404036
mov edx, dword [0x9385c4]
test edx, edx
je 0x405531
push 0x8884a0
push edx
call dword [0x938600]
add esp, 8
cmp eax, 0xffffffff
je 0x405512
push 1
push dword [0x9385c4]
call dword [0x938604]
push dword [0x42648c]
push dword [0x938608]
push dword [0x93860c]
push dword [0x9385c4]
call dword [0x938610]
add esp, 0x18
mov edi, dword [0x9384f4]
test edi, edi
je 0x404016
movzx eax, byte [0x93861c]
movzx ecx, byte [0x938618]
movzx edx, byte [0x938614]
push edx
push ecx
push eax
push edi
push dword [0x9385c4]
call dword [0x938620]
add esp, 0x14
mov edx, dword [0x9384f8]
test edx, edx
je 0x404036
push dword [0x426490]
push edx
push dword [0x9385c4]
call dword [0x938624]
add esp, 0xc
cmp dword [0x938500], 0
je 0x4041f1
mov edx, dword [0x9385c4]
test edx, edx
je 0x4055d5
push 1
push edx
call dword [0x938628]
push 0x8888c0
push dword [0x9385c4]
call dword [0x93862c]
add esp, 0x10
pxor xmm0, xmm0
movaps xmmword [esp + 0x850], xmm0
movaps xmmword [esp + 0x860], xmm0
movaps xmmword [esp + 0x870], xmm0
movq qword [esp + 0x880], xmm0
movd dword [esp + 0x888], xmm0
mov edx, dword [0x426480]
mov ecx, dword [0x938630]
mov dword [esp + 0x850], edx
mov edx, dword [0x426494]
mov dword [esp + 0x854], ecx
mov dword [esp + 0x860], edx
movzx edx, byte [0x426498]
mov byte [esp + 0x868], dl
movzx edx, byte [0x42649c]
mov byte [esp + 0x869], dl
mov edi, str.Arial
movzx edx, byte [0x4264a0]
mov byte [esp + 0x86a], dl
movzx edx, byte [str._]
mov byte [esp + 0x86b], dl
movzx edx, byte [0x938634]
mov byte [esp + 0x867], dl
lea esi, [esp + 0x86c]
mov dl, byte [edi]
inc edi
mov byte [esi], dl
inc esi
test dl, dl
jne 0x404115
mov esi, dword [0x938638]
mov edx, dword [0x93863c]
movzx ecx, byte [0x9385ac]
mov dword [esp + 0x858], esi
mov esi, dword [0x4264a8]
mov dword [esp + 0x85c], edx
movzx edx, byte [0x938640]
cmp esi, 0xff
mov byte [esp + 0x864], cl
mov ecx, dword [0x4264ac]
mov byte [esp + 0x865], dl
movzx edx, byte [0x938644]
mov byte [esp + 0x866], dl
mov edx, dword [0x4264b0]
je 0x4055a9
push edx
push ecx
push esi
push dword [0x9385c4]
call dword [0x938648]
push dword [0x93864c]
push dword [0x938650]
push dword [0x938654]
push dword [0x9385c4]
call dword [0x938658]
push dword [0x4264b4]
push dword [0x9385b4]
push dword [0x9385c4]
call dword [0x93865c]
push dword [0x9385b0]
push 1
push dword [0x9385c4]
call dword [0x938660]
lea edx, [esp + 0x888]
push edx
push dword [0x9385c4]
call dword [0x938664]
add esp, 0x40
inc ebp
cmp ebp, ebx
jl 0x403e77
mov esi, dword [esp + 0x9e4]
mov ebp, dword [esp + 0x98c]
mov edi, dword [esp + 0xa00]
jmp 0x404219
test ebx, ebx
jle 0x4042fa
mov dword [esp + 0x9e4], esi
mov dword [esp + 0x98c], ebp
mov dword [esp + 0xa00], edi
mov dword [esp + 0x9c8], ebx
xor eax, eax
mov ebx, eax
mov ebp, dword [esp + 0xa10]
push dword [0x4264bc]
mov ebp, dword [ebp + ebx*4]
mov ecx, dword [ebp + 8]
push dword [0x4264b8]
xor edx, edx
mov dword [ebp + 0x38], edx
mov dword [ebp + 0x3c], edx
push dword [ecx + 0x44]
push dword [ecx + 0x40]
push dword [ecx + 0x5c]
push dword [ecx + 0x58]
call sub.avutil.dll_av_rescale_q
add esp, 0x18
mov ecx, dword [ebp + 8]
mov dword [ebp + 0x30], eax
mov dword [ebp + 0x34], edx
mov esi, dword [ecx + 0x5c]
add esi, 0x80000000
or esi, dword [ecx + 0x58]
jne 0x404290
xor eax, eax
mov dword [ebp + 0x30], eax
mov dword [ebp + 0x34], eax
xor edx, edx
mov esi, dword [ebp]
mov ecx, dword [esi*8 + 0x531e20]
mov edi, dword [esi*8 + 0x531e24]
mov esi, edi
sub esi, 0
jl 0x4042ba
or esi, ecx
je 0x4042ba
add ecx, eax
adc edi, edx
mov dword [ebp + 0x50], ecx
xor edx, edx
mov dword [ebp + 0x54], edi
jmp 0x4042bf
mov edx, 1
mov dword [ebp + 0x48], 1
mov dword [ebp + 0x58], edx
inc ebx
cmp ebx, dword [esp + 0x9c8]
jl 0x404239
mov esi, dword [esp + 0x9e4]
mov edi, dword [esp + 0xa00]
mov ebx, dword [esp + 0x9c8]
mov dword [esp + 0x9f0], ebp
mov ebp, dword [esp + 0x98c]
cmp dword [esp + 0xa3c], 0
jle 0x404378
cmp dword [esp + 0xa3c], 8
jl 0x4056b8
mov eax, dword [esp + 0x9d0]
xor ecx, ecx
mov edx, eax
pxor xmm0, xmm0
movdqa xmmword [ecx*8 + 0x531e20], xmm0
movdqa xmmword [ecx*8 + 0x531e30], xmm0
movdqa xmmword [ecx*8 + 0x531e40], xmm0
movdqa xmmword [ecx*8 + 0x531e50], xmm0
add ecx, 8
cmp ecx, edx
jb 0x404321
mov dword [esp + 0x9d0], edx
cmp eax, dword [esp + 0xa3c]
jae 0x404378
mov edx, dword [esp + 0xa3c]
xor ecx, ecx
mov dword [eax*8 + 0x531e20], ecx
mov dword [eax*8 + 0x531e24], ecx
inc eax
cmp eax, edx
jb 0x404365
cmp dword [0x938668], 0
jle 0x404492
mov dword [esp + 0x9e4], esi
mov dword [esp + 0x98c], ebp
mov dword [esp + 0xa00], edi
mov dword [esp + 0x9c8], ebx
mov ebx, dword [esp + 0x9e8]
xor eax, eax
mov esi, eax
mov ecx, dword [esi*8 + 0x888ce0]
mov edx, dword [esi*8 + 0x888ce4]
test ecx, ecx
jl 0x405f7a
cmp ecx, dword [esp + 0x9ec]
jge 0x405f7a
test edx, edx
jl 0x405f3d
cmp edx, dword [esp + 0xa3c]
jge 0x405f3d
mov ebp, dword [ebx + ecx*4]
mov ecx, dword [esp + 0xa0c]
push 2
mov edi, dword [ecx + edx*4]
push 0
push 0x41eaa4
push dword [edi + 0x1874]
call sub.avformat.dll_Ordinal_2
add esp, 0x10
mov edx, eax
test edx, edx
je 0x404454
mov dword [esp + 0x988], esi
lea eax, [ebp + 0x1874]
mov ebx, eax
mov esi, edx
push dword [esi + 4]
push dword [esi]
push ebx
call sub.avformat.dll_Ordinal_3
push 2
push esi
push 0x41eaa4
push dword [edi + 0x1874]
call sub.avformat.dll_Ordinal_2
add esp, 0x1c
mov esi, eax
test esi, esi
jne 0x40441f
mov esi, dword [esp + 0x988]
mov ebx, dword [esp + 0x9e8]
mov edx, dword [ebp + 8]
mov edi, dword [edi + 4]
push dword [edi + 0x40]
push dword [edx + 0x38]
push ebp
call sub.avformat.dll_Ordinal_4
add esp, 0xc
inc esi
cmp esi, dword [0x938668]
jl 0x4043ac
mov esi, dword [esp + 0x9e4]
mov ebp, dword [esp + 0x98c]
mov edi, dword [esp + 0xa00]
mov ebx, dword [esp + 0x9c8]
cmp dword [0x938514], 0
je 0x4044b3
cmp ebp, 1
je 0x4044b3
cmp dword [esp + 0x9ec], 0
jg 0x404539
jmp 0x404590
cmp dword [esp + 0x9ec], 0
jle 0x404590
mov dword [esp + 0x9e4], esi
mov esi, dword [esp + 0x9e8]
mov dword [esp + 0x98c], ebp
xor edx, edx
mov dword [esp + 0xa00], edi
mov edi, dword [esp + 0x9ec]
mov dword [esp + 0x9c8], ebx
mov ebx, edx
mov eax, dword [0x426474]
mov ebp, dword [esi + ebx*4]
cmp eax, 0xffffffff
je 0x404502
mov dword [ebp + 0x1888], eax
push ebp
call sub.avformat.dll_Ordinal_43
pop ecx
test eax, eax
jl 0x405f00
inc ebx
cmp ebx, edi
jl 0x4044ef
mov esi, dword [esp + 0x9e4]
mov edi, dword [esp + 0xa00]
mov ebx, dword [esp + 0x9c8]
mov dword [esp + 0xa04], ebp
mov ebp, dword [esp + 0x98c]
mov dword [esp + 0x98c], ebp
mov dword [esp + 0xa00], edi
mov edi, dword [esp + 0x9ec]
mov dword [esp + 0x9c8], ebx
mov ebx, dword [esp + 0x9e8]
xor eax, eax
mov ebp, eax
push 1
mov eax, dword [ebx + ebp*4]
lea ecx, [eax + 0x15c]
push ecx
push ebp
push eax
call sub.avformat.dll_Ordinal_59
add esp, 0x10
inc ebp
cmp ebp, edi
jl 0x404560
mov ebp, dword [esp + 0x98c]
mov edi, dword [esp + 0xa00]
mov ebx, dword [esp + 0x9c8]
cmp dword [0x4264c0], 0
jl 0x404695
mov eax, dword [esp + 0x9d8]
lea ecx, [eax + 0x40]
mov dword [esp + 0x908], ecx
push ecx
push str.Stream_mapping:_n
call sub.MSVCR90.dll_fputs
add esp, 8
test esi, esi
jle 0x4056bf
mov dword [esp + 0x9e4], esi
mov esi, dword [esp + 0x908]
mov dword [esp + 0x98c], ebp
xor eax, eax
mov dword [esp + 0xa00], edi
mov edi, dword [esp + 0xa10]
mov dword [esp + 0x9c8], ebx
mov ebp, eax
mov ebx, dword [esp + 0xa00]
mov ebx, dword [ebx + ebp*4]
push dword [ebx + 4]
mov edx, dword [ebx + 8]
mov ecx, dword [edi + edx*4]
push dword [ebx]
push dword [ecx + 4]
push dword [ecx]
push str.__Stream__d._d_____d._d
push esi
call dword [sym.imp.MSVCR90.dll_fprintf]
add esp, 0x18
mov ecx, dword [ebx + 0x18]
mov edx, dword [ebx + 8]
cmp ecx, dword [edi + edx*4]
je 0x40463a
push dword [ecx + 4]
push dword [ecx]
push str.__sync__d._d_
push esi
call dword [sym.imp.MSVCR90.dll_fprintf]
add esp, 0x10
push esi
push 0x4235a0
call sub.MSVCR90.dll_fputs
add esp, 8
inc ebp
cmp ebp, dword [esp + 0x9e4]
jl 0x4045f2
cmp dword [0x93866c], 0
mov esi, dword [esp + 0x9e4]
mov ebp, dword [esp + 0x98c]
mov edi, dword [esp + 0xa00]
mov ebx, dword [esp + 0x9c8]
jne 0x404695
push dword [esp + 0x908]
push str.Press__q__to_stop_encoding_n
call sub.MSVCR90.dll_fputs
push 0x415310
call sub.avformat.dll_Ordinal_254
add esp, 0xc
call fcn.00415360
call sub.avformat.dll_Ordinal_18
mov dword [0x938418], eax
mov eax, dword [0x938514]
mov dword [0x93841c], edx
test esi, esi
mov dword [eax*4 + 0x532460], 0
jle 0x404761
fld qword [esp + 0x9a8]
fld qword [esp + 0x9a0]
mov ecx, dword [esp + 0x9dc]
mov dword [esp + 0x9c8], ebx
xor edx, edx
fld st(0)
fld qword [0x41e5c8]
mov eax, dword [edi + edx*4]
mov ebx, dword [eax + 0xc]
fild qword [ebx + 0x28]
fild dword [ebx + 0x40]
fild dword [ebx + 0x44]
fdivp st(1)
fmulp st(1)
fmul st(1), st(0)
fxch st(1)
fnstcw word [esp + 0x30]
movzx eax, word [esp + 0x30]
or eax, 0xc00
mov dword [esp + 0x38], eax
fldcw word [esp + 0x38]
fistp qword [ebx + 0x58]
fldcw word [esp + 0x30]
fcom st(2)
fnstsw ax
sahf
fcom st(1)
fnstsw ax
fxch st(1)
fstp st(0)
fxch st(1)
fcmovnbe st(0), st(1)
sahf
fxch st(2)
fcom st(1)
fnstsw ax
cmova ecx, edx
inc edx
sahf
fcmovnbe st(0), st(1)
fstp st(1)
cmp edx, esi
fxch st(1)
jl 0x4046e0
mov ebx, dword [esp + 0x9c8]
fxch st(1)
fstp qword [esp + 0x9a8]
fstp qword [esp + 0x9a0]
mov dword [esp + 0x9dc], ecx
fld qword [esp + 0x9a0]
fsub qword [esp + 0x9a8]
xor ecx, ecx
fld qword [0x41e5b0]
fcompp
fnstsw ax
sahf
mov eax, dword [esp + 0x9cc]
cmova eax, ecx
mov dword [esp + 0x9cc], eax
mov eax, dword [0x938568]
test eax, eax
jne 0x40484c
mov dword [esp + 0x9e4], esi
mov dword [esp + 0x98c], ebp
mov dword [esp + 0xa00], edi
mov dword [esp + 0x9c8], ebx
mov ebx, dword [esp + 0x9f0]
cmp dword [0x93866c], 0
fld dword [esp + 0x9e0]
je 0x4047e0
mov ebp, dword [esp + 0x9d8]
fstp qword [esp + 0x960]
jmp 0x404db9
mov ebp, dword [esp + 0x9d8]
fstp qword [esp + 0x960]
cmp dword [0x938544], 0
jne 0x405ed1
call dword [sym.imp.MSVCR90.dll__kbhit]
test eax, eax
je 0x404db9
call dword [sym.imp.MSVCR90.dll__getch]
cmp eax, 0x71
jne 0x404db9
mov esi, dword [esp + 0x9e4]
mov edi, dword [esp + 0xa00]
mov dword [0x938544], 1
mov dword [esp + 0x9f0], ebx
mov ebx, dword [esp + 0x9c8]
mov dword [esp + 0x9d8], ebp
mov ebp, dword [esp + 0x98c]
test ebx, ebx
jle 0x40492f
cmp dword [esp + 0x9d4], 0
jbe 0x4056d1
mov dword [esp + 0x98c], ebp
mov dword [esp + 0xa00], edi
mov edi, dword [esp + 0xa10]
mov dword [esp + 0x9c8], ebx
xor eax, eax
mov ebp, eax
mov eax, dword [edi + ebp*8]
cmp dword [eax + 0x10], 0
je 0x4048a7
mov ecx, dword [esp + 0xa00]
mov dword [esp + 0x10], 0
lea edx, [ebp + ebp]
mov dword [esp + 0xc], esi
call fcn.00406cb0
mov ebx, dword [edi + ebp*8 + 4]
cmp dword [ebx + 0x10], 0
je 0x4048cf
mov ecx, dword [esp + 0xa00]
mov dword [esp + 0x10], 0
lea edx, [ebp + ebp + 1]
mov eax, ebx
mov dword [esp + 0xc], esi
call fcn.00406cb0
inc ebp
cmp ebp, dword [esp + 0x9d4]
jb 0x404882
mov edi, dword [esp + 0xa00]
mov dword [esp + 0x9f0], ebx
mov ebx, dword [esp + 0x9c8]
mov eax, ebp
lea ecx, [eax + eax + 1]
mov ebp, dword [esp + 0x98c]
lea edx, [ecx - 1]
cmp ebx, edx
jbe 0x40492f
mov eax, dword [esp + 0xa10]
mov ecx, dword [eax + ecx*4 - 4]
cmp dword [ecx + 0x10], 0
mov dword [esp + 0x9f0], ecx
je 0x40492f
mov eax, ecx
mov dword [esp + 0x10], 0
mov ecx, edi
mov dword [esp + 0xc], esi
call fcn.00406cb0
mov eax, dword [0x93850c]
dec eax
cmp eax, dword [0x938514]
je 0x40494f
cmp dword [0x426474], 0xffffffff
je 0x4056db
cmp ebp, 1
jne 0x404960
mov eax, dword [esp + 0xa04]
mov dword [eax + 0x188c], 1
cmp dword [esp + 0x9ec], 0
jle 0x4049ca
mov dword [esp + 0x9e4], esi
mov esi, dword [esp + 0x9e8]
mov dword [esp + 0x98c], ebp
xor eax, eax
mov dword [esp + 0xa00], edi
mov edi, dword [esp + 0x9ec]
mov dword [esp + 0x9c8], ebx
mov ebx, eax
mov ebp, dword [esi + ebx*4]
push ebp
call sub.avformat.dll_Ordinal_45
pop ecx
inc ebx
cmp ebx, edi
jl 0x404998
mov esi, dword [esp + 0x9e4]
mov edi, dword [esp + 0xa00]
mov ebx, dword [esp + 0x9c8]
mov dword [esp + 0xa04], ebp
mov ebp, dword [esp + 0x98c]
mov eax, dword [esp + 0x9e8]
mov dword [esp + 0xc], 1
mov edx, edi
mov ecx, esi
call fcn.00406200
test ebp, ebp
jne 0x404a0d
test esi, esi
jle 0x404ab7
xor eax, eax
mov ecx, dword [edi + eax*4]
mov ecx, dword [ecx + 0xc]
mov edx, dword [ecx + 8]
cmp dword [edx + 0xe0], 0
je 0x4056e9
inc eax
cmp eax, esi
jl 0x4049f0
jmp 0x404a15
test esi, esi
jle 0x404a9a
mov dword [esp + 0x98c], ebp
mov dword [esp + 0x9c8], ebx
xor eax, eax
mov ebx, eax
mov ebp, dword [edi + ebx*4]
cmp dword [ebp + 0x10], 0
je 0x404a87
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx + 8]
cmp dword [ecx + 0xe4], 0x1c
je 0x405719
add ecx, 0x120
push ecx
call sub.avutil.dll_av_freep
pop ecx
cmp dword [0x938508], 0
je 0x404a6b
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx + 8]
mov dword [ecx + 0x404], 1
jmp 0x404a7b
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx + 8]
mov dword [ecx + 0x404], 0
mov ecx, dword [ebp + 0xc]
push dword [ecx + 8]
call sub.avcodec.dll_avcodec_close
pop ecx
inc ebx
cmp ebx, esi
jl 0x404a27
mov ebp, dword [esp + 0x98c]
mov ebx, dword [esp + 0x9c8]
fld qword [esp + 0x9b0]
fadd qword [esp + 0x998]
fstp qword [esp + 0x9b0]
test ebp, ebp
jne 0x404b9d
mov dword [esp + 0x9e4], esi
mov esi, dword [esp + 0x9f4]
fld qword [esp + 0x998]
fstp qword [0x938430]
test ebx, ebx
jle 0x404b7e
cmp dword [esp + 0x9d4], 0
jbe 0x405724
mov dword [esp + 0xa00], edi
mov edi, dword [esp + 0x9d4]
mov dword [esp + 0x9c8], ebx
xor eax, eax
mov dword [esp + 0x9f4], esi
mov esi, dword [esp + 0xa10]
mov ebx, eax
mov edx, dword [esi + ebx*8]
cmp dword [edx + 0x10], 0
je 0x404b24
mov edx, dword [edx + 8]
push dword [edx + 8]
call sub.avcodec.dll_avcodec_close
pop ecx
mov edx, dword [esi + ebx*8 + 4]
cmp dword [edx + 0x10], 0
je 0x404b3a
mov edx, dword [edx + 8]
push dword [edx + 8]
call sub.avcodec.dll_avcodec_close
pop ecx
inc ebx
cmp ebx, edi
jb 0x404b0f
mov edi, dword [esp + 0xa00]
mov esi, dword [esp + 0x9f4]
mov eax, ebx
mov ebx, dword [esp + 0x9c8]
lea edx, [eax + eax + 1]
lea eax, [edx - 1]
cmp ebx, eax
jbe 0x404b7e
mov eax, dword [esp + 0xa10]
mov eax, dword [eax + edx*4 - 4]
cmp dword [eax + 0x10], 0
je 0x404b7e
mov eax, dword [eax + 8]
push dword [eax + 8]
call sub.avcodec.dll_avcodec_close
pop ecx
mov eax, dword [0x93850c]
sub eax, dword [0x938514]
cmp eax, 1
je 0x40572e
xor eax, eax
mov dword [esp + 0x30], eax
jmp 0x403932
cmp ebp, 1
jne 0x405790
fld dword [esp + 0x9e0]
fstp qword [0x938430]
test esi, esi
jle 0x404c45
mov dword [esp + 0x98c], ebp
mov dword [esp + 0x9c8], ebx
xor eax, eax
mov ebp, eax
mov ebx, dword [edi + ebp*4]
test ebx, ebx
je 0x404c32
mov ecx, dword [ebx + 0x18c]
test ecx, ecx
je 0x404bf0
push ecx
call dword [sym.imp.MSVCR90.dll_fclose]
pop ecx
mov dword [ebx + 0x18c], 0
push dword [ebx + 0x188]
call sub.avutil.dll_av_fifo_free
push dword [ebx + 0x38]
call dword [sym.imp.avutil.dll_av_free]
add esp, 8
cmp dword [ebx + 0x30], 0
je 0x404c19
push dword [ebx + 0x128]
call sub.avswscale.dll_sws_freeContext
pop ecx
mov ecx, dword [ebx + 0x17c]
test ecx, ecx
je 0x404c2a
push ecx
call sub.avcodec.dll_audio_resample_close
pop ecx
push ebx
call dword [sym.imp.avutil.dll_av_free]
pop ecx
inc ebp
cmp ebp, esi
jl 0x404bcd
mov ebp, dword [esp + 0x98c]
mov ebx, dword [esp + 0x9c8]
push edi
call dword [sym.imp.avutil.dll_av_free]
pop ecx
cmp dword [esp + 0x9ec], 0
jle 0x404caf
mov dword [esp + 0x98c], ebp
mov dword [esp + 0xa00], edi
mov edi, dword [esp + 0x9ec]
mov dword [esp + 0x9c8], ebx
mov ebx, dword [esp + 0x9e8]
xor eax, eax
mov ebp, eax
mov eax, dword [ebx + ebp*4]
mov ecx, dword [eax + 8]
test byte [ecx + 0x28], 1
jne 0x404c95
add eax, 0x10
push eax
call dword [sym.imp.avformat.dll_Ordinal_232]
pop ecx
inc ebp
cmp ebp, edi
jl 0x404c7e
mov ebp, dword [esp + 0x98c]
mov edi, dword [esp + 0xa00]
mov ebx, dword [esp + 0x9c8]
cmp dword [0x938504], 0
je 0x404cce
mov edx, dword [0x938534]
mov ecx, dword [0x938538]
mov eax, 0x5682e0
call fcn.0040ea30
cmp dword [0x938544], 0
jne 0x405790
lea eax, [esp + 0x40]
push 0x410
push 0
push eax
call fcn.004195e0
add esp, 0xc
mov eax, dword [0x938570]
lea edx, [esp + 0x40]
call fcn.0040e9b0
fld dword [esp + 0x9e0]
mov ecx, dword [0x938574]
mov esi, dword [0x938578]
mov eax, dword [0x938580]
fstp qword [0x9383f0]
mov dword [0x9384d0], ecx
xor edx, edx
mov dword [0x9383f8], edx
mov dword [0x9383fc], edx
mov dword [0x938400], edx
mov dword [0x938404], edx
mov dword [0x938408], edx
mov dword [0x93840c], edx
mov dword [0x9384b4], esi
mov dword [0x93857c], eax
mov eax, dword [0x938588]
mov dword [0x938584], eax
mov eax, dword [0x938590]
mov dword [0x93858c], eax
mov eax, dword [0x938598]
mov dword [0x938594], eax
mov eax, dword [0x42646c]
mov dword [eax], edx
lea eax, [esp + 0x40]
call fcn.0040cb80
cmp dword [0x938504], 0
mov dword [0x938530], 0
je 0x402898
lea edi, [esp + 0x40]
mov esi, 0x5682e0
mov dl, byte [edi]
inc edi
mov byte [esi], dl
inc esi
test dl, dl
jne 0x404da0
mov dword [0x938540], 1
jmp 0x402898
mov dword [esp + 0x9d8], ebp
lea eax, [ebp + 0x40]
mov dword [esp + 0x978], eax
cmp dword [esp + 0x9e4], 0
fld qword [0x41e5b8]
fld qword [0x41e5b8]
fld qword [0x41e5c0]
jle 0x405ead
fld qword [esp + 0x960]
mov eax, dword [0x9384e0]
mov dword [esp + 0x97c], eax
mov ebp, 0xffffffff
mov dword [esp + 0x984], ebp
xor edx, edx
mov esi, dword [esp + 0xa00]
mov eax, dword [esp + 0x9e8]
mov ebp, dword [esp + 0xa10]
mov esi, dword [esi + edx*4]
mov ecx, dword [esi]
mov ebx, dword [eax + ecx*4]
mov edi, dword [esi + 8]
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 8]
mov dword [esp + 0xa04], ebx
mov ebx, dword [ebp + edi*4]
mov ebp, dword [ecx + 0xe0]
test ebp, ebp
jne 0x404e55
fild qword [esi + 0x20]
fild dword [ecx + 0x20]
fild dword [ecx + 0x24]
fdivp st(1)
fmulp st(1)
jmp 0x404e6f
fild qword [eax + 0x28]
fild dword [eax + 0x40]
fild dword [eax + 0x44]
fdivp st(1)
fmulp st(1)
fild qword [eax + 0x58]
fld qword [0x41e5c8]
fdivp st(1)
fsubp st(1)
fild qword [ebx + 0x38]
mov edi, dword [esp + 0x9f4]
mov ecx, dword [ebx]
mov eax, ecx
shl eax, 4
cmp dword [eax + edi], 0
jne 0x404f00
fcom st(5)
fnstsw ax
sahf
jae 0x404eb8
jp 0x404eb8
fstp st(5)
cmp dword [esp + 0x97c], 0
je 0x404ead
fcom st(3)
fnstsw ax
sahf
mov dword [esp + 0x984], ecx
jae 0x404ee2
jp 0x404ee2
jmp 0x404ec3
fcom st(3)
fnstsw ax
sahf
jae 0x404ee2
jp 0x404ee2
jmp 0x404ec3
fstp st(0)
fcom st(3)
fnstsw ax
sahf
jae 0x404ee2
jp 0x404ee2
fstp st(3)
fld st(2)
cmp dword [esp + 0x97c], 0
mov eax, dword [esp + 0x984]
cmove eax, ecx
mov dword [esp + 0x984], eax
fxch st(3)
fcom st(2)
fnstsw ax
sahf
jbe 0x404f02
fstp st(2)
fld st(1)
cmp ebp, 3
fxch st(2)
je 0x4057a3
fstp st(1)
fld st(0)
fxch st(1)
jmp 0x404f02
fstp st(0)
fstp st(0)
mov eax, dword [esi + 0x14]
cmp eax, dword [ebp*4 + 0x426440]
jge 0x405e87
inc edx
cmp edx, dword [esp + 0x9e4]
jl 0x404e0b
fstp st(1)
fstp st(2)
mov ebp, dword [esp + 0x984]
fxch st(1)
fstp qword [esp + 0x960]
test ebp, ebp
mov dword [esp + 0x980], esi
jl 0x405e62
mov edx, dword [0x938514]
mov ecx, dword [edx*8 + 0x567980]
mov esi, dword [edx*8 + 0x567984]
fst qword [esp + 0x998]
mov eax, esi
sub eax, 0
jl 0x405058
or eax, ecx
je 0x405058
fld qword [esp + 0x9b0]
fadd qword [esp + 0x960]
mov dword [esp + 0x958], ecx
mov dword [esp + 0x95c], esi
fild qword [esp + 0x958]
fdiv qword [0x41e5a8]
fcompp
fnstsw ax
sahf
jae 0x405058
jp 0x405058
mov edi, dword [edx*4 + 0x5346c0]
cmp edi, 1
je 0x4057b6
mov eax, dword [edx*4 + 0x532460]
dec edi
cmp eax, edi
je 0x4057b6
mov edi, dword [esp + 0xa0c]
mov dword [esp + 0x984], ebp
mov ebp, dword [edi + ebp*4]
mov edi, dword [edx*4 + 0x567660]
mov dword [esp + 0x954], ebp
inc eax
mov dword [edx*4 + 0x532460], eax
shl eax, 4
add ecx, dword [eax + edi + 8]
adc esi, dword [eax + edi + 0xc]
mov dword [edx*8 + 0x567980], ecx
mov ecx, dword [eax + edi + 4]
mov dword [edx*8 + 0x567984], esi
mov edx, dword [eax + edi]
mov eax, dword [ebp + 0x17a0]
mov edi, dword [ebp + 0x17a4]
mov ebp, dword [esp + 0x984]
lea esi, [edi - 0x80000000]
or esi, eax
je 0x405035
add edx, eax
adc ecx, edi
push 1
push ecx
push edx
push 0xffffffffffffffff
push dword [esp + 0x964]
fstp qword [esp + 0x92c]
call sub.avformat.dll_Ordinal_38
fld qword [esp + 0x92c]
add esp, 0x14
mov eax, dword [0x938670]
test eax, eax
jne 0x405099
fstp st(0)
mov esi, dword [0x938420]
mov ecx, dword [0x938424]
mov eax, ecx
sub eax, 0
jl 0x4050b6
or eax, esi
je 0x4050b6
mov eax, dword [0x9383f8]
mov edx, dword [0x9383fc]
add eax, 0x4b000
adc edx, 0
sub esi, eax
sbb ecx, edx
jl 0x4057db
jmp 0x4050b6
cmp eax, 1
je 0x405d6e
fstp st(0)
cmp dword [0x938548], 0
je 0x4050b6
cmp eax, 2
je 0x40587c
mov eax, dword [0x9383e8]
or eax, dword [0x9383ec]
je 0x4050ee
mov eax, dword [esp + 0x9e8]
mov edx, dword [eax]
add edx, 0x10
push edx
call sub.avformat.dll_Ordinal_244
add esp, 4
mov ecx, dword [0x9383e8]
mov esi, dword [0x9383ec]
sub ecx, eax
sbb esi, edx
jb 0x405a20
mov edi, dword [esp + 0xa0c]
lea eax, [esp + 0x8a0]
push eax
mov edi, dword [edi + ebp*4]
push edi
call sub.avformat.dll_Ordinal_29
add esp, 8
test eax, eax
jl 0x405d0e
cmp dword [0x938490], 0
jne 0x405cef
mov edx, dword [esp + 0x8b8]
mov eax, dword [esp + 0x9f4]
shl ebp, 4
cmp edx, dword [ebp + eax + 0xc]
jge 0x405ce3
mov esi, eax
mov eax, dword [esp + 0xa10]
mov esi, dword [ebp + esi + 4]
add esi, edx
mov ebx, dword [eax + esi*4]
cmp dword [ebx + 0xc], 0
jne 0x405ce3
mov eax, dword [0x938514]
imul edx, eax, 0x320
mov ecx, dword [ebx]
mov dword [esp + 0x968], edx
mov edx, dword [edx + ecx*4 + 0x889320]
test edx, edx
jne 0x405257
mov edx, dword [esp + 0x8a0]
mov dword [esp + 0x92c], ecx
mov ecx, dword [esp + 0x8a4]
mov dword [esp + 0x928], edx
mov dword [esp + 0x924], ecx
lea ecx, [ecx - 0x80000000]
or ecx, edx
mov ecx, dword [esp + 0x92c]
je 0x405934
mov edx, dword [ebx + 8]
mov dword [esp + 0x914], edx
mov edx, dword [edx + 8]
cmp dword [edx + 0xe0], 3
je 0x405236
push dword [0x4264bc]
push dword [0x4264b8]
mov eax, dword [esp + 0x91c]
push dword [eax + 0x44]
push dword [eax + 0x40]
push dword [esp + 0x934]
push dword [esp + 0x93c]
call sub.avutil.dll_av_rescale_q
add esp, 0x18
mov dword [esp + 0x900], eax
mov ecx, dword [ebx]
mov dword [esp + 0x904], esi
xor eax, eax
xor esi, esi
sub esi, dword [esp + 0x900]
sbb eax, edx
imul edx, dword [0x938514], 0x640
mov dword [edx + ecx*8 + 0x8b0420], esi
mov esi, dword [esp + 0x904]
mov dword [edx + ecx*8 + 0x8b0424], eax
mov eax, dword [0x938514]
imul eax, eax, 0x320
mov edx, dword [esp + 0x8a8]
mov dword [eax + ecx*4 + 0x889320], 1
mov eax, dword [esp + 0x8ac]
jmp 0x40526e
cmp edx, 1
je 0x405cbe
mov edx, dword [esp + 0x8a8]
mov eax, dword [esp + 0x8ac]
lea ecx, [eax - 0x80000000]
or ecx, edx
je 0x405296
mov ecx, dword [ebx + 0x34]
add ecx, 0x80000000
or ecx, dword [ebx + 0x30]
je 0x405296
mov ecx, dword [edi + 4]
test dword [ecx + 0x24], 0x200
jne 0x405b09
mov ebp, dword [esp + 0x9e4]
mov ecx, dword [esp + 0xa00]
mov dword [esp + 0xc], ebp
mov eax, ebx
mov edx, esi
lea edi, [esp + 0x8a0]
mov dword [esp + 0x10], edi
call fcn.00406cb0
test eax, eax
jge 0x405971
cmp dword [0x4264c0], 0
jl 0x4052e7
push dword [ebx + 4]
push dword [ebx]
push str.Error_while_decoding_stream__d._d_n
push dword [esp + 0x984]
call dword [sym.imp.MSVCR90.dll_fprintf]
add esp, 0x10
lea eax, [esp + 0x8a0]
push eax
call sub.avcodec.dll_av_free_packet
pop ecx
cmp dword [0x93866c], 0
jne 0x404dca
lea esi, [esi]
mov ebp, dword [esp + 0x9d8]
jmp 0x4047ee
push 1
call dword [sym.imp.MSVCR90.dll_exit]
pop ecx
cmp dword [esp + 0x910], 0
jle 0x403e4e
cmp dword [esp + 0x90c], 0
jle 0x403e4e
cmp dword [esp + 0x8f8], 0
je 0x403e4e
cmp dword [esp + 0x8fc], 0
je 0x403e4e
mov eax, dword [esp + 0x9f0]
mov eax, dword [eax + 8]
xor ecx, ecx
push ecx
push ecx
push str.language
push dword [eax + 0xe8]
call sub.avformat.dll_Ordinal_2
add esp, 0x10
test eax, eax
je 0x405417
mov eax, dword [eax + 4]
test eax, eax
je 0x405417
push eax
push 0
mov eax, dword [esp + 0x900]
push dword [eax + 0xe4]
push dword [esp + 0x918]
push dword [esp + 0x920]
push dword [esp + 0x910]
call sub.avcodec.dll_init_libass_decoder
add esp, 0x18
mov dword [0x426478], eax
test eax, eax
jne 0x403e4e
mov ecx, dword [0x9385a8]
mov eax, dword [0x9385ac]
push 0
lea eax, [eax + ecx*2]
push dword [0x9385a4]
push dword [0x42647c]
push eax
push dword [0x9385b0]
push dword [0x9385b4]
push dword [0x426480]
push dword [0x426484]
push dword [0x9385b8]
push dword [0x9385bc]
push str.Arial
call sub.avcodec.dll_assInitSubFontPara
add esp, 0x2c
jmp 0x403e4e
push 0x420ab4
push 0
mov eax, dword [esp + 0x900]
push dword [eax + 0xe4]
push dword [esp + 0x918]
push dword [esp + 0x920]
push dword [esp + 0x910]
call sub.avcodec.dll_init_libass_decoder
add esp, 0x18
jmp 0x4053b7
cmp dword [eax + 0xe4], 0x17005
jne 0x403e32
mov eax, dword [ecx + 0x3c0]
test eax, eax
je 0x403e32
push 0x420aa0
xor ecx, ecx
push ecx
push ecx
push 0x240
push 0x2d0
push eax
mov dword [esp + 0x9fc], edx
call sub.avcodec.dll_init_libass_decoder
mov edx, dword [esp + 0x9fc]
add esp, 0x18
jmp 0x403e32
push dword [0x9385c8]
call dword [0x9385cc]
pop ecx
mov edi, eax
mov edx, dword [esi + 8]
mov edx, dword [edx + 8]
mov eax, dword [edx + 0x2c]
mov ecx, dword [edx + 0x28]
mov edx, dword [0x9385e0]
mov dword [0x9385c4], edi
mov dword [esp], edi
mov edi, dword [0x426488]
mov dword [esp + 4], edi
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
mov ecx, dword [0x9385d0]
lea eax, [esp + 0x18]
mov dword [eax], ecx
mov ecx, dword [0x9385d4]
mov dword [eax + 4], ecx
mov ecx, dword [0x9385d8]
mov dword [eax + 8], ecx
mov ecx, dword [0x9385dc]
mov dword [eax + 0xc], ecx
call edx
mov edx, dword [0x9385c4]
jmp 0x403f10
push str.wm_filename_erro__________C_n
xor edx, edx
mov dword [0x9385c4], edx
push edx
mov dword [0x9384f0], edx
push edx
call sub.avutil.dll_av_log
jmp 0x404033
push dword [0x9385c8]
call dword [0x9385cc]
pop ecx
mov edi, eax
mov edx, dword [esi + 8]
mov edx, dword [edx + 8]
mov eax, dword [edx + 0x2c]
mov ecx, dword [edx + 0x28]
mov edx, dword [0x9385e0]
mov dword [0x9385c4], edi
mov dword [esp], edi
mov edi, dword [0x426488]
mov dword [esp + 4], edi
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
mov ecx, dword [0x9385d0]
lea eax, [esp + 0x18]
mov dword [eax], ecx
mov ecx, dword [0x9385d4]
mov dword [eax + 4], ecx
mov ecx, dword [0x9385d8]
mov dword [eax + 8], ecx
mov ecx, dword [0x9385dc]
mov dword [eax + 0xc], ecx
call edx
mov edx, dword [0x9385c4]
jmp 0x403f9d
cmp ecx, 0xff
jne 0x404181
cmp edx, 0xff
jne 0x404181
mov dword [0x4264b0], 0xfe
mov edx, 0xfe
jmp 0x404181
push dword [0x9385c8]
call dword [0x9385cc]
pop ecx
mov esi, dword [esi + 8]
mov ecx, dword [esi + 8]
mov esi, dword [0x426488]
mov edx, dword [ecx + 0x2c]
mov edi, dword [ecx + 0x28]
mov ecx, dword [0x9385e0]
mov dword [0x9385c4], eax
mov dword [esp], eax
lea eax, [esp + 0x18]
mov dword [esp + 4], esi
mov dword [esp + 8], edi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edx
mov edx, dword [0x9385d0]
mov dword [eax], edx
mov esi, dword [0x9385d4]
mov dword [eax + 4], esi
mov edx, dword [0x9385d8]
mov dword [eax + 8], edx
mov edx, dword [0x9385dc]
mov dword [eax + 0xc], edx
call ecx
mov edx, dword [0x9385c4]
jmp 0x404051
mov edx, dword [esp + 0x9d8]
push dword [esi + 4]
push dword [esi]
lea ecx, [edx + 0x40]
push str.Error_while_opening_codec_for_input_stream__d._d_n
push ecx
call dword [sym.imp.MSVCR90.dll_fprintf]
add esp, 0x10
mov dword [esi + 0x10], 0
mov dword [esi + 0xc], 1
jmp 0x403ee6
mov edx, dword [esp + 0x9d8]
push dword [esi + 4]
push dword [esi]
mov ecx, dword [esi + 8]
lea eax, [edx + 0x40]
mov edx, dword [ecx + 8]
push dword [edx + 0xe4]
push str.Unsupported_codec__id_d__for_input_stream__d._d_n
push eax
call dword [sym.imp.MSVCR90.dll_fprintf]
add esp, 0x14
mov dword [esi + 0x10], 0
mov dword [esi + 0xc], 1
jmp 0x403ee6
xor eax, eax
jmp 0x404353
cmp dword [0x93866c], 0
je 0x404677
jmp 0x404695
mov ecx, 1
jmp 0x4048fb
cmp ebp, 1
jne 0x4049ca
jmp 0x40494f
push dword [0x4264bc]
push dword [0x4264b8]
push dword [ecx + 0x44]
push dword [ecx + 0x40]
push dword [ecx + 0x2c]
push dword [ecx + 0x28]
call sub.avutil.dll_av_rescale_q
add esp, 0x18
mov dword [0x938438], eax
mov dword [0x93843c], edx
jmp 0x404a15
push ecx
call sub.avcodec.dll_avcodec_close
jmp 0x404a86
mov edx, 1
jmp 0x404b5a
mov eax, dword [0x938678]
test eax, eax
je 0x405749
push eax
call dword [sym.imp.avutil.dll_av_free]
pop ecx
mov dword [0x938678], 0
mov eax, dword [0x93867c]
test eax, eax
je 0x405764
push eax
call dword [sym.imp.avutil.dll_av_free]
pop ecx
mov dword [0x93867c], 0
mov eax, dword [0x938680]
test eax, eax
je 0x40577f
push eax
call dword [sym.imp.avutil.dll_av_free]
pop ecx
mov dword [0x938680], 0
xor eax, eax
mov dword [0x938684], eax
mov dword [0x938688], eax
jmp 0x404b92
mov dword [esp + 0x9e4], esi
mov esi, dword [esp + 0x9f4]
jmp 0x404ad2
cmp dword [esp + 0x9e4], 1
jne 0x404f02
jmp 0x404ef8
fstp st(0)
mov esi, dword [esp + 0x9e4]
mov edi, dword [esp + 0xa00]
mov dword [esp + 0x9f0], ebx
mov ebx, dword [esp + 0x9c8]
xor ebp, ebp
jmp 0x40484c
mov eax, dword [esp + 0x980]
mov esi, dword [esp + 0x9e4]
mov edi, dword [esp + 0xa00]
mov eax, dword [eax + 0xc]
fild qword [eax + 0x28]
fild dword [eax + 0x40]
fild dword [eax + 0x44]
fxch st(1)
fmulp st(2)
fdivp st(1)
fadd qword [0x938428]
fstp qword [0x938428]
inc dword [0x938570]
xor edx, edx
xor ecx, ecx
mov dword [0x93852c], 0
mov dword [esp + 0x9f0], ebx
mov ebx, dword [esp + 0x9c8]
mov eax, dword [edi + edx*4]
cmp dword [eax + 0x18], 0
je 0x405866
mov ebx, dword [eax + 0x28]
mov ebp, dword [eax + 0x2c]
add ebx, dword [eax + 0x20]
adc ebp, dword [eax + 0x24]
mov dword [edx*8 + 0x590480], ebx
mov ebx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [eax + 0x28], ecx
mov dword [edx*8 + 0x590484], ebp
mov dword [edx*4 + 0x590660], ebx
mov dword [eax + 0x2c], ecx
inc edx
cmp edx, esi
jb 0x405830
mov ebx, dword [esp + 0x9c8]
mov ebp, 1
jmp 0x40484c
cmp dword [0x938674], 1
jne 0x4050b6
mov eax, dword [esp + 0x980]
mov esi, dword [esp + 0x9e4]
mov edi, dword [esp + 0xa00]
mov eax, dword [eax + 0xc]
fild qword [eax + 0x28]
fild dword [eax + 0x40]
fild dword [eax + 0x44]
fxch st(1)
fmulp st(2)
fdivp st(1)
fadd qword [0x938428]
fstp qword [0x938428]
inc dword [0x938570]
xor edx, edx
xor ecx, ecx
mov dword [0x93852c], 0
mov dword [esp + 0x9f0], ebx
mov ebx, dword [esp + 0x9c8]
mov eax, dword [edi + edx*4]
cmp dword [eax + 0x18], 0
je 0x405914
mov ebx, dword [eax + 0x28]
mov ebp, dword [eax + 0x2c]
add ebx, dword [eax + 0x20]
adc ebp, dword [eax + 0x24]
mov dword [edx*8 + 0x590480], ebx
mov ebx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [eax + 0x28], ecx
mov dword [edx*8 + 0x590484], ebp
mov dword [edx*4 + 0x590660], ebx
mov dword [eax + 0x2c], ecx
inc edx
cmp edx, esi
jl 0x4058de
mov ebx, dword [esp + 0x9c8]
mov dword [0x938674], 0
mov ebp, 1
jmp 0x40484c
mov edx, dword [esp + 0x8a8]
mov dword [esp + 0x92c], ecx
mov ecx, dword [esp + 0x8ac]
mov dword [esp + 0x928], edx
mov dword [esp + 0x924], ecx
lea ecx, [ecx - 0x80000000]
or ecx, edx
mov ecx, dword [esp + 0x92c]
jne 0x4051b0
jmp 0x405296
cmp dword [esp + 0x9cc], 0
lea ebp, [esp + 0x8a0]
fld qword [esp + 0x960]
je 0x4061ec
mov ecx, dword [esp + 0x9e4]
mov edi, dword [esp + 0xa00]
xor eax, eax
mov edx, dword [edi + eax*4]
cmp esi, dword [edx + 8]
je 0x405af6
inc eax
cmp eax, ecx
jl 0x40599d
mov dword [esp + 0x9e4], ecx
mov dword [esp + 0xa00], edi
xor eax, eax
cmp eax, dword [esp + 0x9dc]
je 0x4061ec
mov edi, dword [edi + eax*4]
mov eax, dword [edi + 0xc]
mov edx, dword [eax + 8]
cmp dword [edx + 0xe0], 1
je 0x405a48
fstp st(0)
mov dword [esp + 0x9cc], 0
push ebp
call sub.avcodec.dll_av_free_packet
pop ecx
mov eax, dword [esp + 0x9e8]
mov edx, dword [esp + 0xa00]
mov ecx, dword [esp + 0x9e4]
mov dword [esp + 0xc], 0
call fcn.00406200
mov eax, dword [0x938568]
test eax, eax
je 0x4047bd
mov esi, dword [esp + 0x9e4]
mov ebp, dword [esp + 0x98c]
mov edi, dword [esp + 0xa00]
mov dword [esp + 0x9f0], ebx
mov ebx, dword [esp + 0x9c8]
jmp 0x40484c
mov eax, ecx
mov ecx, dword [esp + 0xa00]
fstp qword [esp + 0x960]
mov edx, esi
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ebp
mov eax, ebx
call fcn.00406cb0
fld qword [esp + 0x960]
test eax, eax
jl 0x4061ec
mov ebp, dword [esp + 0x9e4]
fstp qword [esp + 0x960]
mov edx, dword [edi + 0xc]
fild qword [edx + 0x28]
fild dword [edx + 0x40]
fild dword [edx + 0x44]
fdivp st(1)
fmulp st(1)
fcomp qword [esp + 0x960]
fnstsw ax
sahf
jae 0x405ad8
mov ecx, dword [esp + 0xa00]
mov dword [esp + 0xc], ebp
lea eax, [esp + 0x8a0]
mov edx, esi
mov dword [esp + 0x10], eax
mov eax, ebx
call fcn.00406cb0
test eax, eax
jge 0x405a86
mov dword [esp + 0x9e4], ebp
lea ebp, [esp + 0x8a0]
jmp 0x4059ea
mov dword [esp + 0x9cc], 0
mov dword [esp + 0x9e4], ebp
lea ebp, [esp + 0x8a0]
jmp 0x4059ea
mov dword [esp + 0x9e4], ecx
mov dword [esp + 0xa00], edi
jmp 0x4059be
push dword [0x4264bc]
push dword [0x4264b8]
mov ecx, dword [ebx + 8]
push dword [ecx + 0x44]
push dword [ecx + 0x40]
push eax
push edx
call sub.avutil.dll_av_rescale_q
add esp, 0x18
mov dword [esp + 0x89c], eax
mov dword [esp + 0x8e4], edx
mov edi, eax
sub edi, dword [ebx + 0x30]
sbb edx, dword [ebx + 0x34]
mov dword [esp + 0x89c], edi
mov ecx, edx
mov dword [esp + 0x8e4], edx
sar ecx, 0x1f
xor edi, ecx
mov eax, ecx
xor eax, edx
sub edi, ecx
sbb eax, ecx
mov dword [esp + 0x8e0], eax
mov eax, dword [0x42643c]
cdq
push edx
push eax
push 0
push 0xf4240
call fcn.00418b10
mov ecx, dword [esp + 0x8e0]
sub edi, eax
sbb ecx, edx
mov dword [esp + 0x8e0], ecx
jl 0x405296
or edi, dword [esp + 0x8e0]
je 0x405296
cmp dword [0x9384a8], 0
jne 0x405296
cmp dword [0x938508], 0
jne 0x405296
mov edx, dword [0x938514]
imul eax, edx, 0x320
mov ecx, dword [ebx]
cmp dword [eax + ecx*4 + 0x889320], 1
jle 0x405bef
imul eax, edx, 0x640
mov edi, dword [esp + 0x89c]
sub dword [eax + ecx*8 + 0x8b0420], edi
mov edi, dword [esp + 0x8e4]
sbb dword [eax + ecx*8 + 0x8b0424], edi
cmp dword [0x4264c0], 2
jle 0x405c2f
imul eax, edx, 0x640
push dword [eax + ecx*8 + 0x8b0424]
push dword [eax + ecx*8 + 0x8b0420]
push dword [esp + 0x8ec]
push dword [esp + 0x8a8]
push str.timestamp_discontinuity__lld__new_offset__lld_n
push dword [esp + 0x98c]
call dword [sym.imp.MSVCR90.dll_fprintf]
add esp, 0x18
mov eax, dword [esp + 0x9f4]
cmp dword [ebp + eax + 0xc], 0
jle 0x405296
mov dword [esp + 0x904], esi
mov dword [esp + 0x9f0], ebx
xor edx, edx
mov ecx, dword [esp + 0x9f4]
mov ebx, dword [esp + 0xa10]
mov eax, edx
add eax, dword [ebp + ecx + 4]
mov edi, dword [ebx + eax*4]
mov ecx, dword [edi + 0x30]
mov ebx, dword [edi + 0x34]
lea esi, [ebx - 0x80000000]
or esi, ecx
je 0x405c96
add ecx, dword [esp + 0x89c]
adc ebx, dword [esp + 0x8e4]
mov dword [edi + 0x30], ecx
mov ecx, dword [esp + 0xa10]
mov dword [edi + 0x34], ebx
mov edi, dword [ecx + eax*4]
mov eax, dword [esp + 0x9f4]
mov dword [edi + 0x48], 1
inc edx
cmp edx, dword [ebp + eax + 0xc]
jl 0x405c51
mov esi, dword [esp + 0x904]
mov ebx, dword [esp + 0x9f0]
jmp 0x405296
mov eax, dword [esp + 0x968]
mov edx, dword [esp + 0x8a8]
mov dword [eax + ecx*4 + 0x889320], 2
mov eax, dword [esp + 0x8ac]
jmp 0x40526e
lea ebp, [esp + 0x8a0]
jmp 0x4059ea
push dword [0x938494]
lea eax, [esp + 0x8a4]
push eax
push 2
push 0
call sub.avformat.dll_av_pkt_dump_log
add esp, 0x10
jmp 0x40511e
lea eax, [esp + 0x8a0]
push eax
push edi
call sub.avformat.dll_Ordinal_29
add esp, 8
test eax, eax
jge 0x405111
mov eax, dword [esp + 0x9f4]
shl ebp, 4
mov dword [ebp + eax], 1
cmp dword [0x9384ac], 0
je 0x405a13
mov esi, dword [esp + 0x9e4]
mov ebp, dword [esp + 0x98c]
mov edi, dword [esp + 0xa00]
mov dword [esp + 0x9f0], ebx
mov ebx, dword [esp + 0x9c8]
jmp 0x40484c
mov ecx, dword [0x938420]
mov edx, dword [0x938424]
mov eax, edx
sub eax, 0
jl 0x4061f3
or eax, ecx
je 0x4061f3
fadd qword [0x938430]
fld qword [0x41e5a8]
mov dword [esp + 0x958], ecx
mov dword [esp + 0x95c], edx
fild qword [esp + 0x958]
fdivrp st(1)
fcompp
fnstsw ax
sahf
jae 0x4050b6
jp 0x4050b6
mov eax, dword [esp + 0x980]
mov esi, dword [esp + 0x9e4]
mov edi, dword [esp + 0xa00]
mov eax, dword [eax + 0xc]
fild qword [eax + 0x28]
fild dword [eax + 0x40]
fild dword [eax + 0x44]
fxch st(1)
fmulp st(2)
fdivp st(1)
fadd qword [0x938428]
fstp qword [0x938428]
inc dword [0x938570]
xor edx, edx
xor ecx, ecx
mov dword [0x93852c], 0
mov dword [esp + 0x9f0], ebx
mov ebx, dword [esp + 0x9c8]
mov eax, dword [edi + edx*4]
cmp dword [eax + 0x18], 0
je 0x405e4c
mov ebx, dword [eax + 0x28]
mov ebp, dword [eax + 0x2c]
add ebx, dword [eax + 0x20]
adc ebp, dword [eax + 0x24]
mov dword [edx*8 + 0x590480], ebx
mov ebx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [eax + 0x28], ecx
mov dword [edx*8 + 0x590484], ebp
mov dword [edx*4 + 0x590660], ebx
mov dword [eax + 0x2c], ecx
inc edx
cmp edx, esi
jb 0x405e16
mov ebx, dword [esp + 0x9c8]
mov ebp, 1
jmp 0x40484c
fstp st(0)
mov esi, dword [esp + 0x9e4]
mov edi, dword [esp + 0xa00]
mov dword [esp + 0x9f0], ebx
mov ebx, dword [esp + 0x9c8]
xor ebp, ebp
jmp 0x40484c
fstp st(1)
fstp st(0)
fstp st(1)
fstp st(0)
mov esi, dword [esp + 0x9e4]
mov edi, dword [esp + 0xa00]
mov dword [esp + 0x9f0], ebx
mov ebx, dword [esp + 0x9c8]
jmp 0x405e80
fstp st(0)
fstp st(1)
fstp st(0)
mov esi, dword [esp + 0x9e4]
mov edi, dword [esp + 0xa00]
mov dword [esp + 0x9f0], ebx
mov ebx, dword [esp + 0x9c8]
jmp 0x405e80
mov esi, dword [esp + 0x9e4]
mov edi, dword [esp + 0xa00]
mov dword [esp + 0x9f0], ebx
mov ebx, dword [esp + 0x9c8]
mov dword [esp + 0x9d8], ebp
mov ebp, dword [esp + 0x98c]
jmp 0x40484c
mov ebp, dword [esp + 0x98c]
mov edi, dword [esp + 0xa00]
mov eax, dword [esp + 0x9d8]
mov esi, dword [esp + 0x9f4]
mov edx, ebx
add eax, 0x40
mov ebx, dword [esp + 0x9c8]
push edx
push str.Could_not_write_header_for_output_file__d__incorrect_codec_parameters____n
push eax
call dword [sym.imp.MSVCR90.dll_fprintf]
add esp, 0xc
jmp 0x40392a
mov ebp, dword [esp + 0x98c]
mov edi, dword [esp + 0xa00]
mov eax, dword [esp + 0x9d8]
mov ebx, dword [esp + 0x9c8]
mov esi, dword [esp + 0x9f4]
push edx
push ecx
add eax, 0x40
push edx
push str.Invalid_input_file_index__d_map_meta_data__d__d__n
push eax
call dword [sym.imp.MSVCR90.dll_fprintf]
add esp, 0x14
jmp 0x40392a
mov ebp, dword [esp + 0x98c]
mov edi, dword [esp + 0xa00]
mov eax, dword [esp + 0x9d8]
mov ebx, dword [esp + 0x9c8]
mov esi, dword [esp + 0x9f4]
push edx
push ecx
add eax, 0x40
push ecx
push str.Invalid_output_file_index__d_map_meta_data__d__d__n
push eax
call dword [sym.imp.MSVCR90.dll_fprintf]
add esp, 0x14
jmp 0x40392a
mov eax, dword [esp + 0x9d8]
push dword [ebx + 4]
push dword [ebx]
add eax, 0x40
push str.Error_while_opening_codec_for_output_stream__d._d___maybe_incorrect_parameters_such_as_bit_rate__rate__width_or_height_n
push eax
call dword [sym.imp.MSVCR90.dll_fprintf]
push 1
call dword [sym.imp.MSVCR90.dll_exit]
add esp, 0x14
mov eax, dword [esp + 0x9d8]
push dword [ebx + 4]
push dword [ebx]
add eax, 0x40
push str.Unsupported_codec_for_output_stream__d._d_n
push eax
call dword [sym.imp.MSVCR90.dll_fprintf]
push 1
call dword [sym.imp.MSVCR90.dll_exit]
add esp, 0x14
mov edx, dword [0x938588]
mov dword [esp + 0x8e8], edx
cmp edx, 0xc1544945
je 0x406036
cmp dword [esp + 0x8e8], 0xc9504834
je 0x406036
cmp dword [esp + 0x8e8], 0xa0435548
jne 0x403be7
mov edx, dword [0x9385a0]
mov edi, dword [edx]
mov esi, str.matroska
mov dl, byte [edi]
cmp dl, byte [esi]
jne 0x406063
test dl, dl
je 0x40605f
mov dl, byte [edi + 1]
cmp dl, byte [esi + 1]
jne 0x406063
add edi, 2
add esi, 2
test dl, dl
jne 0x406043
xor eax, eax
jmp 0x406068
sbb eax, eax
or eax, 1
push dword [esp + 0x8e8]
xor edx, edx
mov esi, 1
test eax, eax
cmove edx, esi
mov dword [ecx + 0x3ec], edx
call sub.avcodec.dll_avcodec_find_encoder
pop ecx
mov dword [esp + 0x96c], eax
jmp 0x403be7
push dword [0x426470]
call sub.avutil.dll_av_malloc
pop ecx
mov dword [0x93859c], eax
test eax, eax
jne 0x403b19
mov dword [esp + 0x9e4], esi
mov esi, dword [esp + 0x9f4]
jmp 0x40392a
mov ebx, dword [esp + 0x9c8]
mov dword [esp + 0x9e4], esi
mov esi, dword [esp + 0x9f4]
jmp 0x40392a
mov eax, dword [esp + 0x9d8]
push ecx
push edx
add eax, 0x40
push str.Could_not_find_sync_stream__d._d_n
push eax
call dword [sym.imp.MSVCR90.dll_fprintf]
push 1
call dword [sym.imp.MSVCR90.dll_exit]
add esp, 0x14
mov eax, dword [esp + 0x9d8]
jmp 0x4060e0
mov eax, dword [esp + 0x9d8]
push edx
push ebx
add eax, 0x40
push str.Could_not_find_input_stream__d._d_n
push eax
call dword [sym.imp.MSVCR90.dll_fprintf]
push 1
call dword [sym.imp.MSVCR90.dll_exit]
add esp, 0x14
mov eax, dword [esp + 0x9d8]
jmp 0x40610c
mov eax, dword [esp + 0x9d8]
add eax, 0x40
push eax
push str.Number_of_stream_maps_must_match_number_of_output_streams_n
call sub.MSVCR90.dll_fputs
push 1
call dword [sym.imp.MSVCR90.dll_exit]
add esp, 0xc
mov eax, dword [esp + 0x9d8]
add eax, 0x40
push eax
push str.Output_file_does_not_contain_any_stream_n
call sub.MSVCR90.dll_fputs
push 1
call dword [sym.imp.MSVCR90.dll_exit]
add esp, 0xc
cmp ebx, dword [0x426468]
jne 0x4027b5
mov dword [ebp + 0x10], 1
mov edx, dword [esi + ebx*4 + 0x6c]
mov ecx, dword [edx + 8]
cmp dword [ecx + 0xe4], 0x1700a
je 0x4061a6
mov dword [0x93856c], 0
jmp 0x4027b5
mov dword [0x93856c], 1
jmp 0x4027b5
xor edi, edi
mov dword [esp + 0x9e4], edi
xor ebp, ebp
jmp 0x40392a
xor eax, eax
mov dword [esp + 0x9f0], eax
jmp 0x402714
xor ebx, ebx
mov dword [esp + 0x9e4], ebx
xor edi, edi
mov dword [esp + 0xa10], edi
xor ebp, ebp
jmp 0x40392a
fstp st(0)
jmp 0x4059ea
fstp st(0)
jmp 0x4050b6