Function at 0x1400aab80
Capabilities:
Check if file exists
Get file size
Reference absolute stream path on windows
Write file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
mov eax, 0x500230
call fcn.140101360
sub rsp, rax
mov rax, qword [0x140173240]
xor rax, rsp
mov qword [rsp + 0x500220], rax
mov dword [rsp + 0x68], 0
mov qword [rsp + 0x48], 0
mov rax, qword [rsp + 0x500250]
movzx eax, byte [rax + 0x28]
cmp eax, 2
je 0x1400aac38
mov rax, qword [rsp + 0x500250]
movzx eax, byte [rax + 0x28]
cmp eax, 6
je 0x1400aac38
mov rax, qword [rsp + 0x500250]
add rax, 0x48
mov edx, 0x104
mov rcx, rax
call qword [sym.imp.mfc140u.dll_Ordinal_4946]
mov ecx, dword [0x1405fdad8]
mov dword [rsp + 0x20], ecx
lea r9, [0x1405fda98]
xor r8d, r8d
mov rcx, qword [rsp + 0x500250]
mov edx, dword [rcx + 7]
mov rcx, rax
call fcn.1400c78a0
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x500250]
mov eax, dword [rax + 7]
mov dword [rsp + 0x68], eax
jmp 0x1400aac75
mov rax, qword [rsp + 0x500250]
add rax, 0x48
mov edx, 0x104
mov rcx, rax
call qword [sym.imp.mfc140u.dll_Ordinal_4946]
mov ecx, dword [0x1405fdad8]
mov dword [rsp + 0x20], ecx
lea r9, [0x1405fda98]
xor r8d, r8d
xor edx, edx
mov rcx, rax
call fcn.1400c78a0
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x1400aacc1
mov rax, qword [rsp + 0x500250]
add rax, 0x48
mov edx, 0x104
mov rcx, rax
call qword [sym.imp.mfc140u.dll_Ordinal_4946]
mov r8, rax
lea rdx, [0x1401422d8]
lea rcx, str.D:_svnplayersvnTLDrivingRecordConvertIfvFile.cpp_61_:CPlayVideoWnd::WriteIfvFileByWriteBlock
call fcn.1400c4810
nop
mov rcx, qword [rsp + 0x500250]
call fcn.140015f40
nop
jmp 0x1400ab38d
mov rcx, qword [rsp + 0x48]
call fcn.1400c7650
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jne 0x1400aacfd
lea rdx, str.TL_FileTotalSize_Error_return
lea rcx, str.D:_svnplayersvnTLDrivingRecordConvertIfvFile.cpp_68_:CPlayVideoWnd::WriteIfvFileByWriteBlock
call fcn.1400c46e0
nop
mov rcx, qword [rsp + 0x500250]
call fcn.140015f40
nop
jmp 0x1400ab38d
mov rcx, qword [rsp + 0x48]
call fcn.1400c7670
mov dword [rsp + 0x90], eax
mov rcx, qword [rsp + 0x48]
call fcn.1400c7630
mov dword [rsp + 0x94], eax
mov rcx, qword [rsp + 0x48]
call fcn.1400c72f0
mov dword [rsp + 0x9c], eax
mov dword [rsp + 0x6c], 0
mov dword [rsp + 0x98], 0xffffffff
mov rax, qword [rsp + 0x500240]
mov rax, qword [rax + 0x148]
mov qword [rsp + 0x80], rax
lea rax, [rsp + 0x170]
mov qword [rsp + 0xa0], rax
mov rdx, qword [rsp + 0x500250]
mov rcx, qword [rsp + 0xa0]
call fcn.14002cf90
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0xb0], rax
mov r8, qword [rsp + 0xb0]
lea rdx, [rsp + 0x58]
mov rcx, qword [rsp + 0x500240]
call fcn.14006ad30
nop
lea rcx, [rsp + 0x58]
call qword [sym.imp.mfc140u.dll_CMFCPropertyGridProperty::HitTest]
movzx eax, al
test eax, eax
je 0x1400aae3b
lea rcx, [rsp + 0x58]
call qword [sym.imp.mfc140u.dll_CMFCPropertyGridProperty::GetHierarchyLevel]
mov edx, eax
lea rcx, [rsp + 0x58]
call qword [sym.imp.mfc140u.dll_Ordinal_4946]
mov r8, rax
lea rdx, [0x140142078]
lea rcx, str.D:_svnplayersvnTLDrivingRecordConvertIfvFile.cpp_85_:CPlayVideoWnd::WriteIfvFileByWriteBlock
call fcn.1400c4810
mov edx, 0xffffffff
lea rcx, [rsp + 0x58]
call qword [sym.imp.mfc140u.dll_CDialogImpl::ProcessMouseClick]
xor edx, edx
mov rcx, qword [rsp + 0x500240]
call fcn.14006a950
mov rcx, qword [rsp + 0x48]
call fcn.1400c7200
nop
lea rcx, [rsp + 0x58]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
nop
mov rcx, qword [rsp + 0x500250]
call fcn.140015f40
nop
jmp 0x1400ab38d
lea rcx, [rsp + 0x58]
call qword [sym.imp.mfc140u.dll_CMFCPropertyGridProperty::GetHierarchyLevel]
mov edx, eax
lea rcx, [rsp + 0x58]
call qword [sym.imp.mfc140u.dll_Ordinal_4946]
mov rdx, rax
lea rcx, [rsp + 0x1e0]
call fcn.1400053e0
nop
mov edx, 0xffffffff
lea rcx, [rsp + 0x58]
call qword [sym.imp.mfc140u.dll_CDialogImpl::ProcessMouseClick]
nop
lea rax, [rsp + 0x110]
mov qword [rsp + 0xb8], rax
lea rdx, [rsp + 0x1e0]
mov rcx, qword [rsp + 0xb8]
call fcn.140020770
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0xc8], rax
mov rdx, qword [rsp + 0xc8]
lea rcx, [rsp + 0x200]
call fcn.14004d530
nop
lea rcx, [rsp + 0x200]
call fcn.140001eb0
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x1400aafea
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x200]
call fcn.140001eb0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0xffffffffffffffff
je 0x1400aafea
lea rdx, [rsp + 0xd0]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0xd8], rax
mov eax, dword [rsp + 0x44]
cmp qword [rsp + 0xd8], rax
jne 0x1400aafde
lea rdx, str.same_Size_return
lea rcx, str.D:_svnplayersvnTLDrivingRecordConvertIfvFile.cpp_110_:CPlayVideoWnd::WriteIfvFileByWriteBlock
call fcn.1400c46e0
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
mov rcx, qword [rsp + 0x500240]
call fcn.14006a950
mov rcx, qword [rsp + 0x48]
call fcn.1400c7200
nop
lea rcx, [rsp + 0x200]
call fcn.140001f00
nop
lea rcx, [rsp + 0x1e0]
call fcn.1400053b0
nop
lea rcx, [rsp + 0x58]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
nop
mov rcx, qword [rsp + 0x500250]
call fcn.140015f40
nop
jmp 0x1400ab38d
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov dword [rsp + 0x64], 0
lea rcx, [rsp + 0x1e0]
call fcn.140005330
lea rdx, [0x140142190]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen]
mov qword [rsp + 0x88], rax
cmp qword [rsp + 0x88], 0
je 0x1400ab2b8
mov edx, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x48]
call fcn.1400c79b0
lea rax, [rsp + 0x220]
mov rdi, rax
xor eax, eax
mov ecx, 0x500000
rep stosb byte [rdi], al
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jbe 0x1400ab29e
mov dword [rsp + 0x50], 0x500000
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x40], eax
jae 0x1400ab075
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x50], eax
mov r8d, dword [rsp + 0x50]
lea rdx, [rsp + 0x220]
mov rcx, qword [rsp + 0x48]
call fcn.1400c7950
mov dword [rsp + 0x60], eax
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x60], eax
je 0x1400ab0e7
mov rax, qword [rsp + 0x500250]
add rax, 0x48
mov rcx, rax
call qword [sym.imp.mfc140u.dll_CMFCPropertyGridProperty::GetHierarchyLevel]
mov rcx, qword [rsp + 0x500250]
add rcx, 0x48
mov edx, eax
call qword [sym.imp.mfc140u.dll_Ordinal_4946]
mov ecx, dword [rsp + 0x50]
mov dword [rsp + 0x20], ecx
mov r9d, dword [rsp + 0x60]
mov r8, rax
lea rdx, str.readFile:_s__readLen:_u_needLen:_u_error
lea rcx, str.D:_svnplayersvnTLDrivingRecordConvertIfvFile.cpp_142_:CPlayVideoWnd::WriteIfvFileByWriteBlock
call fcn.1400c4810
nop
mov eax, dword [rsp + 0x60]
mov r9, qword [rsp + 0x88]
mov r8d, eax
mov edx, 1
lea rcx, [rsp + 0x220]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov eax, dword [rsp + 0x60]
mov ecx, dword [rsp + 0x40]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x64]
inc eax
mov dword [rsp + 0x64], eax
cmp dword [rsp + 0x64], 0xa
jl 0x1400ab299
mov eax, dword [rsp + 0x40]
mov ecx, dword [rsp + 0x44]
sub ecx, eax
mov eax, ecx
xor edx, edx
div dword [rsp + 0x44]
imul eax, dword [rsp + 0x90]
mov ecx, dword [rsp + 0x94]
add ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x500240]
mov dword [rcx + 0x2c8], eax
mov rax, qword [rsp + 0x500240]
mov r8d, dword [rax + 0x2c8]
lea rdx, [0x140142658]
lea rcx, str.D:_svnplayersvnTLDrivingRecordConvertIfvFile.cpp_152_:CPlayVideoWnd::WriteIfvFileByWriteBlock
call fcn.1400c46e0
nop
cmp dword [rsp + 0x6c], 0
jne 0x1400ab19d
mov rax, qword [rsp + 0x500240]
mov eax, dword [rax + 0x2c8]
mov dword [rsp + 0x6c], eax
mov rcx, qword [rsp + 0x80]
call fcn.140051e30
movzx eax, al
test eax, eax
je 0x1400ab286
xorps xmm0, xmm0
movsd qword [rsp + 0x78], xmm0
mov eax, dword [rsp + 0x40]
mov ecx, dword [rsp + 0x44]
sub ecx, eax
mov eax, ecx
mov eax, eax
cvtsi2sd xmm0, rax
mulsd xmm0, qword [0x14014fe78]
mov eax, dword [rsp + 0x44]
cvtsi2sd xmm1, rax
mulsd xmm1, qword [0x14014fe78]
divsd xmm0, xmm1
movsd qword [rsp + 0x78], xmm0
movsd xmm0, qword [rsp + 0x78]
mulsd xmm0, qword [0x14014fed0]
movsd qword [rsp + 0x78], xmm0
cvtsi2sd xmm0, dword [rsp + 0x98]
ucomisd xmm0, qword [rsp + 0x78]
jp 0x1400ab21b
je 0x1400ab286
lea rax, [rsp + 0x130]
mov qword [rsp + 0xe0], rax
lea rdx, [rsp + 0x1e0]
mov rcx, qword [rsp + 0xe0]
call fcn.140020770
mov qword [rsp + 0xe8], rax
mov rax, qword [rsp + 0xe8]
mov qword [rsp + 0xf0], rax
cvttsd2si rax, qword [rsp + 0x78]
mov r9d, eax
mov r8, qword [rsp + 0xf0]
mov rax, qword [rsp + 0x500240]
mov edx, dword [rax + 0x2cc]
mov rcx, qword [rsp + 0x80]
call fcn.1400529b0
nop
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
mov dword [rsp + 0x64], 0
jmp 0x1400ab050
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rsp + 0x88], 0
xor edx, edx
mov rcx, qword [rsp + 0x500240]
call fcn.14006a950
mov rcx, qword [rsp + 0x80]
call fcn.140051e30
nop
lea rax, [rsp + 0x150]
mov qword [rsp + 0xf8], rax
lea rdx, [rsp + 0x1e0]
mov rcx, qword [rsp + 0xf8]
call fcn.140020770
mov qword [rsp + 0x100], rax
mov rax, qword [rsp + 0x100]
mov qword [rsp + 0x108], rax
mov r9d, 0x64
mov r8, qword [rsp + 0x108]
mov rax, qword [rsp + 0x500240]
mov edx, dword [rax + 0x2cc]
mov rcx, qword [rsp + 0x80]
call fcn.1400529b0
nop
mov edx, 0xffffffff
lea rcx, [rsp + 0x58]
call qword [sym.imp.mfc140u.dll_CDialogImpl::ProcessMouseClick]
mov rcx, qword [rsp + 0x48]
call fcn.1400c7200
nop
lea rcx, [rsp + 0x200]
call fcn.140001f00
nop
lea rcx, [rsp + 0x1e0]
call fcn.1400053b0
nop
lea rcx, [rsp + 0x58]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
nop
mov rcx, qword [rsp + 0x500250]
call fcn.140015f40
nop
mov rcx, qword [rsp + 0x500220]
xor rcx, rsp
call fcn.140100c60
add rsp, 0x500230
pop rdi
ret