Function at 0x140006c60
Capabilities:
Get disk information

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x38
mov qword [rbp - 0x10], 0xfffffffffffffffe
mov r15, rcx
mov rcx, qword [rcx]
sub rcx, 0x18
call fcn.1400125b0
lea rbx, [rax + 0x18]
mov qword [rbp + 0x40], rbx
mov rax, qword [0x1400ca1f0]
mov r8d, dword [rax - 0x10]
lea rdx, [rbp + 0x38]
lea rcx, [rbp + 0x40]
call fcn.140006b14
mov rdx, qword [0x1400ca1f0]
mov rcx, qword [rax]
call qword [sym.imp.msvcrt.dll__wcsicmp]
xor r14d, r14d
test eax, eax
sete dil
mov rcx, qword [rbp + 0x38]
add rcx, 0xffffffffffffffe8
call fcn.1400176e0
test dil, dil
jne 0x14003f988
mov eax, dword [rbx - 0x10]
test eax, eax
jle 0x140006ced
js 0x14003f9e9
cmp word [rbx], 0x2f
je 0x14003f9b4
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_shlwapi_legacy_l1_1_0.dll_PathIsUNCW]
test eax, eax
jne 0x140006d4e
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_shlwapi_legacy_l1_1_0.dll_PathIsUNCServerW]
test eax, eax
jne 0x140006d4e
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_shlwapi_legacy_l1_1_0.dll_PathIsUNCServerShareW]
test eax, eax
jne 0x140006d4e
lea rcx, [rbx - 0x18]
call fcn.1400125b0
add rax, 0x18
mov qword [rbp + 0x50], rax
lea rcx, [rbp + 0x50]
call fcn.140006d9c
mov rsi, qword [rbp + 0x50]
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetDriveTypeW]
cmp eax, 4
je 0x14003f9f4
lea rcx, [rsi - 0x18]
call fcn.1400176e0
nop
lea rcx, [rbx - 0x18]
call fcn.1400176e0
mov al, r14b
add rsp, 0x38
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov r8d, dword [rbx - 0x10]
mov rax, qword [0x1400ca1f0]
sub r8d, dword [rax - 0x10]
lea rdx, [rbp + 0x38]
lea rcx, [rbp + 0x40]
call fcn.14002d2a0
nop
mov rdx, rax
lea rcx, [rbp + 0x40]
call fcn.140016510
nop
jmp 0x14003f9d3
lea r8d, [rax - 1]
lea rdx, [rbp + 0x38]
lea rcx, [rbp + 0x40]
call fcn.14002d2a0
nop
mov rdx, rax
lea rcx, [rbp + 0x40]
call fcn.140016510
nop
mov rcx, qword [rbp + 0x38]
add rcx, 0xffffffffffffffe8
call fcn.1400176e0
mov rbx, qword [rbp + 0x40]
jmp 0x140006cd6
mov ecx, 0x80070057
call fcn.14004a0f0
nop
mov r8d, 1
lea rdx, [rbp + 0x48]
lea rcx, [rbp + 0x50]
call fcn.14002d2a0
mov rcx, qword [rax]
movzx eax, word [rcx]
cmp ax, word [0x140095aa4]
jne 0x14003fa28
movzx eax, word [rcx + 2]
cmp ax, word [0x140095aa6]
jne 0x14003fa28
mov eax, r14d
jmp 0x14003fa2d
sbb eax, eax
or eax, 1
test eax, eax
sete dil
mov rcx, qword [rbp + 0x48]
add rcx, 0xffffffffffffffe8
call fcn.1400176e0
test dil, dil
je 0x14003fa7d
mov r8d, dword [rsi - 0x10]
dec r8d
lea rdx, [rbp - 0x18]
lea rcx, [rbp + 0x50]
call fcn.140006b14
nop
mov rdx, rax
lea rcx, [rbp + 0x50]
call fcn.140016510
nop
mov rcx, qword [rbp - 0x18]
add rcx, 0xffffffffffffffe8
call fcn.1400176e0
mov rsi, qword [rbp + 0x50]
jmp 0x14003f9f4
mov dword [rbp + 0x38], r14d
lea r8, [rbp + 0x38]
xor edx, edx
mov rcx, rsi
call qword [sym.imp.MPR.dll_WNetGetConnectionW]
cmp eax, 0xea
jne 0x140006d44
lea rdx, [0x1400c9e30]
lea rcx, [rbp + 0x48]
call fcn.1400446e8
nop
mov edx, dword [rbp + 0x38]
inc edx
mov rdi, qword [rbp + 0x48]
mov ecx, 1
sub ecx, dword [rdi - 8]
mov eax, dword [rdi - 0xc]
sub eax, edx
or eax, ecx
jge 0x14003fad3
lea rcx, [rbp + 0x48]
call fcn.1400164a0
mov rdi, qword [rbp + 0x48]
lea r8, [rbp + 0x38]
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.MPR.dll_WNetGetConnectionW]
test eax, eax
jne 0x14003fb7d
lea rcx, [rbp + 0x48]
call fcn.1400446c8
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_shlwapi_legacy_l1_1_0.dll_PathSkipRootW]
sub rax, rbx
sar rax, 1
mov r9d, dword [rbx - 0x10]
sub r9d, eax
mov r8d, eax
lea rdx, [rbp - 0x18]
lea rcx, [rbp + 0x40]
call fcn.1400759dc
nop
mov r14, qword [rbp - 0x18]
mov rcx, r14
call fcn.14001d918
lea edx, [rax + 1]
add edx, dword [rdi - 0x10]
mov ecx, 1
sub ecx, dword [rdi - 8]
mov eax, dword [rdi - 0xc]
sub eax, edx
or eax, ecx
jge 0x14003fb4b
lea rcx, [rbp + 0x48]
call fcn.1400164a0
mov rdi, qword [rbp + 0x48]
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_shlwapi_legacy_l1_1_0.dll_PathAppendW]
lea rcx, [rbp + 0x48]
call fcn.1400446c8
nop
mov rcx, qword [rbp - 0x18]
add rcx, 0xffffffffffffffe8
call fcn.1400176e0
lea rdx, [rbp + 0x48]
mov rcx, r15
call fcn.140016510
mov r14b, 1
lea rcx, [rdi - 0x18]
call fcn.1400176e0
nop
jmp 0x140006d44