Function at 0x4f5c30
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x8c
mov eax, dword [esp + 0xa0]
mov esi, dword [eax]
mov edx, dword [esi + 0x54]
fld qword [esi + 0x10]
fstp qword [esp + 0x70]
mov dword [esp + 0x6c], edx
call fcn.004f4c40
mov dword [esp + 0x58], eax
mov ebx, dword [esp + 0x58]
mov eax, dword [esp + 0xa8]
test ebx, ebx
mov dword [eax], 0
jne 0x4f5fc4
mov eax, dword [sym.imp.msvcrt.dll__iob]
fldz
mov dword [esp + 0x54], 0
fstp dword [esp + 0x64]
mov dword [esp + 0x60], 0
add eax, 0x40
mov dword [esp + 0x5c], eax
mov ebp, dword [0xbe18d8]
cmp ebp, 0xc7ffb
jg 0x4f5d31
mov dword [esp], esi
call fcn.004f3c60
mov ecx, dword [esp + 0x54]
mov ebp, dword [0xbe18d8]
test ecx, ecx
mov ebx, eax
je 0x4f5e60
lea eax, [eax - 0x101]
cmp eax, 0xae
ja 0x4f653a
mov dword [esp + 0x54], 1
mov dword [esp], esi
call fcn.004f3d40
test eax, eax
je 0x4f5e84
add ebp, 4
cmp ebx, 0x1b2
je 0x4f5ee0
jg 0x4f5e96
cmp ebx, 0x100
jne 0x4f5c95
mov eax, dword [0xbe18d4]
movzx eax, byte [eax + ebp + 1]
mov ebp, dword [0xbe18d8]
shr al, 3
mov edx, eax
and edx, 7
cmp ebp, 0xc7ffb
mov dword [esp + 0x60], edx
jle 0x4f5ca7
fild dword [0xbe18f8]
fmul dword [0xbe18f4]
mov eax, dword [0xbe18d4]
mov edx, dword [esp + 0xa8]
fild dword [0xbe18fc]
fdivp st(1)
mov dword [edx], eax
mov eax, dword [esp + 0xa0]
fld dword [eax + 0x164]
fcom st(1)
fnstsw ax
sahf
je 0x4f5d85
mov edx, dword [esp + 0xac]
test edx, edx
jne 0x4f5d8b
mov eax, dword [0xbe192c]
test eax, eax
je 0x4f6585
fstp st(0)
fstp st(0)
jmp 0x4f5d8f
fstp st(0)
fstp st(0)
jmp 0x4f5d8f
fstp st(0)
fstp st(0)
fild dword [0xbe1918]
fmul dword [0x9ea73c]
mov dword [0xbe1918], 0x64
mov dword [0xbe18d8], 0
mov dword [esp + 8], str._r_telecine___3.1f___5.3f______n
mov dword [esp + 4], 7
mov dword [esp], 0xd
fld qword [0x9ea740]
fmul dword [0x9136ac]
fld st(1)
fadd dword [0x9ea748]
faddp st(1)
fst dword [0x9136ac]
fstp qword [esp + 0x14]
fst qword [esp + 0xc]
fstp dword [esp + 0x30]
call fcn.0042b9b0
mov edi, dword [0xbe192c]
test edi, edi
fld dword [esp + 0x30]
je 0x4f61c0
fstp st(0)
fld dword [0x9136ac]
fld dword [0x9ea74c]
fcomp st(1)
fnstsw ax
sahf
ja 0x4f5e2b
fcomp dword [0x9ea750]
fnstsw ax
sahf
jbe 0x4f655c
jmp 0x4f5e2d
fstp st(0)
mov dword [esp + 8], str._ndemux_mpg:_30000_1001fps_NTSC_content_detected__switching_framerate._n
mov dword [esp + 4], 4
mov dword [esp], 0xd
call fcn.0042b9b0
mov dword [0xbe192c], 0
fld1
jmp 0x4f6053
cmp eax, 0x100
je 0x4f5fb3
lea eax, [eax - 0x101]
cmp eax, 0xae
jbe 0x4f5cd4
test ebx, ebx
jne 0x4f5cdc
mov ebp, 0xffffffff
add esp, 0x8c
mov eax, ebp
pop ebx
pop esi
pop edi
pop ebp
ret
cmp ebx, 0x1b3
je 0x4f5ec5
cmp ebx, 0x1b5
jne 0x4f5c95
add ebp, dword [0xbe18d4]
mov dword [esp], 0xbe18e0
mov dword [esp + 4], ebp
call fcn.004f21c0
jmp 0x4f5c95
add ebp, dword [0xbe18d4]
mov dword [esp], 0xbe18e0
mov dword [esp + 4], ebp
call fcn.004f20e0
jmp 0x4f5c95
mov edi, dword [0xbe18d8]
sub edi, ebp
add ebp, dword [0xbe18d4]
cmp edi, 2
jle 0x4f5f07
cmp byte [ebp], 0x43
je 0x4f6170
cmp byte [ebp], 0x54
je 0x4f6191
cmp dword [0xbd7e20], 1
jle 0x4f5c95
movzx eax, byte [ebp + 3]
mov dword [esp + 0x18], eax
movzx eax, byte [ebp + 2]
mov dword [esp + 0x14], eax
movzx eax, byte [ebp + 1]
mov dword [esp + 0x10], eax
movzx eax, byte [ebp]
mov dword [esp + 8], edi
mov dword [esp + 4], str.user_data:_len_3d___02X__02X__02X__02X_
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
test edi, edi
jle 0x4f5f8a
mov dword [esp + 0x68], esi
xor ebx, ebx
mov esi, dword [esp + 0x5c]
jmp 0x4f5f67
add ebx, 1
cmp edi, ebx
jle 0x4f5f86
movzx eax, byte [ebp + ebx]
test al, 0x60
je 0x4f5f60
and eax, 0x7f
add ebx, 1
mov dword [esp + 4], esi
mov dword [esp], eax
call sub.msvcrt.dll_fputc
cmp edi, ebx
jg 0x4f5f67
mov esi, dword [esp + 0x68]
mov edx, dword [esp + 0x5c]
mov dword [esp + 8], 2
mov dword [esp + 4], 1
mov dword [esp], 0x9ea51a
mov dword [esp + 0xc], edx
call sub.msvcrt.dll_fwrite
jmp 0x4f5c95
fld qword [esi + 0x10]
fstp dword [esp + 0x64]
fldz
fstp qword [esi + 0x10]
jmp 0x4f5cdc
cmp dword [esp + 0x58], 1
je 0x4f6120
cmp dword [esp + 0x58], 2
je 0x4f6471
cmp dword [esp + 0x58], 3
jne 0x4f6665
mov ebp, dword [0xbe18d8]
cmp ebp, 0xc7ffb
jg 0x4f6023
mov dword [esp], esi
call fcn.004f3c60
test eax, eax
mov ebx, eax
je 0x4f5e84
mov dword [esp], esi
call fcn.004f3d40
test eax, eax
je 0x4f5e84
cmp ebx, 0x10d
jne 0x4f5fe5
mov ebp, dword [0xbe18d8]
mov eax, dword [0xbe18d4]
fldz
mov edx, dword [esp + 0xa8]
mov dword [edx], eax
fstp dword [esp + 0x64]
mov dword [0xbe18d8], 0
fld1
mov dword [esp + 0x60], 0
jmp 0x4f6053
fstp st(0)
jmp 0x4f6053
fstp st(0)
mov eax, dword [esp + 0xa0]
mov ecx, dword [esp + 0xac]
fld dword [eax + 0x3c]
fadd st(1)
add dword [eax + 0x40], 1
test ecx, ecx
fstp dword [eax + 0x3c]
fmul dword [eax + 0x168]
jne 0x4f60b2
mov edx, dword [esp + 0x6c]
fld qword [esp + 0x70]
mov eax, dword [edx + 0x44]
sub eax, 6
cmp eax, 0x28
jbe switch.0x004f61b2
fstp st(0)
jmp 0x4f60b2
fstp st(0)
jmp 0x4f60b2
fstp st(0)
jmp 0x4f60b2
fstp st(0)
lea esi, [esi]
jmp 0x4f60b2
fstp st(0)
fstp st(0)
jmp 0x4f60b2
fstp st(0)
fstp st(0)
jmp 0x4f60b2
fstp st(0)
fstp st(0)
mov edx, dword [esp + 0x58]
test edx, edx
jne 0x4f6161
mov edx, dword [esp + 0xa0]
cmp dword [esp + 0x60], 1
fld qword [edx + 0x20]
fadd st(1)
fstp qword [edx + 0x20]
je 0x4f628a
cmp dword [esp + 0x60], 2
jg 0x4f60e6
jmp 0x4f628e
fstp st(0)
fld dword [esp + 0x64]
ftst
fnstsw ax
sahf
jne 0x4f6270
fstp st(0)
mov eax, dword [esp + 0xa4]
test eax, eax
je 0x4f610d
mov edx, dword [esp + 0xa4]
fstp dword [edx]
jmp 0x4f6110
fstp st(0)
nop
add esp, 0x8c
mov eax, ebp
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebp, dword [0xbe18d8]
cmp ebp, 0xc7ffb
jg 0x4f6023
mov dword [esp], esi
call fcn.004f3c60
test eax, eax
mov ebx, eax
je 0x4f5e84
mov dword [esp], esi
call fcn.004f3d40
test eax, eax
je 0x4f5e84
cmp ebx, 0x1b6
jne 0x4f6120
jmp 0x4f601d
mov eax, dword [esp + 0xa0]
fld qword [esi + 0x10]
fstp qword [eax + 0x20]
jmp 0x4f60f7
cmp byte [ebp + 1], 0x43
jne 0x4f5efd
lea eax, [edi - 2]
mov dword [esp + 4], eax
lea eax, [ebp + 2]
mov dword [esp], eax
call fcn.00509940
jmp 0x4f5efd
cmp byte [ebp + 1], 0x59
jne 0x4f5f07
sub edi, 2
add ebp, 2
mov dword [esp + 4], edi
mov dword [esp], ebp
call fcn.004e73c0
jmp 0x4f5c95
jmp dword [eax*4 + 0x9ea688]
fld dword [0x9136ac]
fcom dword [0x9ea754]
fnstsw ax
sahf
jbe 0x4f604d
mov ebx, dword [esp + 0xac]
test ebx, ebx
jne 0x4f6051
fcomp dword [0x9ea758]
fnstsw ax
sahf
jae 0x4f6053
mov edx, dword [esp + 0xa0]
fld dword [0x9ea75c]
fmul dword [edx + 0x164]
fstp dword [edx + 0x164]
fld dword [0x9ea760]
fmul dword [edx + 0x168]
fstp dword [edx + 0x168]
fstp dword [esp + 0x30]
mov dword [esp + 8], str._ndemux_mpg:_24000_1001fps_progressive_NTSC_content_detected__switching_framerate._n
mov dword [esp + 4], 4
mov dword [esp], 0xd
call fcn.0042b9b0
mov eax, dword [esp + 0xa0]
mov dword [0xbe192c], 1
fld dword [esp + 0x30]
fld dword [eax + 0x3c]
fadd st(1)
add dword [eax + 0x40], 1
fstp dword [eax + 0x3c]
fmul dword [eax + 0x168]
jmp 0x4f6077
cmp dword [esp + 0x60], 2
jg 0x4f6547
mov eax, dword [esp + 0xa0]
fstp qword [eax + 0x48]
jmp 0x4f60f7
or dword [esi + 0x34], 1
mov eax, dword [esp + 0xa0]
fld qword [eax + 0x48]
ftst
fnstsw ax
sahf
je 0x4f60e4
mov edx, dword [esp + 0xa0]
fstp qword [edx + 0x20]
fld dword [esp + 0x64]
fstp qword [edx + 0x48]
jmp 0x4f60f7
mov edx, dword [esp + 0xa0]
fld dword [edx + 0x164]
fnstcw word [esp + 0x7e]
movzx eax, word [esp + 0x7e]
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]
cmp eax, 1
jle 0x4f62fa
cmp eax, 0x3e8
jne 0x4f6096
fxch st(1)
jmp 0x4f62fc
fxch st(1)
fstp dword [esp + 0x30]
fstp dword [esp + 0x40]
mov dword [esp], esi
call fcn.004962e0
fld dword [0x9ea764]
fld dword [esp + 0x30]
fld dword [esp + 0x40]
fxch st(3)
fcom st(2)
fnstsw ax
fstp st(2)
sahf
je 0x4f6697
fstp st(2)
fsub qword [esi + 0x10]
ftst
fnstsw ax
sahf
jb 0x4f609a
fstp st(1)
jmp 0x4f60b2
fld qword [esi + 0x10]
ftst
fnstsw ax
sahf
jbe 0x4f60a2
fxch st(1)
ftst
fnstsw ax
sahf
jbe 0x4f60a8
fxch st(1)
fcom st(1)
fnstsw ax
sahf
jbe 0x4f60ae
fstp st(2)
fxch st(1)
fsubrp st(1)
jmp 0x4f60b2
fstp st(1)
fstp dword [esp + 0x40]
mov dword [esp], esi
call fcn.004962e0
fld dword [0x9ea764]
fld dword [esp + 0x40]
fxch st(2)
fcom st(1)
fnstsw ax
fstp st(1)
sahf
jne 0x4f657b
fstp st(0)
fld qword [esi + 0x10]
fsub st(1)
ftst
fnstsw ax
sahf
jb 0x4f63bb
fxch st(1)
ftst
fnstsw ax
fstp st(0)
sahf
ja 0x4f60b2
fstp st(0)
jmp 0x4f63bf
fstp st(0)
fstp st(0)
fld dword [0x9ea738]
jmp 0x4f60b2
fxch st(1)
fstp dword [esp + 0x30]
fstp dword [esp + 0x40]
mov dword [esp], esi
call fcn.004962e0
fld dword [0x9ea764]
fld dword [esp + 0x30]
fld dword [esp + 0x40]
fxch st(3)
fcom st(2)
fnstsw ax
fstp st(2)
sahf
jne 0x4f6563
fld qword [esi + 0x10]
fsubr st(3), st(0)
fxch st(3)
ftst
fnstsw ax
sahf
jb 0x4f66a5
fstp st(2)
fstp st(0)
fstp st(1)
jbe 0x4f60b2
mov edx, dword [esp + 0xa0]
fld dword [edx + 0x164]
fnstcw word [esp + 0x7e]
movzx eax, word [esp + 0x7e]
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]
cmp eax, 0x3e8
je 0x4f66e6
mov eax, dword [esp + 0xa0]
fld st(0)
fst dword [eax + 0x168]
fxch st(1)
fdivr dword [0x9ea72c]
fstp dword [eax + 0x164]
jmp 0x4f60b2
xor edi, edi
mov ebp, dword [0xbe18d8]
cmp ebp, 0xc7ffb
jg 0x4f6023
mov dword [esp], esi
call fcn.004f3c60
mov ebp, dword [0xbe18d8]
test eax, eax
mov ebx, eax
je 0x4f5e84
mov dword [esp], esi
call fcn.004f3d40
test eax, eax
je 0x4f5e84
mov eax, ebx
and eax, 0xffffff9f
cmp eax, 0x107
je 0x4f65e4
and ebx, 0xffffff9f
lea eax, [ebx - 0x101]
cmp eax, 1
jbe 0x4f64d7
cmp ebx, 0x105
je 0x4f64d7
test edi, edi
je 0x4f6473
mov dword [esp], esi
call fcn.004f3c60
and eax, 0xffffff9f
cmp eax, 0x109
je 0x4f601d
cmp eax, 0x106
je 0x4f601d
lea edx, [eax - 0x101]
cmp edx, 1
jbe 0x4f6513
cmp eax, 0x105
mov edi, 1
jne 0x4f6473
mov eax, dword [esi]
cmp eax, dword [esi + 4]
jge 0x4f6723
mov edx, dword [esi + 8]
movzx edx, byte [edx + eax]
shr dl, 7
test dl, dl
jne 0x4f601d
mov edi, 1
jmp 0x4f6473
test ebx, ebx
jne 0x4f5d31
jmp 0x4f5e84
fstp st(0)
mov eax, dword [esp + 0xa0]
fld dword [esp + 0x64]
fstp qword [eax + 0x20]
jmp 0x4f60f7
fld1
jmp 0x4f6053
fstp st(2)
fxch st(1)
fld qword [esi + 0x10]
fld st(2)
fsub st(1)
fxch st(1)
fxch st(3)
fxch st(2)
fxch st(1)
jmp 0x4f6400
fld qword [esi + 0x10]
fsubp st(1)
jmp 0x4f63a1
fld st(0)
mov eax, dword [0xbe18f0]
fsub st(2)
mov dword [esp + 8], str.Warning__FPS_changed__5.3f_____5.3f____f____d____n
mov dword [esp + 4], 2
fstp qword [esp + 0x1c]
fxch st(1)
mov dword [esp + 0x24], eax
fst qword [esp + 0x14]
fxch st(1)
mov dword [esp], 1
fstp qword [esp + 0xc]
fstp dword [esp + 0x40]
call fcn.0042b9b0
mov edx, dword [esp + 0xa0]
fld dword [esp + 0x40]
fst dword [edx + 0x164]
fdivr dword [0x9ea72c]
fstp dword [edx + 0x168]
jmp 0x4f5d8f
cmp ebx, 0x107
je 0x4f64bd
mov eax, dword [0xbe18d8]
add ebp, 4
mov dword [esp], 0xbe18e0
sub eax, ebp
add ebp, dword [0xbe18d4]
mov dword [esp + 8], eax
mov dword [esp + 4], ebp
call fcn.004f2ac0
fld dword [0xbe18f4]
ftst
fnstsw ax
sahf
jbe 0x4f663a
mov edx, dword [esp + 0xa0]
fst dword [edx + 0x164]
fld1
fdivrp st(1)
fstp dword [edx + 0x168]
jmp 0x4f663c
fstp st(0)
mov dword [esp], esi
call fcn.004f3c60
test eax, eax
mov ebx, eax
je 0x4f5e84
mov dword [esp], esi
call fcn.004f3d40
test eax, eax
jne 0x4f64bd
nop
jmp 0x4f5e84
mov eax, dword [esp + 0xa8]
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.004960e0
test eax, eax
mov ebp, eax
js 0x4f5e84
fldz
fstp dword [esp + 0x64]
mov dword [esp + 0x60], 0
fld1
jmp 0x4f6053
fstp st(1)
fld qword [esi + 0x10]
fsubrp st(2)
fxch st(1)
jmp 0x4f632e
fxch st(1)
fst qword [esp + 0x24]
fxch st(1)
mov dword [esp + 8], str._nInvalid_frame_duration_value___5.3f__5.3f____5.3f_._Defaulting_to__5.3f_sec._n
fstp qword [esp + 0x1c]
fxch st(1)
fstp qword [esp + 0x14]
fxch st(1)
fstp qword [esp + 0xc]
fstp dword [esp + 0x30]
mov dword [esp + 4], 2
mov dword [esp], 1
call fcn.0042b9b0
fld dword [esp + 0x30]
jmp 0x4f60b2
fld st(0)
fdivr dword [0x9ea72c]
mov dword [esp + 8], str._navg._framerate:__d_fps______________n
mov dword [esp + 4], 6
mov dword [esp], 1
fldcw word [esp + 0x7c]
fistp dword [esp + 0xc]
fldcw word [esp + 0x7e]
fstp qword [esp + 0x40]
call fcn.0042b9b0
fld qword [esp + 0x40]
jmp 0x4f644f
mov dword [esp], esi
call fcn.00495280
mov edx, 1
test eax, eax
je 0x4f6528
mov edx, dword [esi + 8]
mov eax, dword [esi]
movsx edx, byte [edx + eax]
shr edx, 0x1f
jmp 0x4f6528