Function at 0x140238e0c
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 [0x140477ad0]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rdi, rdx
mov rsi, rcx
lea rcx, [rbp + 7]
call fcn.140079070
nop
lea rcx, [rbp + 7]
call fcn.140239554
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 0x140238ed7
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 0x140238eab
movzx ebx, ax
or ebx, 0x80070000
test ebx, ebx
jns 0x1402390c8
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, 0x147
jmp 0x140238f79
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 0x140238f96
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 0x140238f52
movzx ebx, ax
or ebx, 0x80070000
test ebx, ebx
jns 0x1402390c8
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, 0x158
lea r8, str.amcorewcd_sourcecommon_src_volumemap.cpp
mov r9d, ebx
mov qword [rsp + 0x20], rax
mov rcx, qword [rbp + 0x5f]
call fcn.1400efee0
jmp 0x1402390c8
cmp dword [rbp - 0x1d], 0x2800
jbe 0x140238ffc
call fcn.1400a4e1c
cmp dword [rax], 3
jbe 0x140238ff2
mov ecx, dword [rbp - 0x1d]
mov dword [rbp - 0x55], ecx
cmp qword [rdi + 0x18], 8
jb 0x140238fb9
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, [0x1403f2069]
mov rcx, rax
call fcn.140005c2c
mov ebx, 0x80004004
jmp 0x1402390c8
mov edx, dword [rbp - 0x1d]
lea rcx, [rbp - 0x39]
call fcn.1400bb194
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 0x1402390ac
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 0x140239065
movzx ebx, ax
or ebx, 0x80070000
test ebx, ebx
jns 0x1402390a1
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, 0x16e
call fcn.1400efee0
nop
lea rcx, [rbp - 0x39]
call fcn.14007a750
jmp 0x1402390c8
lea r8, [rbp - 0x39]
lea rdx, [rbp + 7]
mov rcx, rsi
call fcn.140238888
nop
lea rcx, [rbp - 0x39]
call fcn.14007a750
xor ebx, ebx
lea rcx, [rbp - 0x41]
call fcn.1400fffac
nop
lea rcx, [rbp + 7]
call fcn.14007a7c0
mov eax, ebx
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.140123570
mov rbx, qword [rsp + 0x110]
add rsp, 0xe0
pop rdi
pop rsi
pop rbp
ret