Function at 0x180007ddc
Capabilities:
Check if file exists
Create directory
Get common file path
Get file attributes
Get file size
Move file
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x380]
sub rsp, 0x480
mov rax, qword [0x180013070]
xor rax, rsp
mov qword [rbp + 0x370], rax
xor r12d, r12d
mov word [rsp + 0x44], 0xbbef
mov dword [rdx], r12d
lea rcx, [rsp + 0x50]
mov r15, rdx
mov byte [rsp + 0x46], 0xbf
mov edx, 0x105
mov word [rsp + 0x40], r12w
mov esi, r12d
mov byte [rsp + 0x42], r12b
mov r14d, r12d
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetWindowsDirectoryW]
nop dword [rax + rax]
test eax, eax
je 0x180008173
or rax, 0xffffffffffffffff
lea rdi, str.NetSetup
mov rdx, rax
inc rdx
cmp word [rdi + rdx*2], r12w
jne 0x180007e60
add edx, 5
lea rcx, [rsp + 0x50]
inc rax
cmp word [rcx + rax*2], r12w
jne 0x180007e72
lea r8d, [rax*2 + 0x10]
mov ebx, 0x20a
lea eax, [rdx + 1]
lea rax, [r8 + rax*2]
cmp rax, rbx
ja 0x180008173
lea eax, [rdx + 1]
lea rax, [r8 + rax*2]
cmp rax, rbx
ja 0x180008173
lea rax, [0x18000f740]
mov rdx, rbx
lea r9, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r8, str._s_s
lea rcx, [rsp + 0x50]
call fcn.180003978
test eax, eax
js 0x18000816c
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
jne 0x180007f18
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 2
jne 0x180008173
xor edx, edx
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateDirectoryW]
nop dword [rax + rax]
test eax, eax
jmp 0x180007f1a
test al, 0x10
je 0x180008173
lea r9, [rsp + 0x50]
mov qword [rsp + 0x20], rdi
lea r8, str._s_s.BAK
mov rdx, rbx
lea rcx, [rbp + 0x160]
call fcn.180003978
test eax, eax
js 0x18000816c
lea r9, [rsp + 0x50]
mov qword [rsp + 0x20], rdi
lea r8, str._s_s.LOG
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.180003978
test eax, eax
js 0x18000816c
mov edi, r12d
mov rbx, r12
cmp edi, 2
jae 0x180008114
xor r9d, r9d
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x80
lea rcx, [rsp + 0x50]
mov edx, 0xc0000000
mov dword [rsp + 0x20], 4
lea r8d, [r9 + 3]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateFileW]
nop dword [rax + rax]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x18000808a
test edi, edi
jne 0x180008083
xor edx, edx
mov rcx, rax
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileSize]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x18000815b
test eax, eax
je 0x180008118
cmp eax, 0xf4240
ja 0x180008042
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], r12
lea r8d, [rdi + 3]
mov rcx, rbx
lea rdx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
nop dword [rax + rax]
test eax, eax
je 0x18000815b
cmp dword [rsp + 0x48], 3
jne 0x180008042
lea r8d, [rdi + 3]
lea rdx, [rsp + 0x44]
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_core_rtlsupport_l1_1_0.dll_RtlCompareMemory]
nop dword [rax + rax]
cmp rax, 3
je 0x180008111
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
mov r8d, 9
lea rdx, [rbp + 0x160]
lea rcx, [rsp + 0x50]
mov rbx, r12
call qword [sym.imp.api_ms_win_core_file_l2_1_0.dll_MoveFileExW]
nop dword [rax + rax]
test eax, eax
jne 0x18000807b
mov esi, r12d
jmp 0x180008083
mov esi, 1
mov dword [r15], esi
inc edi
jmp 0x180007f74
test edi, edi
jne 0x180008173
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 5
jne 0x180008173
test r14d, r14d
jne 0x180008173
mov r9d, 0x105
lea r8, [rsp + 0x50]
xor edx, edx
mov ecx, eax
call qword [sym.imp.profapi.dll_Ordinal_104]
nop dword [rax + rax]
test eax, eax
js 0x180008173
lea edx, [rdi + 0xd]
or rax, 0xffffffffffffffff
lea r14d, [rdi + 1]
lea rcx, [rsp + 0x50]
inc rax
cmp word [rcx + rax*2], r12w
jne 0x1800080e3
lea eax, [rax*2 + 0x10]
mov ebx, 0x20a
mov r8d, eax
add rax, 0x1c
cmp rax, rbx
ja 0x180008173
lea rdi, str.NetSetup
jmp 0x180007e99
mov esi, r12d
test esi, esi
je 0x18000813c
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], r12
mov r8d, 3
lea rdx, [rsp + 0x44]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_WriteFile]
nop dword [rax + rax]
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetFilePointer]
nop dword [rax + rax]
mov rax, rbx
jmp 0x180008175
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
jmp 0x180008173
mov ecx, eax
call fcn.180008c24
xor eax, eax
mov rcx, qword [rbp + 0x370]
xor rcx, rsp
call fcn.180009470
lea r11, [rsp + 0x480]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret