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

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x2a8]
sub rsp, 0x380
mov rax, qword [0x14000c008]
xor rax, rsp
mov qword [rbp + 0x270], rax
mov r12d, edx
mov rdi, rcx
lea rdx, [rsp + 0x60]
mov ecx, 0x104
mov r15d, r8d
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
xor ecx, ecx
xor r13d, r13d
test eax, eax
jne 0x14000664e
mov dword [rsp + 0x28], r13d
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], FDIDestroy
mov edx, 0x4bc
call fcn.140004a70
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov dword [0x14000d544], ecx
jmp 0x1400068e0
lea rax, [rsp + 0x4c]
mov dword [rsp + 0x44], r13d
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x40]
mov dword [rsp + 0x40], r13d
lea rdx, [rsp + 0x44]
mov dword [rsp + 0x48], r13d
mov dword [rsp + 0x4c], r13d
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x14000685d
mov r14d, dword [rsp + 0x40]
mov r8d, 0x400
imul r14d, dword [rsp + 0x44]
mov edx, dword [rsp + 0x48]
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
test eax, eax
je 0x14000685d
mov dword [rsp + 0x38], r13d
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], r13
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
lea rax, [rsp + 0x54]
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x140006745
mov ebx, 0x200
lea rcx, [rbp + 0x70]
mov r8d, ebx
xor edx, edx
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 [0x14000d544], ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rsp + 0x30], r13
xor r9d, r9d
mov r8d, eax
mov dword [rsp + 0x28], ebx
lea rax, [rbp + 0x70]
xor edx, edx
mov ecx, 0x1000
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, 0x4f9
jmp 0x1400068ba
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov edx, 6
lea rax, [rsp + 0x58]
lea rcx, [rsp + 0x58]
sub rdi, rax
lea r9d, [rdx - 5]
lea rax, [rdx - 4]
test rax, rax
je 0x140006780
mov al, byte [rdi + rcx]
test al, al
je 0x140006780
mov byte [rcx], al
add rcx, r9
sub rdx, r9
jne 0x140006766
test rdx, rdx
lea rax, [rcx - 1]
mov ebx, 0x200
cmovne rax, rcx
mov byte [rax], r13b
movzx eax, r13w
cmp r14d, ebx
je 0x1400067a8
add ebx, ebx
add ax, r9w
cmp ax, 8
jb 0x140006797
cmp ax, 8
jne 0x1400067d2
mov dword [rsp + 0x28], r13d
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], FDIDestroy
mov edx, 0x4c5
xor ecx, ecx
call fcn.140004a70
jmp 0x1400068e0
test byte [0x14000de64], 8
je 0x140006808
test dword [rsp + 0x50], 0x8000
je 0x140006808
mov r8d, dword [0x14000de68]
lea rcx, [0x14000ccc0]
movzx eax, ax
shr r8d, 2
mov edx, dword [rcx + rax*4]
add edx, edx
add r8d, dword [0x14000de68]
jmp 0x14000681c
mov r8d, dword [0x14000de68]
lea rcx, [0x14000ccc0]
movzx eax, ax
mov edx, dword [rcx + rax*4]
mov eax, r12d
and eax, 3
cmp al, 3
jne 0x140006840
lea eax, [r8 + rdx]
cmp eax, esi
jbe 0x14000684e
lea r9, [rsp + 0x58]
mov ecx, r15d
call fcn.140002324
jmp 0x1400068e2
test r9b, r12b
je 0x140006849
cmp edx, esi
jmp 0x14000682c
cmp r8d, esi
jmp 0x14000682c
mov dword [0x14000d544], r13d
mov eax, r9d
jmp 0x1400068e2
mov ebx, 0x200
lea rcx, [rbp + 0x70]
mov r8d, ebx
xor edx, edx
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 [0x14000d544], ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rsp + 0x30], r13
xor r9d, r9d
mov r8d, eax
mov dword [rsp + 0x28], ebx
lea rax, [rbp + 0x70]
xor edx, edx
mov ecx, 0x1000
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, 0x4b0
mov dword [rsp + 0x28], r13d
lea r9, [rbp + 0x70]
mov r8, rdi
mov dword [rsp + 0x20], FDIDestroy
xor ecx, ecx
call fcn.140004a70
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
xor eax, eax
mov rcx, qword [rbp + 0x270]
xor rcx, rsp
call fcn.140007c20
lea r11, [rsp + 0x380]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret