Function at 0x140132fc8
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 [0x1404fa650]
xor rax, rsp
mov qword [rbp + 0x3f], rax
mov rsi, rdx
mov rdi, rcx
lea rcx, [rbp + 0xf]
call fcn.14008c970
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 0x1401330c5
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 0x140133084
movzx ebx, ax
or ebx, 0x80070000
test ebx, ebx
jns 0x1401330c0
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.1400c73cc
nop
jmp 0x1401332f4
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 0x1401331aa
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 0x140133153
cmp byte [rdi + 0x60], 2
jne 0x140133157
lea rcx, [rbp - 0x51]
call fcn.14011ed2c
mov ebx, 0x80070001
jmp 0x1401332f4
test eax, eax
jle 0x140133160
movzx ebx, ax
or ebx, 0x80070000
test ebx, ebx
jns 0x14013319c
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.1400c73cc
nop
lea rcx, [rbp - 0x51]
call fcn.14011ed2c
jmp 0x1401332f4
cmp dword [rbp - 0x15], 0x2800
jbe 0x14013321b
call fcn.1400abd44
mov r8, rax
cmp dword [rax], 3
jbe 0x140133208
mov ecx, dword [rbp - 0x15]
mov dword [rbp - 0x49], ecx
mov rcx, rsi
call fcn.1400c75e0
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, [0x14045aa28]
mov rcx, r8
call fcn.1400030f4
nop
lea rcx, [rbp - 0x51]
call fcn.14011ed2c
mov ebx, 0x80004004
jmp 0x1401332f4
mov edx, dword [rbp - 0x15]
lea rcx, [rbp - 0x31]
call fcn.14010a4d8
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 0x1401332cd
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 0x140133283
movzx ebx, ax
or ebx, 0x80070000
test ebx, ebx
jns 0x1401332bf
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.1400c73cc
nop
lea rcx, [rbp - 0x31]
call fcn.1400d1ba0
jmp 0x14013319c
lea r8, [rbp - 0x31]
lea rdx, [rbp + 0xf]
mov rcx, rdi
call fcn.14016bcd4
nop
lea rcx, [rbp - 0x31]
call fcn.1400d1ba0
nop
lea rcx, [rbp - 0x51]
call fcn.14011ed2c
mov ebx, r14d
lea rcx, [rbp + 0xf]
call fcn.14007bc80
mov eax, ebx
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.140157600
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret