Function at 0x14011ad78
Capabilities:
Get disk information via ioctl

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xd0
mov rax, qword [0x14016f608]
xor rax, rsp
mov qword [rbp + 0x17], rax
xor ebx, ebx
mov qword [rbp - 0x41], rdx
mov dword [rbp - 0x59], ecx
or rsi, 0xffffffffffffffff
mov byte [rdx], bl
lea rcx, [0x140149d88]
xor r8d, r8d
mov qword [rbp - 0x51], rsi
lea r9d, [rbx + 0x12]
xor edx, edx
xor r13d, r13d
call qword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov qword [rbp - 0x61], rax
mov rdi, rax
cmp rax, rsi
jne 0x14011ae3a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rcx, qword [0x14016f048]
lea r14, [0x14016f048]
lea r15, [0x1401565e0]
mov r12b, 2
lea edi, [rbx + 1]
cmp rcx, r14
je 0x14011ae27
test byte [rcx + 0x1c], dil
je 0x14011ae27
cmp byte [rcx + 0x19], r12b
jb 0x14011ae27
mov rcx, qword [rcx + 0x10]
lea edx, [rbx + 0x10]
mov r9d, eax
mov r8, r15
call fcn.1400049f8
mov rcx, qword [0x14016f048]
movzx ebx, si
or ebx, 0x80070000
test esi, esi
cmovle ebx, esi
jmp 0x14011b245
and dword [rbp - 0x55], ebx
lea rcx, [rbp - 0x29]
mov r14d, 0x20
xor edx, edx
mov r8d, r14d
call sub.msvcrt.dll_memset
lea rax, [rbp - 0x29]
mov dword [rbp - 0x29], r14d
xor r9d, r9d
mov qword [rsp + 0x20], rax
lea r8, [0x140149d88]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
mov r12b, 2
lea r14, [0x14016f048]
lea r15, [0x1401565e0]
mov edi, 1
test eax, eax
je 0x14011b1a4
and qword [rsp + 0x28], rbx
lea rax, [rbp - 0x69]
mov rcx, qword [rbp - 0x61]
lea rdx, [rbp - 0x29]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailW]
test eax, eax
jne 0x14011aecc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp eax, 0x7a
jne 0x14011b09f
mov rsi, qword [rbp - 0x51]
test r13, r13
je 0x14011aeda
mov rcx, r13
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, dword [rbp - 0x69]
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov r13, rax
test rax, rax
je 0x14011b19d
mov r8d, dword [rbp - 0x69]
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
xor edx, edx
mov dword [r13], 8
lea rcx, [rbp - 9]
lea r8d, [rdx + 0x20]
call sub.msvcrt.dll_memset
mov r9d, dword [rbp - 0x69]
lea rax, [rbp - 9]
mov rcx, qword [rbp - 0x61]
lea rdx, [rbp - 0x29]
mov qword [rsp + 0x28], rax
mov r8, r13
and qword [rsp + 0x20], rbx
mov dword [rbp - 9], 0x20
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailW]
test eax, eax
je 0x14011b167
cmp rsi, 0xffffffffffffffff
je 0x14011af55
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [rsp + 0x30], rbx
lea rsi, [r13 + 4]
and dword [rsp + 0x28], ebx
mov eax, 3
mov r8d, eax
mov dword [rsp + 0x20], eax
mov rcx, rsi
xor r9d, r9d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbp - 0x51], rax
cmp rax, 0xffffffffffffffff
jne 0x14011afcd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x14016f048]
cmp rcx, r14
je 0x14011b051
test byte [rcx + 0x1c], dil
je 0x14011b051
cmp byte [rcx + 0x19], 3
jb 0x14011b051
mov rcx, qword [rcx + 0x10]
mov edx, 0x14
mov r9, rsi
mov dword [rsp + 0x20], eax
mov r8, r15
call fcn.140005938
jmp 0x14011b051
xor ecx, ecx
xor r9d, r9d
and qword [rsp + 0x38], rcx
xor r8d, r8d
mov qword [rbp - 0x39], rcx
mov edx, 0x2d1080
mov dword [rbp - 0x31], ecx
lea rcx, [rbp - 0x69]
mov qword [rsp + 0x30], rcx
lea rcx, [rbp - 0x39]
mov dword [rsp + 0x28], 0xc
mov qword [rsp + 0x20], rcx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x14011b045
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x14016f048]
cmp rcx, r14
je 0x14011b051
test byte [rcx + 0x1c], dil
je 0x14011b051
cmp byte [rcx + 0x19], 3
jb 0x14011b051
mov rcx, qword [rcx + 0x10]
mov edx, 0x15
mov r9, rsi
mov dword [rsp + 0x20], eax
mov r8, r15
call fcn.140005938
jmp 0x14011b051
mov eax, dword [rbp - 0x59]
cmp dword [rbp - 0x35], eax
je 0x14011b0de
mov esi, dword [rbp - 0x55]
lea rcx, [rbp - 0x29]
xor edx, edx
add esi, edi
mov dword [rbp - 0x55], esi
lea r8d, [rdx + 0x20]
call sub.msvcrt.dll_memset
mov rcx, qword [rbp - 0x61]
lea rax, [rbp - 0x29]
mov r9d, esi
mov qword [rsp + 0x20], rax
lea r8, [0x140149d88]
mov dword [rbp - 0x29], 0x20
xor edx, edx
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
test eax, eax
je 0x14011b1a4
mov rsi, qword [rbp - 0x51]
jmp 0x14011ae91
mov rcx, qword [0x14016f048]
cmp rcx, r14
je 0x14011b0cb
test byte [rcx + 0x1c], dil
je 0x14011b0cb
cmp byte [rcx + 0x19], r12b
jb 0x14011b0cb
mov edx, 0x12
mov rcx, qword [rcx + 0x10]
mov r9d, esi
mov r8, r15
call fcn.1400049f8
movzx ebx, si
or ebx, 0x80070000
test esi, esi
cmovle ebx, esi
jmp 0x14011b213
mov rsi, qword [rbp - 0x61]
lea rax, [rbp - 0x69]
mov qword [rsp + 0x30], rax
lea rdx, [rbp - 9]
xor r9d, r9d
mov dword [rsp + 0x28], 4
lea rax, [rbp - 0x49]
mov rcx, rsi
mov qword [rsp + 0x20], rax
lea r8d, [r9 + 0x1f]
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyW]
test eax, eax
jne 0x14011b152
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rcx, qword [0x14016f048]
cmp rcx, r14
je 0x14011b0cb
test byte [rcx + 0x1c], dil
je 0x14011b0cb
cmp byte [rcx + 0x19], r12b
jb 0x14011b0cb
mov rcx, qword [rcx + 0x10]
lea r9, [r13 + 4]
mov edx, 0x16
mov dword [rsp + 0x20], eax
mov r8, r15
call fcn.140005938
jmp 0x14011b0cb
cmp dword [rbp - 0x49], edi
je 0x14011b217
mov rax, qword [rbp - 0x41]
mov byte [rax], dil
jmp 0x14011b217
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rcx, qword [0x14016f048]
cmp rcx, r14
je 0x14011b0cb
test byte [rcx + 0x1c], dil
je 0x14011b0cb
cmp byte [rcx + 0x19], r12b
jb 0x14011b0cb
mov edx, 0x13
jmp 0x14011b0bc
mov ebx, 0x8007000e
jmp 0x14011b213
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp eax, 0x103
je 0x14011b1e1
mov rcx, qword [0x14016f048]
cmp rcx, r14
je 0x14011b0cb
test byte [rcx + 0x1c], dil
je 0x14011b0cb
cmp byte [rcx + 0x19], r12b
jb 0x14011b0cb
mov edx, 0x11
jmp 0x14011b0bc
mov rcx, qword [0x14016f048]
cmp rcx, r14
je 0x14011b20e
test byte [rcx + 0x1c], dil
je 0x14011b20e
cmp byte [rcx + 0x19], r12b
jb 0x14011b20e
mov r9d, dword [rbp - 0x59]
mov edx, 0x17
mov rcx, qword [rcx + 0x10]
mov r8, r15
call fcn.1400049f8
mov ebx, 0x8000ffff
mov rsi, qword [rbp - 0x61]
mov rcx, qword [rbp - 0x51]
cmp rcx, 0xffffffffffffffff
je 0x14011b227
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r13, r13
je 0x14011b235
mov rcx, r13
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, rsi
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov rcx, qword [0x14016f048]
test ebx, ebx
jns 0x14011b273
cmp rcx, r14
je 0x14011b273
test byte [rcx + 0x1c], dil
je 0x14011b273
cmp byte [rcx + 0x19], r12b
jb 0x14011b273
mov r9d, dword [rbp - 0x59]
mov edx, 0x18
mov rcx, qword [rcx + 0x10]
mov r8, r15
mov dword [rsp + 0x20], ebx
call fcn.1400ac23c
mov eax, ebx
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.14013e290
mov rbx, qword [rsp + 0x120]
add rsp, 0xd0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret