Function at 0x140006090
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.14000ec90
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.140005f88
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.140013dd0
test dil, dil
jne 0x14003c06e
mov eax, dword [rbx - 0x10]
test eax, eax
jle 0x14000611d
js 0x14003c0cf
cmp word [rbx], 0x2f
je 0x14003c09a
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_shlwapi_legacy_l1_1_0.dll_PathIsUNCW]
test eax, eax
jne 0x14000617e
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_shlwapi_legacy_l1_1_0.dll_PathIsUNCServerW]
test eax, eax
jne 0x14000617e
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_shlwapi_legacy_l1_1_0.dll_PathIsUNCServerShareW]
test eax, eax
jne 0x14000617e
lea rcx, [rbx - 0x18]
call fcn.14000ec90
add rax, 0x18
mov qword [rbp + 0x50], rax
lea rcx, [rbp + 0x50]
call fcn.1400061cc
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 0x14003c0da
lea rcx, [rsi - 0x18]
call fcn.140013dd0
nop
lea rcx, [rbx - 0x18]
call fcn.140013dd0
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.14002c310
nop
mov rdx, rax
lea rcx, [rbp + 0x40]
call fcn.140012d70
nop
jmp 0x14003c0b9
lea r8d, [rax - 1]
lea rdx, [rbp + 0x38]
lea rcx, [rbp + 0x40]
call fcn.14002c310
nop
mov rdx, rax
lea rcx, [rbp + 0x40]
call fcn.140012d70
nop
mov rcx, qword [rbp + 0x38]
add rcx, 0xffffffffffffffe8
call fcn.140013dd0
mov rbx, qword [rbp + 0x40]
jmp 0x140006106
mov ecx, 0x80070057
call fcn.14004a3b0
nop
mov r8d, 1
lea rdx, [rbp + 0x48]
lea rcx, [rbp + 0x50]
call fcn.14002c310
mov rcx, qword [rax]
movzx eax, word [rcx]
cmp ax, word [0x140094bd4]
jne 0x14003c10e
movzx eax, word [rcx + 2]
cmp ax, word [0x140094bd6]
jne 0x14003c10e
mov eax, r14d
jmp 0x14003c113
sbb eax, eax
or eax, 1
test eax, eax
sete dil
mov rcx, qword [rbp + 0x48]
add rcx, 0xffffffffffffffe8
call fcn.140013dd0
test dil, dil
je 0x14003c163
mov r8d, dword [rsi - 0x10]
dec r8d
lea rdx, [rbp - 0x18]
lea rcx, [rbp + 0x50]
call fcn.140005f88
nop
mov rdx, rax
lea rcx, [rbp + 0x50]
call fcn.140012d70
nop
mov rcx, qword [rbp - 0x18]
add rcx, 0xffffffffffffffe8
call fcn.140013dd0
mov rsi, qword [rbp + 0x50]
jmp 0x14003c0da
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 0x140006174
lea rdx, [0x1400c9e30]
lea rcx, [rbp + 0x48]
call fcn.140044898
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 0x14003c1b9
lea rcx, [rbp + 0x48]
call fcn.140012d00
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 0x14003c263
lea rcx, [rbp + 0x48]
call fcn.1400448d4
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.14007564c
nop
mov r14, qword [rbp - 0x18]
mov rcx, r14
call fcn.140016df4
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 0x14003c231
lea rcx, [rbp + 0x48]
call fcn.140012d00
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.1400448d4
nop
mov rcx, qword [rbp - 0x18]
add rcx, 0xffffffffffffffe8
call fcn.140013dd0
lea rdx, [rbp + 0x48]
mov rcx, r15
call fcn.140012d70
mov r14b, 1
lea rcx, [rdi - 0x18]
call fcn.140013dd0
nop
jmp 0x140006174