Function at 0x140034378
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 [0x1400491f8]
xor rax, rsp
mov qword [rbp + 0x90], rax
mov rax, qword gs:[0x58]
mov r14, rcx
mov ebx, edx
mov qword [rbp - 0x38], r9
mov edx, 8
mov rsi, r9
mov rdi, r8
mov qword [rbp - 0x40], r8
mov rcx, qword [rax]
lea rax, str.CTieredVolume::GetVolumeBitmapInfoByTier
mov qword [rdx + rcx], rax
lea rcx, [rbp - 0x70]
call fcn.140008b4c
and qword [rdi], 0
or r9, 0xffffffffffffffff
and qword [rsi], 0
xor r15d, r15d
xor esi, esi
mov qword [rbp - 0x60], r9
and dword [rsp + 0x50], esi
and qword [rbp - 0x78], rsi
and qword [rbp - 0x80], rsi
mov qword [rsp + 0x48], rsi
lea r12d, [rsi + 1]
mov qword [rsp + 0x68], r9
test ebx, ebx
jne 0x14003444d
mov byte [rsp + 0x5c], sil
call qword [sym.imp.ntdll.dll_RtlGetThreadErrorMode]
or eax, 0x10
lea rdx, [rsp + 0x58]
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlSetThreadErrorMode]
movzx ecx, byte [rsp + 0x5c]
test eax, eax
cmovns ecx, r12d
mov byte [rsp + 0x5c], cl
test cl, cl
je 0x14003444d
mov ecx, dword [rsp + 0x58]
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlSetThreadErrorMode]
and qword [rsp + 0x70], rsi
lea rbx, [r14 + 0x18]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_AcquireSRWLockShared]
cmp byte [r14 + 0x2d1], sil
jne 0x1400344c6
mov edi, 0x80830002
mov dword [rbp - 0x68], edi
mov rcx, qword [0x140049138]
lea rsi, [0x140049138]
cmp rcx, rsi
je 0x1400344af
test byte [rcx + 0x1c], r12b
je 0x1400344af
cmp byte [rcx + 0x19], 2
jb 0x1400344af
mov r9d, dword [r14 + 0x80]
lea r8, [0x140041e60]
mov rcx, qword [rcx + 0x10]
mov edx, 0xc8
mov dword [rsp + 0x20], edi
call fcn.1400016d8
test rbx, rbx
je 0x140034b73
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseSRWLockShared]
jmp 0x140034b73
and qword [rbp - 0x18], rsi
lea r13, [r14 + 0x90]
xorps xmm0, xmm0
mov dword [rsp + 0x28], 0x21
lea r9, [rbp + 0x10]
mov qword [rbp - 0x10], r13
lea r8, [rbp - 0x20]
mov dword [rbp - 0x20], 0x30
mov edx, 0x100003
mov dword [rbp - 8], 0xc0
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x20], 7
movdqu xmmword [rbp], xmm0
call qword [sym.imp.ntdll.dll_NtOpenFile]
mov r12d, eax
test rbx, rbx
je 0x140034524
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseSRWLockShared]
test r12d, r12d
jns 0x140034580
mov edi, r12d
bts edi, 0x1c
mov dword [rbp - 0x68], edi
mov rcx, qword [0x140049138]
lea rsi, [0x140049138]
cmp rcx, rsi
je 0x140034b73
test byte [rcx + 0x1c], 1
je 0x140034b73
cmp byte [rcx + 0x19], 2
jb 0x140034b73
mov edx, 0xc9
mov dword [rsp + 0x20], r12d
mov rcx, qword [rcx + 0x10]
lea r8, [0x140041e60]
mov r9, r13
call fcn.14000903c
jmp 0x140034b73
mov rdi, qword [r14 + 0x240]
add rdi, 0x1f
shr rdi, 5
shl edi, 2
test edi, edi
je 0x1400345b3
mov ecx, edi
add rcx, 0x1c
call qword [sym.imp.msvcrt.dll_malloc]
mov ecx, edi
mov rsi, rax
shr ecx, 1
test rax, rax
cmovne ecx, edi
mov edi, ecx
je 0x140034592
mov qword [rsp + 0x48], rsi
test rsi, rsi
jne 0x1400345fe
mov edi, 0x8007000e
mov dword [rbp - 0x68], edi
mov rcx, qword [0x140049138]
lea rsi, [0x140049138]
cmp rcx, rsi
je 0x140034b73
test byte [rcx + 0x1c], 1
je 0x140034b73
cmp byte [rcx + 0x19], 2
jb 0x140034b73
mov edx, 0xca
mov dword [rsp + 0x20], edi
jmp 0x140034568
mov rcx, qword [0x140049138]
lea rsi, [0x140049138]
mov r13d, 1
cmp rcx, rsi
je 0x14003464f
test byte [rcx + 0x1c], r13b
je 0x14003464f
cmp byte [rcx + 0x19], 5
mov r12, qword [rsp + 0x48]
jb 0x140034654
mov rcx, qword [rcx + 0x10]
lea rax, [r14 + 0x2a0]
mov r8d, edi
mov edx, 0xcb
mov qword [rsp + 0x28], rax
mov r9, r12
mov qword [rsp + 0x20], r8
call fcn.14002ce58
jmp 0x140034654
mov r12, qword [rsp + 0x48]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_AcquireSRWLockShared]
and qword [rsp + 0x38], r15
lea rax, [rsp + 0x50]
mov rcx, qword [rsp + 0x70]
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]
test eax, eax
je 0x1400346ec
mov r9, qword [rbp + 0x80]
mov r8, qword [rbp + 0x88]
mov qword [rbp - 0x60], r9
mov qword [rsp + 0x68], r8
mov rcx, qword [0x140049138]
cmp rcx, rsi
je 0x1400346ec
test byte [rcx + 0x1c], r13b
je 0x1400346ec
cmp byte [rcx + 0x19], 4
jb 0x1400346ec
mov rcx, qword [rcx + 0x10]
lea rax, [r14 + 0x2a0]
mov qword [rsp + 0x28], rax
mov edx, 0xcc
mov qword [rsp + 0x20], r8
lea r8, [0x140041e60]
call fcn.14002c7f0
cmp qword [r14 + 0x240], r15
jbe 0x140034b62
lea eax, [rdi + 0x18]
mov dword [rsp + 0x58], eax
xor ecx, ecx
mov qword [rbp + 0x20], r15
and qword [rsp + 0x38], rcx
lea r8, [rbp + 0x20]
mov qword [rbp + 0x28], rcx
mov r9d, 0x10
lea rcx, [rsp + 0x50]
mov dword [rbp + 0x28], r13d
mov qword [rsp + 0x30], rcx
mov edx, 0x9006f
mov rcx, qword [rsp + 0x70]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r12
call qword [sym.imp.api_ms_win_core_io_l1_1_0.dll_DeviceIoControl]
test eax, eax
jne 0x140034755
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0x80000005
jne 0x140034b05
mov r9d, dword [rsp + 0x50]
lea rdi, [r9 - 0x18]
mov qword [rbp - 0x58], rdi
mov r10, qword [0x140049138]
cmp r10, rsi
je 0x1400347a8
test byte [r10 + 0x1c], r13b
je 0x1400347a8
cmp byte [r10 + 0x19], 5
jb 0x1400347a8
mov rcx, qword [r10 + 0x10]
lea rax, [r14 + 0x2a0]
mov qword [rsp + 0x28], rax
lea r8, [0x140041e60]
mov edx, 0xce
mov qword [rsp + 0x20], rdi
call fcn.14002c7f0
mov r10, qword [0x140049138]
test rdi, rdi
je 0x140034b62
xor r8d, r8d
lea rax, [r15 + rdi*8]
mov dword [rsp + 0x40], r8d
mov qword [rsp + 0x78], rax
test rdi, rdi
je 0x140034aed
cmp r15, rax
jae 0x140034ae8
cmp r10, rsi
je 0x140034816
test byte [r10 + 0x1c], r13b
je 0x140034816
cmp byte [r10 + 0x19], 5
jb 0x140034816
mov rcx, qword [r10 + 0x10]
lea rax, [r14 + 0x2a0]
mov r9d, r8d
mov edx, 0xcf
mov qword [rsp + 0x28], rax
lea r8, [0x140041e60]
mov qword [rsp + 0x20], r15
call fcn.14002c7f0
mov r10, qword [0x140049138]
mov r12, qword [r14 + 0x50]
xor eax, eax
mov dword [rsp + 0x60], eax
test r12, r12
je 0x140034aae
mov r13, qword [r12 + 0x10]
mov r12, qword [r12]
mov qword [rbp - 0x50], r12
mov qword [rbp - 0x48], r13
mov ecx, 1
cmp r10, rsi
je 0x14003488b
test byte [r10 + 0x1c], cl
je 0x14003488b
cmp byte [r10 + 0x19], 5
jb 0x14003488b
mov r9, qword [r13 + 0x10]
lea rax, [r14 + 0x2a0]
mov rcx, qword [r10 + 0x10]
lea r8, [0x140041e60]
mov qword [rsp + 0x28], rax
mov edx, 0xd0
mov rax, qword [r13 + 0x18]
mov qword [rsp + 0x20], rax
call fcn.14002c7f0
mov r10, qword [0x140049138]
mov ecx, 1
mov rdi, qword [r13 + 0x18]
mov rax, qword [r14 + 0x240]
cmp rdi, rax
jb 0x1400348aa
lea rdi, [rax - 1]
mov qword [r13 + 0x18], rdi
mov r10, qword [0x140049138]
cmp qword [r13 + 0x10], r15
ja 0x140034a7d
cmp rdi, r15
jb 0x140034a7d
mov rax, qword [rsp + 0x78]
mov dword [rsp + 0x60], ecx
cmp rdi, rax
jb 0x1400348ef
mov edi, eax
sub edi, r15d
add edi, ecx
cmp r10, rsi
je 0x140034973
test byte [r10 + 0x1c], cl
je 0x14003492f
cmp byte [r10 + 0x19], 5
jb 0x14003492f
mov edx, 0xd1
jmp 0x14003490b
sub edi, r15d
add edi, ecx
cmp r10, rsi
je 0x140034973
test byte [r10 + 0x1c], cl
je 0x14003492f
cmp byte [r10 + 0x19], 5
jb 0x14003492f
mov edx, 0xd2
mov rcx, qword [r10 + 0x10]
lea rax, [r14 + 0x2a0]
mov r9d, edi
mov qword [rsp + 0x20], rax
call fcn.14002c214
mov r10, qword [0x140049138]
mov ecx, 1
cmp r10, rsi
je 0x140034973
test byte [r10 + 0x1c], cl
je 0x140034973
cmp byte [r10 + 0x19], 5
jb 0x140034973
mov eax, dword [rsp + 0x40]
lea rcx, [r14 + 0x2a0]
mov r9, qword [rsp + 0x48]
add rax, 0x10
mov qword [rsp + 0x28], rcx
add r9, rax
mov rcx, qword [r10 + 0x10]
mov edx, 0xd3
mov r8d, edi
mov qword [rsp + 0x20], r8
call fcn.14002ce58
mov eax, dword [rsp + 0x40]
lea rcx, [rbp - 0x30]
mov rdx, qword [rsp + 0x48]
add rax, 0x10
add rdx, rax
mov r8d, edi
call qword [sym.imp.ntdll.dll_RtlInitializeBitMap]
mov rcx, qword [rbp - 0x60]
mov rdx, qword [rsp + 0x68]
test rcx, rcx
js 0x1400349a8
cmp r15, rcx
jb 0x1400349a8
cmp r15, rdx
jbe 0x1400349b7
mov rax, qword [rsp + 0x78]
cmp rax, rcx
jb 0x140034a2b
cmp rax, rdx
ja 0x140034a2b
mov eax, ecx
lea r12d, [rdi - 1]
sub eax, r15d
cmp r15, rcx
lea rcx, [r15 - 1]
sbb r13d, r13d
add r12d, r15d
and r13d, eax
mov eax, edi
add rcx, rax
cmp rdx, rcx
cmovb r12d, edx
sub r12d, r15d
sub r12d, r13d
inc r12d
mov rcx, qword [0x140049138]
cmp rcx, rsi
je 0x140034a13
test byte [rcx + 0x1c], 1
je 0x140034a13
cmp byte [rcx + 0x19], 4
jb 0x140034a13
mov rcx, qword [rcx + 0x10]
mov r9, r15
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r13d
call fcn.14002c5cc
mov r8d, r12d
lea rcx, [rbp - 0x30]
mov edx, r13d
call qword [sym.imp.ntdll.dll_RtlSetBits]
mov r12, qword [rbp - 0x50]
mov r13, qword [rbp - 0x48]
lea rcx, [rbp - 0x30]
call qword [sym.imp.ntdll.dll_RtlNumberOfClearBits]
mov r9, qword [rbp - 0x78]
mov r8d, dword [rsp + 0x40]
mov cl, byte [r13 + 0x24]
mov r10, qword [0x140049138]
mov edx, eax
mov eax, edi
shr eax, 3
add r8d, eax
mov eax, edi
add r15, rax
mov dword [rsp + 0x40], r8d
lea rax, [rdx + r9]
test cl, cl
cmove r9, rax
mov qword [rbp - 0x78], r9
mov r9, qword [rbp - 0x80]
lea rax, [rdx + r9]
cmove rax, r9
mov qword [rbp - 0x80], rax
jmp 0x140034a82
mov r8d, dword [rsp + 0x40]
test r12, r12
jne 0x140034829
lea r13d, [r12 + 1]
mov rdi, qword [rbp - 0x58]
cmp dword [rsp + 0x60], r12d
je 0x140034aae
mov eax, r8d
cmp rdi, rax
mov rax, qword [rsp + 0x78]
ja 0x1400347cb
jmp 0x140034ae8
cmp r10, rsi
je 0x140034add
test byte [r10 + 0x1c], r13b
je 0x140034add
cmp byte [r10 + 0x19], 3
jb 0x140034add
mov rcx, qword [r10 + 0x10]
lea rax, [r14 + 0x2a0]
mov edx, 0xd5
mov qword [rsp + 0x20], rax
mov r9, r15
call fcn.14002c214
mov eax, dword [rsp + 0x40]
sub rdi, rax
lea r15, [r15 + rdi*8]
mov r12, qword [rsp + 0x48]
cmp r15, qword [r14 + 0x240]
jae 0x140034b62
mov eax, dword [rsp + 0x58]
mov r13d, 1
jmp 0x140034700
mov ecx, eax
call fcn.140003cb8
mov edi, eax
mov dword [rbp - 0x68], eax
mov rcx, qword [0x140049138]
cmp rcx, rsi
je 0x1400344af
test byte [rcx + 0x1c], r13b
je 0x1400344af
cmp byte [rcx + 0x19], 2
jb 0x1400344af
mov rcx, qword [rcx + 0x10]
lea rax, [r14 + 0x2a0]
mov edx, 0xcd
mov dword [rsp + 0x28], edi
mov r9, r15
mov qword [rsp + 0x20], rax
lea r8, [0x140041e60]
call fcn.14001fb50
jmp 0x1400344af
test rbx, rbx
je 0x140034b70
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseSRWLockShared]
mov edi, dword [rbp - 0x68]
mov rax, qword [rbp - 0x40]
mov rcx, qword [rbp - 0x80]
mov qword [rax], rcx
mov rax, qword [rbp - 0x78]
mov rcx, qword [rbp - 0x38]
mov qword [rcx], rax
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x140034b9c
mov rcx, rax
call qword [sym.imp.msvcrt.dll_free]
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140034bac
call qword [sym.imp.ntdll.dll_NtClose]
lea rcx, [rbp - 0x70]
call fcn.1400089a4
mov eax, edi
mov rcx, qword [rbp + 0x90]
xor rcx, rsp
call fcn.14003d760
mov rbx, qword [rsp + 0x1e8]
add rsp, 0x1a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret