Function at 0x1400354a4
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 [0x14004b1f8]
xor rax, rsp
mov qword [rbp + 0x90], rax
mov rax, qword gs:[0x58]
mov r14, 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.140008c4c
and qword [rdi], 0
or r9, 0xffffffffffffffff
and qword [rsi], 0
xor r15d, r15d
xor esi, esi
mov qword [rbp - 0x68], r9
and dword [rsp + 0x44], esi
and qword [rbp - 0x80], rsi
and qword [rsp + 0x78], rsi
mov qword [rsp + 0x48], rsi
lea r12d, [rsi + 1]
mov qword [rsp + 0x60], r9
test ebx, ebx
jne 0x14003557a
mov byte [rsp + 0x54], sil
call qword [sym.imp.ntdll.dll_RtlGetThreadErrorMode]
or eax, 0x10
lea rdx, [rsp + 0x50]
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlSetThreadErrorMode]
movzx ecx, byte [rsp + 0x54]
test eax, eax
cmovns ecx, r12d
mov byte [rsp + 0x54], cl
test cl, cl
je 0x14003557a
mov ecx, dword [rsp + 0x50]
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlSetThreadErrorMode]
and qword [rsp + 0x68], 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 0x1400355f3
mov edi, 0x80830002
mov dword [rbp - 0x70], edi
mov rcx, qword [0x14004b138]
lea rsi, [0x14004b138]
cmp rcx, rsi
je 0x1400355dc
test byte [rcx + 0x1c], r12b
je 0x1400355dc
cmp byte [rcx + 0x19], 2
jb 0x1400355dc
mov r9d, dword [r14 + 0x80]
lea r8, [0x140043f50]
mov rcx, qword [rcx + 0x10]
mov edx, 0xd1
mov dword [rsp + 0x20], edi
call fcn.1400016d8
test rbx, rbx
je 0x140035c9a
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseSRWLockShared]
jmp 0x140035c9a
and qword [rbp - 0x20], rsi
lea r13, [r14 + 0x90]
xorps xmm0, xmm0
mov dword [rsp + 0x28], 0x21
lea r9, [rbp + 8]
mov qword [rbp - 0x18], r13
lea r8, [rbp - 0x28]
mov dword [rbp - 0x28], 0x30
mov edx, 0x100003
mov dword [rbp - 0x10], 0xc0
lea rcx, [rsp + 0x68]
mov dword [rsp + 0x20], 7
movdqu xmmword [rbp - 8], xmm0
call qword [sym.imp.ntdll.dll_NtOpenFile]
mov r12d, eax
test rbx, rbx
je 0x140035651
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseSRWLockShared]
test r12d, r12d
jns 0x1400356ad
mov edi, r12d
bts edi, 0x1c
mov dword [rbp - 0x70], edi
mov rcx, qword [0x14004b138]
lea rsi, [0x14004b138]
cmp rcx, rsi
je 0x140035c9a
test byte [rcx + 0x1c], 1
je 0x140035c9a
cmp byte [rcx + 0x19], 2
jb 0x140035c9a
mov edx, 0xd2
mov dword [rsp + 0x20], r12d
mov rcx, qword [rcx + 0x10]
lea r8, [0x140043f50]
mov r9, r13
call fcn.140009134
jmp 0x140035c9a
mov rdi, qword [r14 + 0x240]
add rdi, 0x1f
shr rdi, 5
shl edi, 2
test edi, edi
je 0x1400356e0
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 0x1400356bf
mov qword [rsp + 0x48], rsi
test rsi, rsi
jne 0x14003572b
mov edi, 0x8007000e
mov dword [rbp - 0x70], edi
mov rcx, qword [0x14004b138]
lea rsi, [0x14004b138]
cmp rcx, rsi
je 0x140035c9a
test byte [rcx + 0x1c], 1
je 0x140035c9a
cmp byte [rcx + 0x19], 2
jb 0x140035c9a
mov edx, 0xd3
mov dword [rsp + 0x20], edi
jmp 0x140035695
mov rcx, qword [0x14004b138]
lea rsi, [0x14004b138]
mov r12d, 1
cmp rcx, rsi
je 0x14003577c
test byte [rcx + 0x1c], r12b
je 0x14003577c
cmp byte [rcx + 0x19], 5
mov r13, qword [rsp + 0x48]
jb 0x140035781
mov rcx, qword [rcx + 0x10]
lea rax, [r14 + 0x2a0]
mov r8d, edi
mov edx, 0xd4
mov qword [rsp + 0x28], rax
mov r9, r13
mov qword [rsp + 0x20], r8
call fcn.14002d260
jmp 0x140035781
mov r13, 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 + 0x44]
mov rcx, qword [rsp + 0x68]
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 0x140035819
mov r9, qword [rbp + 0x80]
mov r8, qword [rbp + 0x88]
mov qword [rbp - 0x68], r9
mov qword [rsp + 0x60], r8
mov rcx, qword [0x14004b138]
cmp rcx, rsi
je 0x140035819
test byte [rcx + 0x1c], r12b
je 0x140035819
cmp byte [rcx + 0x19], 4
jb 0x140035819
mov rcx, qword [rcx + 0x10]
lea rax, [r14 + 0x2a0]
mov qword [rsp + 0x28], rax
mov edx, 0xd5
mov qword [rsp + 0x20], r8
lea r8, [0x140043f50]
call fcn.14002d8f0
cmp qword [r14 + 0x240], r15
jbe 0x140035c89
lea eax, [rdi + 0x18]
mov dword [rsp + 0x50], eax
and qword [rsp + 0x38], 0
lea rcx, [rsp + 0x44]
and dword [rbp + 0x24], 0
lea r8, [rbp + 0x18]
mov qword [rsp + 0x30], rcx
mov r9d, 0x10
mov rcx, qword [rsp + 0x68]
mov edx, 0x9006f
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r13
mov qword [rbp + 0x18], r15
mov dword [rbp + 0x20], r12d
call qword [sym.imp.api_ms_win_core_io_l1_1_0.dll_DeviceIoControl]
test eax, eax
jne 0x140035881
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0x80000005
jne 0x140035c2c
mov r9d, dword [rsp + 0x44]
lea rdi, [r9 - 0x18]
mov qword [rbp - 0x60], rdi
mov r10, qword [0x14004b138]
cmp r10, rsi
je 0x1400358d4
test byte [r10 + 0x1c], r12b
je 0x1400358d4
cmp byte [r10 + 0x19], 5
jb 0x1400358d4
mov rcx, qword [r10 + 0x10]
lea rax, [r14 + 0x2a0]
mov qword [rsp + 0x28], rax
lea r8, [0x140043f50]
mov edx, 0xd7
mov qword [rsp + 0x20], rdi
call fcn.14002d8f0
mov r10, qword [0x14004b138]
test rdi, rdi
je 0x140035c89
xor r8d, r8d
lea rax, [r15 + rdi*8]
mov dword [rsp + 0x40], r8d
mov qword [rsp + 0x70], rax
test rdi, rdi
je 0x140035c1a
cmp r15, rax
jae 0x140035c1a
cmp r10, rsi
je 0x140035942
test byte [r10 + 0x1c], r12b
je 0x140035942
cmp byte [r10 + 0x19], 5
jb 0x140035942
mov rcx, qword [r10 + 0x10]
lea rax, [r14 + 0x2a0]
mov r9d, r8d
mov edx, 0xd8
mov qword [rsp + 0x28], rax
lea r8, [0x140043f50]
mov qword [rsp + 0x20], r15
call fcn.14002d8f0
mov r10, qword [0x14004b138]
and dword [rsp + 0x58], 0
mov r12, qword [r14 + 0x50]
test r12, r12
je 0x140035bda
mov rdi, qword [r12 + 0x10]
mov r12, qword [r12]
mov qword [rbp - 0x58], r12
mov qword [rbp - 0x50], rdi
mov edx, 1
cmp r10, rsi
je 0x1400359b6
test byte [r10 + 0x1c], dl
je 0x1400359b6
cmp byte [r10 + 0x19], 5
jb 0x1400359b6
mov r9, qword [rdi + 0x10]
lea rax, [r14 + 0x2a0]
mov rcx, qword [r10 + 0x10]
lea r8, [0x140043f50]
mov qword [rsp + 0x28], rax
mov edx, 0xd9
mov rax, qword [rdi + 0x18]
mov qword [rsp + 0x20], rax
call fcn.14002d8f0
mov r10, qword [0x14004b138]
mov edx, 1
mov rax, qword [rdi + 0x18]
mov rcx, qword [r14 + 0x240]
cmp rax, rcx
jb 0x1400359d5
lea rax, [rcx - 1]
mov qword [rdi + 0x18], rax
mov r10, qword [0x14004b138]
cmp qword [rdi + 0x10], r15
ja 0x140035ba8
cmp rax, r15
jb 0x140035ba8
mov rcx, qword [rsp + 0x70]
mov dword [rsp + 0x58], edx
cmp rax, rcx
jb 0x140035a1a
mov edi, ecx
sub edi, r15d
add edi, edx
cmp r10, rsi
je 0x140035a9d
test byte [r10 + 0x1c], dl
je 0x140035a5d
cmp byte [r10 + 0x19], 5
jb 0x140035a5d
mov edx, 0xda
jmp 0x140035a39
mov edi, dword [rdi + 0x18]
sub edi, r15d
add edi, edx
cmp r10, rsi
je 0x140035a9d
test byte [r10 + 0x1c], dl
je 0x140035a5d
cmp byte [r10 + 0x19], 5
jb 0x140035a5d
mov edx, 0xdb
mov rcx, qword [r10 + 0x10]
lea rax, [r14 + 0x2a0]
mov r9d, edi
mov qword [rsp + 0x20], rax
call fcn.14002d318
mov r10, qword [0x14004b138]
mov edx, 1
cmp r10, rsi
je 0x140035a9d
test byte [r10 + 0x1c], dl
je 0x140035a9d
cmp byte [r10 + 0x19], 5
jb 0x140035a9d
mov r9d, dword [rsp + 0x40]
lea rcx, [r14 + 0x2a0]
mov qword [rsp + 0x28], rcx
add r9, 0x10
mov rcx, qword [r10 + 0x10]
add r9, r13
mov r8d, edi
mov edx, 0xdc
mov qword [rsp + 0x20], r8
call fcn.14002d260
mov edx, dword [rsp + 0x40]
lea rcx, [rbp - 0x38]
add rdx, 0x10
mov r8d, edi
add rdx, r13
call qword [sym.imp.ntdll.dll_RtlInitializeBitMap]
mov rcx, qword [rbp - 0x68]
mov rdx, qword [rsp + 0x60]
test rcx, rcx
js 0x140035acd
cmp r15, rcx
jb 0x140035acd
cmp r15, rdx
jbe 0x140035adc
mov rax, qword [rsp + 0x70]
cmp rax, rcx
jb 0x140035b51
cmp rax, rdx
ja 0x140035b51
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 [0x14004b138]
cmp rcx, rsi
je 0x140035b38
test byte [rcx + 0x1c], 1
je 0x140035b38
cmp byte [rcx + 0x19], 4
jb 0x140035b38
mov rcx, qword [rcx + 0x10]
mov r9, r15
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r13d
call fcn.14002d6cc
mov r8d, r12d
lea rcx, [rbp - 0x38]
mov edx, r13d
call qword [sym.imp.ntdll.dll_RtlSetBits]
mov r12, qword [rbp - 0x58]
mov r13, qword [rsp + 0x48]
lea rcx, [rbp - 0x38]
call qword [sym.imp.ntdll.dll_RtlNumberOfClearBits]
mov r9, qword [rbp - 0x80]
mov r8d, dword [rsp + 0x40]
mov r10, qword [0x14004b138]
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 r15, 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 0x140035bad
mov r8d, dword [rsp + 0x40]
test r12, r12
jne 0x140035954
mov rdi, qword [rbp - 0x60]
cmp dword [rsp + 0x58], r12d
je 0x140035bda
mov eax, r8d
mov r12d, 1
cmp rdi, rax
mov rax, qword [rsp + 0x70]
ja 0x1400358f7
jmp 0x140035c1a
mov r12d, 1
cmp r10, rsi
je 0x140035c0f
test byte [r10 + 0x1c], r12b
je 0x140035c0f
cmp byte [r10 + 0x19], 3
jb 0x140035c0f
mov rcx, qword [r10 + 0x10]
lea rax, [r14 + 0x2a0]
mov edx, 0xde
mov qword [rsp + 0x20], rax
mov r9, r15
call fcn.14002d318
mov eax, dword [rsp + 0x40]
sub rdi, rax
lea r15, [r15 + rdi*8]
cmp r15, qword [r14 + 0x240]
jae 0x140035c89
mov eax, dword [rsp + 0x50]
jmp 0x14003582d
mov ecx, eax
call fcn.140003bb8
mov edi, eax
mov dword [rbp - 0x70], eax
mov rcx, qword [0x14004b138]
cmp rcx, rsi
je 0x1400355dc
test byte [rcx + 0x1c], r12b
je 0x1400355dc
cmp byte [rcx + 0x19], 2
jb 0x1400355dc
mov rcx, qword [rcx + 0x10]
lea rax, [r14 + 0x2a0]
mov edx, 0xd6
mov dword [rsp + 0x28], edi
mov r9, r15
mov qword [rsp + 0x20], rax
lea r8, [0x140043f50]
call fcn.140020c4c
jmp 0x1400355dc
test rbx, rbx
je 0x140035c97
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseSRWLockShared]
mov edi, dword [rbp - 0x70]
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
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140035cc1
call qword [sym.imp.msvcrt.dll_free]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140035cd1
call qword [sym.imp.ntdll.dll_NtClose]
lea rcx, [rbp - 0x78]
call fcn.140008aa4
mov eax, edi
mov rcx, qword [rbp + 0x90]
xor rcx, rsp
call fcn.14003ee40
mov rbx, qword [rsp + 0x1e8]
add rsp, 0x1a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret