Function at 0x1000070bc
Capabilities:
Get common file path
Get disk information
Get disk size
Set current directory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
sub rsp, 0x380
mov rax, qword [0x10000f100]
xor rax, rsp
mov qword [rsp + 0x370], rax
mov r12d, edx
mov rsi, rcx
lea rdx, [rsp + 0x60]
mov ecx, 0x104
mov ebp, r8d
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
xor r13d, r13d
xor ecx, ecx
cmp eax, r13d
jne 0x100007142
xor r9d, r9d
xor r8d, r8d
mov edx, 0x4bc
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], 0x10
call fcn.100005574
call fcn.100007b14
mov dword [0x100010488], eax
jmp 0x1000073dd
lea rax, [rsp + 0x50]
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x44]
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], r13d
mov dword [rsp + 0x44], r13d
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x48], r13d
mov dword [rsp + 0x50], r13d
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
cmp eax, r13d
je 0x100007352
mov edi, dword [rsp + 0x44]
mov edx, dword [rsp + 0x48]
mov r8d, 0x400
imul edi, dword [rsp + 0x40]
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_MulDiv]
mov ebx, eax
cmp eax, r13d
je 0x100007352
mov dword [rsp + 0x38], r13d
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x54]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
cmp eax, r13d
jne 0x10000723d
lea rcx, [rsp + 0x171]
xor edx, edx
mov r8d, 0x1ff
mov byte [rsp + 0x170], r13b
call sub.msvcrt.dll_memset
call fcn.100007b14
mov dword [0x100010488], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x200
mov r8d, eax
lea rax, [rsp + 0x170]
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], ecx
xor r9d, r9d
xor edx, edx
mov ecx, 0x1000
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, 0x4f9
jmp 0x1000073b3
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea rax, [rsp + 0x58]
mov r11d, 6
sub rsi, rax
lea rcx, [rsp + 0x58]
lea r9d, [r11 - 5]
lea rax, [r11 - 4]
cmp rax, r13
je 0x10000727a
mov al, byte [rsi + rcx]
cmp al, r13b
je 0x10000727a
mov byte [rcx], al
add rcx, r9
sub r11, r9
jne 0x10000725f
cmp r11, r13
jne 0x100007282
sub rcx, r9
mov byte [rcx], r13b
movzx eax, r13w
mov ecx, 0x200
cmp edi, ecx
je 0x10000729e
add ax, r9w
add ecx, ecx
cmp ax, 8
jb 0x10000728e
cmp ax, 8
jne 0x1000072c8
xor r9d, r9d
xor r8d, r8d
mov edx, 0x4c5
xor ecx, ecx
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], 0x10
call fcn.100005574
jmp 0x1000073dd
test byte [0x100010ec4], 8
je 0x1000072fa
bt dword [rsp + 0x4c], 0xf
jae 0x1000072fa
movzx eax, ax
lea rcx, [0x100011740]
mov edx, dword [rcx + rax*4]
mov eax, dword [0x100010ec8]
mov r8d, eax
add edx, edx
shr r8d, 2
add r8d, eax
jmp 0x10000730e
mov r8d, dword [0x100010ec8]
lea rcx, [0x100011740]
movzx eax, ax
mov edx, dword [rcx + rax*4]
mov eax, r12d
and eax, r9d
je 0x100007335
test r12b, 2
je 0x100007335
lea eax, [r8 + rdx]
cmp eax, ebx
jbe 0x100007343
lea r9, [rsp + 0x58]
mov ecx, ebp
call fcn.100002d38
jmp 0x1000073df
cmp eax, r13d
je 0x10000733e
cmp edx, ebx
jmp 0x100007322
cmp r8d, ebx
jmp 0x100007322
mov dword [0x100010488], r13d
mov eax, r9d
jmp 0x1000073df
lea rcx, [rsp + 0x171]
xor edx, edx
mov r8d, 0x1ff
mov byte [rsp + 0x170], r13b
call sub.msvcrt.dll_memset
call fcn.100007b14
mov dword [0x100010488], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x200
mov r8d, eax
lea rax, [rsp + 0x170]
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], ecx
xor r9d, r9d
xor edx, edx
mov ecx, 0x1000
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, 0x4b0
lea r9, [rsp + 0x170]
mov r8, rsi
xor ecx, ecx
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], 0x10
call fcn.100005574
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
xor eax, eax
mov rcx, qword [rsp + 0x370]
xor rcx, rsp
call fcn.10000c9f0
lea r11, [rsp + 0x380]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rdi
ret