Function at 0x14013e4d0
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x1e0]
sub rsp, 0x2e0
mov rax, qword [0x140172608]
xor rax, rsp
mov qword [rbp + 0x1d0], rax
xor r12d, r12d
mov r14, r8
mov rsi, rdx
mov r15, rcx
test rdx, rdx
jne 0x14013e52b
lea r8, str.pszVolumePath___0
mov edx, 0x2ab
lea rcx, [0x14015c688]
call fcn.14008410c
test r14, r14
jne 0x14013e548
lea r8, str.phVolume___0
mov edx, 0x2ac
lea rcx, [0x14015c688]
call fcn.14008410c
mov eax, dword [rbp - 0x74]
lea rcx, [rbp - 0x70]
and eax, 0xfffffffe
mov qword [rsp + 0x70], r12
and eax, 0xfffffffb
mov dword [rsp + 0x78], 0x18
or eax, 2
mov qword [rbp - 0x80], rcx
mov dword [rbp - 0x74], eax
mov ebx, r12d
or rax, 0xffffffffffffffff
mov dword [rbp - 0x78], r12d
mov rdi, rax
mov word [rbp - 0x70], r12w
mov rdx, rax
mov qword [rsp + 0x40], r12
inc rdx
cmp word [rsi + rdx*2], r12w
jne 0x14013e587
lea r8, [rsp + 0x40]
mov rcx, rsi
call fcn.1400e82a4
xor edx, edx
lea rcx, [rbp - 0x40]
mov r8d, 0x208
call sub.msvcrt.dll_memset
mov rcx, qword [rsp + 0x40]
lea rdx, [rbp - 0x40]
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
jne 0x14013e629
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.::GetVolumeNameForVolumeMountPointW_pstrNewLongPath__wszVolumeGuidName__260_
mov dword [rsp + 0x60], 0x2bd
movzx ebx, ax
lea r8, str.Failed:
or ebx, 0x80070000
mov qword [rsp + 0x68], r15
test eax, eax
lea rdx, str._ws:_lVal_:__S
lea rcx, [rsp + 0x48]
cmovle ebx, eax
lea rax, [0x1401745d8]
mov qword [rsp + 0x48], rax
lea rax, str.base_stor_blbengineusn_baselibusnjournalhelper.cpp
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x50], ebx
call sym.wbengine.exe_public:_void___cdecl_CTraceFailureHelper::TraceMessage_unsigned_short_int_const____ptr64____ptr64
jmp 0x14013e7b4
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
lea rax, [rbp - 0x40]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], r12w
jne 0x14013e63c
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x70]
call fcn.1400e0fdc
mov edx, dword [rbp - 0x78]
lea edi, [rdx - 1]
cmp edi, edx
jb 0x14013e679
lea r8, str.ulIndex___m_Len
mov edx, 0x561
lea rcx, str.base_stor_blbcoresdk_smart_smartstr.hpp
call fcn.14008410c
mov edx, dword [rbp - 0x78]
mov rax, qword [rbp - 0x80]
mov ecx, edi
mov edi, 0x5c
cmp word [rax + rcx*2], di
je 0x14013e6a5
lea r8, str.ssVolumePath_ssVolumePath.Length_____1___L
mov edx, 0x2c3
lea rcx, [0x14015c688]
call fcn.14008410c
mov edx, dword [rbp - 0x78]
test edx, edx
je 0x14013e6b8
mov edx, edi
lea rcx, [rsp + 0x70]
xor r8d, r8d
call fcn.1400e0d38
mov rcx, qword [0x1401720a0]
lea rsi, [0x1401720a0]
cmp rcx, rsi
je 0x14013e6f0
test byte [rcx + 0x1c], 8
je 0x14013e6f0
cmp byte [rcx + 0x19], 4
jb 0x14013e6f0
mov r9, qword [rbp - 0x80]
lea r8, [0x14015c678]
mov rcx, qword [rcx + 0x10]
mov edx, 0x32
call fcn.140005afc
mov rcx, qword [rbp - 0x80]
mov r8d, 3
mov qword [rsp + 0x30], r12
xor r9d, r9d
mov dword [rsp + 0x28], 0x2000000
mov edx, 0x80000000
mov dword [rsp + 0x20], r8d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14013e77b
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
jns 0x14013e77b
mov r8, qword [rbp - 0x80]
lea rax, [0x1401745d8]
mov qword [rsp + 0x48], rax
lea rdx, str.Failed_to_open_volume:_ls
lea rax, str.base_stor_blbengineusn_baselibusnjournalhelper.cpp
mov dword [rsp + 0x50], ebx
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x60], 0x2d5
mov qword [rsp + 0x68], r15
call sym.wbengine.exe_public:_void___cdecl_CTraceFailureHelper::TraceMessage_unsigned_short_int_const____ptr64____ptr64
jmp 0x14013e7b4
mov qword [r14], rdi
mov rcx, qword [0x1401720a0]
cmp rcx, rsi
je 0x14013e7b4
test byte [rcx + 0x1c], 8
je 0x14013e7b4
cmp byte [rcx + 0x19], 4
jb 0x14013e7b4
mov r9, qword [rbp - 0x80]
lea r8, [0x14015c678]
mov rcx, qword [rcx + 0x10]
mov edx, 0x33
mov qword [rsp + 0x20], rdi
call fcn.140010584
test ebx, ebx
jns 0x14013e7d6
cmp rdi, 0xffffffffffffffff
je 0x14013e7d6
lea r8, str.__HANDLE__LONG_PTR__1___hVolume
mov edx, 0x2de
lea rcx, [0x14015c688]
call fcn.14008410c
lea rcx, [rsp + 0x70]
call fcn.1400e0d0c
mov eax, ebx
mov rcx, qword [rbp + 0x1d0]
xor rcx, rsp
call fcn.140141cf0
lea r11, [rsp + 0x2e0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret