Function at 0x1400069ac
Capabilities:
Get disk information
Get disk information via ioctl

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov qword [rbp - 0x50], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov rax, qword [0x14004d298]
xor rax, rsp
mov qword [rbp + 0x70], rax
mov r13, r8
mov qword [rbp - 0x78], r8
mov rbx, rdx
mov rax, qword [0x14004d960]
mov qword [rsp + 0x70], rax
xor eax, eax
test r8, r8
jne 0x140006a52
lea ecx, [rax + 0x57]
call fcn.14000425c
mov ebx, eax
lea r15, [0x14004d128]
mov rcx, qword [0x14004d128]
cmp rcx, r15
je 0x14000733d
lea r14d, [r8 + 1]
test byte [rcx + 0x1c], r14b
je 0x14000733d
cmp byte [rcx + 0x19], 2
jb 0x14000733d
lea edx, [r8 + 0x55]
mov r9d, ebx
lea r8, [0x140044f40]
mov rcx, qword [rcx + 0x10]
call fcn.1400018b0
jmp 0x14000733d
mov qword [r8], rax
test rbx, rbx
jne 0x140006a9b
lea ecx, [rbx + 0x57]
call fcn.14000425c
mov ebx, eax
lea r15, [0x14004d128]
mov rcx, qword [0x14004d128]
cmp rcx, r15
je 0x14000733d
mov r14d, 1
test byte [rcx + 0x1c], r14b
je 0x14000733d
cmp byte [rcx + 0x19], 2
jb 0x14000733d
lea edx, [r14 + 0x55]
jmp 0x140006a3a
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
nop dword [rax + rax]
lea rdx, str._Volumebab6b806_2c70_4823_9d7c_aab8c6df6ca4
lea rcx, [rbp - 0x48]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
nop dword [rax + rax]
movzx esi, word [rbp - 0x48]
shr esi, 1
movzx edi, word [rsp + 0x40]
shr edi, 1
lea eax, [rdi - 2]
lea r12, [0x140044f40]
lea r15, [0x14004d128]
mov r8d, 0x5c
lea r9d, [r8 + 5]
lea r14d, [r8 - 0x5b]
cmp eax, r14d
ja 0x140006c47
lea edx, [r8 - 0x22]
cmp word [rbx + 2], dx
jne 0x140006c47
cmp edi, 3
jb 0x140006b16
cmp word [rbx + 4], r8w
jne 0x140006c47
movzx ecx, word [rbx]
movzx eax, cx
sub ax, r9w
cmp ax, 0x19
jbe 0x140006b33
lea eax, [rcx - 0x41]
cmp ax, 0x19
ja 0x140006c47
mov word [rbp - 8], cx
mov dword [rbp - 6], 0x5c003a
xor edi, edi
mov word [rbp - 2], di
lea r8d, [rdi + 0x32]
lea rdx, [rbp]
lea rcx, [rbp - 8]
call qword [sym.imp.api_ms_win_core_file_l1_2_0.dll_GetVolumeNameForVolumeMountPointW]
nop dword [rax + rax]
test eax, eax
jne 0x140006bac
lea ecx, [rdi + 0x7b]
call fcn.14000425c
mov edi, eax
lea r15, [0x14004d128]
mov rcx, qword [0x14004d128]
cmp rcx, r15
je 0x140006ba5
test byte [rcx + 0x1c], r14b
je 0x140006ba5
cmp byte [rcx + 0x19], 2
jb 0x140006ba5
mov edx, 0x57
mov dword [rsp + 0x20], eax
mov r9, rbx
lea r8, [0x140044f40]
mov rcx, qword [rcx + 0x10]
call fcn.14000468c
mov eax, edi
jmp 0x14000733f
lea rdx, [rbp]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
nop dword [rax + rax]
movzx edi, word [rsp + 0x40]
shr edi, 1
mov r10, qword [0x14004d128]
cmp r10, r15
je 0x140006c06
test byte [r10 + 0x1c], r14b
je 0x140006c06
cmp byte [r10 + 0x19], 4
jb 0x140006c06
mov edx, 0x58
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9, rbx
mov r8, r12
mov rcx, qword [r10 + 0x10]
call fcn.140004560
mov r10, qword [0x14004d128]
mov r8d, 0x5c
cmp edi, esi
jae 0x140006c50
mov ecx, 0x7b
call fcn.14000425c
mov ebx, eax
cmp r10, r15
je 0x14000733d
test byte [r10 + 0x1c], r14b
je 0x14000733d
cmp byte [r10 + 0x19], 2
jb 0x14000733d
lea edx, [rcx - 0x22]
mov r9, qword [rsp + 0x48]
jmp 0x14000732d
mov r10, qword [0x14004d128]
jmp 0x140006c0c
lea eax, [rsi + 1]
mov r9, qword [rsp + 0x48]
cmp edi, eax
ja 0x14000730c
cmp edi, esi
jbe 0x140006c6f
cmp word [r9 + rsi*2], r8w
jne 0x14000730c
lea eax, [rsi - 1]
cmp word [r9 + rax*2], 0x7d
jne 0x14000730c
mov qword [rbp - 0x80], r9
mov eax, 0x14
mov word [rsp + 0x78], ax
movzx eax, word [rsp + 0x42]
mov word [rsp + 0x7a], ax
lea rdx, str._Volume
lea rcx, [rbp - 0x70]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
nop dword [rax + rax]
lea rdx, [0x140044640]
lea rcx, [rbp - 0x38]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
nop dword [rax + rax]
mov r8b, r14b
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x78]
call qword [sym.imp.ntdll.dll_RtlCompareUnicodeString]
nop dword [rax + rax]
xor ebx, ebx
test eax, eax
je 0x140006d3f
mov r8b, r14b
lea rdx, [rbp - 0x38]
lea rcx, [rsp + 0x78]
call qword [sym.imp.ntdll.dll_RtlCompareUnicodeString]
nop dword [rax + rax]
test eax, eax
je 0x140006d3f
lea ecx, [rbx + 0x7b]
call fcn.14000425c
mov ebx, eax
mov rcx, qword [0x14004d128]
cmp rcx, r15
je 0x14000733d
test byte [rcx + 0x1c], r14b
je 0x14000733d
cmp byte [rcx + 0x19], 2
jb 0x14000733d
mov edx, 0x5b
mov r9, qword [rsp + 0x48]
mov rcx, qword [rcx + 0x10]
jmp 0x140007331
mov r8b, r14b
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x78]
call qword [sym.imp.ntdll.dll_RtlCompareUnicodeString]
nop dword [rax + rax]
test eax, eax
jne 0x140006d67
lea ecx, [rax + 0x3f]
mov rax, qword [rsp + 0x48]
mov word [rax + 2], cx
movzx eax, word [rbp - 0x70]
add rax, qword [rsp + 0x48]
mov qword [rbp - 0x58], rax
mov dword [rbp - 0x60], 0x4c004c
lea rdx, [rbp - 0x18]
lea rcx, [rbp - 0x60]
call qword [sym.imp.ntdll.dll_RtlGUIDFromString]
nop dword [rax + rax]
test eax, eax
jns 0x140006dd8
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
nop dword [rax + rax]
mov ecx, eax
call fcn.14000425c
mov ebx, eax
mov rcx, qword [0x14004d128]
cmp rcx, r15
je 0x14000733d
test byte [rcx + 0x1c], r14b
je 0x14000733d
cmp byte [rcx + 0x19], 2
jb 0x14000733d
mov edx, 0x5c
jmp 0x140006d31
mov r9, r13
lea r8, [rbp - 0x18]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x70]
call fcn.1400073a4
mov r13d, eax
test eax, eax
jns 0x14000728a
mov qword [rsp + 0x68], rbx
movzx esi, word [rsp + 0x40]
mov ecx, esi
shr rcx, 1
mov rdi, qword [rsp + 0x48]
mov edx, 0x5c
cmp word [rdi + rcx*2 - 2], dx
je 0x140006f58
lea rcx, [rsi + 4]
call qword [sym.imp.msvcrt.dll_malloc]
nop dword [rax + rax]
mov rbx, rax
mov qword [rsp + 0x60], rax
xor eax, eax
test rbx, rbx
jne 0x140006e87
mov esi, 0x8007000e
mov rcx, qword [0x14004d128]
cmp rcx, r15
je 0x140006e70
test byte [rcx + 0x1c], r14b
je 0x140006e70
cmp byte [rcx + 0x19], 2
jb 0x140006e70
lea edx, [rbx + 0x5d]
mov dword [rsp + 0x20], esi
mov r9, rdi
mov r8, r12
mov rcx, qword [rcx + 0x10]
call fcn.14000468c
nop
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_free]
nop dword [rax + rax]
nop
mov eax, esi
jmp 0x14000733f
mov qword [rsp + 0x58], rbx
mov word [rsp + 0x50], ax
add si, 4
mov word [rsp + 0x52], si
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
lea r8, [0x1400433f8]
lea rdx, [rsp + 0x40]
xor ecx, ecx
call fcn.14000a2a4
mov ebx, eax
xor esi, esi
test eax, eax
jns 0x140006f1b
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.msvcrt.dll_free]
nop dword [rax + rax]
mov rcx, qword [0x14004d128]
cmp rcx, r15
je 0x140006f07
test byte [rcx + 0x1c], r14b
je 0x140006f07
cmp byte [rcx + 0x19], 2
jb 0x140006f07
lea edx, [rsi + 0x5e]
mov dword [rsp + 0x20], r13d
mov r9, qword [rsp + 0x48]
mov r8, r12
mov rcx, qword [rcx + 0x10]
call fcn.14000468c
nop
xor ecx, ecx
call qword [sym.imp.msvcrt.dll_free]
nop dword [rax + rax]
nop
jmp 0x14000733d
mov r9d, 0x100080
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x50]
mov cl, r14b
call fcn.140009d28
mov ebx, eax
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.msvcrt.dll_free]
nop dword [rax + rax]
nop
xor ecx, ecx
call qword [sym.imp.msvcrt.dll_free]
nop dword [rax + rax]
nop
jmp 0x140006f74
mov r9d, 0x100080
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x40]
mov cl, r14b
call fcn.140009d28
mov ebx, eax
xor esi, esi
test ebx, ebx
jns 0x140006fc2
mov rcx, qword [0x14004d128]
cmp rcx, r15
je 0x140006faf
test byte [rcx + 0x1c], r14b
je 0x140006faf
cmp byte [rcx + 0x19], 2
jb 0x140006faf
mov edx, 0x5f
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], ebx
mov r9, qword [rsp + 0x48]
mov r8, r12
mov rcx, qword [rcx + 0x10]
call fcn.1400044c8
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14000728a
jmp 0x14000727e
mov qword [rsp + 0x50], rsi
mov dword [rsp + 0x60], esi
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x50]
mov rbx, qword [rsp + 0x68]
mov rcx, rbx
call fcn.14000a39c
mov edi, eax
test eax, eax
jns 0x14000704e
test rbx, rbx
je 0x140006fff
mov rcx, rbx
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
mov rbx, rsi
mov rcx, qword [0x14004d128]
cmp rcx, r15
je 0x140007037
test byte [rcx + 0x1c], r14b
je 0x140007037
cmp byte [rcx + 0x19], 2
jb 0x140007037
mov edx, 0x60
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], edi
mov r9, qword [rsp + 0x48]
mov r8, r12
mov rcx, qword [rcx + 0x10]
call fcn.1400044c8
nop
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.msvcrt.dll_free]
nop dword [rax + rax]
nop
jmp 0x140007276
mov rsi, qword [rsp + 0x50]
mov eax, dword [rsi + 4]
xor edi, edi
cmp dword [rsi], eax
je 0x1400070cf
test rbx, rbx
je 0x140007072
mov rcx, rbx
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
mov ebx, edi
mov rcx, qword [0x14004d128]
cmp rcx, r15
je 0x1400070a1
test byte [rcx + 0x1c], r14b
je 0x1400070a1
cmp byte [rcx + 0x19], 4
jb 0x1400070a1
mov edx, 0x61
mov r9, qword [rsp + 0x48]
mov r8, r12
mov rcx, qword [rcx + 0x10]
call fcn.140004458
nop
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_free]
nop dword [rax + rax]
nop
test rbx, rbx
je 0x1400070c5
mov rcx, rbx
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
mov eax, 0x80830005
jmp 0x14000733f
test rbx, rbx
je 0x1400070e6
mov rcx, rbx
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
mov rbx, rdi
movzx edx, word [rsp + 0x40]
mov ecx, edx
shr rcx, 1
mov rax, qword [rsp + 0x48]
mov r8d, 0x5c
cmp word [rax + rcx*2 - 2], r8w
jne 0x140007110
mov eax, 0xfffe
add dx, ax
mov word [rsp + 0x40], dx
mov qword [rsp + 0x50], rdi
mov r9d, 0x100080
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x40]
mov cl, r14b
call fcn.140009d28
test eax, eax
jns 0x140007194
mov rcx, qword [0x14004d128]
cmp rcx, r15
je 0x140007168
test byte [rcx + 0x1c], r14b
je 0x140007168
cmp byte [rcx + 0x19], 2
jb 0x140007168
mov edx, 0x62
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x48]
mov r8, r12
mov rcx, qword [rcx + 0x10]
call fcn.1400044c8
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14000717f
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
nop
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_free]
nop dword [rax + rax]
nop
jmp 0x140007276
xor eax, eax
mov qword [rbp - 0x28], rax
mov dword [rbp - 0x20], eax
mov dword [rbp - 8], edi
mov qword [rsp + 0x38], rdi
lea rax, [rbp - 8]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0xc
lea rax, [rbp - 0x28]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x2d1080
mov rdi, qword [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_io_l1_1_0.dll_DeviceIoControl]
nop dword [rax + rax]
test eax, eax
jne 0x140007292
test rdi, rdi
je 0x1400071fc
mov rcx, rdi
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
xor edi, edi
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
movzx r8d, ax
or r8d, 0x80070000
test eax, eax
cmovle r8d, eax
mov rcx, qword [0x14004d128]
cmp rcx, r15
je 0x140007251
test byte [rcx + 0x1c], r14b
je 0x140007251
cmp byte [rcx + 0x19], 2
jb 0x140007251
mov edx, 0x63
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], r8d
mov r9, qword [rsp + 0x48]
mov r8, r12
mov rcx, qword [rcx + 0x10]
call fcn.1400044c8
test rdi, rdi
je 0x140007266
mov rcx, rdi
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
nop
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_free]
nop dword [rax + rax]
nop
test rbx, rbx
je 0x14000728a
mov rcx, rbx
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
mov eax, r13d
jmp 0x14000733f
xor r14d, r14d
test rdi, rdi
je 0x1400072ac
mov rcx, rdi
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
mov edi, r14d
mov qword [rbp - 0x10], r14
mov eax, dword [rbp - 0x24]
mov dword [rbp - 0x18], eax
movzx eax, word [rbp - 0x20]
mov word [rbp - 0x14], ax
mov eax, dword [rbp - 0x20]
shr eax, 0x10
mov word [rbp - 0x12], ax
mov r9, qword [rbp - 0x78]
lea r8, [rbp - 0x18]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x70]
call fcn.1400073a4
mov r13d, eax
test rdi, rdi
je 0x1400072f7
mov rcx, rdi
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
nop
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_free]
nop dword [rax + rax]
nop
jmp 0x140007276
mov ecx, 0x7b
call fcn.14000425c
mov ebx, eax
cmp r10, r15
je 0x14000733d
test byte [r10 + 0x1c], r14b
je 0x14000733d
cmp byte [r10 + 0x19], 2
jb 0x14000733d
lea edx, [rcx - 0x21]
mov rcx, qword [r10 + 0x10]
mov dword [rsp + 0x20], ebx
mov r8, r12
call fcn.14000468c
mov eax, ebx
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.140040f60
mov rbx, qword [rsp + 0x1c0]
add rsp, 0x180
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret