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

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xb0
mov qword [rbp - 0x31], 0xfffffffffffffffe
mov qword [rax + 0x20], rbx
movaps xmmword [rax - 0x48], xmm6
mov rax, qword [0x1400b13e8]
xor rax, rsp
mov qword [rbp + 7], rax
mov r12, r8
mov r15, rdx
mov rbx, rcx
and dword [rbp - 0x49], 0
xor edi, edi
movups xmm6, xmmword [0x1400662f8]
movups xmmword [rbp - 0x41], xmm6
xor esi, esi
lea r14d, [rdi + 8]
lea r8, str.CVdsService::GetLunInformationForDisk
lea edx, [rdi + 0x5e]
lea rcx, [rbp - 0x29]
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 r9, str.UNKNOWN
test rbx, rbx
cmovne r9, rbx
lea r8, str.CVdsService::GetLunInformationForDisk__pathname_S
lea r13d, [rdi + 3]
mov edx, r13d
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], r13d
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 r13, rax
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x1400194a7
and qword [rsp + 0x38], rsi
lea rax, [rbp - 0x49]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], AtlModuleRegisterClassObjects
lea rax, [rbp - 9]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x2d1080
mov rcx, r13
call qword [sym.imp.api_ms_win_core_io_l1_1_0.dll_DeviceIoControl]
nop dword [rax + rax]
test eax, eax
jne 0x140018f41
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
lea r8, str.CVdsService::GetLunInformationForDisk__2__hr_lX
jmp 0x1400194ba
mov eax, dword [rbp - 5]
mov dword [r12], eax
xor r12d, r12d
test rsi, rsi
je 0x140018f5f
mov rcx, rsi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov ebx, r14d
mov ecx, r14d
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
nop dword [rax + rax]
mov rsi, rax
test rax, rax
je 0x140019495
mov r8d, ebx
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
mov qword [rbp - 0x19], r12
mov qword [rsp + 0x38], r12
lea rax, [rbp - 0x49]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], rsi
mov r9d, AtlModuleRegisterClassObjects
lea r8, [rbp - 0x19]
mov edx, 0x2d1400
mov rcx, r13
call qword [sym.imp.api_ms_win_core_io_l1_1_0.dll_DeviceIoControl]
nop dword [rax + rax]
test eax, eax
je 0x14001945c
cmp r14d, dword [rsi + 4]
jae 0x140018fdb
mov r14d, dword [rsi + 4]
jmp 0x140018f4b
cmp r14d, 0x28
jae 0x140018ff7
mov eax, 0x8007007a
mov edi, eax
mov r9d, eax
lea r8, str.CVdsService::GetLunInformationForDisk__4.5__hr_lX
jmp 0x1400194cb
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]
lea ebx, [rcx + 0x23]
test r9d, r9d
je 0x140019064
cmp r9d, r14d
jae 0x140019064
cmp r9d, ebx
jb 0x140019064
lea rcx, [r15 + 0x10]
mov r8d, r9d
mov rdx, rsi
call fcn.140018870
mov edi, eax
test eax, eax
jns 0x14001908c
mov r9d, eax
lea r8, str.CVdsService::GetLunInformationForDisk__5__hr_lX
xor edx, edx
lea ecx, [rbx + 0x3a]
call qword [sym.imp.vdsutil.dll_VdsTraceEx]
nop dword [rax + rax]
jmp 0x140019088
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], r14d
lea r8, str.CVdsService::GetLunInformationForDisk__5b__VendorIdOffset_ld__cbQueryBuffer_ld__propertiesOffset_ld
mov edx, ecx
mov ecx, 0x5e
call qword [sym.imp.vdsutil.dll_VdsTraceEx]
nop dword [rax + rax]
test edi, edi
js 0x1400190ce
mov r8d, dword [rsi + 0x10]
test r8d, r8d
je 0x1400190ce
cmp r8d, r14d
jae 0x1400190ce
cmp r8d, ebx
jb 0x1400190ce
lea rcx, [r15 + 0x18]
mov rdx, rsi
call fcn.140018870
mov edi, eax
test eax, eax
jns 0x1400190f8
mov r9d, eax
lea r8, str.CVdsService::GetLunInformationForDisk__6__hr_lX
xor edx, edx
lea ecx, [rdx + 0x5e]
call qword [sym.imp.vdsutil.dll_VdsTraceEx]
nop dword [rax + rax]
jmp 0x1400190f4
mov qword [rsp + 0x28], rbx
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
lea ecx, [rdx + 0x5e]
call qword [sym.imp.vdsutil.dll_VdsTraceEx]
nop dword [rax + rax]
test edi, edi
js 0x14001913a
mov r8d, dword [rsi + 0x14]
test r8d, r8d
je 0x14001913a
cmp r8d, r14d
jae 0x14001913a
cmp r8d, ebx
jb 0x14001913a
lea rcx, [r15 + 0x20]
mov rdx, rsi
call fcn.140018870
mov edi, eax
test eax, eax
jns 0x140019164
mov r9d, eax
lea r8, str.CVdsService::GetLunInformationForDisk__7__hr_lX
xor edx, edx
lea ecx, [rdx + 0x5e]
call qword [sym.imp.vdsutil.dll_VdsTraceEx]
nop dword [rax + rax]
jmp 0x140019160
mov qword [rsp + 0x28], rbx
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
lea ecx, [rdx + 0x5e]
call qword [sym.imp.vdsutil.dll_VdsTraceEx]
nop dword [rax + rax]
test edi, edi
js 0x1400191a6
mov r8d, dword [rsi + 0x18]
test r8d, r8d
je 0x1400191a6
cmp r8d, r14d
jae 0x1400191a6
cmp r8d, ebx
jb 0x1400191a6
lea rcx, [r15 + 0x28]
mov rdx, rsi
call fcn.140018870
mov edi, eax
test eax, eax
jns 0x1400191cc
mov r9d, eax
lea r8, str.CVdsService::GetLunInformationForDisk__8__hr_lX
xor edx, edx
lea ecx, [rdx + 0x5e]
call qword [sym.imp.vdsutil.dll_VdsTraceEx]
nop dword [rax + rax]
jmp 0x1400191cc
mov qword [rsp + 0x28], rbx
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.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov ebx, r14d
mov ecx, r14d
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
nop dword [rax + rax]
mov rsi, rax
test rax, rax
je 0x14001944a
mov r8d, ebx
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
mov qword [rbp - 0x19], 2
mov qword [rsp + 0x38], r12
lea rax, [rbp - 0x49]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], rsi
mov r9d, AtlModuleRegisterClassObjects
lea r8, [rbp - 0x19]
mov edx, 0x2d1400
mov rcx, r13
call qword [sym.imp.api_ms_win_core_io_l1_1_0.dll_DeviceIoControl]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
je 0x140019259
cmp r14d, dword [rsi + 4]
jae 0x140019280
mov r14d, dword [rsi + 4]
jmp 0x1400191cc
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 - 0x49]
test ebx, ebx
je 0x1400192b1
cmp eax, 0x10
jb 0x1400192b1
cmp eax, dword [rsi + 4]
jne 0x1400192b1
mov rdx, r15
mov rcx, rsi
call fcn.1400189a4
mov edi, eax
test eax, eax
jns 0x1400192e5
mov r9d, eax
lea r8, str.CVdsService::GetLunInformationForDisk__10__hr_lX
jmp 0x1400194cb
mov qword [r15 + 0x40], r12
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x28], reloc.ATL.DLL_AtlModuleInit
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.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov ebx, r14d
mov ecx, r14d
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
nop dword [rax + rax]
mov rsi, rax
test rax, rax
je 0x140019435
mov r8d, ebx
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
mov qword [rsp + 0x38], r12
lea rax, [rbp - 0x49]
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, r13
call qword [sym.imp.api_ms_win_core_io_l1_1_0.dll_DeviceIoControl]
nop dword [rax + rax]
test eax, eax
jne 0x14001938a
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0x7a
jne 0x140019372
add r14d, 0x2400
jmp 0x1400192e5
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
lea r8, str.CVdsService::GetLunInformationForDisk__12__hr_lX
jmp 0x1400194ba
mov ecx, dword [rbp - 0x49]
mov r9d, 0x30
cmp r14d, r9d
jb 0x140019404
cmp ecx, r9d
jb 0x140019404
mov eax, dword [rsi + 4]
lea ecx, [rax + rax*8]
shl ecx, 4
add ecx, r9d
cmp r14d, ecx
jae 0x1400193de
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 0x1400194dc
mov ecx, dword [rsi]
test ecx, ecx
je 0x1400193ef
cmp ecx, 1
jne 0x1400193f9
movups xmm6, xmmword [rsi + 8]
jmp 0x1400193f9
mov eax, dword [rsi + 8]
mov dword [rbp - 0x41], eax
movups xmm6, xmmword [rbp - 0x41]
movdqu xmmword [r15 + 0x30], xmm6
jmp 0x1400194dc
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 0x1400194dc
mov r9d, 0x8007000e
mov edi, r9d
lea r8, str.CVdsService::GetLunInformationForDisk__11__hr_lX
jmp 0x1400194cb
mov r9d, 0x8007000e
mov edi, r9d
lea r8, str.CVdsService::GetLunInformationForDisk__9__hr_lX
jmp 0x1400194cb
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, 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]
movzx edi, bx
or edi, 0x80070000
test ebx, ebx
cmovle edi, ebx
jmp 0x1400194dc
mov r9d, 0x8007000e
mov edi, r9d
lea r8, str.CVdsService::GetLunInformationForDisk__3__hr_lX
jmp 0x1400194cb
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
lea r8, str.CVdsService::GetLunInformationForDisk__1__hr_lX
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov r9d, edi
xor edx, edx
lea ecx, [rdx + 0x5e]
call qword [sym.imp.vdsutil.dll_VdsTraceEx]
nop dword [rax + rax]
lea rax, [r13 - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400194f5
mov rcx, r13
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
test rsi, rsi
je 0x14001950a
mov rcx, rsi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
nop
lea rcx, [rbp - 0x29]
call qword [sym.imp.vdsutil.dll_public:_void___cdecl_CVdsCallTracer::destructor_void____ptr64]
nop dword [rax + rax]
mov eax, edi
mov rcx, qword [rbp + 7]
xor rcx, rsp
call fcn.14005df40
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x58]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret