Function at 0x4039c0
Capabilities:
Read file on windows
Terminate process
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 0xc]
mov dword [esp + 8], 0x1d
mov dword [esp + 4], 1
mov dword [esp], str.INFO:_dvdauthor_creating_VTS_n
mov dword [esp + 0xc], eax
call sub.cygwin1.dll_fwrite
mov eax, dword [ebp + 0x10]
call fcn.00401810
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x10], edx
mov edx, 1
mov dword [ebp - 0x14], eax
call fcn.00403940
mov ecx, dword [ebp + 8]
mov ebx, dword [ecx]
test ebx, ebx
jle 0x403abe
mov esi, dword [ecx + 4]
xor edi, edi
lea ebx, [edi*8]
mov eax, dword [esi + ebx + 4]
call fcn.00401940
mov eax, dword [ebp + 8]
mov edx, dword [eax + 8]
mov eax, dword [eax + 4]
mov eax, dword [eax + ebx + 4]
call fcn.00401fd0
mov eax, dword [ebp + 8]
mov esi, dword [eax + 4]
mov edx, dword [esi + ebx + 4]
mov eax, dword [edx + 8]
test eax, eax
jne 0x403a65
mov ecx, dword [0x41f028]
test ecx, ecx
je 0x403ab0
mov ecx, dword [edx + 0xc]
test cl, cl
js 0x403a90
test eax, eax
je 0x403a7f
mov eax, dword [edx + 4]
mov eax, dword [eax]
or dword [eax + 0x14], 0x80
mov ecx, dword [edx + 0xc]
or cl, 0x80
mov dword [edx + 0xc], ecx
add dword [edx + 0x10], 1
mov edx, dword [esi + ebx + 4]
mov eax, dword [edx + 8]
test eax, eax
je 0x403ab0
test byte [edx + 0xc], 8
jne 0x403ab0
mov eax, dword [edx + 4]
mov eax, dword [eax]
or dword [eax + 0x14], 8
or dword [edx + 0xc], 8
add dword [edx + 0x10], 1
nop
lea esi, [esi]
mov edx, dword [ebp + 8]
add edi, 1
cmp dword [edx], edi
jg 0x403a28
mov eax, dword [ebp + 0xc]
call fcn.00401940
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x14]
mov eax, ecx
call fcn.00401fd0
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
test eax, eax
je 0x403cbf
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x403b7c
mov ebx, 1
jmp 0x403b03
add ebx, 1
mov dword [esp], eax
call sub.cygwin1.dll_fclose
cmp ebx, 0x64
je 0x403b3a
mov edx, dword [ebp + 0x10]
mov dword [esp + 0xc], ebx
mov dword [esp + 4], str._s_VIDEO_TS_VTS__02d_0.IFO
mov dword [esp], 0x41f810
mov dword [esp + 8], edx
call sub.cygwin1.dll_sprintf
mov dword [esp + 4], 0x417f56
mov dword [esp], 0x41f810
call sub.cygwin1.dll__fopen64
test eax, eax
jne 0x403af3
call sub.cygwin1.dll___getreent
mov dword [esp + 8], ebx
mov dword [esp + 4], str.STAT:_Picking_VTS__02d_n
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0xc], ebx
mov dword [esp + 4], str._s_VIDEO_TS_VTS__02d
mov dword [esp], 0x41f030
mov dword [esp + 8], ecx
call sub.cygwin1.dll_sprintf
mov dword [ebp + 0x10], 0x41f030
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
mov esi, dword [eax + 8]
test esi, esi
jne 0x403c85
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [esp + 8], 0
mov eax, dword [edx + 0x14]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.0040e0f0
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x14]
mov dword [esp], eax
call fcn.0040be90
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov eax, dword [ecx + 0x14]
call fcn.00402220
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov ebx, dword [ecx + 8]
test ebx, ebx
je 0x403c50
call sub.cygwin1.dll___getreent
lea ebx, [ebp - 0x18]
mov eax, dword [eax + 0xc]
mov dword [esp], 0xa
mov dword [esp + 4], eax
call sub.cygwin1.dll_fputc
mov edx, dword [ebp + 0x10]
mov dword [esp + 4], ebx
mov dword [esp], edx
call fcn.0040b600
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 8]
mov edx, dword [eax + 8]
test edx, edx
je 0x403c24
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0xc], 1
mov dword [esp + 8], ebx
mov dword [esp], eax
call fcn.0040c450
mov edx, dword [ebp + 0xc]
mov dword [esp + 8], ebx
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0xc], 0
mov eax, dword [edx + 0x14]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.0040c450
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + 0x14]
mov eax, dword [edx + 0x18]
mov dword [ecx + 0x18], eax
mov eax, dword [edx + 0x1c]
mov dword [ecx + 0x1c], eax
mov eax, dword [edx + 0x20]
mov dword [ecx + 0x20], eax
mov eax, dword [edx + 0x24]
mov dword [ecx + 0x24], eax
mov eax, dword [edx + 0x28]
mov dword [ecx + 0x28], eax
mov eax, dword [edx + 0x2c]
mov dword [ecx + 0x2c], eax
mov eax, dword [edx + 0x30]
mov dword [ecx + 0x30], eax
jmp 0x403bd2
mov ecx, dword [ebp + 0x10]
mov dword [esp + 8], 1
mov dword [esp + 4], eax
mov dword [esp], ecx
call fcn.0040e0f0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
mov dword [esp], eax
call fcn.0040be90
mov ecx, dword [ebp + 8]
mov edx, 1
mov eax, dword [ecx + 8]
call fcn.00402220
jmp 0x403b8d
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 0xc]
mov dword [esp + 8], 0x18
mov dword [esp + 4], 1
mov dword [esp], str.ERR:__no_titles_defined_n
mov dword [esp + 0xc], eax
call sub.cygwin1.dll_fwrite
mov dword [esp], 1
call sub.cygwin1.dll_exit
lea esi, [esi]
lea edi, [edi]