Function at 0x140006130
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 [0x14004b1f8]
xor rax, rsp
mov qword [rbp + 0x70], rax
mov r13, r8
mov qword [rbp - 0x78], r8
mov rbx, rdx
mov rax, qword [0x14004b860]
mov qword [rsp + 0x70], rax
xor eax, eax
test r8, r8
jne 0x1400061d6
lea ecx, [rax + 0x57]
call fcn.140003bb8
mov ebx, eax
lea r15, [0x14004b138]
mov rcx, qword [0x14004b138]
cmp rcx, r15
je 0x1400069f3
lea r14d, [r8 + 1]
test byte [rcx + 0x1c], r14b
je 0x1400069f3
cmp byte [rcx + 0x19], 2
jb 0x1400069f3
lea edx, [r8 + 0x55]
mov r9d, ebx
lea r8, str.__9_gU0
mov rcx, qword [rcx + 0x10]
call fcn.1400014d0
jmp 0x1400069f3
mov qword [r8], rax
test rbx, rbx
jne 0x14000621f
lea ecx, [rbx + 0x57]
call fcn.140003bb8
mov ebx, eax
lea r15, [0x14004b138]
mov rcx, qword [0x14004b138]
cmp rcx, r15
je 0x1400069f3
mov r14d, 1
test byte [rcx + 0x1c], r14b
je 0x1400069f3
cmp byte [rcx + 0x19], 2
jb 0x1400069f3
lea edx, [r14 + 0x55]
jmp 0x1400061be
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rdx, str._Volumebab6b806_2c70_4823_9d7c_aab8c6df6ca4
lea rcx, [rbp - 0x48]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
movzx esi, word [rbp - 0x48]
shr esi, 1
movzx edi, word [rsp + 0x40]
shr edi, 1
lea eax, [rdi - 2]
lea r12, str.__9_gU0
lea r15, [0x14004b138]
mov r8d, 0x5c
lea r9d, [r8 + 5]
lea r14d, [r8 - 0x5b]
cmp eax, r14d
ja 0x1400063b3
lea edx, [r8 - 0x22]
cmp word [rbx + 2], dx
jne 0x1400063b3
cmp edi, 3
jb 0x14000628e
cmp word [rbx + 4], r8w
jne 0x1400063b3
movzx ecx, word [rbx]
movzx eax, cx
sub ax, r9w
cmp ax, 0x19
jbe 0x1400062ab
lea eax, [rcx - 0x41]
cmp ax, 0x19
ja 0x1400063b3
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]
test eax, eax
jne 0x14000631e
lea ecx, [rdi + 0x7b]
call fcn.140003bb8
mov edi, eax
lea r15, [0x14004b138]
mov rcx, qword [0x14004b138]
cmp rcx, r15
je 0x140006317
test byte [rcx + 0x1c], r14b
je 0x140006317
cmp byte [rcx + 0x19], 2
jb 0x140006317
mov edx, 0x57
mov dword [rsp + 0x20], eax
mov r9, rbx
lea r8, str.__9_gU0
mov rcx, qword [rcx + 0x10]
call fcn.140003fb8
mov eax, edi
jmp 0x1400069f5
lea rdx, [rbp]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
movzx edi, word [rsp + 0x40]
shr edi, 1
mov r10, qword [0x14004b138]
cmp r10, r15
je 0x140006372
test byte [r10 + 0x1c], r14b
je 0x140006372
cmp byte [r10 + 0x19], 4
jb 0x140006372
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.140003e94
mov r10, qword [0x14004b138]
mov r8d, 0x5c
cmp edi, esi
jae 0x1400063bc
mov ecx, 0x7b
call fcn.140003bb8
mov ebx, eax
cmp r10, r15
je 0x1400069f3
test byte [r10 + 0x1c], r14b
je 0x1400069f3
cmp byte [r10 + 0x19], 2
jb 0x1400069f3
lea edx, [rcx - 0x22]
mov r9, qword [rsp + 0x48]
jmp 0x1400069e3
mov r10, qword [0x14004b138]
jmp 0x140006378
lea eax, [rsi + 1]
mov r9, qword [rsp + 0x48]
cmp edi, eax
ja 0x1400069c2
cmp edi, esi
jbe 0x1400063db
cmp word [r9 + rsi*2], r8w
jne 0x1400069c2
lea eax, [rsi - 1]
cmp word [r9 + rax*2], 0x7d
jne 0x1400069c2
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]
lea rdx, [0x140042610]
lea rcx, [rbp - 0x38]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov r8b, r14b
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x78]
call qword [sym.imp.ntdll.dll_RtlCompareUnicodeString]
xor ebx, ebx
test eax, eax
je 0x140006493
mov r8b, r14b
lea rdx, [rbp - 0x38]
lea rcx, [rsp + 0x78]
call qword [sym.imp.ntdll.dll_RtlCompareUnicodeString]
test eax, eax
je 0x140006493
lea ecx, [rbx + 0x7b]
call fcn.140003bb8
mov ebx, eax
mov rcx, qword [0x14004b138]
cmp rcx, r15
je 0x1400069f3
test byte [rcx + 0x1c], r14b
je 0x1400069f3
cmp byte [rcx + 0x19], 2
jb 0x1400069f3
mov edx, 0x5b
mov r9, qword [rsp + 0x48]
mov rcx, qword [rcx + 0x10]
jmp 0x1400069e7
mov r8b, r14b
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x78]
call qword [sym.imp.ntdll.dll_RtlCompareUnicodeString]
test eax, eax
jne 0x1400064b5
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]
test eax, eax
jns 0x14000651a
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov ecx, eax
call fcn.140003bb8
mov ebx, eax
mov rcx, qword [0x14004b138]
cmp rcx, r15
je 0x1400069f3
test byte [rcx + 0x1c], r14b
je 0x1400069f3
cmp byte [rcx + 0x19], 2
jb 0x1400069f3
mov edx, 0x5c
jmp 0x140006485
mov r9, r13
lea r8, [rbp - 0x18]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x70]
call fcn.140006a50
mov r13d, eax
test eax, eax
jns 0x1400066df
mov qword [rsp + 0x68], rbx
movzx esi, word [rsp + 0x40]
mov eax, esi
mov ecx, esi
shr rcx, 1
mov rdi, qword [rsp + 0x48]
mov edx, 0x5c
cmp word [rdi + rcx*2 - 2], dx
je 0x140006678
lea rcx, [rax + 4]
call qword [sym.imp.msvcrt.dll_malloc]
mov rbx, rax
mov qword [rsp + 0x60], rax
xor eax, eax
test rbx, rbx
jne 0x1400065bf
mov esi, 0x8007000e
mov rcx, qword [0x14004b138]
cmp rcx, r15
je 0x1400065ae
test byte [rcx + 0x1c], r14b
je 0x1400065ae
cmp byte [rcx + 0x19], 2
jb 0x1400065ae
lea edx, [rbx + 0x5d]
mov dword [rsp + 0x20], esi
mov r9, rdi
mov r8, r12
mov rcx, qword [rcx + 0x10]
call fcn.140003fb8
nop
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_free]
nop
mov eax, esi
jmp 0x1400069f5
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, [0x140041400]
lea rdx, [rsp + 0x40]
xor ecx, ecx
call fcn.1400097c0
mov ebx, eax
xor esi, esi
test eax, eax
jns 0x140006647
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.msvcrt.dll_free]
mov rcx, qword [0x14004b138]
cmp rcx, r15
je 0x140006639
test byte [rcx + 0x1c], r14b
je 0x140006639
cmp byte [rcx + 0x19], 2
jb 0x140006639
lea edx, [rsi + 0x5e]
mov dword [rsp + 0x20], r13d
mov r9, qword [rsp + 0x48]
mov r8, r12
mov rcx, qword [rcx + 0x10]
call fcn.140003fb8
nop
xor ecx, ecx
call qword [sym.imp.msvcrt.dll_free]
nop
jmp 0x1400069f3
mov r9d, 0x100080
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x50]
mov cl, r14b
call fcn.1400092a0
mov ebx, eax
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.msvcrt.dll_free]
nop
xor ecx, ecx
call qword [sym.imp.msvcrt.dll_free]
nop
jmp 0x140006694
mov r9d, 0x100080
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x40]
mov cl, r14b
call fcn.1400092a0
mov ebx, eax
xor esi, esi
test ebx, ebx
jns 0x1400066e7
mov rcx, qword [0x14004b138]
cmp rcx, r15
je 0x1400066cf
test byte [rcx + 0x1c], r14b
je 0x1400066cf
cmp byte [rcx + 0x19], 2
jb 0x1400066cf
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.140003e04
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400066df
call qword [sym.imp.ntdll.dll_NtClose]
mov eax, r13d
jmp 0x1400069f5
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.1400098b0
mov edi, eax
test eax, eax
jns 0x140006773
test rbx, rbx
je 0x14000671e
mov rcx, rbx
call qword [sym.imp.ntdll.dll_NtClose]
mov rbx, rsi
mov rcx, qword [0x14004b138]
cmp rcx, r15
je 0x140006756
test byte [rcx + 0x1c], r14b
je 0x140006756
cmp byte [rcx + 0x19], 2
jb 0x140006756
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.140003e04
nop
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.msvcrt.dll_free]
nop
test rbx, rbx
je 0x1400066df
mov rcx, rbx
jmp 0x1400066d9
mov rsi, qword [rsp + 0x50]
mov eax, dword [rsi + 4]
xor edi, edi
cmp dword [rsi], eax
je 0x1400067e2
test rbx, rbx
je 0x140006791
mov rcx, rbx
call qword [sym.imp.ntdll.dll_NtClose]
mov ebx, edi
mov rcx, qword [0x14004b138]
cmp rcx, r15
je 0x1400067c0
test byte [rcx + 0x1c], r14b
je 0x1400067c0
cmp byte [rcx + 0x19], 4
jb 0x1400067c0
mov edx, 0x61
mov r9, qword [rsp + 0x48]
mov r8, r12
mov rcx, qword [rcx + 0x10]
call fcn.140003d9c
nop
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_free]
nop
test rbx, rbx
je 0x1400067d8
mov rcx, rbx
call qword [sym.imp.ntdll.dll_NtClose]
mov eax, 0x80830005
jmp 0x1400069f5
test rbx, rbx
je 0x1400067f3
mov rcx, rbx
call qword [sym.imp.ntdll.dll_NtClose]
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 0x14000681d
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.1400092a0
test eax, eax
jns 0x140006895
mov rcx, qword [0x14004b138]
cmp rcx, r15
je 0x140006875
test byte [rcx + 0x1c], r14b
je 0x140006875
cmp byte [rcx + 0x19], 2
jb 0x140006875
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.140003e04
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140006886
call qword [sym.imp.ntdll.dll_NtClose]
nop
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_free]
nop
jmp 0x140006762
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]
test eax, eax
jne 0x14000695a
test rdi, rdi
je 0x1400068ed
mov rcx, rdi
call qword [sym.imp.ntdll.dll_NtClose]
xor edi, edi
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx r8d, ax
or r8d, 0x80070000
test eax, eax
cmovle r8d, eax
mov rcx, qword [0x14004b138]
cmp rcx, r15
je 0x14000693c
test byte [rcx + 0x1c], r14b
je 0x14000693c
cmp byte [rcx + 0x19], 2
jb 0x14000693c
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.140003e04
test rdi, rdi
je 0x14000694b
mov rcx, rdi
call qword [sym.imp.ntdll.dll_NtClose]
nop
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_free]
nop
jmp 0x140006762
xor r14d, r14d
test rdi, rdi
je 0x14000696e
mov rcx, rdi
call qword [sym.imp.ntdll.dll_NtClose]
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.140006a50
mov r13d, eax
test rdi, rdi
je 0x1400069b3
mov rcx, rdi
call qword [sym.imp.ntdll.dll_NtClose]
nop
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_free]
nop
jmp 0x140006762
mov ecx, 0x7b
call fcn.140003bb8
mov ebx, eax
cmp r10, r15
je 0x1400069f3
test byte [r10 + 0x1c], r14b
je 0x1400069f3
cmp byte [r10 + 0x19], 2
jb 0x1400069f3
lea edx, [rcx - 0x21]
mov rcx, qword [r10 + 0x10]
mov dword [rsp + 0x20], ebx
mov r8, r12
call fcn.140003fb8
mov eax, ebx
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.14003ee40
mov rbx, qword [rsp + 0x1c0]
add rsp, 0x180
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret