Function at 0x1001185f8
Capabilities:
Get disk information
Get disk information via ioctl

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x490
mov rax, qword [0x100165138]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov rsi, rdx
mov rdi, rcx
mov rbx, qword [0x1001653b8]
lea rax, [0x1001653b8]
cmp rbx, rax
je 0x10011865e
test byte [rbx + 0x1c], 1
je 0x10011865e
cmp byte [rbx + 0x19], 4
jb 0x10011865e
mov rcx, qword [rbx + 0x10]
lea r8, [0x100002f30]
mov edx, 0x37
call fcn.10001c854
mov rbx, qword [0x1001653b8]
and dword [rsp + 0x50], 0
xor eax, eax
mov r13d, 0x208
lea rcx, [rsp + 0x270]
xor r12d, r12d
xor edx, edx
and dword [rsp + 0x40], r12d
mov r8, r13
or rbp, 0xffffffffffffffff
mov dword [rsp + 0x44], eax
mov dword [rsp + 0x48], eax
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x60]
mov r8, r13
xor edx, edx
call sub.msvcrt.dll_memset
lea r13, [0x1001653b8]
cmp rbx, r13
je 0x1001186da
test byte [rbx + 0x1c], 1
je 0x1001186da
cmp byte [rbx + 0x19], 4
jb 0x1001186da
mov rcx, qword [rbx + 0x10]
lea edx, [rbp + 0x39]
lea r8, [0x100002f30]
mov r9, rdi
mov qword [rsp + 0x20], rsi
call fcn.10001e82c
mov rbx, qword [0x1001653b8]
test rsi, rsi
je 0x10011897d
test rdi, rdi
je 0x10011897d
and qword [rsp + 0x30], r12
and qword [rsi], r12
mov r8d, 3
xor r9d, r9d
xor edx, edx
mov rcx, rdi
mov dword [rsp + 0x28], 0x2000080
mov dword [rsp + 0x20], r8d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x10011875b
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov rbx, qword [0x1001653b8]
cmp rbx, r13
je 0x100118982
test byte [rbx + 0x1c], 1
je 0x100118982
cmp byte [rbx + 0x19], 2
jb 0x100118982
lea edx, [rbp + 0x3a]
jmp 0x1001187d1
and qword [rsp + 0x38], r12
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
xor r8d, r8d
mov edx, 0x2d1080
mov rcx, rbp
mov dword [rsp + 0x28], 0xc
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x1001187d9
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov rbx, qword [0x1001653b8]
cmp rbx, r13
je 0x100118982
test byte [rbx + 0x1c], 1
je 0x100118982
cmp byte [rbx + 0x19], 2
jb 0x100118982
mov edx, 0x3a
mov r9d, edi
jmp 0x10011886b
mov rcx, qword [0x1001653b8]
cmp rcx, r13
je 0x10011881b
test byte [rcx + 0x1c], 1
je 0x10011881b
cmp byte [rcx + 0x19], 4
jb 0x10011881b
mov eax, dword [rsp + 0x40]
mov r9d, dword [rsp + 0x44]
mov rcx, qword [rcx + 0x10]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x48]
lea r8, [0x100002f30]
mov edx, 0x3b
mov dword [rsp + 0x20], eax
call fcn.10007fb28
mov r9d, dword [rsp + 0x44]
mov ebx, 0x104
lea r8, [0x100012e90]
lea rcx, [rsp + 0x60]
mov rdx, rbx
call fcn.100043f10
mov edi, eax
test eax, eax
jns 0x100118880
mov rbx, qword [0x1001653b8]
cmp rbx, r13
je 0x100118982
test byte [rbx + 0x1c], 1
je 0x100118982
cmp byte [rbx + 0x19], 2
jb 0x100118982
mov edx, 0x3c
mov r9d, eax
mov rcx, qword [rbx + 0x10]
lea r8, [0x100002f30]
call fcn.10001c878
jmp 0x100118974
cmp dword [0x100165458], r12d
jbe 0x100118925
lea rdx, [rsp + 0x270]
lea rcx, [rsp + 0x60]
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
jne 0x10011895f
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov rcx, qword [0x1001653b8]
cmp rcx, r13
je 0x1001188f3
test byte [rcx + 0x1c], 1
je 0x1001188f3
cmp byte [rcx + 0x19], 4
jb 0x1001188f3
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002f30]
mov edx, 0x3d
mov r9d, r12d
mov dword [rsp + 0x20], edi
call fcn.10001d914
mov eax, 0x88888889
mul dword [0x100165458]
shr edx, 4
mov ecx, edx
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [0x100165458]
mov eax, 0x88888889
mul ecx
shr edx, 4
add r12d, edx
cmp r12d, ecx
jb 0x10011888d
test edi, edi
jns 0x10011895f
mov rbx, qword [0x1001653b8]
cmp rbx, r13
je 0x100118982
test byte [rbx + 0x1c], 1
je 0x100118982
cmp byte [rbx + 0x19], 2
jb 0x100118982
mov rcx, qword [rbx + 0x10]
lea r8, [0x100002f30]
mov edx, 0x3e
mov r9d, r12d
mov dword [rsp + 0x20], edi
call fcn.10001d914
jmp 0x100118974
lea rcx, [rsp + 0x270]
xor r8d, r8d
mov rdx, rsi
call fcn.10009bac4
mov edi, eax
mov rbx, qword [0x1001653b8]
jmp 0x100118982
mov edi, 0x80070057
cmp rbp, 0xffffffffffffffff
je 0x100118998
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [0x1001653b8]
cmp rbx, r13
je 0x1001189be
test byte [rbx + 0x1c], 1
je 0x1001189be
cmp byte [rbx + 0x19], 4
jb 0x1001189be
mov rcx, qword [rbx + 0x10]
lea r8, [0x100002f30]
mov edx, 0x3f
call fcn.10001c854
mov eax, edi
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.10014e600
mov rbx, qword [rsp + 0x4d0]
add rsp, 0x490
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret