Function at 0x140021090
Capabilities:
Get disk information

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x1e8]
sub rsp, 0x2b0
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov rax, qword [0x14004a300]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
mov r12, r9
mov qword [rsp + 0x58], r8
mov r13b, dl
mov qword [rsp + 0x50], rcx
mov rax, qword [rbp + 0x210]
mov qword [rsp + 0x48], rax
or r15, 0xffffffffffffffff
mov rax, r15
xor r14d, r14d
inc rax
cmp word [r9 + rax*2], r14w
jne 0x1400210f0
lea edx, [rax + 1]
xor ecx, ecx
call qword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov rdi, rax
mov qword [rbp - 0x80], rax
mov rax, r15
inc rax
cmp word [r12 + rax*2], r14w
jne 0x14002110f
lea edx, [rax + 1]
xor ecx, ecx
call qword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov rbx, rax
mov qword [rbp - 0x78], rax
mov rcx, r12
mov rdx, rdi
sub rdx, r12
movzx eax, word [rcx]
mov word [rdx + rcx], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x140021134
mov rax, r15
inc rax
cmp word [r12 + rax*2], r14w
jne 0x140021147
cmp word [r12 + rax*2 - 2], 0x5c
je 0x140021170
lea rcx, [rdi - 2]
lea rcx, [rcx + 2]
cmp word [rcx], r14w
jne 0x14002115e
mov eax, dword [0x14003f0d0]
mov dword [rcx], eax
mov rcx, r12
call sub.RESUTILS.dll_ClusterIsPathOnSharedVolume
mov rcx, r15
inc rcx
cmp word [r12 + rcx*2], r14w
jne 0x14002117b
lea r8d, [rcx + 1]
mov rdx, rbx
test eax, eax
je 0x140021204
mov rcx, r12
call sub.RESUTILS.dll_ClusterGetVolumePathName
mov esi, 0x80070000
test eax, eax
jne 0x1400211c3
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, esi
test eax, eax
cmovle ecx, eax
mov r9, r12
mov r8d, eax
lea rdx, str.ClusterGetVolumePathName_failed_with_error__d_nPath_s.
call fcn.14001aa8c
mov r8d, 0x104
lea rdx, [rbp - 0x70]
mov rcx, rbx
call sub.RESUTILS.dll_ClusterGetVolumeNameForVolumeMountPoint
test eax, eax
jne 0x140021298
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, esi
test eax, eax
cmovle ecx, eax
mov r9, rbx
mov r8d, eax
lea rdx, str.ClusterGetVolumeNameForVolumeMountPoint_failed_with_error__d_nPath_s.
call fcn.14001aa8c
jmp 0x140021298
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
test eax, eax
jne 0x14002127d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0xce
cmp eax, r8d
jne 0x14002125d
mov rax, r15
inc rax
cmp word [rdi + rax*2], r14w
jne 0x140021225
cmp rax, 3
jb 0x140021256
cmp word [rdi + 2], 0x3a
jne 0x140021256
cmp word [rdi + 4], 0x5c
jne 0x140021256
mov eax, dword [rdi]
mov dword [rbx], eax
movzx eax, word [rdi + 4]
mov word [rbx + 4], ax
mov word [rbx + 6], r14w
jmp 0x14002127d
mov ecx, 0x800700ce
jmp 0x14002126e
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov r8d, eax
mov r9, r12
lea rdx, str.GetVolumePathName_failed_with_error__d_nPath_s.
call fcn.14001aa8c
mov r8d, 0x104
lea rdx, [rbp - 0x70]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
je 0x14002133e
mov rcx, qword [rsp + 0x58]
add rcx, 0x18
lea rdx, [rbp - 0x70]
call fcn.1400222d0
mov rdx, rax
test rax, rax
jne 0x1400212e9
test r13b, r13b
jne 0x1400212ce
lea rcx, [rbp - 0x70]
mov rax, r15
inc rax
cmp word [rcx + rax*2], r14w
jne 0x1400212be
lea rdx, [rbp - 0x70]
jmp 0x1400212f6
mov r8, r12
lea rdx, str.Snapshot_device_does_not_exist_for_path__s
mov ecx, 0x8000ffff
call fcn.14001aa8c
mov rsi, qword [rsp + 0x48]
jmp 0x140021306
mov rax, r15
inc rax
cmp word [rdx + rax*2], r14w
jne 0x1400212ec
mov rsi, qword [rsp + 0x48]
mov r8d, eax
mov rcx, rsi
call fcn.14000a054
mov rax, r15
inc rax
cmp word [rbx + rax*2], r14w
jne 0x140021309
lea rdx, [r12 - 2]
lea rdx, [rdx + rax*2]
test rdx, rdx
je 0x14002132e
inc r15
cmp word [rdx + r15*2], r14w
jne 0x140021321
mov r14d, r15d
mov r8d, r14d
mov rcx, rsi
call fcn.14000a054
jmp 0x140021587
mov qword [rsp + 0x68], r14
cmp byte [0x14004a014], r14b
je 0x140021368
test r12, r12
jne 0x140021356
mov eax, r14d
jmp 0x140021363
mov rax, r15
inc rax
cmp word [r12 + rax*2], r14w
jne 0x140021359
mov rsi, r12
jmp 0x140021374
mov rsi, rbx
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_VariantInit]
mov r8d, eax
mov rdx, rsi
lea rcx, [rsp + 0x68]
call fcn.14000a054
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x70], r14
lea rcx, str._n_Calling_pBackupComp__QueryInterface_IVssBackupComponentsEx4_
call sub.msvcrt.dll_wprintf
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
lea r8, [rsp + 0x60]
lea rdx, [0x140034b98]
mov rax, qword [rax]
call qword [0x14002f5e0]
mov esi, eax
test eax, eax
je 0x1400213fc
mov ecx, eax
call fcn.14001ab20
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], esi
lea rax, str.pvbc__QueryInterface_pvbc4_
mov qword [rsp + 0x20], rax
mov r9d, 0x265
lea r8, str.base_stor_vss_tests_betest_saverest.cpp
lea rdx, str._nError_in__S__d_:__n_t__Call__S_not_succeeded.__n_t__Error_code__0x_08lx._Error_description___s_n
mov ecx, 1
call fcn.14001a9f8
mov rsi, qword [rsp + 0x68]
mov rdx, rsi
lea rcx, str._n_Calling_pvbc4__GetRootAndLogicalPrefixPaths____s__
call sub.msvcrt.dll_wprintf
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx]
mov dword [rsp + 0x20], r14d
lea r9, [rsp + 0x70]
lea r8, [rsp + 0x40]
mov rdx, rsi
mov rax, qword [rax + 0x200]
call qword [0x14002f5e0]
mov r13d, eax
test eax, eax
je 0x140021479
mov ecx, eax
call fcn.14001ab20
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], r13d
lea rax, str.pvbc4__GetRootAndLogicalPrefixPaths___VSS_PWSZ_bstrLookupPath___VSS_PWSZ__pwszRootPath____VSS_PWSZ__pwszLogicalPath__
mov qword [rsp + 0x20], rax
mov r9d, 0x269
lea r8, str.base_stor_vss_tests_betest_saverest.cpp
lea rdx, str._nError_in__S__d_:__n_t__Call__S_not_succeeded.__n_t__Error_code__0x_08lx._Error_description___s_n
mov ecx, 1
call fcn.14001a9f8
mov r8, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x40]
lea rcx, str._n_pvbc4__GetRootAndLogicalPrefixPaths_returned:_Rootpath:__s__LogicalPrefix:__s_n
call sub.msvcrt.dll_wprintf
mov rcx, qword [rsp + 0x58]
add rcx, 0x18
mov r13, qword [rsp + 0x40]
mov rdx, r13
call fcn.1400222d0
mov qword [rsp + 0x50], rax
test rax, rax
jne 0x140021511
mov rax, r15
inc rax
cmp word [r13 + rax*2], r14w
jne 0x1400214b2
cmp word [r13 + rax*2 - 2], 0x5c
jne 0x1400214df
mov rax, r15
inc rax
cmp word [r13 + rax*2], r14w
jne 0x1400214c9
mov word [r13 + rax*2 - 2], r14w
mov r13, qword [rsp + 0x40]
mov rdx, r13
mov rcx, qword [rsp + 0x58]
add rcx, 0x18
call fcn.1400222d0
mov qword [rsp + 0x50], rax
test rax, rax
jne 0x140021511
mov r9, r13
mov r8, r12
lea rdx, str.Snapshot_share_does_not_exist_for_path__s_volumePath__s
mov ecx, 0x8000ffff
call fcn.14001aa8c
mov r13, qword [rsp + 0x48]
mov rcx, qword [r13]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [r13], rax
mov rax, r15
inc rax
cmp word [rbx + rax*2], r14w
jne 0x140021532
lea rdx, [r12 - 2]
lea rdx, [rdx + rax*2]
test rdx, rdx
jne 0x14002154f
mov r15d, r14d
jmp 0x140021559
inc r15
cmp word [rdx + r15*2], r14w
jne 0x14002154f
mov r8d, r15d
mov rcx, r13
call fcn.14000a054
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14002157d
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x14002f5e0]
nop
mov rcx, rsi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov al, 1
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.14002c700
mov rbx, qword [rsp + 0x2f8]
add rsp, 0x2b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret