Function at 0x140018d4c
Capabilities:
Get disk information

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
mov rbp, rsp
sub rsp, 0x68
mov qword [rbp - 0x18], 0xfffffffffffffffe
mov r12, rcx
mov rsi, qword [rcx]
lea rbx, [rsi - 0x18]
mov rcx, qword [rbx]
mov rax, qword [rcx]
mov rax, qword [rax + 0x20]
call qword [case.0x140024555.0]
mov r9, rax
mov ecx, dword [rbx + 0x10]
shr ecx, 0x1f
xor r14d, r14d
test cl, cl
jne 0x140038a1c
cmp rax, qword [rbx]
jne 0x140038a1c
lock inc dword [rbx + 0x10]
add rbx, 0x18
mov qword [rbp + 0x40], rbx
mov rax, qword [0x1400dc7b0]
mov r8d, dword [rax - 0x10]
lea rdx, [rbp - 0x48]
lea rcx, [rbp + 0x40]
call fcn.140019080
mov rdx, qword [0x1400dc7b0]
mov rcx, qword [rax]
call qword [sym.imp.msvcrt.dll__wcsicmp]
nop dword [rax + rax]
test eax, eax
sete dil
mov rcx, qword [rbp - 0x48]
add rcx, 0xffffffffffffffe8
call fcn.1400111b0
test dil, dil
jne 0x140038a70
cmp dword [rbx - 0x10], r14d
jle 0x140018e0c
xor edx, edx
lea rcx, [rbp + 0x40]
call fcn.140019050
cmp ax, 0x2f
je 0x140038aa0
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_shlwapi_legacy_l1_1_0.dll_PathIsUNCW]
nop dword [rax + rax]
test eax, eax
jne 0x140018ebd
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_shlwapi_legacy_l1_1_0.dll_PathIsUNCServerW]
nop dword [rax + rax]
test eax, eax
jne 0x140018ebd
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_shlwapi_legacy_l1_1_0.dll_PathIsUNCServerShareW]
nop dword [rax + rax]
test eax, eax
jne 0x140018ebd
lea rdi, [rbx - 0x18]
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov rax, qword [rax + 0x20]
call qword [case.0x140024555.0]
mov r9, rax
mov ecx, dword [rdi + 0x10]
shr ecx, 0x1f
test cl, cl
jne 0x140038ad8
cmp rax, qword [rdi]
jne 0x140038ad8
mov rsi, rdi
lock inc dword [rdi + 0x10]
mov rbx, qword [rbp + 0x40]
lea rax, [rsi + 0x18]
mov qword [rbp + 0x50], rax
lea rcx, [rbp + 0x50]
call fcn.140018ee0
mov rsi, qword [rbp + 0x50]
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetDriveTypeW]
nop dword [rax + rax]
cmp eax, 4
je 0x140038b2c
lea rcx, [rsi - 0x18]
call fcn.1400111b0
nop
lea rcx, [rbx - 0x18]
call fcn.1400111b0
mov al, r14b
add rsp, 0x68
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
lea rdi, [rbx + 8]
mov rax, qword [rax]
mov r8d, 2
mov edx, dword [rdi]
mov rcx, r9
mov rax, qword [rax]
call qword [case.0x140024555.0]
mov rbx, rax
test rax, rax
jne 0x140038a45
call fcn.140054c4c
int3
mov eax, dword [rdi]
mov dword [rbx + 8], eax
mov eax, dword [rdi]
inc eax
movsxd rdx, eax
add rdx, rdx
lea rcx, [rbx + 0x18]
mov r9, rdx
mov r8, rsi
call qword [sym.imp.msvcrt.dll_memcpy_s]
nop dword [rax + rax]
nop
jmp 0x140018d9f
mov r8d, dword [rbx - 0x10]
mov rax, qword [0x1400dc7b0]
sub r8d, dword [rax - 0x10]
lea rdx, [rbp - 0x40]
lea rcx, [rbp + 0x40]
call fcn.140015450
nop
mov rdx, rax
lea rcx, [rbp + 0x40]
call fcn.140022678
nop
mov rcx, qword [rbp - 0x40]
jmp 0x140038ac6
mov r8d, dword [rbx - 0x10]
dec r8d
lea rdx, [rbp - 0x38]
lea rcx, [rbp + 0x40]
call fcn.140015450
nop
mov rdx, rax
lea rcx, [rbp + 0x40]
call fcn.140022678
nop
mov rcx, qword [rbp - 0x38]
add rcx, 0xffffffffffffffe8
call fcn.1400111b0
mov rbx, qword [rbp + 0x40]
jmp 0x140018df1
mov rax, qword [rax]
mov r8d, 2
mov edx, dword [rdi + 8]
mov rcx, r9
mov rax, qword [rax]
call qword [case.0x140024555.0]
mov rsi, rax
test rax, rax
jne 0x140038afe
call fcn.140054c4c
int3
mov eax, dword [rdi + 8]
mov dword [rsi + 8], eax
mov eax, dword [rdi + 8]
inc eax
movsxd rdx, eax
add rdx, rdx
lea r8, [rdi + 0x18]
lea rcx, [rsi + 0x18]
mov r9, rdx
call qword [sym.imp.msvcrt.dll_memcpy_s]
nop dword [rax + rax]
nop
jmp 0x140018e86
mov r8d, 1
lea rdx, [rbp - 0x30]
lea rcx, [rbp + 0x50]
call fcn.140015450
mov rcx, qword [rax]
movzx edi, word [rcx]
sub edi, 0x5c
jne 0x140038b54
movzx edi, word [rcx + 2]
movzx eax, r14w
sub edi, eax
mov rcx, qword [rbp - 0x30]
add rcx, 0xffffffffffffffe8
call fcn.1400111b0
test edi, edi
jne 0x140038b9a
mov r8d, dword [rsi - 0x10]
dec r8d
lea rdx, [rbp - 0x28]
lea rcx, [rbp + 0x50]
call fcn.140019080
nop
mov rdx, rax
lea rcx, [rbp + 0x50]
call fcn.140022678
nop
mov rcx, qword [rbp - 0x28]
add rcx, 0xffffffffffffffe8
call fcn.1400111b0
mov rsi, qword [rbp + 0x50]
jmp 0x140038b2c
mov dword [rbp + 0x38], r14d
lea r8, [rbp + 0x38]
xor edx, edx
mov rcx, rsi
call qword [sym.imp.MPR.dll_WNetGetConnectionW]
nop dword [rax + rax]
cmp eax, 0xea
jne 0x140018eb3
lea rdx, [0x1400dc610]
lea rcx, [rbp + 0x48]
call fcn.1400142a4
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 0x140038bf6
lea rcx, [rbp + 0x48]
call fcn.140013aa0
mov rdi, qword [rbp + 0x48]
lea r8, [rbp + 0x38]
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.MPR.dll_WNetGetConnectionW]
nop dword [rax + rax]
test eax, eax
jne 0x140038cae
lea rcx, [rbp + 0x48]
call fcn.1400952dc
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_shlwapi_legacy_l1_1_0.dll_PathSkipRootW]
nop dword [rax + rax]
sub rax, rbx
sar rax, 1
mov r9d, dword [rbx - 0x10]
sub r9d, eax
mov r8d, eax
lea rdx, [rbp - 0x20]
lea rcx, [rbp + 0x40]
call fcn.14007d0bc
nop
mov r14, qword [rbp - 0x20]
mov rcx, r14
call fcn.140019030
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 0x140038c7a
lea rcx, [rbp + 0x48]
call fcn.140013aa0
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]
nop dword [rax + rax]
lea rcx, [rbp + 0x48]
call fcn.1400952dc
nop
lea rcx, [r14 - 0x18]
call fcn.1400111b0
lea rdx, [rbp + 0x48]
mov rcx, r12
call fcn.140022678
mov r14b, 1
lea rcx, [rdi - 0x18]
call fcn.1400111b0
nop
jmp 0x140018eb3