Function at 0x14001b350
Capabilities:
Get disk information via ioctl
Get storage device properties

Disassembly:
mov rax, rsp
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
movaps xmmword [rax - 0x48], xmm6
mov rax, qword [0x1400ae458]
xor rax, rsp
mov qword [rbp + 0xf], rax
mov r12, r8
mov r15, rdx
mov rbx, rcx
and dword [rbp - 0x39], 0
xor edi, edi
movups xmm6, xmmword [0x140070b50]
movups xmmword [rbp - 0x31], xmm6
xor esi, esi
lea r14d, [rdi + 8]
lea r8, str.CVdsService::GetLunInformationForDisk
lea edx, [rdi + 0x5e]
lea rcx, [rbp - 0x21]
call qword [sym.imp.vdsutil.dll_public:_void___cdecl_CVdsCallTracer::constructor_unsigned_long_int__char_const____ptr64____ptr64]
nop dword [rax + rax]
nop
mov dword [r12], 0xf423f
xor edx, edx
lea r8d, [rdi + 0x60]
mov rcx, r15
call sub.msvcrt.dll_memset
lea rax, str.UNKNOWN
mov r9, rbx
test rbx, rbx
cmove r9, rax
lea r8, str.CVdsService::GetLunInformationForDisk__pathname_S
lea edx, [rdi + 3]
lea ecx, [rdi + 0x5e]
call qword [sym.imp.vdsutil.dll_VdsTraceEx]
nop dword [rax + rax]
and qword [rsp + 0x30], rsi
and dword [rsp + 0x28], esi
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0xc0000000
lea r8d, [rdi + 1]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateFileW]
nop dword [rax + rax]
mov rbx, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x14001ba96
and qword [rsp + 0x38], rsi
lea rax, [rbp - 0x39]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0xc
lea rax, [rbp - 1]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x2d1080
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_io_l1_1_0.dll_DeviceIoControl]
nop dword [rax + rax]
test eax, eax
jne 0x14001b496
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jle 0x14001b48a
movzx edi, ax
or edi, 0x80070000
lea r8, str.CVdsService::GetLunInformationForDisk__2__hr_lX
jmp 0x14001b95b
mov eax, dword [rbp + 3]
mov dword [r12], eax
test rsi, rsi
je 0x14001b4b1
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
nop dword [rax + rax]
mov r12d, r14d
mov ecx, r14d
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemAlloc]
nop dword [rax + rax]
mov rsi, rax
test rax, rax
je 0x14001ba81
mov r8d, r12d
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
and dword [rbp - 0x11], 0
and dword [rbp - 0xd], 0
and qword [rsp + 0x38], 0
lea rax, [rbp - 0x39]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], rsi
mov r9d, 0xc
lea r8, [rbp - 0x11]
mov edx, 0x2d1400
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_io_l1_1_0.dll_DeviceIoControl]
nop dword [rax + rax]
test eax, eax
je 0x14001ba49
cmp r14d, dword [rsi + 4]
jae 0x14001b532
mov r14d, dword [rsi + 4]
jmp 0x14001b49d
cmp r14d, 0x28
jae 0x14001b54e
mov eax, 0x8007007a
mov edi, eax
mov r9d, eax
lea r8, str.CVdsService::GetLunInformationForDisk__4.5__hr_lX
jmp 0x14001b95e
mov ecx, 1
mov dword [r15], ecx
mov al, byte [rsi + 8]
mov byte [r15 + 4], al
mov al, byte [rsi + 9]
mov byte [r15 + 5], al
movzx eax, byte [rsi + 0xb]
mov dword [r15 + 8], eax
mov eax, dword [rsi + 0x1c]
mov dword [r15 + 0xc], eax
mov r9d, dword [rsi + 0xc]
test r9d, r9d
je 0x14001b714
cmp r9d, r14d
jae 0x14001b714
cmp r9d, 0x24
jb 0x14001b714
lea rcx, [r15 + 0x10]
mov r8d, r9d
mov rdx, rsi
call fcn.140015f64
mov edi, eax
mov r12d, 0x5e
test eax, eax
jns 0x14001b740
mov r9d, eax
lea r8, str.CVdsService::GetLunInformationForDisk__5__hr_lX
xor edx, edx
mov ecx, r12d
call qword [sym.imp.vdsutil.dll_VdsTraceEx]
nop dword [rax + rax]
mov qword [rsp + 0x28], 0x24
mov dword [rsp + 0x20], r14d
mov r9d, dword [rsi + 0x10]
lea r8, str.CVdsService::GetLunInformationForDisk__6b__ProductIdOffset_ld__cbQueryBuffer_ld__propertiesOffset_ld
xor edx, edx
mov ecx, r12d
call qword [sym.imp.vdsutil.dll_VdsTraceEx]
nop dword [rax + rax]
test edi, edi
js 0x14001b791
mov r8d, dword [rsi + 0x14]
test r8d, r8d
je 0x14001b791
cmp r8d, r14d
jae 0x14001b791
cmp r8d, 0x24
jb 0x14001b791
lea rcx, [r15 + 0x20]
mov rdx, rsi
call fcn.140015f64
mov edi, eax
test eax, eax
jns 0x14001b7c3
mov r9d, eax
lea r8, str.CVdsService::GetLunInformationForDisk__7__hr_lX
xor edx, edx
mov ecx, r12d
call qword [sym.imp.vdsutil.dll_VdsTraceEx]
nop dword [rax + rax]
mov qword [rsp + 0x28], 0x24
mov dword [rsp + 0x20], r14d
mov r9d, dword [rsi + 0x18]
lea r8, str.CVdsService::GetLunInformationForDisk__8b__SerialNumberOffset_ld__cbQueryBuffer_ld__propertiesOffset_ld
xor edx, edx
lea ecx, [rdx + 0x5e]
call qword [sym.imp.vdsutil.dll_VdsTraceEx]
nop dword [rax + rax]
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
nop dword [rax + rax]
mov r12d, r14d
mov ecx, r14d
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemAlloc]
nop dword [rax + rax]
mov rsi, rax
test rax, rax
je 0x14001ba34
mov r8d, r12d
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
mov dword [rbp - 0x11], 2
and dword [rbp - 0xd], 0
and qword [rsp + 0x38], 0
lea rax, [rbp - 0x39]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], rsi
mov r9d, 0xc
lea r8, [rbp - 0x11]
mov edx, 0x2d1400
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_io_l1_1_0.dll_DeviceIoControl]
nop dword [rax + rax]
mov r12d, eax
test eax, eax
je 0x14001b846
cmp r14d, dword [rsi + 4]
jae 0x14001b819
mov r14d, dword [rsi + 4]
jmp 0x14001b67a
mov qword [rsp + 0x28], 0x24
mov dword [rsp + 0x20], r14d
lea r8, str.CVdsService::GetLunInformationForDisk__5b__VendorIdOffset_ld__cbQueryBuffer_ld__propertiesOffset_ld
mov edx, ecx
mov r12d, 0x5e
mov ecx, r12d
call qword [sym.imp.vdsutil.dll_VdsTraceEx]
nop dword [rax + rax]
mov r8d, dword [rsi + 0x10]
test r8d, r8d
je 0x14001b5cd
cmp r8d, r14d
jae 0x14001b5cd
cmp r8d, 0x24
jb 0x14001b5cd
lea rcx, [r15 + 0x18]
mov rdx, rsi
call fcn.140015f64
mov edi, eax
test eax, eax
jns 0x14001b5ff
mov r9d, eax
lea r8, str.CVdsService::GetLunInformationForDisk__6__hr_lX
xor edx, edx
mov ecx, r12d
call qword [sym.imp.vdsutil.dll_VdsTraceEx]
nop dword [rax + rax]
mov qword [rsp + 0x28], 0x24
mov dword [rsp + 0x20], r14d
mov r9d, dword [rsi + 0x14]
lea r8, str.CVdsService::GetLunInformationForDisk__7b__ProductRevisionOffset_ld__cbQueryBuffer_ld__propertiesOffset_ld
xor edx, edx
mov ecx, r12d
call qword [sym.imp.vdsutil.dll_VdsTraceEx]
nop dword [rax + rax]
test edi, edi
js 0x14001b650
mov r8d, dword [rsi + 0x18]
test r8d, r8d
je 0x14001b650
cmp r8d, r14d
jae 0x14001b650
cmp r8d, 0x24
jb 0x14001b650
lea rcx, [r15 + 0x28]
mov rdx, rsi
call fcn.140015f64
mov edi, eax
test eax, eax
jns 0x14001b67a
mov r9d, eax
lea r8, str.CVdsService::GetLunInformationForDisk__8__hr_lX
xor edx, edx
mov ecx, r12d
call qword [sym.imp.vdsutil.dll_VdsTraceEx]
nop dword [rax + rax]
jmp 0x14001b67a
mov eax, dword [rbp - 0x39]
cmp eax, 0x10
jb 0x14001b870
cmp eax, dword [rsi + 4]
jne 0x14001b870
mov rdx, r15
mov rcx, rsi
call fcn.1400160a4
mov edi, eax
test eax, eax
jns 0x14001b8ab
mov r9d, eax
lea r8, str.CVdsService::GetLunInformationForDisk__10__hr_lX
jmp 0x14001b95e
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov r9d, eax
lea r8, str.CVdsService::GetLunInformationForDisk__9b__error_ld
xor edx, edx
lea ecx, [rdx + 0x5e]
call qword [sym.imp.vdsutil.dll_VdsTraceEx]
nop dword [rax + rax]
mov eax, dword [rbp - 0x39]
and dword [r15 + 0x40], 0
and dword [r15 + 0x44], 0
mov dword [rsp + 0x30], r12d
mov qword [rsp + 0x28], 0x10
mov dword [rsp + 0x20], eax
mov r9d, dword [rsi + 4]
lea r8, str.CVdsService::GetLunInformationForDisk__10b__Size_ld__cbSize_ld__header_size_ld__error_ld
mov edx, 1
lea ecx, [rdx + 0x5d]
call qword [sym.imp.vdsutil.dll_VdsTraceEx]
nop dword [rax + rax]
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
nop dword [rax + rax]
mov r12d, r14d
mov ecx, r14d
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemAlloc]
nop dword [rax + rax]
mov rsi, rax
test rax, rax
je 0x14001ba1f
mov r8d, r12d
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
and qword [rsp + 0x38], 0
lea rax, [rbp - 0x39]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
mov edx, 0x70050
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_io_l1_1_0.dll_DeviceIoControl]
nop dword [rax + rax]
test eax, eax
jne 0x14001b974
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0x7a
jne 0x14001b939
add r14d, 0x2400
jmp 0x14001b8ab
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jle 0x14001b954
movzx edi, ax
or edi, 0x80070000
lea r8, str.CVdsService::GetLunInformationForDisk__12__hr_lX
mov r9d, edi
xor edx, edx
lea ecx, [rdx + 0x5e]
call qword [sym.imp.vdsutil.dll_VdsTraceEx]
nop dword [rax + rax]
jmp 0x14001bad9
mov ecx, dword [rbp - 0x39]
mov r9d, 0x30
cmp r14d, r9d
jb 0x14001b9ee
cmp ecx, r9d
jb 0x14001b9ee
mov eax, dword [rsi + 4]
lea ecx, [rax + rax*8]
shl ecx, 4
add ecx, r9d
cmp r14d, ecx
jae 0x14001b9c8
mov eax, 0x8007007a
mov edi, eax
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], r14d
mov r9d, eax
lea r8, str.CVdsService::GetLunInformationForDisk__11.7__hr_lX__cbQueryBuffer_ld__dwSize_ld
xor edx, edx
lea ecx, [rdx + 0x5e]
call qword [sym.imp.vdsutil.dll_VdsTraceEx]
nop dword [rax + rax]
jmp 0x14001bad9
mov ecx, dword [rsi]
test ecx, ecx
je 0x14001b9d9
cmp ecx, 1
jne 0x14001b9e3
movups xmm6, xmmword [rsi + 8]
jmp 0x14001b9e3
mov eax, dword [rsi + 8]
mov dword [rbp - 0x31], eax
movups xmm6, xmmword [rbp - 0x31]
movdqu xmmword [r15 + 0x30], xmm6
jmp 0x14001bad9
mov eax, 0x8007007a
mov edi, eax
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], r14d
lea r8, str.CVdsService::GetLunInformationForDisk__11.5__dwSize_lu__Buffer_lu__Size_lu__hr_lX
xor edx, edx
lea ecx, [rdx + 0x5e]
call qword [sym.imp.vdsutil.dll_VdsTraceEx]
nop dword [rax + rax]
jmp 0x14001bad9
mov r9d, 0x8007000e
mov edi, r9d
lea r8, str.CVdsService::GetLunInformationForDisk__11__hr_lX
jmp 0x14001b95e
mov r9d, 0x8007000e
mov edi, r9d
lea r8, str.CVdsService::GetLunInformationForDisk__9__hr_lX
jmp 0x14001b95e
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
mov r9d, eax
lea r8, str.CVdsService::GetLunInformationForDisk__4__error_ld
xor edx, edx
lea ecx, [rdx + 0x5e]
call qword [sym.imp.vdsutil.dll_VdsTraceEx]
nop dword [rax + rax]
test edi, edi
jle 0x14001bad9
movzx edi, di
or edi, 0x80070000
jmp 0x14001bad9
mov r9d, 0x8007000e
mov edi, r9d
lea r8, str.CVdsService::GetLunInformationForDisk__3__hr_lX
jmp 0x14001b95e
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jle 0x14001bab1
movzx edi, ax
or edi, 0x80070000
mov r9d, edi
lea r8, str.CVdsService::GetLunInformationForDisk__1__hr_lX
xor edx, edx
lea ecx, [rdx + 0x5e]
call qword [sym.imp.vdsutil.dll_VdsTraceEx]
nop dword [rax + rax]
test rbx, rbx
je 0x14001bafd
xor esi, esi
cmp rbx, 0xffffffffffffffff
je 0x14001bafd
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
test rsi, rsi
je 0x14001bafd
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
nop dword [rax + rax]
nop
lea rcx, [rbp - 0x21]
call qword [sym.imp.vdsutil.dll_public:_void___cdecl_CVdsCallTracer::destructor_void____ptr64]
nop dword [rax + rax]
mov eax, edi
mov rcx, qword [rbp + 0xf]
xor rcx, rsp
call fcn.140002530
movaps xmm6, xmmword [rsp + 0x90]
add rsp, 0xa0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret