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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x280]
sub rsp, 0x380
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x270], rax
mov r15d, edx
mov rbx, rcx
lea rdx, [rsp + 0x60]
mov ecx, 0x104
mov r14d, r8d
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
xor r12d, r12d
xor ecx, ecx
test eax, eax
jne 0x140006ba1
xor r9d, r9d
xor r8d, r8d
mov edx, 0x4bc
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], FDICopy
call fcn.140004ed8
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov dword [0x14000ae5c], ecx
jmp 0x140006e3d
lea rax, [rsp + 0x50]
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x44]
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], r12d
mov dword [rsp + 0x44], r12d
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x48], r12d
mov dword [rsp + 0x50], r12d
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x140006db3
mov esi, dword [rsp + 0x44]
mov edx, dword [rsp + 0x48]
mov r8d, 0x400
imul esi, dword [rsp + 0x40]
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_MulDiv]
mov edi, eax
test eax, eax
je 0x140006db3
mov dword [rsp + 0x38], r12d
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x30], r12
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]
test eax, eax
jne 0x140006c9c
lea rcx, [rbp + 0x71]
xor edx, edx
mov r8d, 0x1ff
mov byte [rbp + 0x70], r12b
call sub.msvcrt.dll_memset
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov dword [0x14000ae5c], ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x200
mov r8d, eax
lea rax, [rbp + 0x70]
mov qword [rsp + 0x30], r12
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 0x140006e17
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea rax, [rsp + 0x58]
mov edx, 6
sub rbx, rax
lea rcx, [rsp + 0x58]
lea r9d, [rdx - 5]
lea rax, [rdx - 4]
test rax, rax
je 0x140006cd7
mov al, byte [rbx + rcx]
test al, al
je 0x140006cd7
mov byte [rcx], al
add rcx, r9
sub rdx, r9
jne 0x140006cbd
test rdx, rdx
jne 0x140006cdf
sub rcx, r9
mov byte [rcx], r12b
movzx eax, r12w
mov ecx, 0x200
cmp esi, ecx
je 0x140006cfb
add ax, r9w
add ecx, ecx
cmp ax, 8
jb 0x140006ceb
cmp ax, 8
jne 0x140006d25
xor r9d, r9d
xor r8d, r8d
mov edx, 0x4c5
xor ecx, ecx
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], FDICopy
call fcn.140004ed8
jmp 0x140006e3d
test byte [0x14000ae44], 8
je 0x140006d5b
test dword [rsp + 0x4c], 0x8000
je 0x140006d5b
mov r8d, dword [0x14000ae48]
lea rcx, [0x140009b80]
movzx eax, ax
mov edx, dword [rcx + rax*4]
shr r8d, 2
add edx, edx
add r8d, dword [0x14000ae48]
jmp 0x140006d6f
mov r8d, dword [0x14000ae48]
lea rcx, [0x140009b80]
movzx eax, ax
mov edx, dword [rcx + rax*4]
mov eax, r15d
and eax, r9d
je 0x140006d97
test r15b, 2
je 0x140006d97
lea eax, [r8 + rdx]
cmp eax, edi
jbe 0x140006da4
lea r9, [rsp + 0x58]
mov ecx, r14d
call fcn.140002760
jmp 0x140006e3f
test eax, eax
je 0x140006d9f
cmp edx, edi
jmp 0x140006d83
cmp r8d, edi
jmp 0x140006d83
mov dword [0x14000ae5c], r12d
mov eax, r9d
jmp 0x140006e3f
lea rcx, [rbp + 0x71]
xor edx, edx
mov r8d, 0x1ff
mov byte [rbp + 0x70], r12b
call sub.msvcrt.dll_memset
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov dword [0x14000ae5c], ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x200
mov r8d, eax
lea rax, [rbp + 0x70]
mov qword [rsp + 0x30], r12
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, [rbp + 0x70]
mov r8, rbx
xor ecx, ecx
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], FDICopy
call fcn.140004ed8
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
xor eax, eax
mov rcx, qword [rbp + 0x270]
xor rcx, rsp
call fcn.140008180
lea r11, [rsp + 0x380]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret