Function at 0x1000c5238
Capabilities:
Get volume information via ioctl

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x80
mov rax, qword [0x100165138]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rbp, r9
mov rsi, r8
mov edi, edx
mov r12, rcx
mov rcx, qword [0x1001653b8]
lea r15, [0x1001653b8]
cmp rcx, r15
je 0x1000c5298
test byte [rcx + 0x1c], 4
je 0x1000c5298
cmp byte [rcx + 0x19], 4
jb 0x1000c5298
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003198]
mov edx, 0x54
call fcn.10001c7b8
xor r14d, r14d
lea rcx, [rsp + 0x48]
xor edx, edx
lea r8d, [r14 + 0x28]
mov ebx, r14d
mov dword [rsp + 0x44], r14d
call sub.msvcrt.dll_memset
lea r8d, [r14 + 0x60]
xor edx, edx
mov rcx, rbp
call sub.msvcrt.dll_memset
mov dword [rsi], r14d
cmp edi, 1
jne 0x1000c534d
mov qword [rsp + 0x38], r14
lea rax, [rsp + 0x44]
xor r9d, r9d
mov qword [rsp + 0x30], rax
xor r8d, r8d
mov edx, 0x90064
mov rcx, r12
mov dword [rsp + 0x28], 0x60
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp eax, r14d
jne 0x1000c5493
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsi], eax
mov rcx, qword [0x1001653b8]
cmp rcx, r15
je 0x1000c5343
test byte [rcx + 0x1c], 4
je 0x1000c5343
cmp byte [rcx + 0x19], 2
jb 0x1000c5343
mov rcx, qword [rcx + 0x10]
lea edx, [rdi + 0x54]
lea r8, [0x100003198]
mov r9d, eax
call fcn.10001c7dc
mov rcx, qword [0x1001653b8]
mov ebx, 6
jmp 0x1000c549a
cmp edi, 2
je 0x1000c5398
cmp edi, 3
je 0x1000c5398
mov rcx, qword [0x1001653b8]
cmp rcx, r15
je 0x1000c538e
test byte [rcx + 0x1c], 4
je 0x1000c538e
cmp byte [rcx + 0x19], 2
jb 0x1000c538e
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003198]
mov edx, 0x57
mov r9d, edi
call fcn.10001c7dc
mov rcx, qword [0x1001653b8]
mov ebx, 2
jmp 0x1000c549a
lea r8, [rsp + 0x48]
mov rdx, rsi
mov rcx, r12
call fcn.1000c4f9c
mov ebx, eax
cmp eax, r14d
je 0x1000c53f6
mov rcx, qword [0x1001653b8]
cmp rcx, r15
je 0x1000c54c0
test byte [rcx + 0x1c], 4
je 0x1000c549a
cmp byte [rcx + 0x19], 2
jb 0x1000c549a
mov eax, dword [rsi]
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003198]
mov edx, 0x56
mov r9d, ebx
mov dword [rsp + 0x20], eax
call fcn.10001e8b4
jmp 0x1000c5493
mov al, byte [rsp + 0x56]
movzx edx, byte [rsp + 0x55]
mov cl, byte [rsp + 0x5c]
mov byte [rsp + 0x40], al
mov al, byte [rsp + 0x57]
mov byte [rsp + 0x41], al
movzx r8d, word [rsp + 0x40]
mov al, byte [rsp + 0x53]
mov byte [rsp + 0x40], al
mov al, byte [rsp + 0x54]
mov byte [rsp + 0x41], al
movzx eax, word [rsp + 0x40]
mov byte [rsp + 0x41], cl
mov dword [rbp + 0x28], eax
imul eax, edx
mov dword [rbp + 0x2c], eax
mov al, byte [rsp + 0x5b]
mov byte [rsp + 0x40], al
cmp word [rsp + 0x40], r14w
je 0x1000c5456
mov byte [rsp + 0x40], al
mov byte [rsp + 0x41], cl
movzx eax, word [rsp + 0x40]
jmp 0x1000c547a
mov al, byte [rsp + 0x68]
mov byte [rsp + 0x40], al
mov al, byte [rsp + 0x69]
mov byte [rsp + 0x41], al
mov al, byte [rsp + 0x6a]
mov byte [rsp + 0x42], al
mov al, byte [rsp + 0x6b]
mov byte [rsp + 0x43], al
mov eax, dword [rsp + 0x40]
mov qword [rbp + 8], rax
lea rax, [rdx + rax - 1]
mov rcx, rdx
cqo
mov qword [rbp + 0x20], r8
idiv rcx
mov qword [rbp + 0x10], rax
mov rcx, qword [0x1001653b8]
cmp rcx, r15
je 0x1000c54c0
test byte [rcx + 0x1c], 4
je 0x1000c54c0
cmp byte [rcx + 0x19], 4
jb 0x1000c54c0
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003198]
mov edx, 0x58
call fcn.10001c7b8
mov eax, ebx
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.10014e480
add rsp, 0x80
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret