Function at 0x402220
Capabilities:
Terminate process
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xac
mov dword [ebp - 0x74], eax
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x78], edx
test eax, eax
jne 0x402261
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 0xc]
mov dword [esp + 8], 0x2e
mov dword [esp + 4], 1
mov dword [esp], str.WARN:_video_mpeg_version_was_not_autodetected_n
mov dword [esp + 0xc], eax
call sub.cygwin1.dll_fwrite
mov eax, dword [ebp - 0x74]
mov eax, dword [eax + 0x1c]
test eax, eax
jne 0x402293
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 0xc]
mov dword [esp + 8], 0x2c
mov dword [esp + 4], 1
mov dword [esp], str.WARN:_video_resolution_was_not_autodetected_n
mov dword [esp + 0xc], eax
call sub.cygwin1.dll_fwrite
mov edx, dword [ebp - 0x74]
mov eax, dword [edx + 0x20]
test eax, eax
jne 0x4022c5
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 0xc]
mov dword [esp + 8], 0x28
mov dword [esp + 4], 1
mov dword [esp], str.WARN:_video_format_was_not_autodetected_n
mov dword [esp + 0xc], eax
call sub.cygwin1.dll_fwrite
mov ecx, dword [ebp - 0x74]
mov eax, dword [ecx + 0x24]
test eax, eax
jne 0x4022f7
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 0xc]
mov dword [esp + 8], 0x28
mov dword [esp + 4], 1
mov dword [esp], str.WARN:_aspect_ratio_was_not_autodetected_n
mov dword [esp + 0xc], eax
call sub.cygwin1.dll_fwrite
mov ebx, dword [ebp - 0x74]
mov eax, dword [ebx + 0x18]
test eax, eax
jne 0x402308
mov dword [ebx + 0x18], 2
mov esi, dword [ebp - 0x74]
mov edi, dword [esi + 0x1c]
test edi, edi
jne 0x402319
mov dword [esi + 0x1c], 1
mov eax, dword [ebp - 0x74]
mov ebx, dword [eax + 0x20]
test ebx, ebx
jne 0x40232a
mov dword [eax + 0x20], 1
mov edx, dword [ebp - 0x74]
mov eax, dword [edx + 0x24]
test eax, eax
jne 0x402ddb
mov dword [edx + 0x24], 1
mov ecx, dword [ebp - 0x74]
mov eax, dword [ecx + 0x28]
sub eax, 1
cmp eax, 1
jbe 0x402da7
mov dword [ebp - 0x24], 0
mov esi, dword [ebp - 0x74]
mov edi, dword [esi + 8]
test edi, edi
jle 0x4023b7
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x24]
mov ecx, dword [esi + 0x14]
and edx, 3
mov dword [ebp - 0x6c], edx
mov ebx, dword [ebp - 0x6c]
sar eax, 2
mov dword [ebp - 0x70], eax
mov edx, dword [ecx]
mov dword [ebp - 0x68], ecx
lea eax, [eax + ebx*8]
imul eax, eax, 0x4c
mov ecx, dword [edx + eax + 0x20]
test ecx, ecx
jne 0x402459
xor edx, edx
mov ecx, eax
lea ebx, [eax + 0x10]
jmp 0x4023b0
mov esi, dword [ebp - 0x68]
mov eax, dword [esi + edx*4]
lea esi, [eax + ebx + 0xc]
mov eax, dword [eax + ecx + 0x20]
test eax, eax
jne 0x40245d
add edx, 1
cmp edx, edi
jl 0x40239a
add dword [ebp - 0x24], 1
cmp dword [ebp - 0x24], 0x20
jne 0x402358
mov esi, dword [ebp - 0x74]
mov ebx, dword [esi]
test ebx, ebx
jle 0x4026da
mov ebx, esi
xor esi, esi
jmp 0x40240a
cmp eax, 2
je 0x40243b
jg 0x4025b0
sub eax, 1
je 0x4025c6
mov eax, dword [ebx + 0x68]
test eax, eax
lea esi, [esi]
jne 0x4023f9
mov dword [ebx + 0x68], 1
mov eax, dword [ebp - 0x74]
add esi, 1
add ebx, 0x20
cmp dword [eax], esi
jle 0x4026da
mov eax, dword [ebx + 0x50]
test eax, eax
jne 0x4023d4
call sub.cygwin1.dll___getreent
mov dword [esp + 8], esi
mov dword [esp + 4], str.WARN:_audio_stream__d_was_not_autodetected_n
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
mov eax, dword [ebx + 0x50]
test eax, eax
jne 0x4023d4
mov dword [ebx + 0x50], 2
mov eax, dword [ebx + 0x54]
test eax, eax
jne 0x402449
mov dword [ebx + 0x54], 2
mov eax, dword [ebx + 0x5c]
test eax, eax
jne 0x4023e8
mov dword [ebx + 0x5c], 2
jmp 0x4023e8
lea esi, [edx + eax + 0x1c]
mov ecx, dword [ebp - 0x74]
mov eax, dword [ebp - 0x70]
mov edx, dword [ebp - 0x6c]
mov ecx, dword [ecx]
add eax, 1
add edx, 1
mov dword [ebp - 0x60], eax
test ecx, ecx
mov dword [ebp - 0x5c], edx
mov dword [ebp - 0x58], ecx
jle 0x402606
mov edx, ecx
xor eax, eax
mov dword [ebp - 0x54], 0
shl edx, 5
jmp 0x402496
add eax, 0x20
cmp eax, edx
je 0x4024bc
mov ebx, dword [ebp - 0x74]
mov ecx, dword [ebp - 0x5c]
cmp dword [ebx + eax + 0x50], ecx
jne 0x40248f
mov ecx, dword [ebp - 0x60]
cmp dword [ebx + eax + 0x64], ecx
mov ebx, 1
cmovne ebx, dword [ebp - 0x54]
add eax, 0x20
cmp eax, edx
mov dword [ebp - 0x54], ebx
jne 0x402496
mov eax, dword [ebp - 0x54]
test eax, eax
jne 0x4023b7
mov ebx, dword [ebp - 0x74]
xor edi, edi
mov dword [ebp - 0x50], 0xffffffff
mov dword [ebp - 0x4c], 0xffffffff
jmp 0x4024f4
cmp dword [ebp - 0x5c], eax
je 0x4025f0
add edi, 1
add ebx, 0x20
cmp edi, dword [ebp - 0x58]
jge 0x4025fa
mov eax, dword [ebx + 0x64]
test eax, eax
jne 0x4024e5
mov eax, dword [ebx + 0x50]
xor edx, edx
test eax, eax
jne 0x4024dc
mov ecx, dword [ebx + 0x54]
test ecx, ecx
je 0x402518
mov eax, dword [esi + 0x10]
test eax, eax
je 0x402525
cmp ecx, eax
jne 0x4024e5
jmp 0x402522
mov eax, dword [esi + 0x10]
test eax, eax
lea esi, [esi]
jne 0x402525
add edx, 1
mov ecx, dword [ebx + 0x58]
test ecx, ecx
je 0x402540
mov eax, dword [esi + 0x14]
test eax, eax
je 0x40254a
cmp ecx, eax
jne 0x4024e5
jmp 0x402547
mov eax, dword [esi + 0x14]
test eax, eax
jne 0x40254a
add edx, 1
mov ecx, dword [ebx + 0x5c]
test ecx, ecx
jne 0x402598
mov eax, dword [esi + 0x18]
test eax, eax
jne 0x40255b
add edx, 1
mov ecx, dword [ebx + 0x68]
test ecx, ecx
jne 0x402587
mov eax, dword [esi + 0x24]
test eax, eax
jne 0x40256c
add edx, 1
cmp edx, dword [ebp - 0x4c]
mov dword [ebp - 0x54], 1
jle 0x4024e5
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x4c], edx
jmp 0x4024e5
mov eax, dword [esi + 0x24]
test eax, eax
je 0x40256c
cmp ecx, eax
jne 0x4024e5
jmp 0x402569
mov eax, dword [esi + 0x18]
test eax, eax
lea esi, [esi]
je 0x40255b
cmp ecx, eax
jne 0x4024e5
jmp 0x402558
cmp eax, 3
je 0x402d70
cmp eax, 4
lea esi, [esi]
jne 0x4023e8
mov ecx, dword [ebx + 0x54]
test ecx, ecx
jne 0x4025d4
mov dword [ebx + 0x54], 4
mov edx, dword [ebx + 0x5c]
test edx, edx
jne 0x4023e8
mov dword [ebx + 0x5c], 6
jmp 0x4023e8
mov edx, 1
jmp 0x402504
mov edi, dword [ebp - 0x54]
test edi, edi
nop
jne 0x4026cf
mov eax, dword [ebp - 0x58]
mov edx, dword [ebp - 0x74]
add eax, 1
mov dword [edx], eax
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x74]
mov ebx, dword [ebp - 0x5c]
shl dword [ebp - 0x58], 5
shl eax, 5
lea edx, [ecx + eax + 0x60]
mov dword [ecx + eax + 0x50], ebx
mov ecx, dword [ebp - 0x60]
mov ebx, dword [ebp - 0x74]
mov dword [ebp - 0x7c], edx
mov dword [edx + 4], ecx
mov edx, dword [esi + 0x10]
lea edi, [ebx + eax + 0x150]
lea ebx, [ebx + eax + 0x50]
lea ecx, [edi + 4]
lea eax, [ebx + 4]
mov dword [ebp - 0x90], edx
mov dword [esp + 4], 0x417050
mov dword [esp], str.audio_quantization
call fcn.00401cf0
mov edx, dword [esi + 0x14]
lea ecx, [edi + 8]
lea eax, [ebx + 8]
mov dword [esp + 4], 0x417068
mov dword [esp], 0x4179e8
call fcn.00401cf0
mov edx, dword [esi + 0x18]
lea ecx, [edi + 0xc]
lea eax, [ebx + 0xc]
mov dword [esp + 4], 0x417080
mov dword [esp], str.number_of_channels
call fcn.00401cf0
mov eax, dword [ebp - 0x58]
mov ebx, dword [ebp - 0x74]
mov edx, dword [esi + 0x24]
mov dword [esp + 4], 0x4170a8
shl eax, 0
lea ecx, [ebx + eax + 0x168]
mov eax, dword [ebp - 0x7c]
mov dword [esp], str.sampling_rate
add eax, 8
call fcn.00401cf0
jmp 0x4023b7
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x58], eax
jmp 0x402611
mov edx, dword [ebp - 0x74]
mov eax, dword [edx + 0xc]
test eax, eax
jle 0x402947
mov dword [ebp - 0x28], 0
mov ecx, dword [ebp - 0x74]
mov ebx, dword [ebp - 0x28]
mov dword [ebp - 0x40], 1
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0x28]
cmp dword [ecx + 0x24], 2
mov eax, dword [eax + ebx*4]
mov dword [ebp - 0x3c], eax
mov eax, 0xe
cmovne eax, dword [ebp - 0x40]
cmp edx, 2
mov dword [ebp - 0x40], eax
je 0x402d95
cmp edx, 3
je 0x402d9e
and eax, 0xfffffffb
sub edx, 1
cmovne eax, dword [ebp - 0x40]
mov dword [ebp - 0x40], eax
xor eax, eax
mov esi, dword [ebp - 0x3c]
cmp byte [esi + eax + 0x34], 0
jne 0x40283c
add eax, 1
cmp eax, 4
jne 0x402739
mov eax, dword [ebp - 0x3c]
mov edi, dword [eax]
test edi, edi
jle 0x40283c
mov edx, dword [eax + 0x1c]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x80], edx
mov ecx, dword [ebp - 0x48]
mov edi, pe_nt_image_headers32
mov ebx, dword [ebp - 0x80]
mov eax, dword [ebx + ecx*4]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x2c], eax
lea esi, [esi]
mov esi, dword [ebp - 0x2c]
mov esi, dword [esi + 0x9a0]
test esi, esi
je 0x402817
xor ebx, ebx
mov edx, dword [ebp - 0x3c]
lea ecx, [edx + ebx*4 + 0x34]
xor edx, edx
movzx eax, byte [ecx]
cmp edi, eax
je 0x402817
add edx, 1
add ecx, 1
cmp edx, 4
jne 0x40279c
add ebx, 1
cmp ebx, 0x20
jne 0x402793
mov eax, dword [ebp - 0x74]
xor esi, esi
mov dword [ebp - 0x44], 0
mov ecx, dword [eax + 4]
test ecx, ecx
jle 0x402c03
lea esi, [esi]
mov ebx, dword [ebp - 0x74]
lea eax, [esi + esi*2]
xor edx, edx
lea ecx, [ebx + eax*4 + 0x256]
mov eax, dword [ebp - 0x3c]
lea ebx, [eax + esi*4 + 0x34]
movzx eax, byte [ecx]
cmp edi, eax
je 0x402c90
add edx, 1
add ecx, 1
add ebx, 1
cmp edx, 4
jne 0x4027e6
mov edx, dword [ebp - 0x74]
add esi, 1
mov ecx, dword [edx + 4]
cmp ecx, esi
jg 0x4027d0
mov ebx, dword [ebp - 0x44]
test ebx, ebx
je 0x402c03
add edi, 1
add dword [ebp - 0x2c], 0x4c
cmp edi, 0xa0
jne 0x402780
mov esi, dword [ebp - 0x3c]
add dword [ebp - 0x48], 1
mov ebx, dword [ebp - 0x48]
cmp dword [esi], ebx
jg 0x402769
xor ecx, ecx
mov eax, dword [ebp - 0x40]
sar eax, cl
test al, 1
jne 0x402d5e
mov dword [ebp - 0x20], 0
mov ecx, dword [ebp - 0x3c]
mov esi, 1
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x10], 0xffffffff
lea edx, [ecx + edx*4 + 0x34]
lea ecx, [esi - 1]
sar eax, cl
test al, 1
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x30], edx
jne 0x4028a4
mov eax, dword [ebp - 0x30]
cmp byte [eax], 0
js 0x402cbc
mov edi, dword [ebp - 0x10]
add esi, 1
add dword [ebp - 0x30], 1
cmp esi, 5
je 0x4028e0
mov eax, dword [ebp - 0x40]
lea ecx, [esi - 1]
mov dword [ebp - 0x10], edi
sar eax, cl
test al, 1
je 0x40287a
mov edx, dword [ebp - 0x30]
movzx eax, byte [edx]
test al, al
jns 0x402886
cmp dword [ebp - 0x10], 0xffffffff
je 0x402cb0
mov ecx, dword [ebp - 0x10]
test ecx, ecx
js 0x402886
mov edi, 0x7f
mov ecx, 0xfffffffe
and edi, eax
cmp edi, dword [ebp - 0x10]
cmovne edi, ecx
add esi, 1
add dword [ebp - 0x30], 1
cmp esi, 5
jne 0x402895
lea esi, [esi]
cmp edi, 0xffffffff
je 0x402926
lea ebx, [edi - 0x80]
mov si, 1
mov byte [ebp - 0x89], bl
mov eax, dword [ebp - 0x40]
lea ecx, [esi - 1]
sar eax, cl
test al, 1
je 0x40291a
mov eax, dword [ebp - 0x18]
cmp byte [eax], 0
js 0x40291a
test edi, edi
js 0x402cf8
movzx ebx, byte [ebp - 0x89]
mov eax, dword [ebp - 0x18]
mov byte [eax], bl
add esi, 1
add dword [ebp - 0x18], 1
cmp esi, 5
jne 0x4028f2
add dword [ebp - 0x20], 1
cmp dword [ebp - 0x20], 0x20
jne 0x402852
mov ebx, dword [ebp - 0x74]
add dword [ebp - 0x28], 1
mov ecx, dword [ebp - 0x28]
cmp dword [ebx + 0xc], ecx
jg 0x4026ef
mov ecx, dword [ebp - 0x74]
mov edi, 1
mov ecx, dword [ecx + 0xc]
mov dword [ebp - 0x84], ecx
mov edx, dword [ebp - 0x84]
lea ebx, [edi - 1]
mov dword [ebp - 0x14], ebx
test edx, edx
jle 0x4029c6
mov esi, dword [ebp - 0x74]
lea eax, [edi*4 + 0x2c]
xor ecx, ecx
xor ebx, ebx
mov dword [ebp - 0x88], eax
mov esi, dword [esi + 0x10]
mov dword [ebp - 0x38], esi
mov esi, dword [ebp - 0x38]
xor edx, edx
mov eax, dword [ebp - 0x88]
add eax, dword [esi + ebx*4]
mov esi, 1
add eax, 4
cmp byte [eax], 0
cmovne ecx, esi
add edx, 1
add eax, 1
cmp edx, 4
jne 0x402998
add ebx, 1
cmp ebx, dword [ebp - 0x84]
jl 0x402982
test ecx, ecx
je 0x4029c6
mov eax, dword [ebp - 0x74]
mov edx, dword [ebp - 0x14]
cmp dword [eax + 4], edx
jg 0x4029c6
mov dword [eax + 4], edi
add edi, 1
cmp edi, 0x21
jne 0x402958
mov edx, dword [ebp - 0x74]
mov ebx, dword [edx + 4]
cmp ebx, 1
jle 0x4029fc
mov eax, dword [ebp - 0x78]
test eax, eax
je 0x4029fc
call sub.cygwin1.dll___getreent
mov dword [esp + 8], ebx
mov dword [esp + 4], str.WARN:_Too_many_subpicture_tracks_for_a_menu__1_is_allowed___d_are_present.__Perhaps_you_want_different_streams_for_normal_widescreen_letterbox_panscan_instead_of_actually_having_multiple_streams__n
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
mov ecx, dword [ebp - 0x78]
mov edi, 0x1e0
mov ebx, dword [ecx*4 + 0x417044]
call sub.cygwin1.dll___getreent
mov dword [esp + 4], str.INFO:_Generating__s_with_the_following_video_attributes:_n
mov dword [esp + 8], ebx
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
mov ebx, dword [ebp - 0x74]
mov eax, dword [ebx + 0x18]
mov ebx, dword [eax*4 + 0x4170b8]
call sub.cygwin1.dll___getreent
mov dword [esp + 4], str.INFO:_MPEG_version:__s_n
mov dword [esp + 8], ebx
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
mov esi, dword [ebp - 0x74]
mov eax, dword [esi + 0x20]
mov ebx, dword [eax*4 + 0x4170c8]
call sub.cygwin1.dll___getreent
mov dword [esp + 4], str.INFO:_TV_standard:__s_n
mov dword [esp + 8], ebx
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
mov eax, dword [esi + 0x24]
mov ebx, dword [eax*4 + 0x4170d8]
call sub.cygwin1.dll___getreent
mov dword [esp + 4], str.INFO:_Aspect_ratio:__s_n
mov dword [esp + 8], ebx
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
mov edx, dword [esi + 0x1c]
mov eax, 0xf0
cmp edx, 4
cmove edi, eax
xor ebx, ebx
cmp dword [esi + 0x20], 2
mov esi, 0x2d0
sete bl
add ebx, 5
cmp edx, 1
je 0x402ad3
mov esi, 0x160
cmp edx, 2
mov eax, 0x2c0
cmove esi, eax
call sub.cygwin1.dll___getreent
imul ebx, edi
mov edx, 0x66666667
mov dword [esp + 8], esi
mov dword [esp + 4], str.INFO:_Resolution:__dx_d_n
mov ecx, eax
mov eax, ebx
imul edx
sar edx, 1
mov dword [esp + 0xc], edx
mov eax, dword [ecx + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
mov edx, dword [ebp - 0x74]
mov eax, dword [edx]
test eax, eax
jle 0x402e76
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x1c], 0
jmp 0x402b69
mov edx, dword [ebp - 0x34]
cmp dword [edx + 0x60], 2
je 0x402e49
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 0xc]
mov dword [esp], 0xa
mov dword [esp + 4], eax
call sub.cygwin1.dll_fputc
mov ecx, dword [ebp - 0x34]
mov eax, dword [ecx + 0x64]
test eax, eax
je 0x402e25
mov esi, dword [ebp - 0x74]
add dword [ebp - 0x1c], 1
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x34], 0x20
cmp dword [esi], eax
jle 0x402e76
mov ecx, dword [ebp - 0x34]
mov eax, dword [ecx + 0x54]
mov ebx, dword [eax*4 + 0x417050]
mov eax, dword [ecx + 0x68]
mov esi, dword [eax*4 + 0x4170a8]
mov eax, dword [ecx + 0x5c]
mov edi, dword [eax*4 + 0x417080]
mov eax, dword [ecx + 0x50]
mov eax, dword [eax*4 + 0x4170e8]
mov dword [ebp - 0x64], eax
call sub.cygwin1.dll___getreent
mov dword [esp + 0x18], ebx
mov ebx, dword [ebp - 0x64]
mov dword [esp + 0x14], esi
mov esi, dword [ebp - 0x1c]
mov dword [esp + 0x10], edi
mov dword [esp + 4], str.INFO:_Audio_ch__d_format:__s__s___s__s
mov dword [esp + 0xc], ebx
mov dword [esp + 8], esi
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
mov eax, dword [ebp - 0x34]
cmp dword [eax + 0x58], 1
jne 0x402b20
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 0xc]
mov dword [esp + 8], 0xa
mov dword [esp + 4], 1
mov dword [esp], str.__surround
mov dword [esp + 0xc], eax
call sub.cygwin1.dll_fwrite
jmp 0x402b20
xor ebx, ebx
cmp ecx, ebx
jle 0x402c2c
mov esi, dword [ebp - 0x74]
lea eax, [ebx + ebx*2]
lea edx, [esi + eax*4 + 0x256]
xor eax, eax
cmp byte [edx], 0
jne 0x402d2e
add eax, 1
add edx, 1
cmp eax, 4
jne 0x402c18
mov eax, dword [ebp - 0x3c]
lea esi, [ebx + 0xc]
lea edx, [eax + esi*4 + 4]
xor eax, eax
cmp byte [edx], 0
jne 0x402d2e
add eax, 1
add edx, 1
cmp eax, 4
jne 0x402c38
mov ecx, dword [ebp - 0x3c]
mov ebx, 0x7f
lea edx, [ecx + esi*4 + 4]
xor ecx, ecx
mov eax, dword [ebp - 0x40]
sar eax, cl
test al, 1
mov eax, ebx
cmovne eax, edi
add ecx, 1
mov byte [edx], al
add edx, 1
cmp ecx, 4
jne 0x402c5a
add edi, 1
add dword [ebp - 0x2c], 0x4c
cmp edi, 0xa0
jne 0x402780
jmp 0x40282a
cmp byte [ebx], 0
jne 0x4027f1
mov eax, edi
mov byte [ebx], al
mov dword [ebp - 0x44], 1
jmp 0x4027f1
mov edi, 0x7f
and edi, eax
jmp 0x402889
mov ebx, dword [esi*4 + 0x418344]
call sub.cygwin1.dll___getreent
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x28]
mov dword [esp + 4], str.WARN:_PGC__d_has_the_subtitle_set_for_stream__d__mode__s_which_is_illegal_given_the_video_characteristics.__Forcibly_removing._n
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], edx
mov dword [esp + 8], ecx
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
mov ebx, dword [ebp - 0x30]
mov byte [ebx], 0x7f
jmp 0x402886
mov ebx, dword [esi*4 + 0x418344]
call sub.cygwin1.dll___getreent
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x20]
mov dword [esp + 4], str.WARN:__Cannot_infer_the_stream_id_for_subpicture__d_mode__s_in_PGC__d__please_manually_specify._n
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], edx
mov dword [esp + 8], ecx
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
jmp 0x40291a
add ebx, 1
cmp ebx, 0x20
jne 0x402c05
mov dword [esp + 0xc], str.l_32
mov dword [esp + 8], str.setattr
mov dword [esp + 4], 0x2af
mov dword [esp], str.dvdauthor.c
call sub.cygwin1.dll___assert_func
add ecx, 1
cmp ecx, 3
jle 0x40283e
jmp 0x402934
mov eax, dword [ebx + 0x5c]
test eax, eax
jne 0x402d7e
mov dword [ebx + 0x5c], 2
mov eax, dword [ebx + 0x54]
test eax, eax
jne 0x4023e8
mov dword [ebx + 0x54], 1
jmp 0x4023e8
and dword [ebp - 0x40], 0xfffffff7
jmp 0x402737
or dword [ebp - 0x40], 2
jmp 0x402737
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 0xc]
mov dword [esp + 8], 0x6a
mov dword [esp + 4], 1
mov dword [esp], str.ERR:__widescreen_conversion_should_not_be_set_to_either_noletterbox_or_nopanscan_for_4:3_source_material._n
mov dword [esp + 0xc], eax
call sub.cygwin1.dll_fwrite
mov dword [esp], 1
call sub.cygwin1.dll_exit
sub eax, 1
je 0x40233f
mov ebx, dword [ebp - 0x74]
cmp dword [ebx + 0x28], 3
jne 0x402351
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 0xc]
mov dword [esp + 8], 0x50
mov dword [esp + 4], 1
mov dword [esp], str.ERR:__widescreen_conversion_should_not_be_set_to_crop_for_16:9_source_material._n
mov dword [esp + 0xc], eax
call sub.cygwin1.dll_fwrite
mov dword [esp], 1
call sub.cygwin1.dll_exit
call sub.cygwin1.dll___getreent
mov ebx, dword [ebp - 0x1c]
mov dword [esp + 4], str.WARN:_Audio_ch__d_is_not_used__n
mov dword [esp + 8], ebx
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
jmp 0x402b53
movsx ebx, byte [edx + 0x6d]
movsx esi, byte [edx + 0x6c]
call sub.cygwin1.dll___getreent
mov dword [esp + 4], str.___c_c
mov dword [esp + 0xc], ebx
mov dword [esp + 8], esi
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
jmp 0x402b2d
add esp, 0xac
pop ebx
pop esi
pop edi
pop ebp
ret