Function at 0x140258e4c
Capabilities:
Get storage device properties

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0xe0
mov rax, qword [0x1404e1800]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rdi, rdx
mov rsi, rcx
lea rcx, [rbp + 7]
call fcn.140099980
nop
lea rcx, [rbp + 7]
call fcn.140256098
lea rcx, [rbp + 7]
cmp qword [rbp + 0x1f], 8
cmovae rcx, qword [rbp + 7]
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x2000000
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
mov rbx, rax
mov qword [rbp - 0x41], rax
cmp rax, 0xffffffffffffffff
jne 0x140258f17
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x140258eeb
movzx ebx, ax
or ebx, 0x80070000
test ebx, ebx
jns 0x14025911d
lea rax, [rbp + 7]
cmp qword [rbp + 0x1f], 8
cmovae rax, qword [rbp + 7]
mov qword [rsp + 0x28], rax
lea rax, str.CreateFileW_failed_for_volume__ls
mov edx, 0x1ec
jmp 0x140258fce
and dword [rbp - 0x59], 0
and dword [rbp + 0x2f], 0
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x21], xmm0
movups xmmword [rbp - 0x11], xmm0
mov qword [rbp - 1], rax
and dword [rbp + 0x27], eax
and dword [rbp + 0x2b], eax
and qword [rsp + 0x38], rax
lea rax, [rbp - 0x59]
mov qword [rsp + 0x30], rax
mov dword [rsp + MsiGetActiveDatabase], 0x28
lea rax, [rbp - 0x21]
mov qword [rsp + 0x20], rax
mov r9d, SafeArrayGetDim
lea r8, [rbp + 0x27]
mov edx, 0x2d1400
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
nop dword [rax + rax]
test eax, eax
jne 0x140258feb
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
cmp eax, 1
jne 0x140258f9a
cmp byte [rsi + 0x60], 2
jne 0x140258f9e
mov ebx, 0x80070001
jmp 0x14025911d
test eax, eax
jle 0x140258fa7
movzx ebx, ax
or ebx, 0x80070000
test ebx, ebx
jns 0x14025911d
lea rax, [rbp + 7]
cmp qword [rbp + 0x1f], 8
cmovae rax, qword [rbp + 7]
mov qword [rsp + 0x28], rax
lea rax, str.DeviceIoControl_failed_for_volume__ls
mov edx, 0x20b
lea r8, str.amcorewcd_sourcecommon_src_volumemap.cpp
mov r9d, ebx
mov qword [rsp + 0x20], rax
mov rcx, qword [rbp + 0x5f]
call fcn.14008f264
jmp 0x14025911d
cmp dword [rbp - 0x1d], 0x2800
jbe 0x140259051
call fcn.140091ae4
cmp dword [rax], 3
jbe 0x140259047
mov ecx, dword [rbp - 0x1d]
mov dword [rbp - 0x55], ecx
cmp qword [rdi + 0x18], 8
jb 0x14025900e
mov rdi, qword [rdi]
mov qword [rbp - 0x51], rdi
lea rcx, str.SetVolumeHardwareInformation_failed___STORAGE_DEVICE_DESCRIPTOR_size___10KB
mov qword [rbp - 0x49], rcx
lea rcx, [rbp - 0x55]
mov qword [rsp + 0x30], rcx
lea rcx, [rbp - 0x51]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp - 0x49]
mov qword [rsp + 0x20], rcx
lea rdx, [0x14044e87a]
mov rcx, rax
call fcn.140005ba8
mov ebx, 0x80004004
jmp 0x14025911d
mov edx, dword [rbp - 0x1d]
lea rcx, [rbp - 0x39]
call fcn.1400b73f8
nop
and qword [rsp + 0x38], 0
lea rax, [rbp - 0x59]
mov qword [rsp + 0x30], rax
mov eax, dword [rbp - 0x1d]
mov dword [rsp + 0x28], eax
mov rax, qword [rbp - 0x39]
mov qword [rsp + 0x20], rax
mov r9d, SafeArrayGetDim
lea r8, [rbp + 0x27]
mov edx, 0x2d1400
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
nop dword [rax + rax]
test eax, eax
jne 0x140259101
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x1402590ba
movzx ebx, ax
or ebx, 0x80070000
test ebx, ebx
jns 0x1402590f6
lea rax, [rbp + 7]
cmp qword [rbp + 0x1f], 8
cmovae rax, qword [rbp + 7]
mov rcx, qword [rbp + 0x5f]
mov qword [rsp + 0x28], rax
lea rax, str.DeviceIoControl_failed_for_volume__ls
mov qword [rsp + 0x20], rax
mov r9d, ebx
lea r8, str.amcorewcd_sourcecommon_src_volumemap.cpp
mov edx, 0x224
call fcn.14008f264
nop
lea rcx, [rbp - 0x39]
call fcn.14007a750
jmp 0x14025911d
lea r8, [rbp - 0x39]
lea rdx, [rbp + 7]
mov rcx, rsi
call fcn.1402586ac
nop
lea rcx, [rbp - 0x39]
call fcn.14007a750
xor ebx, ebx
lea rcx, [rbp - 0x41]
call fcn.1400f0310
nop
lea rcx, [rbp + 7]
call fcn.14007a7c0
mov eax, ebx
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.140112420
mov rbx, qword [rsp + 0x110]
add rsp, 0xe0
pop rdi
pop rsi
pop rbp
ret