Function at 0x100019600
Capabilities:
Get disk information via ioctl

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
sub rsp, 0x40
mov rax, qword gs:[0x30]
mov r12, rcx
mov r13, rdx
mov rcx, qword [rax + 0x60]
mov ebp, 0x4830
xor edx, edx
mov rcx, qword [rcx + 0x30]
mov r8, rbp
xor esi, esi
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
test rax, rax
jne 0x1000196ad
mov ebx, 0x5aa
jmp 0x1000198a6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0x7a
je 0x100019667
cmp eax, 0xea
jne 0x1000196e3
mov rax, qword gs:[0x30]
mov r8, rdi
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rax, qword gs:[0x30]
add ebp, 0x2400
mov rcx, qword [rax + 0x60]
mov r8d, ebp
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
test rax, rax
je 0x1000196f5
and qword [rsp + 0x38], rsi
lea rax, [rsp + 0x70]
xor r9d, r9d
mov qword [rsp + 0x30], rax
xor r8d, r8d
mov edx, 0x70050
mov rcx, r12
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x100019653
xor ebx, ebx
test ebx, ebx
je 0x10001985c
mov ebp, 0x808
mov r8, rbp
jmp 0x100019738
mov ebx, 0x5aa
jmp 0x100019860
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0x7a
je 0x100019713
cmp eax, 0xea
jne 0x100019790
mov rax, qword gs:[0x30]
mov r8, rsi
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
add ebp, 0x800
mov r8d, ebp
mov rax, qword gs:[0x30]
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rsi, rax
test rax, rax
je 0x1000196f5
and qword [rsp + 0x38], 0
lea rax, [rsp + 0x70]
xor r9d, r9d
mov qword [rsp + 0x30], rax
xor r8d, r8d
mov edx, 0x7400c
mov rcx, r12
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1000196ff
xor ebx, ebx
test ebx, ebx
jne 0x100019860
mov rax, qword gs:[0x30]
mov r8, rdi
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rax, qword gs:[0x30]
mov r11d, dword [rsi]
mov rcx, qword [rax + 0x60]
lea ebp, [r11 + r11*8]
xor edx, edx
mov rcx, qword [rcx + 0x30]
shl ebp, 4
add ebp, 0x30
mov r8, rbp
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
test rax, rax
je 0x1000196f5
mov r8, rbp
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
and dword [rdi], ebx
mov eax, dword [rsi]
mov dword [rdi + 4], eax
mov eax, dword [rsi + 4]
xor r8d, r8d
mov dword [rdi + 8], eax
lea rdx, [rsi + 8]
lea rcx, [rdi + 0x30]
cmp dword [rsi], r8d
jbe 0x10001985c
and dword [rcx], 0
mov rax, qword [rdx]
inc r8d
mov qword [rcx + 8], rax
mov rax, qword [rdx + 8]
add rcx, 0x90
mov qword [rcx - 0x80], rax
mov eax, dword [rdx + 0x14]
add rdx, 0x20
mov dword [rcx - 0x78], eax
mov al, byte [rdx - 5]
mov byte [rcx - 0x74], al
mov al, byte [rdx - 8]
mov byte [rcx - 0x70], al
mov al, byte [rdx - 7]
mov byte [rcx - 0x6f], al
mov al, byte [rdx - 6]
mov byte [rcx - 0x6e], al
mov eax, dword [rdx - 0x10]
mov dword [rcx - 0x6c], eax
cmp r8d, dword [rsi]
jb 0x100019813
mov qword [r13], rdi
test rsi, rsi
je 0x100019881
mov rax, qword gs:[0x30]
mov r8, rsi
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
test ebx, ebx
je 0x1000198a6
test rdi, rdi
je 0x1000198a6
mov rax, qword gs:[0x30]
mov r8, rdi
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x78]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop r13
pop r12
pop rdi
ret