Function at 0x140006a8c
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 0x140006b32
lea ecx, [rax + 0x57]
call fcn.14000433c
mov ebx, eax
lea r15, [0x14004d128]
mov rcx, qword [0x14004d128]
cmp rcx, r15
je 0x14000741d
lea r14d, [r8 + 1]
test byte [rcx + 0x1c], r14b
je 0x14000741d
cmp byte [rcx + 0x19], 2
jb 0x14000741d
lea edx, [r8 + 0x55]
mov r9d, ebx
lea r8, [0x140044f90]
mov rcx, qword [rcx + 0x10]
call fcn.1400018b0
jmp 0x14000741d
mov qword [r8], rax
test rbx, rbx
jne 0x140006b7b
lea ecx, [rbx + 0x57]
call fcn.14000433c
mov ebx, eax
lea r15, [0x14004d128]
mov rcx, qword [0x14004d128]
cmp rcx, r15
je 0x14000741d
mov r14d, 1
test byte [rcx + 0x1c], r14b
je 0x14000741d
cmp byte [rcx + 0x19], 2
jb 0x14000741d
lea edx, [r14 + 0x55]
jmp 0x140006b1a
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, [0x140044f90]
lea r15, [0x14004d128]
mov r8d, 0x5c
lea r9d, [r8 + 5]
lea r14d, [r8 - 0x5b]
cmp eax, r14d
ja 0x140006d27
lea edx, [r8 - 0x22]
cmp word [rbx + 2], dx
jne 0x140006d27
cmp edi, 3
jb 0x140006bf6
cmp word [rbx + 4], r8w
jne 0x140006d27
movzx ecx, word [rbx]
movzx eax, cx
sub ax, r9w
cmp ax, 0x19
jbe 0x140006c13
lea eax, [rcx - 0x41]
cmp ax, 0x19
ja 0x140006d27
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 0x140006c8c
lea ecx, [rdi + 0x7b]
call fcn.14000433c
mov edi, eax
lea r15, [0x14004d128]
mov rcx, qword [0x14004d128]
cmp rcx, r15
je 0x140006c85
test byte [rcx + 0x1c], r14b
je 0x140006c85
cmp byte [rcx + 0x19], 2
jb 0x140006c85
mov edx, 0x57
mov dword [rsp + 0x20], eax
mov r9, rbx
lea r8, [0x140044f90]
mov rcx, qword [rcx + 0x10]
call fcn.14000476c
mov eax, edi
jmp 0x14000741f
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 0x140006ce6
test byte [r10 + 0x1c], r14b
je 0x140006ce6
cmp byte [r10 + 0x19], 4
jb 0x140006ce6
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.140004640
mov r10, qword [0x14004d128]
mov r8d, 0x5c
cmp edi, esi
jae 0x140006d30
mov ecx, 0x7b
call fcn.14000433c
mov ebx, eax
cmp r10, r15
je 0x14000741d
test byte [r10 + 0x1c], r14b
je 0x14000741d
cmp byte [r10 + 0x19], 2
jb 0x14000741d
lea edx, [rcx - 0x22]
mov r9, qword [rsp + 0x48]
jmp 0x14000740d
mov r10, qword [0x14004d128]
jmp 0x140006cec
lea eax, [rsi + 1]
mov r9, qword [rsp + 0x48]
cmp edi, eax
ja 0x1400073ec
cmp edi, esi
jbe 0x140006d4f
cmp word [r9 + rsi*2], r8w
jne 0x1400073ec
lea eax, [rsi - 1]
cmp word [r9 + rax*2], 0x7d
jne 0x1400073ec
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, [0x140044690]
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 0x140006e1f
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 0x140006e1f
lea ecx, [rbx + 0x7b]
call fcn.14000433c
mov ebx, eax
mov rcx, qword [0x14004d128]
cmp rcx, r15
je 0x14000741d
test byte [rcx + 0x1c], r14b
je 0x14000741d
cmp byte [rcx + 0x19], 2
jb 0x14000741d
mov edx, 0x5b
mov r9, qword [rsp + 0x48]
mov rcx, qword [rcx + 0x10]
jmp 0x140007411
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 0x140006e47
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 0x140006eb8
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
nop dword [rax + rax]
mov ecx, eax
call fcn.14000433c
mov ebx, eax
mov rcx, qword [0x14004d128]
cmp rcx, r15
je 0x14000741d
test byte [rcx + 0x1c], r14b
je 0x14000741d
cmp byte [rcx + 0x19], 2
jb 0x14000741d
mov edx, 0x5c
jmp 0x140006e11
mov r9, r13
lea r8, [rbp - 0x18]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x70]
call fcn.140007484
mov r13d, eax
test eax, eax
jns 0x14000736a
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 0x140007038
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 0x140006f67
mov esi, 0x8007000e
mov rcx, qword [0x14004d128]
cmp rcx, r15
je 0x140006f50
test byte [rcx + 0x1c], r14b
je 0x140006f50
cmp byte [rcx + 0x19], 2
jb 0x140006f50
lea edx, [rbx + 0x5d]
mov dword [rsp + 0x20], esi
mov r9, rdi
mov r8, r12
mov rcx, qword [rcx + 0x10]
call fcn.14000476c
nop
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_free]
nop dword [rax + rax]
nop
mov eax, esi
jmp 0x14000741f
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.14000a384
mov ebx, eax
xor esi, esi
test eax, eax
jns 0x140006ffb
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.msvcrt.dll_free]
nop dword [rax + rax]
mov rcx, qword [0x14004d128]
cmp rcx, r15
je 0x140006fe7
test byte [rcx + 0x1c], r14b
je 0x140006fe7
cmp byte [rcx + 0x19], 2
jb 0x140006fe7
lea edx, [rsi + 0x5e]
mov dword [rsp + 0x20], r13d
mov r9, qword [rsp + 0x48]
mov r8, r12
mov rcx, qword [rcx + 0x10]
call fcn.14000476c
nop
xor ecx, ecx
call qword [sym.imp.msvcrt.dll_free]
nop dword [rax + rax]
nop
jmp 0x14000741d
mov r9d, 0x100080
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x50]
mov cl, r14b
call fcn.140009e08
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 0x140007054
mov r9d, 0x100080
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x40]
mov cl, r14b
call fcn.140009e08
mov ebx, eax
xor esi, esi
test ebx, ebx
jns 0x1400070a2
mov rcx, qword [0x14004d128]
cmp rcx, r15
je 0x14000708f
test byte [rcx + 0x1c], r14b
je 0x14000708f
cmp byte [rcx + 0x19], 2
jb 0x14000708f
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.1400045a8
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14000736a
jmp 0x14000735e
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.14000a47c
mov edi, eax
test eax, eax
jns 0x14000712e
test rbx, rbx
je 0x1400070df
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 0x140007117
test byte [rcx + 0x1c], r14b
je 0x140007117
cmp byte [rcx + 0x19], 2
jb 0x140007117
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.1400045a8
nop
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.msvcrt.dll_free]
nop dword [rax + rax]
nop
jmp 0x140007356
mov rsi, qword [rsp + 0x50]
mov eax, dword [rsi + 4]
xor edi, edi
cmp dword [rsi], eax
je 0x1400071af
test rbx, rbx
je 0x140007152
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 0x140007181
test byte [rcx + 0x1c], r14b
je 0x140007181
cmp byte [rcx + 0x19], 4
jb 0x140007181
mov edx, 0x61
mov r9, qword [rsp + 0x48]
mov r8, r12
mov rcx, qword [rcx + 0x10]
call fcn.140004538
nop
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_free]
nop dword [rax + rax]
nop
test rbx, rbx
je 0x1400071a5
mov rcx, rbx
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
mov eax, 0x80830005
jmp 0x14000741f
test rbx, rbx
je 0x1400071c6
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 0x1400071f0
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.140009e08
test eax, eax
jns 0x140007274
mov rcx, qword [0x14004d128]
cmp rcx, r15
je 0x140007248
test byte [rcx + 0x1c], r14b
je 0x140007248
cmp byte [rcx + 0x19], 2
jb 0x140007248
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.1400045a8
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14000725f
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 0x140007356
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 0x140007372
test rdi, rdi
je 0x1400072dc
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 0x140007331
test byte [rcx + 0x1c], r14b
je 0x140007331
cmp byte [rcx + 0x19], 2
jb 0x140007331
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.1400045a8
test rdi, rdi
je 0x140007346
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 0x14000736a
mov rcx, rbx
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
mov eax, r13d
jmp 0x14000741f
xor r14d, r14d
test rdi, rdi
je 0x14000738c
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.140007484
mov r13d, eax
test rdi, rdi
je 0x1400073d7
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 0x140007356
mov ecx, 0x7b
call fcn.14000433c
mov ebx, eax
cmp r10, r15
je 0x14000741d
test byte [r10 + 0x1c], r14b
je 0x14000741d
cmp byte [r10 + 0x19], 2
jb 0x14000741d
lea edx, [rcx - 0x21]
mov rcx, qword [r10 + 0x10]
mov dword [rsp + 0x20], ebx
mov r8, r12
call fcn.14000476c
mov eax, ebx
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.140041040
mov rbx, qword [rsp + 0x1c0]
add rsp, 0x180
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret