Function at 0x406330
Capabilities:
Terminate process

Disassembly:
mov eax, dword [sym.imp.MSVCR71.dll__iob]
push esi
mov esi, dword [sym.imp.MSVCR71.dll_fprintf]
add eax, 0x40
push str.syntax:_spumux__options__script.sub___in.mpg___out.mpg_n
push eax
call esi
mov ecx, dword [sym.imp.MSVCR71.dll__iob]
add ecx, 0x40
push str._t_m__mode____dvd__cvd__or_svcd__only_the_first_letter_is_checked_._n_t_tDefault_is_DVD._n
push ecx
call esi
mov edx, dword [sym.imp.MSVCR71.dll__iob]
add edx, 0x40
push str._t_s__stream__number_of_the_substream_to_insert__default_0__n
push edx
call esi
mov eax, dword [sym.imp.MSVCR71.dll__iob]
add eax, 0x40
push str._t_v__level___verbosity_level__default_0___n
push eax
call esi
mov ecx, dword [sym.imp.MSVCR71.dll__iob]
add ecx, 0x40
push str._t_P__________enable_progress_indicator_n
push ecx
call esi
mov edx, dword [sym.imp.MSVCR71.dll__iob]
add edx, 0x40
push str._n_tSee_manpage_for_config_file_format._n
push edx
call esi
add esp, 0x30
push 0xffffffffffffffff
call dword [sym.imp.MSVCR71.dll_exit]
pop esi
int3
sub esp, 0x18
push ebp
mov ebp, dword [esp + 0x20]
cmp ebp, 2
jge 0x406342
jmp 0x405490
push ebx
push esi
mov esi, dword [sym.imp.MSVCR71.dll_malloc]
xor ebx, ebx
push 0xd3e4
mov dword [0x42ad20], ebx
mov dword [0x42ad70], ebx
call esi
add esp, 4
cmp eax, ebx
mov dword [0x42b254], eax
jne 0x40638a
mov eax, dword [sym.imp.MSVCR71.dll__iob]
add eax, 0x40
push str.ERR:_Could_not_allocate_space_for_sub__aborting._n
push eax
call dword [sym.imp.MSVCR71.dll_fprintf]
add esp, 8
push 1
call dword [sym.imp.MSVCR71.dll_exit]
push edi
push 0x10000
call esi
add esp, 4
mov dword [0x42ad88], eax
call fcn.00404410
or edi, 0xffffffff
push 0x3e8
mov dword [0x42ad80], ebx
mov dword [0x42ad84], ebx
mov dword [0x42ad68], ebx
mov dword [0x42ad6c], ebx
mov dword [0x42ad58], edi
mov dword [0x42ad74], ebx
mov dword [0x42b24c], ebx
mov byte [0x42ad54], 0
mov dword [esp + 0x14], edi
mov dword [0x42ad50], edi
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [esp + 0x30]
push str.iohm:s:v:P
push esi
push ebp
call fcn.0040bd60
add esp, 0xc
cmp eax, edi
je 0x40653b
mov edi, dword [sym.imp.MSVCR71.dll__open]
mov ebx, dword [sym.imp.MSVCR71.dll_atoi]
nop
lea ecx, [eax - 0x50]
cmp ecx, 0x26
ja case.0x406423.81
movzx ecx, byte [ecx + 0x406b38]
jmp dword [ecx*4 + 0x406b18]
mov edx, dword [0x42a318]
mov eax, dword [esi + edx*4]
push 0x8000
push eax
call edi
add esp, 8
test eax, eax
mov dword [esp + 0x10], eax
jge 0x406516
mov ecx, dword [0x42a318]
mov edx, dword [esi + ecx*4]
push edx
push str.ERR:_Cannot_open_input_file_:__s_n
jmp 0x4065bb
mov ecx, dword [0x42a318]
mov edx, dword [esi + ecx*4]
push 0x180
push 0x8301
push edx
call edi
add esp, 0xc
test eax, eax
mov dword [0x42ad50], eax
jge 0x406516
mov ecx, dword [sym.imp.MSVCR71.dll__iob]
add ecx, 0x40
push str.ERR:_Cannot_open_output_file_n
push ecx
call dword [sym.imp.MSVCR71.dll_fprintf]
add esp, 8
jmp 0x405490
mov eax, dword [0x42b1f4]
movsx eax, byte [eax]
add eax, 0xffffffbd
cmp eax, 0x30
ja case.0x4064bc.69
movzx ecx, byte [eax + 0x406b70]
jmp dword [ecx*4 + 0x406b60]
mov dword [0x42ad70], 0
jmp 0x406516
mov dword [0x42ad70], 2
jmp 0x406516
mov dword [0x42ad70], 1
jmp 0x406516
mov edx, dword [0x42b1f4]
push edx
call ebx
add esp, 4
mov byte [0x42ad54], al
jmp 0x406516
mov eax, dword [0x42b1f4]
push eax
call ebx
add esp, 4
mov dword [0x42b24c], eax
jmp 0x406516
mov dword [0x42ad74], 1
push str.iohm:s:v:P
push esi
push ebp
call fcn.0040bd60
add esp, 0xc
cmp eax, 0xffffffff
jne 0x406410
mov eax, dword [esp + 0x10]
xor ebx, ebx
or edi, 0xffffffff
test eax, eax
jge 0x40654e
push 0x8000
push ebx
call dword [sym.imp.MSVCR71.dll__setmode]
add esp, 8
mov dword [esp + 0x10], ebx
cmp dword [0x42ad50], ebx
jge 0x406570
push 0x8000
push 1
call dword [sym.imp.MSVCR71.dll__setmode]
add esp, 8
mov dword [0x42ad50], 1
mov eax, dword [0x42ad70]
dec eax
je 0x4065f2
dec eax
je 0x4065d2
add byte [0x42ad54], 0x20
mov dword [0x42ad48], 0x6270
mov dword [0x42ad98], 0x800
jmp 0x406606
mov edx, dword [sym.imp.MSVCR71.dll__iob]
add edx, 0x40
push str.ERR:_Mode_must_be_one_of_dvd__svcd__or_cvd_n
push edx
call dword [sym.imp.MSVCR71.dll_fprintf]
add esp, 8
jmp 0x405490
push eax
push str.WARN:_Getopt_returned__d_n
mov eax, dword [sym.imp.MSVCR71.dll__iob]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR71.dll_fprintf]
add esp, 0xc
jmp 0x405490
mov dword [0x42ad60], 4
mov dword [0x42ad48], 0x1130
mov dword [0x42ad98], 0x914
jmp 0x40660c
mov dword [0x42ad48], 0xa28
mov dword [0x42ad98], 0x914
mov dword [0x42ad60], ebx
mov ecx, dword [0x42a318]
mov edx, dword [esi + ecx*4]
push edx
call fcn.00404f00
add esp, 4
test eax, eax
je 0x40662c
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
add esp, 0x18
ret
cmp dword [0x42ad58], ebx
mov ebp, dword [sym.imp.MSVCR71.dll_fprintf]
jl 0x406667
cmp dword [0x42b24c], ebx
jle 0x406667
fild dword [0x42ad58]
mov eax, dword [sym.imp.MSVCR71.dll__iob]
sub esp, 8
add eax, 0x40
fmul qword [0x423d18]
fstp qword [esp]
push str.INFO:_Subtitles_offset_by__fs_n
push eax
call ebp
add esp, 0x10
mov ecx, dword [0x42ad98]
push ecx
mov dword [0x42ad7c], ebx
mov dword [0x42b258], ebx
call dword [sym.imp.MSVCR71.dll_malloc]
mov dword [0x42ad24], eax
call fcn.004053b0
push ebx
mov dword [0x42ad20], eax
mov dword [0x42b250], ebx
mov dword [0x42ad5c], 0xc
mov dword [0x42ad90], ebx
mov dword [0x42ad94], ebx
mov dword [0x42ad80], ebx
mov dword [0x42ad84], ebx
mov dword [0x42ad78], edi
call fcn.004055d0
mov edi, dword [esp + 0x18]
push edi
mov eax, 4
lea ecx, [esp + 0x20]
call fcn.004052a0
add esp, 0xc
cmp eax, 4
jne 0x406a7d
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.WS2_32.dll_ntohl]
mov edi, eax
cmp edi, 0x1ba
je 0x4068fd
cmp edi, 0x1bb
jb 0x406800
cmp edi, 0x1ef
ja 0x406800
mov eax, dword [0x42ad50]
push eax
mov eax, 4
lea ecx, [esp + 0x18]
call fcn.00405330
mov ecx, dword [esp + 0x14]
push ecx
mov eax, 2
lea ecx, [esp + 0x20]
call fcn.004052a0
add esp, 8
cmp eax, 2
jne 0x406a79
mov edx, dword [0x42ad50]
push edx
lea ecx, [esp + 0x1c]
call fcn.00405330
mov eax, dword [esp + 0x1c]
add esp, 4
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
mov ecx, dword [esp + 0x10]
movzx esi, ax
push ecx
mov ecx, dword [0x42ad88]
mov dword [esp + 0x1c], eax
movzx eax, ax
call fcn.004052a0
add esp, 4
cmp eax, esi
jne 0x406a79
mov edx, dword [0x42ad50]
mov ecx, dword [0x42ad88]
push edx
mov eax, esi
call fcn.00405330
add esp, 4
cmp edi, 0x1e0
jne 0x406a54
cmp dword [0x42ad58], 0xffffffff
jne 0x406a54
cmp dword [0x42b24c], 5
jle 0x4067d5
mov eax, dword [sym.imp.MSVCR71.dll__iob]
add eax, 0x40
push str.INFO:_Video_stream_n
push eax
call ebp
add esp, 8
mov ecx, dword [0x42ad88]
call fcn.004050e0
cmp eax, 0xffffffff
je 0x406a54
mov ecx, dword [0x42ad20]
cmp ecx, ebx
je 0x4067f6
add dword [ecx + 0x10], eax
mov dword [0x42ad58], eax
jmp 0x406a54
cmp edi, 0x1b9
mov eax, 4
jne 0x406825
mov ecx, dword [0x42ad50]
push ecx
lea ecx, [esp + 0x18]
call fcn.00405330
add esp, 4
jmp 0x406a54
mov edx, dword [0x42ad50]
push edx
lea ecx, [esp + 0x18]
call fcn.00405330
mov eax, dword [0x42b24c]
add esp, 4
cmp eax, ebx
jle 0x40686f
mov eax, dword [esp + 0x14]
movzx edx, byte [esp + 0x16]
mov ecx, eax
shr ecx, 0x18
push ecx
push edx
mov edx, dword [sym.imp.MSVCR71.dll__iob]
movzx ecx, ah
push ecx
and eax, 0xff
push eax
add edx, 0x40
push str.WARN:_Unknown_header__.2x__.2x__.2x__.2x_n
push edx
call ebp
add esp, 0x18
mov dword [esp + 0x18], ebx
xor esi, esi
mov eax, dword [esp + 0x10]
push eax
mov eax, 1
lea ecx, [esp + 0x30]
call fcn.004052a0
add esp, 4
cmp eax, 1
jl 0x406a79
mov ecx, dword [0x42ad50]
push ecx
mov eax, 1
lea ecx, [esp + 0x30]
call fcn.00405330
movzx edx, byte [esp + 0x30]
mov eax, dword [0x42b24c]
shl esi, 8
add esp, 4
or esi, edx
cmp eax, 6
jle 0x4068d4
mov eax, dword [sym.imp.MSVCR71.dll__iob]
push esi
add eax, 0x40
push str.INFO:_0x_x_n
push eax
call ebp
add esp, 0xc
mov ecx, dword [esp + 0x18]
inc ecx
cmp esi, 0x1ba
mov dword [esp + 0x18], ecx
jne 0x406875
mov edx, dword [sym.imp.MSVCR71.dll__iob]
movzx ecx, cx
push ecx
add edx, 0x40
push str.INFO:_Skipped__d_bytes_of_garbage_n
push edx
call ebp
add esp, 0xc
cmp dword [0x42ad74], ebx
je 0x406948
mov esi, dword [0x42ad90]
mov eax, esi
and eax, 0x3ff
mov ecx, 0x2800
mul ecx
mov edi, eax
mov eax, dword [0x42ad98]
mov ecx, edx
cdq
cmp ecx, edx
ja 0x406948
jb 0x40692d
cmp edi, eax
jae 0x406948
mov edx, dword [0x42ad94]
mov eax, dword [sym.imp.MSVCR71.dll__iob]
push edx
push esi
add eax, 0x40
push str.INFO:__I64_bytes_of_data_written_r
push eax
call ebp
add esp, 0x10
cmp dword [0x42b24c], 5
jle 0x406965
mov ecx, dword [sym.imp.MSVCR71.dll__iob]
add ecx, 0x40
push str.INFO:_pack_start_code_n
push ecx
call ebp
add esp, 8
mov edx, dword [esp + 0x10]
push edx
mov eax, 0xa
lea ecx, [esp + 0x20]
call fcn.004052a0
add esp, 4
cmp eax, 0xa
jne 0x406a79
lea ecx, [esp + 0x1c]
call fcn.00404fe0
mov dword [0x42ad80], eax
and eax, edx
cmp eax, 0xffffffff
mov dword [0x42ad84], edx
je 0x4069da
push ebx
call fcn.004055d0
add esp, 4
mov edx, 0x42ad68
mov eax, 0x42ad80
call fcn.004050a0
mov ecx, dword [esp + 0x22]
movzx eax, byte [esp + 0x24]
movzx edx, cl
movzx ecx, ch
shr eax, 2
shl edx, 0xe
or eax, edx
shl ecx, 6
or eax, ecx
mov dword [0x42ad48], eax
jmp 0x406a12
cmp dword [0x42b24c], 0xffffffff
jle 0x4069f7
mov edx, dword [sym.imp.MSVCR71.dll__iob]
add edx, 0x40
push str.WARN:_Incorrect_pack_header_n
push edx
call ebp
add esp, 8
mov eax, dword [0x42ad68]
mov ecx, dword [0x42ad6c]
mov dword [0x42ad80], eax
mov eax, dword [0x42ad48]
mov dword [0x42ad84], ecx
mov edx, dword [0x42ad84]
push ebx
push eax
mov eax, dword [0x42ad80]
push edx
push eax
call fcn.00404f20
mov ecx, dword [0x42ad50]
push ecx
mov eax, 4
lea ecx, [esp + 0x28]
call fcn.00405330
mov edx, dword [0x42ad50]
push edx
mov eax, 0xa
mov ecx, 0x42ad28
call fcn.00405330
add esp, 0x18
push ebx
call fcn.004055d0
mov eax, dword [esp + 0x14]
push eax
mov eax, 4
lea ecx, [esp + 0x1c]
call fcn.004052a0
add esp, 8
cmp eax, 4
je 0x4066e2
mov edi, dword [esp + 0x10]
push 1
call fcn.004055d0
mov eax, dword [0x42ad78]
add esp, 4
cmp eax, 0xffff
je 0x406acb
fild dword [0x42ad58]
movzx ecx, byte [0x42ad54]
mov edx, dword [0x42b258]
sub esp, 8
fmul qword [0x423d18]
inc eax
fstp qword [esp]
push ecx
push edx
push eax
mov eax, dword [sym.imp.MSVCR71.dll__iob]
add eax, 0x40
push str.INFO:__d_subtitles_added___d_subtitles_skipped__stream:__d__offset:__.2f_n
push eax
call ebp
add esp, 0x1c
jmp 0x406adf
mov ecx, dword [sym.imp.MSVCR71.dll__iob]
add ecx, 0x40
push 0x423e58
push ecx
call ebp
add esp, 8
call fcn.0040b150
call fcn.0040b210
call fcn.00404410
cmp edi, ebx
mov esi, dword [sym.imp.MSVCR71.dll__close]
je 0x406afe
push edi
call esi
add esp, 4
mov eax, dword [0x42ad50]
cmp eax, 1
je 0x406b0e
push eax
call esi
add esp, 4
pop edi
pop esi
pop ebx
xor eax, eax
pop ebp
add esp, 0x18
ret