Function at 0x519bb0
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x8c
mov ebx, dword [esp + 0xa0]
mov dword [esp], ebx
call sub.msvcrt.dll_strlen
add eax, 5
mov dword [esp], eax
call sub.msvcrt.dll_malloc
mov dword [esp + 0x64], 0
test eax, eax
mov esi, eax
je 0x519cd8
mov dword [esp], 0xc
call sub.msvcrt.dll_malloc
test eax, eax
mov edi, eax
mov dword [esp + 0x64], eax
je 0x519cd8
mov eax, dword [esp + 0xb4]
mov dword [edi + 8], eax
mov dword [esp + 4], ebx
mov dword [esp], esi
call sub.msvcrt.dll_strcpy
mov dword [esp], esi
call sub.msvcrt.dll_strlen
lea eax, [esi + eax]
mov dword [eax], 0x6275732e
mov byte [eax + 4], 0
mov dword [esp + 4], 0x9ed783
mov dword [esp], esi
call sub.msvcrt.dll_fopen
test eax, eax
mov dword [edi], eax
je 0x519f86
mov dword [esp + 4], ebx
mov dword [esp], esi
call sub.msvcrt.dll_strcpy
mov dword [esp], esi
call sub.msvcrt.dll_strlen
lea eax, [esi + eax]
mov dword [eax], 0x7864692e
mov byte [eax + 4], 0
mov dword [esp + 4], 0x9ed783
mov dword [esp], esi
call sub.msvcrt.dll_fopen
test eax, eax
mov dword [edi + 4], eax
je 0x519f75
mov dword [esp], eax
call sub.msvcrt.dll_ftell
test eax, eax
je 0x519ce7
mov ecx, dword [esp + 0xb0]
test ecx, ecx
je 0x519ee8
mov eax, dword [esp + 0xb4]
mov dword [esp + 4], str._nid:__s__index:__u_n
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xb0]
mov dword [esp + 8], eax
mov eax, dword [edi + 4]
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov eax, dword [edi + 4]
mov dword [esp], eax
call sub.msvcrt.dll_fflush
mov dword [esp], esi
call fcn.008f2ba8
mov eax, dword [esp + 0x64]
add esp, 0x8c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0xac]
lea ebp, [edi + 4]
mov dword [esp + 4], str._VobSub_index_file__v7__do_not_modify_this_line___n_n_Generated_by__s_n_See__URL:http:__www.mplayerhq.hu___for_more_information_about_MPlayer_n_See__URL:http:__wiki.multimedia.cx_index.php_titleVOBsub__for_more_information_about_Vobsub_n_nsize:__ux_u_n
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xa8]
mov dword [esp + 0xc], eax
mov eax, dword [str.MPlayer_SVN_r33883_20110719_gcc4.5.2_]
mov dword [esp + 8], eax
mov eax, dword [edi + 4]
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov ebx, dword [esp + 0xa4]
test ebx, ebx
je 0x519f20
mov eax, dword [edi + 4]
xor ebx, ebx
mov dword [esp + 8], 8
mov dword [esp + 4], 1
mov dword [esp], str.palette:
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov dword [esp + 0x6c], esi
mov esi, dword [esp + 0xa4]
mov dword [esp + 0x68], edi
fld dword [0x9edab0]
jmp 0x519e4f
mov edx, dword [eax]
mov byte [edx], 0x2c
add edx, 1
mov dword [eax], edx
fnstcw word [esp + 0x7e]
fld qword [0x9edb40]
fmul st(1)
movzx eax, word [esp + 0x7e]
fadd st(3)
mov ah, 0xc
mov word [esp + 0x7c], ax
fldcw word [esp + 0x7c]
fistp dword [esp + 0x78]
fldcw word [esp + 0x7e]
mov eax, dword [esp + 0x78]
test eax, 0xffffff00
mov edi, eax
je 0x519db4
mov edi, eax
neg edi
sar edi, 0x1f
fld qword [0x9edb48]
and edi, 0xff
fmul st(2)
fsubr st(3)
fxch st(1)
fmul qword [0x9edb50]
fsubp st(1)
fldcw word [esp + 0x7c]
fistp dword [esp + 0x78]
fldcw word [esp + 0x7e]
mov eax, dword [esp + 0x78]
test eax, 0xffffff00
mov ecx, eax
je 0x519dee
mov ecx, eax
neg ecx
sar ecx, 0x1f
fmul qword [0x9edb58]
movzx ecx, cl
faddp st(1)
fldcw word [esp + 0x7c]
fistp dword [esp + 0x78]
fldcw word [esp + 0x7e]
mov eax, dword [esp + 0x78]
test eax, 0xffffff00
mov edx, eax
je 0x519e19
neg eax
mov edx, eax
sar edx, 0x1f
movzx edx, dl
add ebx, 1
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
mov dword [esp + 4], str.__02x_02x_02x
mov eax, dword [ebp]
fstp qword [esp + 0x20]
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
cmp ebx, 0x10
fld qword [esp + 0x20]
je 0x519ef8
mov eax, dword [esi + ebx*4]
xor ecx, ecx
mov dword [esp + 0x74], ecx
xor ecx, ecx
mov edx, eax
shr edx, 0x10
and edx, 0xff
mov dword [esp + 0x70], edx
movzx edx, ah
and eax, 0xff
fild qword [esp + 0x70]
mov dword [esp + 0x70], edx
xor edx, edx
test ebx, ebx
mov dword [esp + 0x74], ecx
fild qword [esp + 0x70]
fsub st(2)
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], edx
fild qword [esp + 0x70]
fsub st(3)
je 0x519d7a
mov eax, dword [ebp]
mov edx, dword [eax + 4]
sub edx, 1
test edx, edx
mov dword [eax + 4], edx
jns 0x519d70
fxch st(1)
fstp qword [esp + 0x40]
fstp qword [esp + 0x30]
fstp qword [esp + 0x50]
fstp qword [esp + 0x20]
mov dword [esp + 4], eax
mov dword [esp], 0x2c
call sub.msvcrt.dll__flsbuf
fld qword [esp + 0x20]
fld qword [esp + 0x50]
fld qword [esp + 0x30]
fld qword [esp + 0x40]
fxch st(1)
jmp 0x519d7a
mov dword [esp + 0xb0], 0x9ed780
jmp 0x519c9c
fstp st(0)
mov edi, dword [esp + 0x68]
mov esi, dword [esp + 0x6c]
mov eax, dword [edi + 4]
mov edx, dword [eax + 4]
sub edx, 1
test edx, edx
mov dword [eax + 4], edx
js 0x519f97
mov edx, dword [eax]
mov byte [edx], 0xa
add edx, 1
mov dword [eax], edx
mov eax, dword [edi + 4]
mov dword [esp + 8], 0x4d
mov dword [esp + 4], 1
mov dword [esp], str._ON:_displays_only_forced_subtitles__OFF:_shows_everything_nforced_subs:_OFF_n
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0xb4]
mov dword [esp + 4], str._n_Language_index_in_use_nlangidx:__u_n
mov dword [esp + 8], eax
mov eax, dword [edi + 4]
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov ecx, dword [esp + 0xb0]
test ecx, ecx
jne 0x519c9c
jmp 0x519ee8
mov dword [esp], str.Error:_vobsub_out_open_index_file_open_failed
call sub.msvcrt.dll_perror
jmp 0x519cd0
mov dword [esp], str.Error:_vobsub_out_open_subtitle_file_open_failed
call sub.msvcrt.dll_perror
jmp 0x519c45
mov dword [esp + 4], eax
mov dword [esp], 0xa
call sub.msvcrt.dll__flsbuf
jmp 0x519f20