Function at 0x4049d0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
cmp esi, 1
jbe 0x404bf1
test esi, esi
sete bl
je 0x404b30
cmp esi, 2
je 0x404b30
cmp esi, 3
nop
je 0x404b62
cmp esi, 5
je 0x404b94
cmp esi, 7
je 0x404bc2
cmp esi, 4
nop
lea esi, [esi]
jne 0x404c68
mov dword [esp + 4], 0x78
mov dword [esp], edi
call sub.cygwin1.dll_strchr
test eax, eax
je 0x404c68
mov ebx, eax
sub ebx, edi
mov dword [esp + 4], ebx
lea ebx, [edi + ebx + 1]
mov dword [esp], edi
call sub.cygwin1.dll_strndup
mov dword [ebp - 0x10], eax
mov dword [esp + 4], str.horizontal_resolution
mov dword [esp], eax
call fcn.004154d0
movsx edx, byte [ebx]
mov esi, eax
mov eax, dword [sym.imp.cygwin1.dll___ctype_ptr__]
mov eax, dword [eax]
test byte [eax + edx + 1], 4
jne 0x404c30
mov dword [esp + 4], str.full
mov dword [esp], ebx
call sub.cygwin1.dll_strcasecmp
test eax, eax
jne 0x404cb7
mov ebx, 0x180
cmp esi, 0x2c0
mov edx, 1
jg 0x404ac1
cmp esi, 0x160
mov edx, 2
jg 0x404ac1
xor edx, edx
cmp ebx, 0x17f
setle dl
add edx, 3
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0x417124
mov dword [esp], 0x41823f
add ecx, 0x38
add eax, 0x1c
call fcn.00401cf0
mov esi, eax
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x20]
test edx, edx
jne 0x404b14
mov edx, 0x66666667
mov eax, ebx
imul edx
mov ecx, ebx
sar ecx, 0x1f
sar edx, 1
sub edx, ecx
lea edx, [edx + edx*4]
cmp ebx, edx
jne 0x404c90
mov edx, dword [ebp + 8]
mov dword [edx + 0x20], 1
mov eax, dword [ebp - 0x10]
mov ebx, esi
mov dword [esp], eax
call sub.cygwin1.dll_free
add esp, 0x1c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [ebp + 8]
mov edx, edi
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0x4170c8
mov dword [esp], str.tv_format
add ecx, 0x3c
add eax, 0x20
call fcn.004031c0
test eax, eax
jne 0x404c20
test bl, bl
je 0x4049fc
mov ecx, dword [ebp + 8]
mov edx, edi
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0x4170d8
mov dword [esp], str.aspect_ratio
add ecx, 0x40
add eax, 0x24
call fcn.004031c0
test eax, eax
jne 0x404c20
test bl, bl
je 0x404a06
mov ecx, dword [ebp + 8]
mov edx, edi
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0x417110
mov dword [esp], str.widescreen_conversion
add ecx, 0x44
add eax, 0x28
call fcn.004031c0
test eax, eax
jne 0x404c20
test bl, bl
je 0x404a0f
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 0x30]
mov dword [esp + 4], str.field1
mov dword [esp], edi
call sub.cygwin1.dll_strcasecmp
test eax, eax
jne 0x404c47
mov edx, dword [ebp + 8]
mov eax, ebx
or eax, 1
mov dword [edx + 0x30], eax
add esp, 0x1c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [ebp + 8]
mov edx, edi
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0x4170b8
mov dword [esp], str.mpeg_format
add ecx, 0x34
add eax, 0x18
call fcn.004031c0
test eax, eax
je 0x4049e8
nop
lea esi, [esi]
lea ebx, [eax - 1]
add esp, 0x1c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], ebx
mov dword [esp + 4], str.vertical_resolution
call fcn.004154d0
mov ebx, eax
jmp 0x404a99
mov dword [esp + 4], str.field2
mov dword [esp], edi
call sub.cygwin1.dll_strcasecmp
test eax, eax
jne 0x404cd9
mov edx, dword [ebp + 8]
mov eax, ebx
or eax, 2
mov dword [edx + 0x30], eax
jmp 0x404c23
call sub.cygwin1.dll___getreent
mov dword [esp + 8], edi
mov dword [esp + 4], str.ERR:__Cannot_parse_video_option__s_n
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
mov dword [esp], 1
call sub.cygwin1.dll_exit
mov edx, 0x38e38e39
mov eax, ebx
imul edx
sar edx, 1
sub edx, ecx
lea edx, [edx + edx*8]
cmp ebx, edx
jne 0x404b14
mov edx, dword [ebp + 8]
mov dword [edx + 0x20], 2
jmp 0x404b14
mov dword [esp], ebx
mov ebx, 0x17f
mov dword [esp + 4], str.high
call sub.cygwin1.dll_strcasecmp
test eax, eax
jne 0x404a99
jmp 0x404a94
lea esi, [esi]
call sub.cygwin1.dll___getreent
mov dword [esp + 8], edi
mov dword [esp + 4], str.ERR:__Cannot_parse_video_caption__s_n
jmp 0x404c79