Function at 0x10010bf84
Capabilities:
Get disk size
Get volume information via ioctl

Disassembly:
mov r11, rsp
push rbx
push rbp
push rsi
push rdi
push r15
sub rsp, 0xa0
xor ebx, ebx
mov rsi, rcx
xor eax, eax
and dword [r11 + 0x10], ebx
lea rcx, [rsp + 0x40]
lea r8d, [rbx + 0x60]
xor edx, edx
mov qword [r11 + 0x18], rax
call sub.msvcrt.dll_memset
or qword [rsp + 0x30], 0xffffffffffffffff
lea r8d, [rbx + 3]
xor r9d, r9d
mov edx, 0xc0000000
mov rcx, rsi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], r8d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
lea r15, [0x100002fa0]
cmp rax, 0xffffffffffffffff
jne 0x10010c045
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x1001653b8]
lea rdi, [0x1001653b8]
cmp rcx, rdi
je 0x10010c2c8
test byte [rcx + 0x1c], 1
je 0x10010c2c8
cmp byte [rcx + 0x19], 2
jb 0x10010c2c8
mov rcx, qword [rcx + 0x10]
lea edx, [rbp + 0x27]
mov r9, rsi
mov r8, r15
mov dword [rsp + 0x20], ebx
call fcn.10001daa4
jmp 0x10010c2c1
and qword [rsp + 0x38], rbx
lea rax, [rsp + 0xd8]
xor r9d, r9d
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0xe0]
xor r8d, r8d
mov edx, 0x7405c
mov rcx, rbp
mov dword [rsp + 0x28], 8
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x10010c0cd
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x1001653b8]
lea rdi, [0x1001653b8]
cmp rcx, rdi
je 0x10010c2b8
test byte [rcx + 0x1c], 1
je 0x10010c2b8
cmp byte [rcx + 0x19], 2
jb 0x10010c2b8
mov edx, 0x27
jmp 0x10010c186
mov rcx, qword [0x1001653b8]
lea rdi, [0x1001653b8]
cmp rcx, rdi
je 0x10010c10d
test byte [rcx + 0x1c], 1
je 0x10010c10d
cmp byte [rcx + 0x19], 4
jb 0x10010c10d
mov rax, qword [rsp + 0xe0]
mov rcx, qword [rcx + 0x10]
mov edx, 0x28
mov r9, rsi
mov r8, r15
mov qword [rsp + 0x20], rax
call fcn.100059300
and qword [rsp + 0x38], rbx
lea rax, [rsp + 0xd8]
xor r9d, r9d
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
xor r8d, r8d
mov edx, 0x90064
mov rcx, rbp
mov dword [rsp + 0x28], 0x60
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x10010c19e
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x1001653b8]
cmp rcx, rdi
je 0x10010c2b8
test byte [rcx + 0x1c], 1
je 0x10010c2b8
cmp byte [rcx + 0x19], 2
jb 0x10010c2b8
mov edx, 0x29
mov rcx, qword [rcx + 0x10]
mov r9, rsi
mov r8, r15
mov dword [rsp + 0x20], ebx
call fcn.10001daa4
jmp 0x10010c2b8
mov r10, qword [0x1001653b8]
cmp r10, rdi
je 0x10010c1e2
test byte [r10 + 0x1c], 1
je 0x10010c1e2
cmp byte [r10 + 0x19], 4
jb 0x10010c1e2
mov eax, dword [rsp + 0x68]
mov rcx, qword [r10 + 0x10]
mov edx, 0x2a
mov r9, rsi
mov r8, r15
imul rax, qword [rsp + 0x48]
mov qword [rsp + 0x20], rax
call fcn.100059300
mov r10, qword [0x1001653b8]
mov r8d, dword [rsp + 0x68]
mov rcx, qword [rsp + 0xe0]
mov rax, r8
imul rax, qword [rsp + 0x48]
cmp rax, rcx
jge 0x10010c2b8
mov rax, rcx
cqo
idiv r8
mov qword [rsp + 0xe8], rax
cmp r10, rdi
je 0x10010c23d
test byte [r10 + 0x1c], 1
je 0x10010c23d
cmp byte [r10 + 0x19], 4
jb 0x10010c23d
mov qword [rsp + 0x20], rcx
mov rcx, qword [r10 + 0x10]
mov edx, 0x2b
mov r9, rsi
mov r8, r15
call fcn.100059300
and qword [rsp + 0x38], rbx
lea rax, [rsp + 0xd8]
lea r8, [rsp + 0xe8]
mov qword [rsp + 0x30], rax
and dword [rsp + 0x28], ebx
and qword [rsp + 0x20], rbx
mov r9d, 8
mov edx, 0x900f0
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x10010c2b8
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x1001653b8]
cmp rcx, rdi
je 0x10010c2b8
test byte [rcx + 0x1c], 1
je 0x10010c2b8
cmp byte [rcx + 0x19], 2
jb 0x10010c2b8
mov rcx, qword [rcx + 0x10]
mov edx, 0x2c
mov r9d, ebx
mov r8, r15
call fcn.10001c7dc
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x1001653b8]
test ebx, ebx
jns 0x10010c2f5
cmp rcx, rdi
je 0x10010c2f5
test byte [rcx + 0x1c], 1
je 0x10010c2f5
cmp byte [rcx + 0x19], 2
jb 0x10010c2f5
mov rcx, qword [rcx + 0x10]
mov edx, 0x2d
mov r9, rsi
mov r8, r15
mov dword [rsp + 0x20], ebx
call fcn.10001daa4
mov eax, ebx
add rsp, 0xa0
pop r15
pop rdi
pop rsi
pop rbp
pop rbx
ret