Function at 0x180018f30
Capabilities:
Get disk information via ioctl
Get disk size

Disassembly:
push rbx
push rdi
push r12
push r13
mov eax, 0x1128
call fcn.180020aa0
sub rsp, rax
mov rax, qword [0x18002d000]
xor rax, rsp
mov qword [rsp + 0x1110], rax
mov rdi, rdx
mov rbx, rcx
mov r8d, 0x1018
mov rcx, rdi
xor edx, edx
call sub.msvcrt.dll_memset
xor r13d, r13d
xor r9d, r9d
mov qword [rsp + 0x30], r13
lea r8d, [r13 + 3]
mov edx, 0x80100000
mov rcx, rbx
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r12, rax
cmp rax, 0xffffffffffffffff
jne 0x180018fa7
lea ebx, [rax + 2]
jmp 0x1800191d7
mov qword [rsp + 0x38], r13
lea rax, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x50]
xor r8d, r8d
mov edx, 0x70048
mov rcx, r12
mov dword [rsp + 0x28], 0x90
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x180019066
mov eax, dword [rsp + 0x68]
mov dword [rdi + 4], eax
mov rax, qword [rsp + 0x60]
mov qword [rdi + 0x10], rax
mov qword [rsp + 0x38], r13
lea rax, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0xe0]
xor r8d, r8d
mov edx, 0x2d1080
mov rcx, r12
mov dword [rsp + 0x28], 0xc
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x180019103
mov eax, dword [rsp + 0xe8]
mov ecx, dword [rsp + 0xe4]
mov ebx, 1
xor edx, edx
mov dword [rdi + 4], ebx
mov dword [rdi], r13d
mov dword [rdi + 8], eax
mov dword [rdi + 0x18], ecx
call sym.dcapi.dll_dc_dsk_get_size
mov qword [rdi + 0x20], rax
mov ebx, r13d
jmp 0x1800191ce
mov qword [rsp + 0x38], r13
lea rax, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0xf0]
xor r8d, r8d
mov edx, 0x74004
mov rcx, r12
mov dword [rsp + 0x28], 0x20
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1800190b9
mov eax, dword [rsp + 0x104]
mov dword [rdi + 4], eax
mov rax, qword [rsp + 0xf8]
jmp 0x180018ff0
mov qword [rsp + 0x38], r13
lea rcx, [rsp + 0x40]
lea rax, [rdi + 0x10]
mov qword [rsp + 0x30], rcx
xor r9d, r9d
xor r8d, r8d
mov edx, 0x7405c
mov rcx, r12
mov dword [rsp + 0x28], 8
mov dword [rdi + 4], r13d
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x180018ff4
mov eax, 1
jmp 0x1800191d9
mov qword [rsp + 0x38], r13
lea rax, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x110]
xor r8d, r8d
mov edx, 0x560000
mov rcx, r12
mov dword [rsp + 0x28], 0x1000
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1800191c9
mov ecx, dword [rsp + 0x110]
mov qword [rsp + 0x1160], rbp
mov ebp, r13d
test ecx, ecx
je 0x1800191ac
mov qword [rsp + 0x1120], rsi
lea rbx, [rdi + 0x28]
lea rsi, [rsp + 0x120]
nop dword [rax]
mov rax, qword [rsi]
mov ecx, dword [rsi - 8]
xor edx, edx
mov qword [rbx], rax
mov rax, qword [rsi + 8]
mov dword [rbx - 0x10], ecx
mov qword [rbx + 8], rax
call sym.dcapi.dll_dc_dsk_get_size
mov ecx, dword [rsp + 0x110]
inc ebp
mov qword [rbx - 8], rax
add rbx, 0x20
add rsi, 0x18
cmp ebp, ecx
jb 0x180019170
mov rsi, qword [rsp + 0x1120]
mov rbp, qword [rsp + 0x1160]
cmp ecx, 1
mov eax, r13d
setne al
mov dword [rdi + 4], ecx
mov ebx, r13d
inc eax
mov dword [rdi], eax
jmp 0x1800191ce
mov ebx, 0xf
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rcx, qword [rsp + 0x1110]
xor rcx, rsp
call fcn.18000ee20
add rsp, 0x1128
pop r13
pop r12
pop rdi
pop rbx
ret