Function at 0x140096820
Capabilities:
Check if file exists
Create directory
Get common file path
Get disk information
Get disk size
Reference absolute stream path on windows

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x490
mov rax, qword [0x140173240]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov rax, qword [rsp + 0x4a0]
add rax, 0x378
lea rdx, [0x14013d730]
mov rcx, rax
call fcn.140005380
mov rax, qword [rsp + 0x4a0]
add rax, 0x378
lea rdx, str.BackUpDir
mov rcx, rax
call fcn.140005350
mov rax, qword [rsp + 0x4a0]
add rax, 0x378
lea rdx, [0x14013d72c]
mov rcx, rax
call fcn.140005350
mov dword [rsp + 0x30], 0
lea rax, [rsp + 0x34]
mov rdi, rax
xor eax, eax
mov ecx, 4
rep stosb byte [rdi], al
mov dword [rsp + 0x40], 0
lea rax, [rsp + 0x44]
mov rdi, rax
xor eax, eax
mov ecx, 4
rep stosb byte [rdi], al
mov dword [rsp + 0x38], 0
lea rax, [rsp + 0x3c]
mov rdi, rax
xor eax, eax
mov ecx, 4
rep stosb byte [rdi], al
mov byte [rsp + 0x22], 0
mov byte [rsp + 0x20], 0
mov byte [rsp + 0x23], gethostbyname
mov eax, dword [0x14013d728]
mov dword [rsp + 0x50], eax
lea rax, [rsp + 0x54]
mov rdi, rax
xor eax, eax
mov ecx, 4
rep stosb byte [rdi], al
mov byte [rsp + 0x21], gethostbyname
mov dword [rsp + 0x2c], 0
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [rsp + 0x28], eax
mov eax, dword [0x14013d724]
mov dword [rsp + 0x270], eax
lea rax, [rsp + 0x274]
mov rdi, rax
xor eax, eax
mov ecx, 0x204
rep stosb byte [rdi], al
cmp dword [rsp + 0x28], 0
je 0x140096b58
mov edx, 0x104
lea rcx, [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
nop
mov dword [rsp + 0x24], 0
jmp 0x140096976
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0x1a
jge 0x140096a9f
mov eax, dword [rsp + 0x28]
and eax, 1
cmp eax, 1
jne 0x140096a90
mov eax, dword [rsp + 0x24]
add eax, 0x41
mov r8d, eax
lea rdx, str._c:_
lea rcx, [rsp + 0x50]
call qword [sym.imp.USER32.dll_wsprintfW]
nop
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x140096a90
mov eax, dword [rsp + 0x24]
add eax, 0x41
mov byte [rsp + 0x21], al
lea r9, [rsp + 0x38]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x140096a86
mov rax, qword [rsp + 0x30]
test rax, rax
jl 0x140096a00
cvtsi2sd xmm0, rax
jmp 0x140096a19
mov rcx, rax
shr rcx, 1
and rax, 1
or rcx, rax
cvtsi2sd xmm1, rcx
addsd xmm1, xmm1
movaps xmm0, xmm1
movsd qword [rsp + 0x48], xmm0
movsd xmm0, qword [rsp + 0x48]
comisd xmm0, xmmword [0x14014ff08]
jbe 0x140096a86
movsx eax, byte [rsp + 0x21]
movsd xmm3, qword [rsp + 0x48]
movq r9, xmm3
mov r8d, eax
lea rdx, [0x14013d708]
lea rcx, str.D:_svnplayersvnTLDrivingRecordBackupMediaFile.cpp_3999_:CBackupMediaFile::GetSuitableDownloadPath
call fcn.1400c46e0
nop
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x270]
call fcn.140084680
test rax, rax
je 0x140096a7f
mov eax, dword [rsp + 0x24]
add eax, 0x41
mov byte [rsp + 0x23], al
mov byte [rsp + 0x22], 1
jmp 0x140096a86
mov byte [rsp + 0x20], 1
jmp 0x140096a9f
mov eax, dword [rsp + 0x2c]
inc eax
mov dword [rsp + 0x2c], eax
mov eax, dword [rsp + 0x28]
shr eax, 1
mov dword [rsp + 0x28], eax
jmp 0x14009696c
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x140096ab5
movzx eax, byte [rsp + 0x22]
test eax, eax
je 0x140096b58
mov eax, dword [0x14013d7b0]
mov dword [rsp + 0x60], eax
lea rax, [rsp + 0x64]
mov rdi, rax
xor eax, eax
mov ecx, 0x204
rep stosb byte [rdi], al
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x140096afd
movsx eax, byte [rsp + 0x21]
lea r9, str.BackUpDir
mov r8d, eax
lea rdx, str._c:_s
lea rcx, [rsp + 0x60]
call qword [sym.imp.USER32.dll_wsprintfW]
nop
jmp 0x140096b1f
movsx eax, byte [rsp + 0x23]
lea r9, str.BackUpDir
mov r8d, eax
lea rdx, [0x14013d790]
lea rcx, [rsp + 0x60]
call qword [sym.imp.USER32.dll_wsprintfW]
nop
mov rax, qword [rsp + 0x4a0]
add rax, 0x378
lea rdx, [rsp + 0x60]
mov rcx, rax
call fcn.140005380
mov rax, qword [rsp + 0x4a0]
add rax, 0x378
lea rdx, [0x14013d78c]
mov rcx, rax
call fcn.140005350
nop
mov rax, qword [rsp + 0x4a0]
add rax, 0x378
mov rcx, rax
call fcn.140005330
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x140096b9d
mov rax, qword [rsp + 0x4a0]
add rax, 0x378
mov rcx, rax
call fcn.140005330
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.140100c60
add rsp, 0x490
pop rdi
ret