Function at 0x140030904
Capabilities:
Get volume information via ioctl

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xa0]
sub rsp, 0x1a0
mov rax, qword [0x14004d298]
xor rax, rsp
mov qword [rbp + 0x90], rax
mov rax, qword gs:[0x58]
mov r15, rcx
mov ebx, edx
mov qword [rbp - 0x40], r9
mov edx, 8
mov rsi, r9
mov rdi, r8
mov qword [rbp - 0x48], r8
mov rcx, qword [rax]
lea rax, str.CTieredVolume::GetVolumeBitmapInfoByTier
mov qword [rdx + rcx], rax
lea rcx, [rbp - 0x78]
call fcn.140005468
xor r14d, r14d
or r9, 0xffffffffffffffff
mov qword [rdi], r14
mov r12d, r14d
mov qword [rsi], r14
mov esi, r14d
mov dword [rsp + 0x50], r14d
mov qword [rbp - 0x68], r9
lea r13d, [r14 + 1]
mov qword [rsp + 0x58], r9
mov qword [rbp - 0x80], r14
mov qword [rsp + 0x78], r14
test ebx, ebx
jne 0x1400309ea
mov byte [rsp + 0x4c], r14b
call qword [sym.imp.ntdll.dll_RtlGetThreadErrorMode]
nop dword [rax + rax]
or eax, 0x10
lea rdx, [rsp + 0x48]
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlSetThreadErrorMode]
nop dword [rax + rax]
movzx ecx, byte [rsp + 0x4c]
test eax, eax
cmovns ecx, r13d
mov byte [rsp + 0x4c], cl
test cl, cl
je 0x1400309ea
mov ecx, dword [rsp + 0x48]
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlSetThreadErrorMode]
nop dword [rax + rax]
lea rbx, [r15 + 0x18]
mov qword [rsp + 0x60], r14
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_AcquireSRWLockShared]
nop dword [rax + rax]
cmp byte [r15 + 0x2d1], r14b
jne 0x140030a6f
mov edi, 0x80830002
mov dword [rbp - 0x70], edi
mov rcx, qword [0x14004d128]
lea r14, [0x14004d128]
cmp rcx, r14
je 0x140030a52
test byte [rcx + 0x1c], r13b
je 0x140030a52
cmp byte [rcx + 0x19], 2
jb 0x140030a52
mov r9d, dword [r15 + 0x80]
lea r8, [0x140047130]
mov rcx, qword [rcx + 0x10]
mov edx, 0xd1
mov dword [rsp + 0x20], edi
call fcn.14000a330
test rbx, rbx
je 0x140031155
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseSRWLockShared]
nop dword [rax + rax]
jmp 0x140031155
lea rax, [r15 + 0x90]
mov dword [rsp + 0x28], 0x21
xorps xmm0, xmm0
mov qword [rsp + 0x68], rax
lea r9, [rbp + 8]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x28]
mov dword [rbp - 0x28], 0x30
mov edx, 0x100003
mov qword [rbp - 0x20], r14
lea rcx, [rsp + 0x60]
mov dword [rbp - 0x10], 0xc0
movdqu xmmword [rbp - 8], xmm0
mov dword [rsp + 0x20], 7
call qword [sym.imp.ntdll.dll_NtOpenFile]
nop dword [rax + rax]
mov r13d, eax
test rbx, rbx
je 0x140030ade
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseSRWLockShared]
nop dword [rax + rax]
test r13d, r13d
jns 0x140030b2c
mov edi, r13d
bts edi, 0x1c
mov dword [rbp - 0x70], edi
mov rcx, qword [0x14004d128]
lea r14, [0x14004d128]
cmp rcx, r14
je 0x140031155
test byte [rcx + 0x1c], 1
je 0x140031155
cmp byte [rcx + 0x19], 2
jb 0x140031155
mov r9, qword [rsp + 0x68]
mov edx, 0xd2
mov dword [rsp + 0x20], r13d
jmp 0x140031145
mov rdi, qword [r15 + 0x240]
add rdi, 0x1f
shr rdi, 5
shl edi, 2
test edi, edi
je 0x14003110e
mov ecx, edi
add rcx, 0x1c
call qword [sym.imp.msvcrt.dll_malloc]
nop dword [rax + rax]
mov ecx, edi
mov rsi, rax
shr ecx, 1
mov r13, rax
test rax, rax
cmovne ecx, edi
mov edi, ecx
je 0x140030b3e
mov rcx, qword [0x14004d128]
lea r14, [0x14004d128]
cmp rcx, r14
je 0x140030bad
test byte [rcx + 0x1c], 1
je 0x140030bad
cmp byte [rcx + 0x19], 5
jb 0x140030bad
mov rcx, qword [rcx + 0x10]
lea rax, [r15 + 0x2a0]
mov qword [rsp + 0x28], rax
mov edx, 0xd4
mov r9, r13
mov qword [rsp + 0x20], rdi
call fcn.1400392ac
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_AcquireSRWLockShared]
nop dword [rax + rax]
and qword [rsp + 0x38], r12
lea rax, [rsp + 0x50]
mov rcx, qword [rsp + 0x60]
xor r9d, r9d
mov qword [rsp + 0x30], rax
xor r8d, r8d
lea rax, [rbp + 0x30]
mov dword [rsp + 0x28], 0x60
mov edx, 0x90064
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_io_l1_1_0.dll_DeviceIoControl]
nop dword [rax + rax]
test eax, eax
je 0x140030c51
mov r9, qword [rbp + 0x80]
mov r8, qword [rbp + 0x88]
mov qword [rbp - 0x68], r9
mov qword [rsp + 0x58], r8
mov rcx, qword [0x14004d128]
cmp rcx, r14
je 0x140030c51
test byte [rcx + 0x1c], 1
je 0x140030c51
cmp byte [rcx + 0x19], 4
jb 0x140030c51
mov rcx, qword [rcx + 0x10]
lea rax, [r15 + 0x2a0]
mov qword [rsp + 0x28], rax
mov edx, 0xd5
mov qword [rsp + 0x20], r8
lea r8, [0x140047130]
call fcn.140038b84
cmp qword [r15 + 0x240], r12
jbe 0x1400310f5
lea eax, [rdi + 0x18]
mov r13d, 1
mov dword [rsp + 0x70], eax
and qword [rsp + 0x38], 0
lea rcx, [rsp + 0x50]
and dword [rbp + 0x24], 0
lea r8, [rbp + 0x18]
mov qword [rsp + 0x30], rcx
mov r9d, 0x10
mov rcx, qword [rsp + 0x60]
mov edx, 0x9006f
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
mov qword [rbp + 0x18], r12
mov dword [rbp + 0x20], r13d
call qword [sym.imp.api_ms_win_core_io_l1_1_0.dll_DeviceIoControl]
nop dword [rax + rax]
test eax, eax
jne 0x140030ccb
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0x80000005
jne 0x140031098
mov r9d, dword [rsp + 0x50]
lea rdi, [r9 - 0x18]
mov qword [rsp + 0x68], rdi
mov r10, qword [0x14004d128]
cmp r10, r14
je 0x140030d1f
test byte [r10 + 0x1c], r13b
je 0x140030d1f
cmp byte [r10 + 0x19], 5
jb 0x140030d1f
mov rcx, qword [r10 + 0x10]
lea rax, [r15 + 0x2a0]
mov qword [rsp + 0x28], rax
lea r8, [0x140047130]
mov edx, 0xd7
mov qword [rsp + 0x20], rdi
call fcn.140038b84
mov r10, qword [0x14004d128]
test rdi, rdi
je 0x1400310f5
xor r8d, r8d
lea rax, [r12 + rdi*8]
mov dword [rsp + 0x40], r8d
mov qword [rbp - 0x60], rax
cmp r12, rax
jae 0x140031086
cmp r10, r14
je 0x140030d83
test byte [r10 + 0x1c], r13b
je 0x140030d83
cmp byte [r10 + 0x19], 5
jb 0x140030d83
mov rcx, qword [r10 + 0x10]
lea rax, [r15 + 0x2a0]
mov r9d, r8d
mov edx, 0xd8
mov qword [rsp + 0x28], rax
lea r8, [0x140047130]
mov qword [rsp + 0x20], r12
call fcn.140038b84
mov r10, qword [0x14004d128]
and dword [rsp + 0x54], 0
mov r13, qword [r15 + 0x50]
test r13, r13
je 0x140031046
mov rbx, qword [rbp - 0x60]
mov rdi, qword [r13 + 0x10]
mov rdx, rsi
mov r13, qword [r13]
mov qword [rbp - 0x58], r13
mov qword [rsp + 0x48], rdx
mov qword [rbp - 0x50], rdi
mov r8d, 1
cmp r10, r14
je 0x140030e07
test byte [r10 + 0x1c], r8b
je 0x140030e07
cmp byte [r10 + 0x19], 5
jb 0x140030e07
mov r9, qword [rdi + 0x10]
lea rax, [r15 + 0x2a0]
mov rcx, qword [r10 + 0x10]
lea r8, [0x140047130]
mov qword [rsp + 0x28], rax
mov edx, 0xd9
mov rax, qword [rdi + 0x18]
mov qword [rsp + 0x20], rax
call fcn.140038b84
mov r10, qword [0x14004d128]
mov rdx, rsi
mov r8d, 1
mov rax, qword [rdi + 0x18]
mov rcx, qword [r15 + 0x240]
cmp rax, rcx
jb 0x140030e26
lea rax, [rcx - 1]
mov qword [rdi + 0x18], rax
mov r10, qword [0x14004d128]
mov rsi, rdx
cmp qword [rdi + 0x10], r12
ja 0x140031010
cmp rax, r12
jb 0x140031010
mov dword [rsp + 0x54], r8d
cmp rax, rbx
jb 0x140030e6b
mov edi, ebx
sub edi, r12d
add edi, r8d
cmp r10, r14
je 0x140030ef6
test byte [r10 + 0x1c], r8b
je 0x140030eb5
cmp byte [r10 + 0x19], 5
jb 0x140030eb5
mov edx, 0xda
jmp 0x140030e8b
mov edi, dword [rdi + 0x18]
sub edi, r12d
add edi, r8d
cmp r10, r14
je 0x140030ef6
test byte [r10 + 0x1c], r8b
je 0x140030eb5
cmp byte [r10 + 0x19], 5
jb 0x140030eb5
mov edx, 0xdb
mov rcx, qword [r10 + 0x10]
lea rax, [r15 + 0x2a0]
mov r9d, edi
mov qword [rsp + 0x20], rax
call fcn.14003891c
mov rdx, qword [rsp + 0x48]
mov r8d, 1
mov r10, qword [0x14004d128]
cmp r10, r14
je 0x140030ef6
test byte [r10 + 0x1c], r8b
je 0x140030ef6
cmp byte [r10 + 0x19], 5
jb 0x140030ef6
mov esi, dword [rsp + 0x40]
lea rcx, [r15 + 0x2a0]
mov qword [rsp + 0x28], rcx
mov rcx, qword [r10 + 0x10]
mov r8d, edi
lea r9, [rsi + 0x10]
mov qword [rsp + 0x20], r8
add r9, rdx
mov edx, 0xdc
call fcn.1400392ac
jmp 0x140030efa
mov esi, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
lea rcx, [rbp - 0x38]
add rdx, 0x10
mov eax, esi
add rdx, rax
mov r8d, edi
call qword [sym.imp.ntdll.dll_RtlInitializeBitMap]
nop dword [rax + rax]
mov rax, qword [rbp - 0x68]
mov rdx, qword [rsp + 0x58]
test rax, rax
js 0x140030f33
cmp r12, rax
jb 0x140030f33
cmp r12, rdx
jbe 0x140030f3d
cmp rbx, rax
jb 0x140030fae
cmp rbx, rdx
ja 0x140030fae
cmp rax, r12
jbe 0x140030f4a
mov r13d, eax
sub r13d, r12d
jmp 0x140030f4d
xor r13d, r13d
mov eax, edi
lea rcx, [r12 - 1]
add rcx, rax
mov esi, edx
cmp rdx, rcx
cmovae esi, ecx
sub esi, r12d
sub esi, r13d
inc esi
mov rcx, qword [0x14004d128]
cmp rcx, r14
je 0x140030f94
test byte [rcx + 0x1c], 1
je 0x140030f94
cmp byte [rcx + 0x19], 4
jb 0x140030f94
mov rcx, qword [rcx + 0x10]
mov r9, r12
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], r13d
call fcn.1400388b4
mov r8d, esi
lea rcx, [rbp - 0x38]
mov edx, r13d
call qword [sym.imp.ntdll.dll_RtlSetBits]
nop dword [rax + rax]
mov r13, qword [rbp - 0x58]
lea rcx, [rbp - 0x38]
call qword [sym.imp.ntdll.dll_RtlNumberOfClearBits]
nop dword [rax + rax]
mov r9, qword [rbp - 0x80]
mov r8d, dword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov r10, qword [0x14004d128]
mov edx, eax
mov eax, edi
shr eax, 3
add r8d, eax
mov rax, qword [rbp - 0x50]
mov dword [rsp + 0x40], r8d
mov cl, byte [rax + 0x24]
mov eax, edi
add r12, rax
lea rax, [rdx + r9]
test cl, cl
cmove r9, rax
mov qword [rbp - 0x80], r9
mov r9, qword [rsp + 0x78]
lea rax, [rdx + r9]
cmove rax, r9
mov qword [rsp + 0x78], rax
jmp 0x140031015
mov r8d, dword [rsp + 0x40]
test r13, r13
jne 0x140030d99
lea rbx, [r15 + 0x18]
mov rdi, qword [rsp + 0x68]
cmp dword [rsp + 0x54], r13d
je 0x140031046
mov eax, r8d
mov r13d, 1
cmp rdi, rax
mov rax, qword [rbp - 0x60]
ja 0x140030d38
jmp 0x140031086
mov r13d, 1
cmp r10, r14
je 0x14003107b
test byte [r10 + 0x1c], r13b
je 0x14003107b
cmp byte [r10 + 0x19], 3
jb 0x14003107b
mov rcx, qword [r10 + 0x10]
lea rax, [r15 + 0x2a0]
mov edx, 0xde
mov qword [rsp + 0x20], rax
mov r9, r12
call fcn.14003891c
mov eax, dword [rsp + 0x40]
sub rdi, rax
lea r12, [r12 + rdi*8]
cmp r12, qword [r15 + 0x240]
jae 0x1400310f5
mov eax, dword [rsp + 0x70]
jmp 0x140030c6b
mov ecx, eax
call fcn.140002f2c
mov edi, eax
mov dword [rbp - 0x70], eax
mov rcx, qword [0x14004d128]
cmp rcx, r14
je 0x140030a52
test byte [rcx + 0x1c], r13b
je 0x140030a52
cmp byte [rcx + 0x19], 2
jb 0x140030a52
mov rcx, qword [rcx + 0x10]
lea rax, [r15 + 0x2a0]
mov edx, 0xd6
mov dword [rsp + 0x28], edi
mov r9, r12
mov qword [rsp + 0x20], rax
lea r8, [0x140047130]
call fcn.1400280cc
jmp 0x140030a52
test rbx, rbx
je 0x140031109
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseSRWLockShared]
nop dword [rax + rax]
mov edi, dword [rbp - 0x70]
jmp 0x140031155
mov edi, 0x8007000e
mov dword [rbp - 0x70], edi
mov rcx, qword [0x14004d128]
lea r14, [0x14004d128]
cmp rcx, r14
je 0x140031155
test byte [rcx + 0x1c], 1
je 0x140031155
cmp byte [rcx + 0x19], 2
jb 0x140031155
mov edx, 0xd3
mov dword [rsp + 0x20], edi
lea r9, [r15 + 0x90]
mov rcx, qword [rcx + 0x10]
lea r8, [0x140047130]
call fcn.14000c408
mov rax, qword [rbp - 0x48]
mov rcx, qword [rsp + 0x78]
mov qword [rax], rcx
mov rcx, qword [rbp - 0x40]
mov rax, qword [rbp - 0x80]
mov qword [rcx], rax
test rsi, rsi
je 0x140031180
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_free]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140031196
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
lea rcx, [rbp - 0x78]
call fcn.1400059dc
mov eax, edi
mov rcx, qword [rbp + 0x90]
xor rcx, rsp
call fcn.140001e80
mov rbx, qword [rsp + 0x1e8]
add rsp, 0x1a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret