Function at 0x140018dd0
Capabilities:
Get disk information

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
mov r13, rcx
mov rsi, qword [rcx]
lea rbx, [rsi - 0x18]
mov rcx, qword [rbx]
mov rax, qword [rcx]
movabs r10, 0xb3651e715a5ef170
mov rax, qword [rax + 0x20]
call qword [case.0x14001f589.0]
mov rcx, rax
xor r14d, r14d
cmp dword [rbx + 0x10], r14d
jl 0x140047ae4
cmp rax, qword [rbx]
jne 0x140047ae4
lock inc dword [rbx + 0x10]
add rbx, 0x18
mov qword [rbp + 0x48], rbx
mov rax, qword [0x1400d2610]
mov r8d, dword [rax - 0x10]
lea rdx, [rbp - 0x30]
lea rcx, [rbp + 0x48]
call fcn.14001a564
mov rdx, qword [0x1400d2610]
mov rcx, qword [rax]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsicmp]
nop dword [rax + rax]
test eax, eax
sete dil
mov rcx, qword [rbp - 0x30]
add rcx, 0xffffffffffffffe8
call fcn.1400182a0
test dil, dil
jne 0x140047b38
cmp dword [rbx - 0x10], r14d
jle 0x140018e90
xor edx, edx
lea rcx, [rbp + 0x48]
call fcn.14001b154
cmp ax, 0x2f
je 0x140047b68
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 0x140018f48
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 0x140018f48
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 0x140018f48
lea r15, [rbx - 0x18]
mov rcx, qword [r15]
mov rax, qword [rcx]
movabs r10, 0xb3651e715a5ef170
mov rax, qword [rax + 0x20]
call qword [case.0x14001f589.0]
mov rcx, rax
cmp dword [r15 + 0x10], r14d
jl 0x140047ba0
cmp rax, qword [r15]
jne 0x140047ba0
mov rdi, r15
lock inc dword [r15 + 0x10]
mov rbx, qword [rbp + 0x48]
lea rax, [rdi + 0x18]
mov qword [rbp + 0x58], rax
lea rcx, [rbp + 0x58]
call fcn.14001b050
mov rsi, qword [rbp + 0x58]
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 0x140047bf7
lea rcx, [rsi - 0x18]
call fcn.1400182a0
nop
lea rcx, [rbx - 0x18]
call fcn.1400182a0
mov al, r14b
add rsp, 0x50
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov rax, qword [rax]
lea rdi, [rbx + 8]
movabs r10, 0x9230265a36d2c270
mov r8d, 2
mov edx, dword [rdi]
mov rax, qword [rax]
call qword [case.0x14001f589.0]
mov rbx, rax
test rax, rax
jne 0x140047b14
call fcn.140064088
int3
mov eax, dword [rdi]
mov dword [rbx + 8], eax
lea rcx, [rbx + 0x18]
mov eax, dword [rdi]
inc eax
movsxd rdx, eax
add rdx, rdx
mov r9, rdx
mov r8, rsi
call fcn.1400111d4
nop
jmp 0x140018e23
mov r8d, dword [rbx - 0x10]
mov rax, qword [0x1400d2610]
sub r8d, dword [rax - 0x10]
lea rdx, [rbp - 0x28]
lea rcx, [rbp + 0x48]
call fcn.14001a374
nop
mov rdx, rax
lea rcx, [rbp + 0x48]
call fcn.1400202e0
nop
mov rcx, qword [rbp - 0x28]
jmp 0x140047b8e
mov r8d, dword [rbx - 0x10]
dec r8d
lea rdx, [rbp - 0x20]
lea rcx, [rbp + 0x48]
call fcn.14001a374
nop
mov rdx, rax
lea rcx, [rbp + 0x48]
call fcn.1400202e0
nop
mov rcx, qword [rbp - 0x20]
add rcx, 0xffffffffffffffe8
call fcn.1400182a0
mov rbx, qword [rbp + 0x48]
jmp 0x140018e75
mov rax, qword [rax]
movabs r10, 0x9230265a36d2c270
mov r8d, 2
mov edx, dword [r15 + 8]
mov rax, qword [rax]
call qword [case.0x14001f589.0]
mov rdi, rax
test rax, rax
jne 0x140047bce
call fcn.140064088
int3
mov eax, dword [r15 + 8]
mov dword [rdi + 8], eax
lea r8, [r15 + 0x18]
lea rcx, [rdi + 0x18]
mov eax, dword [r15 + 8]
inc eax
movsxd rdx, eax
add rdx, rdx
mov r9, rdx
call fcn.1400111d4
nop
jmp 0x140018f11
mov r8d, 1
lea rdx, [rbp - 0x18]
lea rcx, [rbp + 0x58]
call fcn.14001a374
nop
mov rcx, qword [rax]
movzx edi, word [rcx]
sub edi, 0x5c
jne 0x140047c20
movzx edi, word [rcx + 2]
movzx eax, r14w
sub edi, eax
mov rcx, qword [rbp - 0x18]
add rcx, 0xffffffffffffffe8
call fcn.1400182a0
test edi, edi
jne 0x140047c66
mov r8d, dword [rsi - 0x10]
dec r8d
lea rdx, [rbp - 0x10]
lea rcx, [rbp + 0x58]
call fcn.14001a564
nop
mov rdx, rax
lea rcx, [rbp + 0x58]
call fcn.1400202e0
nop
mov rcx, qword [rbp - 0x10]
add rcx, 0xffffffffffffffe8
call fcn.1400182a0
mov rsi, qword [rbp + 0x58]
jmp 0x140047bf7
mov dword [rbp + 0x40], r14d
lea r8, [rbp + 0x40]
xor edx, edx
mov rcx, rsi
call qword [sym.imp.MPR.dll_WNetGetConnectionW]
nop dword [rax + rax]
cmp eax, 0xea
jne 0x140018f3e
lea rdx, [0x1400d2518]
lea rcx, [rbp + 0x50]
call fcn.14001a960
nop
mov edx, dword [rbp + 0x40]
inc edx
mov rdi, qword [rbp + 0x50]
mov ecx, 1
sub ecx, dword [rdi - 8]
mov eax, dword [rdi - 0xc]
sub eax, edx
or eax, ecx
jge 0x140047cc2
lea rcx, [rbp + 0x50]
call fcn.1400179e0
mov rdi, qword [rbp + 0x50]
lea r8, [rbp + 0x40]
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.MPR.dll_WNetGetConnectionW]
nop dword [rax + rax]
test eax, eax
jne 0x140047d7a
lea rcx, [rbp + 0x50]
call fcn.14009cd78
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 [r15 + 8]
sub r9d, eax
mov r8d, eax
lea rdx, [rbp - 8]
lea rcx, [rbp + 0x48]
call fcn.140089bf0
nop
mov r14, qword [rbp - 8]
mov rcx, r14
call fcn.14001b0f0
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 0x140047d46
lea rcx, [rbp + 0x50]
call fcn.1400179e0
mov rdi, qword [rbp + 0x50]
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 + 0x50]
call fcn.14009cd78
nop
lea rcx, [r14 - 0x18]
call fcn.1400182a0
lea rdx, [rbp + 0x50]
mov rcx, r13
call fcn.1400202e0
mov r14b, 1
lea rcx, [rdi - 0x18]
call fcn.1400182a0
nop
jmp 0x140018f3e