Function at 0x18000679c
Capabilities:
Get disk information
Get disk size

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x588]
sub rsp, 0x660
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x180038008]
xor rax, rsp
mov qword [rbp + 0x550], rax
mov rdi, rcx
xor edx, edx
mov r8d, 0x400
lea rcx, [rbp + 0x150]
call fcn.18000ce00
mov byte [rbp - 0x68], 0
xor eax, eax
mov qword [rbp - 0x67], rax
mov byte [rbp - 0x5f], al
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
movsxd rbx, eax
mov rcx, rbx
call fcn.180009c3c
mov rsi, rax
mov rdx, rax
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
xor r12d, r12d
mov r14d, 0xc8
mov r8d, r14d
xor edx, edx
lea rcx, [rbp - 0x50]
call fcn.18000ce00
mov r8d, r14d
xor edx, edx
lea rcx, [rbp + 0x80]
call fcn.18000ce00
mov eax, ebx
cdq
and edx, 3
add eax, edx
sar eax, 2
test eax, eax
jle 0x1800069d2
xor ebx, ebx
mov byte [rsp + 0x31], 0x3a
mov r14, rsi
mov r15d, eax
mov al, byte [rbx + rsi]
mov byte [rsp + 0x30], al
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x18000689b
cmp byte [rdi + 0x25], 0
jne 0x180006892
movzx eax, word [rsp + 0x30]
mov word [rdi + 0x10], ax
mov byte [rdi + 0x12], 0x5c
mov byte [rdi + 0x25], 1
lea rdx, str._c:_local_
jmp 0x1800068b9
cmp eax, 2
jne 0x1800068a9
lea rdx, str._c:_removeable_
jmp 0x1800068b9
cmp eax, 4
jne 0x180006997
lea rdx, str._c:_network_
movsx r8d, byte [rbx + rsi]
lea rcx, [rbp - 0x50]
call fcn.180001130
movzx eax, word [rbp - 0x50]
mov word [rbp - 0x68], ax
mov al, byte [rbp - 0x4e]
mov byte [rbp - 0x66], al
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x68]
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x180006917
mov r9, qword [rsp + 0x38]
shr r9, 0x1e
mov r8, qword [rsp + 0x40]
shr r8, 0x1e
lea rdx, str._dGB__dGB
lea rcx, [rbp + 0x80]
call fcn.180001130
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rsp + 0x70], shutdown
and qword [rsp + 0x68], 0
mov byte [rsp + 0x58], 0
lea rdx, [rbp + 0x80]
lea rcx, [rsp + 0x58]
call fcn.1800039b0
nop
mov qword [rbp - 0x70], shutdown
and qword [rbp - 0x78], 0
mov byte [rsp + 0x78], 0
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x78]
call fcn.1800039b0
nop
lea rcx, [rdi + 0x40]
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.180002da0
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x78]
call fcn.180003904
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x58]
call fcn.180003904
mov r8d, 0xc8
xor edx, edx
lea rcx, [rbp + 0x80]
call fcn.18000ce00
mov r8d, 0xc8
xor edx, edx
lea rcx, [rbp - 0x50]
call fcn.18000ce00
add r14, 4
add r12d, 4
add rbx, 4
sub r15, 1
jne 0x180006866
lea rdx, [rsp + 0x58]
lea rcx, [rdi + 0x40]
call fcn.180002b04
nop
cmp qword [rax + 0x18], 0x10
jb 0x1800069eb
mov rax, qword [rax]
mov r8, rax
lea rdx, [0x180030468]
lea rcx, [rbp + 0x150]
call fcn.180001130
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x58]
call fcn.180003904
lea rax, [rbp + 0x150]
or r9, 0xffffffffffffffff
inc r9
cmp byte [rax + r9], 0
jne 0x180006a1c
and dword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
lea r8, [rbp + 0x150]
mov edx, 2
call fcn.180004f00
lea rcx, [rdi + 0x40]
call fcn.180002954
mov rcx, qword [rbp + 0x550]
xor rcx, rsp
call fcn.180009ba0
lea r11, [rsp + 0x660]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret