Function at 0x100117f54
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 0x100117fba
test byte [rbx + 0x1c], 1
je 0x100117fba
cmp byte [rbx + 0x19], 4
jb 0x100117fba
mov rcx, qword [rbx + 0x10]
lea r8, [0x100002f70]
mov edx, 0x37
call fcn.10001c7b8
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 0x100118036
test byte [rbx + 0x1c], 1
je 0x100118036
cmp byte [rbx + 0x19], 4
jb 0x100118036
mov rcx, qword [rbx + 0x10]
lea edx, [rbp + 0x39]
lea r8, [0x100002f70]
mov r9, rdi
mov qword [rsp + 0x20], rsi
call fcn.100059300
mov rbx, qword [0x1001653b8]
test rsi, rsi
je 0x1001182d9
test rdi, rdi
je 0x1001182d9
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 0x1001180b7
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 0x1001182de
test byte [rbx + 0x1c], 1
je 0x1001182de
cmp byte [rbx + 0x19], 2
jb 0x1001182de
lea edx, [rbp + 0x3a]
jmp 0x10011812d
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
add byte [rax], al
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x100118135
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 0x1001182de
test byte [rbx + 0x1c], 1
je 0x1001182de
cmp byte [rbx + 0x19], 2
jb 0x1001182de
mov edx, 0x3a
mov r9d, edi
jmp 0x1001181c7
mov rcx, qword [0x1001653b8]
cmp rcx, r13
je 0x100118177
test byte [rcx + 0x1c], 1
je 0x100118177
cmp byte [rcx + 0x19], 4
jb 0x100118177
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, [0x100002f70]
mov edx, 0x3b
mov dword [rsp + 0x20], eax
call fcn.1000c27bc
mov r9d, dword [rsp + 0x44]
mov ebx, 0x104
lea r8, [0x100012ec0]
lea rcx, [rsp + 0x60]
mov rdx, rbx
call fcn.100043ec0
mov edi, eax
test eax, eax
jns 0x1001181dc
mov rbx, qword [0x1001653b8]
cmp rbx, r13
je 0x1001182de
test byte [rbx + 0x1c], 1
je 0x1001182de
cmp byte [rbx + 0x19], 2
jb 0x1001182de
mov edx, 0x3c
mov r9d, eax
mov rcx, qword [rbx + 0x10]
lea r8, [0x100002f70]
call fcn.10001c7dc
jmp 0x1001182d0
cmp dword [0x100165458], r12d
jbe 0x100118281
lea rdx, [rsp + 0x270]
lea rcx, [rsp + 0x60]
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
jne 0x1001182bb
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 0x10011824f
test byte [rcx + 0x1c], 1
je 0x10011824f
cmp byte [rcx + 0x19], 4
jb 0x10011824f
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002f70]
mov edx, 0x3d
mov r9d, r12d
mov dword [rsp + 0x20], edi
call fcn.10001e8b4
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 0x1001181e9
test edi, edi
jns 0x1001182bb
mov rbx, qword [0x1001653b8]
cmp rbx, r13
je 0x1001182de
test byte [rbx + 0x1c], 1
je 0x1001182de
cmp byte [rbx + 0x19], 2
jb 0x1001182de
mov rcx, qword [rbx + 0x10]
lea r8, [0x100002f70]
mov edx, 0x3e
mov r9d, r12d
mov dword [rsp + 0x20], edi
call fcn.10001e8b4
jmp 0x1001182d0
lea rcx, [rsp + 0x270]
xor r8d, r8d
mov rdx, rsi
call fcn.10009b4ec
mov edi, eax
mov rbx, qword [0x1001653b8]
jmp 0x1001182de
mov edi, 0x80070057
cmp rbp, 0xffffffffffffffff
je 0x1001182f4
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [0x1001653b8]
cmp rbx, r13
je 0x10011831a
test byte [rbx + 0x1c], 1
je 0x10011831a
cmp byte [rbx + 0x19], 4
jb 0x10011831a
mov rcx, qword [rbx + 0x10]
lea r8, [0x100002f70]
mov edx, 0x3f
call fcn.10001c7b8
mov eax, edi
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.10014e480
mov rbx, qword [rsp + 0x4d0]
add rsp, 0x490
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret