Function at 0x1000c538c
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 0x1000c53ec
test byte [rcx + 0x1c], 4
je 0x1000c53ec
cmp byte [rcx + 0x19], 4
jb 0x1000c53ec
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003158]
mov edx, 0x54
call fcn.10001c854
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 0x1000c54a1
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 0x1000c55e7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsi], eax
mov rcx, qword [0x1001653b8]
cmp rcx, r15
je 0x1000c5497
test byte [rcx + 0x1c], 4
je 0x1000c5497
cmp byte [rcx + 0x19], 2
jb 0x1000c5497
mov rcx, qword [rcx + 0x10]
lea edx, [rdi + 0x54]
lea r8, [0x100003158]
mov r9d, eax
call fcn.10001c878
mov rcx, qword [0x1001653b8]
mov ebx, 6
jmp 0x1000c55ee
cmp edi, 2
je 0x1000c54ec
cmp edi, 3
je 0x1000c54ec
mov rcx, qword [0x1001653b8]
cmp rcx, r15
je 0x1000c54e2
test byte [rcx + 0x1c], 4
je 0x1000c54e2
cmp byte [rcx + 0x19], 2
jb 0x1000c54e2
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003158]
mov edx, 0x57
mov r9d, edi
call fcn.10001c878
mov rcx, qword [0x1001653b8]
mov ebx, 2
jmp 0x1000c55ee
lea r8, [rsp + 0x48]
mov rdx, rsi
mov rcx, r12
call fcn.1000c50f0
mov ebx, eax
cmp eax, r14d
je 0x1000c554a
mov rcx, qword [0x1001653b8]
cmp rcx, r15
je 0x1000c5614
test byte [rcx + 0x1c], 4
je 0x1000c55ee
cmp byte [rcx + 0x19], 2
jb 0x1000c55ee
mov eax, dword [rsi]
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003158]
mov edx, 0x56
mov r9d, ebx
mov dword [rsp + 0x20], eax
call fcn.10001d914
jmp 0x1000c55e7
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 0x1000c55aa
mov byte [rsp + 0x40], al
mov byte [rsp + 0x41], cl
movzx eax, word [rsp + 0x40]
jmp 0x1000c55ce
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 0x1000c5614
test byte [rcx + 0x1c], 4
je 0x1000c5614
cmp byte [rcx + 0x19], 4
jb 0x1000c5614
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003158]
mov edx, 0x58
call fcn.10001c854
mov eax, ebx
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.10014e600
add rsp, 0x80
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret