Function at 0x140037394
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 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.140009790
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 0x14003747c
mov byte [rsp + 0x54], sil
call qword [sym.imp.ntdll.dll_RtlGetThreadErrorMode]
nop dword [rax + rax]
or eax, 0x10
lea rdx, [rsp + 0x50]
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlSetThreadErrorMode]
nop dword [rax + rax]
movzx ecx, byte [rsp + 0x54]
test eax, eax
cmovns ecx, r12d
mov byte [rsp + 0x54], cl
test cl, cl
je 0x14003747c
mov ecx, dword [rsp + 0x50]
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlSetThreadErrorMode]
nop dword [rax + rax]
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]
nop dword [rax + rax]
cmp byte [r14 + 0x2d1], sil
jne 0x140037501
mov edi, 0x80830002
mov dword [rbp - 0x70], edi
mov rcx, qword [0x14004d128]
lea rsi, [0x14004d128]
cmp rcx, rsi
je 0x1400374e4
test byte [rcx + 0x1c], r12b
je 0x1400374e4
cmp byte [rcx + 0x19], 2
jb 0x1400374e4
mov r9d, dword [r14 + 0x80]
lea r8, [0x140045fc0]
mov rcx, qword [rcx + 0x10]
mov edx, 0xd1
mov dword [rsp + 0x20], edi
call fcn.140001adc
test rbx, rbx
je 0x140037bee
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseSRWLockShared]
nop dword [rax + rax]
jmp 0x140037bee
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]
nop dword [rax + rax]
mov r12d, eax
test rbx, rbx
je 0x14003756b
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseSRWLockShared]
nop dword [rax + rax]
test r12d, r12d
jns 0x1400375c7
mov edi, r12d
bts edi, 0x1c
mov dword [rbp - 0x70], edi
mov rcx, qword [0x14004d128]
lea rsi, [0x14004d128]
cmp rcx, rsi
je 0x140037bee
test byte [rcx + 0x1c], 1
je 0x140037bee
cmp byte [rcx + 0x19], 2
jb 0x140037bee
mov edx, 0xd2
mov dword [rsp + 0x20], r12d
mov rcx, qword [rcx + 0x10]
lea r8, [0x140045fc0]
mov r9, r13
call fcn.140009c84
jmp 0x140037bee
mov rdi, qword [r14 + 0x240]
add rdi, 0x1f
shr rdi, 5
shl edi, 2
test edi, edi
je 0x140037600
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
test rax, rax
cmovne ecx, edi
mov edi, ecx
je 0x1400375d9
mov qword [rsp + 0x48], rsi
test rsi, rsi
jne 0x14003764b
mov edi, 0x8007000e
mov dword [rbp - 0x70], edi
mov rcx, qword [0x14004d128]
lea rsi, [0x14004d128]
cmp rcx, rsi
je 0x140037bee
test byte [rcx + 0x1c], 1
je 0x140037bee
cmp byte [rcx + 0x19], 2
jb 0x140037bee
mov edx, 0xd3
mov dword [rsp + 0x20], edi
jmp 0x1400375af
mov rcx, qword [0x14004d128]
lea rsi, [0x14004d128]
mov r12d, 1
cmp rcx, rsi
je 0x14003769c
test byte [rcx + 0x1c], r12b
je 0x14003769c
cmp byte [rcx + 0x19], 5
mov r13, qword [rsp + 0x48]
jb 0x1400376a1
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.14002ed10
jmp 0x1400376a1
mov r13, qword [rsp + 0x48]
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], 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]
nop dword [rax + rax]
test eax, eax
je 0x140037745
mov r9, qword [rbp + 0x80]
mov r8, qword [rbp + 0x88]
mov qword [rbp - 0x68], r9
mov qword [rsp + 0x60], r8
mov rcx, qword [0x14004d128]
cmp rcx, rsi
je 0x140037745
test byte [rcx + 0x1c], r12b
je 0x140037745
cmp byte [rcx + 0x19], 4
jb 0x140037745
mov rcx, qword [rcx + 0x10]
lea rax, [r14 + 0x2a0]
mov qword [rsp + 0x28], rax
mov edx, 0xd5
mov qword [rsp + 0x20], r8
lea r8, [0x140045fc0]
call fcn.14002f3e0
cmp qword [r14 + 0x240], r15
jbe 0x140037bd7
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]
nop dword [rax + rax]
test eax, eax
jne 0x1400377b9
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0x80000005
jne 0x140037b7a
mov r9d, dword [rsp + 0x44]
lea rdi, [r9 - 0x18]
mov qword [rbp - 0x60], rdi
mov r10, qword [0x14004d128]
cmp r10, rsi
je 0x14003780c
test byte [r10 + 0x1c], r12b
je 0x14003780c
cmp byte [r10 + 0x19], 5
jb 0x14003780c
mov rcx, qword [r10 + 0x10]
lea rax, [r14 + 0x2a0]
mov qword [rsp + 0x28], rax
lea r8, [0x140045fc0]
mov edx, 0xd7
mov qword [rsp + 0x20], rdi
call fcn.14002f3e0
mov r10, qword [0x14004d128]
test rdi, rdi
je 0x140037bd7
xor r8d, r8d
lea rax, [r15 + rdi*8]
mov dword [rsp + 0x40], r8d
mov qword [rsp + 0x70], rax
test rdi, rdi
je 0x140037b68
cmp r15, rax
jae 0x140037b68
cmp r10, rsi
je 0x14003787a
test byte [r10 + 0x1c], r12b
je 0x14003787a
cmp byte [r10 + 0x19], 5
jb 0x14003787a
mov rcx, qword [r10 + 0x10]
lea rax, [r14 + 0x2a0]
mov r9d, r8d
mov edx, 0xd8
mov qword [rsp + 0x28], rax
lea r8, [0x140045fc0]
mov qword [rsp + 0x20], r15
call fcn.14002f3e0
mov r10, qword [0x14004d128]
and dword [rsp + 0x58], 0
mov r12, qword [r14 + 0x50]
test r12, r12
je 0x140037b28
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 0x1400378ee
test byte [r10 + 0x1c], dl
je 0x1400378ee
cmp byte [r10 + 0x19], 5
jb 0x1400378ee
mov r9, qword [rdi + 0x10]
lea rax, [r14 + 0x2a0]
mov rcx, qword [r10 + 0x10]
lea r8, [0x140045fc0]
mov qword [rsp + 0x28], rax
mov edx, 0xd9
mov rax, qword [rdi + 0x18]
mov qword [rsp + 0x20], rax
call fcn.14002f3e0
mov r10, qword [0x14004d128]
mov edx, 1
mov rax, qword [rdi + 0x18]
mov rcx, qword [r14 + 0x240]
cmp rax, rcx
jb 0x14003790d
lea rax, [rcx - 1]
mov qword [rdi + 0x18], rax
mov r10, qword [0x14004d128]
cmp qword [rdi + 0x10], r15
ja 0x140037af6
cmp rax, r15
jb 0x140037af6
mov rcx, qword [rsp + 0x70]
mov dword [rsp + 0x58], edx
cmp rax, rcx
jb 0x140037952
mov edi, ecx
sub edi, r15d
add edi, edx
cmp r10, rsi
je 0x1400379d5
test byte [r10 + 0x1c], dl
je 0x140037995
cmp byte [r10 + 0x19], 5
jb 0x140037995
mov edx, 0xda
jmp 0x140037971
mov edi, dword [rdi + 0x18]
sub edi, r15d
add edi, edx
cmp r10, rsi
je 0x1400379d5
test byte [r10 + 0x1c], dl
je 0x140037995
cmp byte [r10 + 0x19], 5
jb 0x140037995
mov edx, 0xdb
mov rcx, qword [r10 + 0x10]
lea rax, [r14 + 0x2a0]
mov r9d, edi
mov qword [rsp + 0x20], rax
call fcn.14002edd0
mov r10, qword [0x14004d128]
mov edx, 1
cmp r10, rsi
je 0x1400379d5
test byte [r10 + 0x1c], dl
je 0x1400379d5
cmp byte [r10 + 0x19], 5
jb 0x1400379d5
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.14002ed10
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]
nop dword [rax + rax]
mov rcx, qword [rbp - 0x68]
mov rdx, qword [rsp + 0x60]
test rcx, rcx
js 0x140037a0b
cmp r15, rcx
jb 0x140037a0b
cmp r15, rdx
jbe 0x140037a1e
mov rax, qword [rsp + 0x70]
cmp rax, rcx
jb 0x140037a99
cmp rax, rdx
ja 0x140037a99
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 [0x14004d128]
cmp rcx, rsi
je 0x140037a7a
test byte [rcx + 0x1c], 1
je 0x140037a7a
cmp byte [rcx + 0x19], 4
jb 0x140037a7a
mov rcx, qword [rcx + 0x10]
mov r9, r15
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r13d
call fcn.14002f1a4
mov r8d, r12d
lea rcx, [rbp - 0x38]
mov edx, r13d
call qword [sym.imp.ntdll.dll_RtlSetBits]
nop dword [rax + rax]
mov r12, qword [rbp - 0x58]
mov r13, qword [rsp + 0x48]
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 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 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 0x140037afb
mov r8d, dword [rsp + 0x40]
test r12, r12
jne 0x14003788c
mov rdi, qword [rbp - 0x60]
cmp dword [rsp + 0x58], r12d
je 0x140037b28
mov eax, r8d
mov r12d, 1
cmp rdi, rax
mov rax, qword [rsp + 0x70]
ja 0x14003782f
jmp 0x140037b68
mov r12d, 1
cmp r10, rsi
je 0x140037b5d
test byte [r10 + 0x1c], r12b
je 0x140037b5d
cmp byte [r10 + 0x19], 3
jb 0x140037b5d
mov rcx, qword [r10 + 0x10]
lea rax, [r14 + 0x2a0]
mov edx, 0xde
mov qword [rsp + 0x20], rax
mov r9, r15
call fcn.14002edd0
mov eax, dword [rsp + 0x40]
sub rdi, rax
lea r15, [r15 + rdi*8]
cmp r15, qword [r14 + 0x240]
jae 0x140037bd7
mov eax, dword [rsp + 0x50]
jmp 0x140037759
mov ecx, eax
call fcn.14000433c
mov edi, eax
mov dword [rbp - 0x70], eax
mov rcx, qword [0x14004d128]
cmp rcx, rsi
je 0x1400374e4
test byte [rcx + 0x1c], r12b
je 0x1400374e4
cmp byte [rcx + 0x19], 2
jb 0x1400374e4
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, [0x140045fc0]
call fcn.1400221a8
jmp 0x1400374e4
test rbx, rbx
je 0x140037beb
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]
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 0x140037c1b
call qword [sym.imp.msvcrt.dll_free]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140037c31
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
lea rcx, [rbp - 0x78]
call fcn.1400095e0
mov eax, edi
mov rcx, qword [rbp + 0x90]
xor rcx, rsp
call fcn.140041040
mov rbx, qword [rsp + 0x1e8]
add rsp, 0x1a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret