Function at 0x140014ff0
Capabilities:
Get disk information
Get disk information via ioctl
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0xa0
mov rax, qword [0x14015a038]
xor rax, rsp
mov qword [rsp + 0x98], rax
movzx edi, r8w
mov rbx, rdx
mov qword [rsp + 0x48], rdx
xor ebp, ebp
mov dword [rsp + 0x40], ebp
mov qword [rdx], rbp
mov qword [rdx + 0x10], rbp
mov qword [rdx + 0x18], 7
mov word [rdx], bp
mov dword [rsp + 0x40], 1
cmp byte [0x14015ec40], bpl
jne 0x140015112
lea rcx, str.setupapi.dll
call fcn.140011340
mov rsi, rax
test rax, rax
je 0x14001510b
lea rdx, str.CM_Get_Parent
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14015e628], rax
lea rdx, str.CM_Get_Device_ID_Size
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14015e620], rax
lea rdx, str.CM_Get_Device_IDW
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14015e618], rax
lea rdx, str.SetupDiGetClassDevsW
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14015e610], rax
lea rdx, str.SetupDiEnumDeviceInterfaces
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14015e608], rax
lea rdx, str.SetupDiGetDeviceInterfaceDetailW
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14015e600], rax
lea rdx, str.SetupDiDestroyDeviceInfoList
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14015e5f8], rax
mov byte [0x14015ec40], 1
cmp qword [0x14015e628], 0
je 0x140015340
cmp qword [0x14015e620], 0
je 0x140015340
cmp qword [0x14015e618], 0
je 0x140015340
cmp qword [0x14015e610], 0
je 0x140015340
cmp qword [0x14015e608], 0
je 0x140015340
cmp qword [0x14015e600], 0
je 0x140015340
cmp qword [0x14015e5f8], 0
je 0x140015340
mov eax, 0xffdf
and di, ax
lea eax, [rdi - 0x41]
cmp ax, 0x19
ja 0x140015340
movabs rax, 0x5c003a0058
mov qword [rsp + 0x80], rax
mov word [rsp + 0x80], di
movsd xmm0, qword [str..X:]
movsd qword [rsp + 0x88], xmm0
mov eax, dword [0x140135078]
mov dword [rsp + 0x90], eax
movzx eax, word [0x14013507c]
mov word [rsp + 0x94], ax
mov word [rsp + 0x90], di
lea rcx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
jne 0x140015340
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor edx, edx
lea r8d, [rax + 1]
lea rcx, [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140015340
mov dword [rsp + 0x54], 0xffffffff
mov dword [rsp + 0x44], ebp
mov qword [rsp + 0x38], rbp
lea rax, [rsp + 0x44]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], reloc.OLEAUT32.dll_VariantTimeToDosDateTime
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x2d1080
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov edi, 0xffffffff
test eax, eax
cmovne edi, dword [rsp + 0x54]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, 0xffffffff
je 0x140015340
mov edx, edi
lea rcx, [rsp + 0x60]
call fcn.140015380
mov rdi, rax
cmp rbx, rax
je 0x140015302
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x1400152d6
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x1400152d1
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14001536c
mov rcx, r8
call fcn.14009b510
mov qword [rbx + 0x10], rbp
mov qword [rbx + 0x18], 7
mov word [rbx], bp
movups xmm0, xmmword [rdi]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [rbx + 0x10], xmm1
mov qword [rdi + 0x10], rbp
mov qword [rdi + 0x18], 7
mov word [rdi], bp
mov rdx, qword [rsp + 0x78]
cmp rdx, 8
jb 0x140015340
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001533b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001536c
call fcn.14009b510
mov rax, rbx
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.14009b5b0
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.1400ac408
int3