Function at 0x140132928
Capabilities:
Get storage device properties

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x47]
sub rsp, 0xe0
mov rax, qword [0x1404fd7f0]
xor rax, rsp
mov qword [rbp + 0x3f], rax
mov rsi, rdx
mov rdi, rcx
lea rcx, [rbp + 0xf]
call fcn.14008cc50
nop
mov rcx, qword [rbp + 0x1f]
dec rcx
lea rax, [rbp + 0xf]
cmp qword [rbp + 0x27], 8
cmovae rax, qword [rbp + 0xf]
mov qword [rbp + 0x1f], rcx
xor r14d, r14d
mov word [rax + rcx*2], r14w
lea rcx, [rbp + 0xf]
cmp qword [rbp + 0x27], 8
cmovae rcx, qword [rbp + 0xf]
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x2000000
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r14 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
mov rbx, rax
mov qword [rbp - 0x51], rax
cmp rax, 0xffffffffffffffff
jne 0x140132a25
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 0x1401329e4
movzx ebx, ax
or ebx, 0x80070000
test ebx, ebx
jns 0x140132a20
lea rax, [rbp + 0xf]
cmp qword [rbp + 0x27], 8
cmovae rax, qword [rbp + 0xf]
mov rcx, qword [rbp + 0x5f]
mov qword [rsp + 0x28], rax
lea rax, str.CreateFileW_failed_for_volume__ls
mov qword [rsp + 0x20], rax
mov r9d, ebx
lea r8, str.amcorewcd_sourcecommon_src_volumemap.cpp
mov edx, 0x1ec
call fcn.1400f616c
nop
jmp 0x140132c54
mov dword [rbp - 0x59], r14d
mov qword [rbp + 0x33], r14
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x19], xmm0
movups xmmword [rbp - 9], xmm0
mov qword [rbp + 7], rax
mov dword [rbp + 0x2f], r14d
mov qword [rsp + 0x38], r14
lea rax, [rbp - 0x59]
mov qword [rsp + 0x30], rax
mov dword [rsp + MsiGetActiveDatabase], 0x28
lea rax, [rbp - 0x19]
mov qword [rsp + 0x20], rax
mov r9d, SafeArrayGetDim
lea r8, [rbp + 0x2f]
mov edx, 0x2d1400
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
nop dword [rax + rax]
test eax, eax
jne 0x140132b0a
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 0x140132ab3
cmp byte [rdi + 0x60], 2
jne 0x140132ab7
lea rcx, [rbp - 0x51]
call fcn.14011e68c
mov ebx, 0x80070001
jmp 0x140132c54
test eax, eax
jle 0x140132ac0
movzx ebx, ax
or ebx, 0x80070000
test ebx, ebx
jns 0x140132afc
lea rax, [rbp + 0xf]
cmp qword [rbp + 0x27], 8
cmovae rax, qword [rbp + 0xf]
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, 0x20b
call fcn.1400f616c
nop
lea rcx, [rbp - 0x51]
call fcn.14011e68c
jmp 0x140132c54
cmp dword [rbp - 0x15], 0x2800
jbe 0x140132b7b
call fcn.1400abad4
mov r8, rax
cmp dword [rax], 3
jbe 0x140132b68
mov ecx, dword [rbp - 0x15]
mov dword [rbp - 0x49], ecx
mov rcx, rsi
call fcn.1400df740
mov qword [rbp - 0x41], rax
lea rax, str.SetVolumeHardwareInformation_failed___STORAGE_DEVICE_DESCRIPTOR_size___10KB
mov qword [rbp - 0x39], rax
lea rax, [rbp - 0x49]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x41]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x39]
mov qword [rsp + 0x20], rax
lea rdx, [0x14045d220]
mov rcx, r8
call fcn.1400030f4
nop
lea rcx, [rbp - 0x51]
call fcn.14011e68c
mov ebx, 0x80004004
jmp 0x140132c54
mov edx, dword [rbp - 0x15]
lea rcx, [rbp - 0x31]
call fcn.140109228
nop
mov qword [rsp + 0x38], r14
lea rax, [rbp - 0x59]
mov qword [rsp + 0x30], rax
mov eax, dword [rbp - 0x15]
mov dword [rsp + 0x28], eax
mov rax, qword [rbp - 0x31]
mov qword [rsp + 0x20], rax
mov r9d, SafeArrayGetDim
lea r8, [rbp + 0x2f]
mov edx, 0x2d1400
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
nop dword [rax + rax]
test eax, eax
jne 0x140132c2d
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 0x140132be3
movzx ebx, ax
or ebx, 0x80070000
test ebx, ebx
jns 0x140132c1f
lea rax, [rbp + 0xf]
cmp qword [rbp + 0x27], 8
cmovae rax, qword [rbp + 0xf]
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.1400f616c
nop
lea rcx, [rbp - 0x31]
call fcn.1400cc0e0
jmp 0x140132afc
lea r8, [rbp - 0x31]
lea rdx, [rbp + 0xf]
mov rcx, rdi
call fcn.14016abe4
nop
lea rcx, [rbp - 0x31]
call fcn.1400cc0e0
nop
lea rcx, [rbp - 0x51]
call fcn.14011e68c
mov ebx, r14d
lea rcx, [rbp + 0xf]
call fcn.14007bf60
mov eax, ebx
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.140156340
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret