Function at 0x140122db4
Capabilities:
Get disk information
Get disk 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 - 0x5c0]
sub rsp, 0x6c0
mov rax, qword [0x14017a608]
xor rax, rsp
mov qword [rbp + 0x5b0], rax
mov r12, r9
mov qword [rsp + 0x58], r8
mov bl, dl
mov r14, rcx
mov rdi, qword [0x14017a048]
lea rax, [0x14017a048]
cmp rdi, rax
je 0x140122e2c
test byte [rdi + 0x1c], 1
je 0x140122e2c
cmp byte [rdi + 0x19], 4
jb 0x140122e2c
mov rcx, qword [rdi + 0x10]
lea r8, [0x140168318]
mov edx, 0x31
call fcn.140006b98
mov rdi, qword [0x14017a048]
xor ecx, ecx
xor eax, eax
mov dword [rsp + 0x50], ecx
mov r13d, ecx
mov dword [rsp + 0x48], ecx
mov esi, ecx
mov dword [rsp + 0x4c], ecx
mov r15d, 0x208
mov qword [rsp + 0x40], rcx
mov r8d, r15d
lea rcx, [rbp + 0x3a0]
mov qword [rsp + 0x68], rax
xor edx, edx
mov dword [rsp + 0x70], eax
call sub.msvcrt.dll_memset
mov r8d, r15d
lea rcx, [rbp + 0x190]
xor edx, edx
call sub.msvcrt.dll_memset
mov r8d, r15d
lea rcx, [rbp - 0x80]
xor edx, edx
call sub.msvcrt.dll_memset
xor r15d, r15d
test r14, r14
je 0x140122e93
cmp word [r14], r15w
jne 0x140122eb2
lea r8, str.wszDiskPath__wszDiskPath
mov edx, 0x39b
lea rcx, str.base_stor_blbengine_blbengutils_blbvhdhelper.cpp
call fcn.14008ac24
mov rdi, qword [0x14017a048]
test r12, r12
jne 0x140122ed6
lea r8, str.pwszVolumePath
mov edx, 0x39c
lea rcx, str.base_stor_blbengine_blbengutils_blbvhdhelper.cpp
call fcn.14008ac24
mov rdi, qword [0x14017a048]
lea rax, [0x14017a048]
cmp rdi, rax
je 0x140122f12
test byte [rdi + 0x1c], 1
je 0x140122f12
cmp byte [rdi + 0x19], 4
jb 0x140122f12
mov rcx, qword [rdi + 0x10]
lea r8, [0x140168318]
mov edx, 0x32
mov qword [rsp + 0x20], r12
mov r9, r14
call fcn.140059058
mov rdi, qword [0x14017a048]
test r12, r12
je 0x140123453
test r14, r14
je 0x140123453
mov qword [rsp + 0x30], r15
mov r8d, 3
mov dword [rsp + 0x28], 0x2000080
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], r8d
mov rcx, r14
mov qword [r12], r15
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
mov qword [rsp + 0x60], rax
cmp rax, 0xffffffffffffffff
jne 0x140122fd0
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x140122f7a
movzx ebx, ax
or ebx, 0x80070000
mov rdi, qword [0x14017a048]
lea r15, [0x14017a048]
cmp rdi, r15
je 0x1401234a0
test byte [rdi + 0x1c], 1
je 0x14012347a
mov sil, 2
cmp byte [rdi + 0x19], sil
jb 0x14012347a
mov rcx, qword [rdi + 0x10]
lea r8, [0x140168318]
mov edx, 0x33
mov dword [rsp + 0x20], ebx
mov r9, r14
call fcn.140011330
mov rdi, qword [0x14017a048]
jmp 0x14012347a
mov qword [rsp + 0x38], r15
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x30], rcx
xor r9d, r9d
lea rcx, [rsp + 0x68]
mov dword [rsp + 0x28], 0xc
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, rax
mov edx, 0x2d1080
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
nop dword [rax + rax]
test eax, eax
jne 0x140123075
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x14012302a
movzx ebx, ax
or ebx, 0x80070000
mov rcx, qword [0x14017a048]
lea r13, [0x14017a048]
cmp rcx, r13
je 0x140123439
test byte [rcx + 0x1c], 1
je 0x140123439
mov sil, 2
cmp byte [rcx + 0x19], sil
jb 0x140123434
mov edx, 0x34
mov rcx, qword [rcx + 0x10]
lea r8, [0x140168318]
mov r9d, ebx
call fcn.140006bc4
jmp 0x140123434
mov rcx, qword [0x14017a048]
lea rdi, [0x14017a048]
cmp rcx, rdi
je 0x1401230be
test byte [rcx + 0x1c], 1
je 0x1401230be
cmp byte [rcx + 0x19], 4
jb 0x1401230be
mov eax, dword [rsp + 0x68]
lea r8, [0x140168318]
mov r9d, dword [rsp + 0x6c]
mov edx, 0x35
mov rcx, qword [rcx + 0x10]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x70]
mov dword [rsp + 0x20], eax
call fcn.1400ce7e0
mov r9d, dword [rsp + 0x6c]
mov r15d, 0x104
lea rcx, [rbp - 0x80]
mov edx, r15d
lea r8, str._GlobalrootDeviceHarddisk_luPartition1
test bl, bl
jne 0x1401230e2
lea r8, str._GlobalrootDeviceHarddisk_luPartition2
call fcn.1400102c4
xor r14d, r14d
mov ebx, eax
test eax, eax
jns 0x140123120
mov rcx, qword [0x14017a048]
cmp rcx, rdi
je 0x140123439
test byte [rcx + 0x1c], 1
je 0x140123439
mov sil, 2
cmp byte [rcx + 0x19], sil
jb 0x140123434
lea edx, [r14 + 0x36]
jmp 0x14012305d
cmp dword [0x14017ac04], r14d
mov edi, 0x80070000
mov sil, 2
mov ebx, 0x88888889
jbe 0x140123223
lea r13, [0x14017a048]
lea rdx, [rsp + 0x4c]
lea rcx, [rbp - 0x80]
call fcn.140115638
test eax, eax
jns 0x14012321e
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jle 0x14012316c
movzx eax, ax
or eax, edi
mov rcx, qword [0x14017a048]
cmp rcx, r13
je 0x1401231a2
test byte [rcx + 0x1c], 1
je 0x1401231a2
cmp byte [rcx + 0x19], sil
jb 0x1401231a2
mov r9d, dword [rsp + 0x48]
lea r8, [0x140168318]
mov rcx, qword [rcx + 0x10]
mov edx, 0x37
mov dword [rsp + 0x20], eax
call fcn.1400ce6a4
mov eax, ebx
mul dword [0x14017ac04]
shr edx, 4
mov ecx, edx
call qword [sym.imp.KERNEL32.dll_Sleep]
nop dword [rax + rax]
mov eax, ebx
mul dword [0x14017ac04]
mov eax, dword [rsp + 0x48]
shr edx, 4
add eax, edx
cmp eax, dword [0x14017ac04]
mov dword [rsp + 0x48], eax
jb 0x140123141
mov rcx, qword [0x14017a048]
cmp rcx, r13
je 0x140123214
test byte [rcx + 0x1c], 1
je 0x140123214
cmp byte [rcx + 0x19], sil
jb 0x140123214
mov rcx, qword [rcx + 0x10]
lea r8, [0x140168318]
mov edx, 0x38
mov dword [rsp + 0x20], 0x8078004f
mov r9d, eax
call fcn.1400ce6a4
mov ebx, 0x8078004f
jmp 0x140123434
mov r13d, dword [rsp + 0x4c]
mov r9d, r13d
lea r8, str._GlobalrootDeviceHarddiskVolume_lu
mov rdx, r15
lea rcx, [rbp + 0x190]
call fcn.1400102c4
mov ebx, eax
test eax, eax
jns 0x140123277
mov rcx, qword [0x14017a048]
lea rax, [0x14017a048]
cmp rcx, rax
je 0x140123434
test byte [rcx + 0x1c], 1
je 0x140123434
cmp byte [rcx + 0x19], sil
jb 0x140123434
mov edx, 0x39
jmp 0x14012305d
xor r8d, r8d
lea rcx, [rbp + 0x190]
mov rdx, r12
call fcn.14008c1cc
mov ebx, eax
test eax, eax
jns 0x1401232c4
mov rcx, qword [0x14017a048]
lea rax, [0x14017a048]
cmp rcx, rax
je 0x140123434
test byte [rcx + 0x1c], 1
je 0x140123434
cmp byte [rcx + 0x19], sil
jb 0x140123434
mov edx, 0x3a
jmp 0x14012305d
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x80]
call fcn.14008c48c
mov ebx, eax
test eax, eax
jns 0x140123325
mov rcx, qword [0x14017a048]
lea rax, [0x14017a048]
cmp rcx, rax
je 0x140123434
test byte [rcx + 0x1c], 1
je 0x140123434
cmp byte [rcx + 0x19], sil
jb 0x140123434
mov rcx, qword [rcx + 0x10]
lea r9, [rbp - 0x80]
mov edx, 0x3b
mov dword [rsp + 0x20], ebx
lea r8, [0x140168318]
call fcn.140011330
jmp 0x140123434
cmp dword [0x14017ac04], r14d
jbe 0x14012341e
mov r12, qword [rsp + 0x40]
lea r13, [0x14017a048]
mov r8d, r15d
lea rdx, [rbp + 0x3a0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
nop dword [rax + rax]
test eax, eax
jne 0x14012341e
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x140123376
movzx ebx, ax
or ebx, edi
mov rcx, qword [0x14017a048]
cmp rcx, r13
je 0x1401233aa
test byte [rcx + 0x1c], 1
je 0x1401233aa
cmp byte [rcx + 0x19], 4
jb 0x1401233aa
mov rcx, qword [rcx + 0x10]
lea r8, [0x140168318]
mov edx, 0x3c
mov dword [rsp + 0x20], ebx
mov r9d, r14d
call fcn.1400ce6a4
mov eax, 0x88888889
mul dword [0x14017ac04]
shr edx, 4
mov ecx, edx
call qword [sym.imp.KERNEL32.dll_Sleep]
nop dword [rax + rax]
mov eax, 0x88888889
mul dword [0x14017ac04]
shr edx, 4
add r14d, edx
cmp r14d, dword [0x14017ac04]
jb 0x14012333e
test ebx, ebx
jns 0x14012341e
mov rcx, qword [0x14017a048]
cmp rcx, r13
je 0x140123434
test byte [rcx + 0x1c], 1
je 0x140123434
cmp byte [rcx + 0x19], sil
jb 0x140123434
mov rcx, qword [rcx + 0x10]
lea r8, [0x140168318]
mov edx, 0x3d
mov dword [rsp + 0x20], ebx
mov r9d, r14d
call fcn.1400ce6a4
jmp 0x140123434
mov rdx, qword [rsp + 0x58]
lea rcx, [rbp + 0x3a0]
xor r8d, r8d
call fcn.14008c1cc
mov ebx, eax
mov rsi, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov rdi, qword [0x14017a048]
jmp 0x140123458
mov ebx, 0x80070057
test rsi, rsi
je 0x140123473
mov rcx, rsi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rdi, qword [0x14017a048]
lea r15, [0x14017a048]
cmp rdi, r15
je 0x1401234a0
test byte [rdi + 0x1c], 1
je 0x1401234a0
cmp byte [rdi + 0x19], 4
jb 0x1401234a0
mov rcx, qword [rdi + 0x10]
lea r8, [0x140168318]
mov edx, 0x3e
call fcn.140006b98
mov eax, ebx
mov rcx, qword [rbp + 0x5b0]
xor rcx, rsp
call fcn.140001d90
mov rbx, qword [rsp + 0x708]
add rsp, 0x6c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret