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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r13
push r14
lea rbp, [rsp - 0xa20]
sub rsp, 0xb20
mov rax, qword [0x180074020]
xor rax, rsp
mov qword [rbp + 0xa10], rax
mov eax, 0xffdf
mov rdi, r8
and dx, ax
lea eax, [rdx - 0x41]
cmp ax, 0x19
ja 0x180010f58
movsd xmm0, qword [str..X:]
lea rcx, [rbp - 0x20]
movabs rax, 0x5c003a0058
movsd qword [rbp - 0x30], xmm0
mov qword [rbp - 0x38], rax
mov r8d, 0x208
mov eax, dword [0x180066d3c]
mov dword [rbp - 0x40], eax
movzx eax, word [0x180066d40]
mov word [rbp - 0x3c], ax
mov eax, dword [0x180066d50]
mov dword [rbp - 0x28], eax
movzx eax, word [0x180066d54]
mov word [rbp - 0x28], dx
mov word [rbp - 0x38], dx
mov word [rbp - 0x40], dx
xor edx, edx
mov word [rbp - 0x24], ax
lea r12d, [rdx - 1]
call fcn.18002b450
xor ebx, ebx
lea rax, [rsp + 0x54]
mov dword [rsp + 0x38], ebx
lea r9, [rsp + 0x48]
mov qword [rsp + 0x30], rbx
lea rdx, [rbp - 0x20]
mov qword [rsp + 0x28], rax
lea rcx, [rbp - 0x38]
lea rax, [rsp + 0x58]
mov r8d, 0x104
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.DLL_GetVolumeInformationW]
mov eax, dword [rsp + 0x48]
lea r8d, [r12 + 4]
mov qword [rsp + 0x30], rbx
lea rcx, [rbp - 0x30]
mov dword [rsp + 0x28], ebx
xor r9d, r9d
xor edx, edx
mov dword [rdi], eax
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.DLL_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x180010f58
mov qword [rsp + 0x38], rbx
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x30], rax
xor r9d, r9d
lea rax, [rsp + 0x60]
mov dword [rsp + 0x28], 0xc
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, 0x2d1080
mov dword [rsp + 0x4c], ebx
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_DeviceIoControl]
test eax, eax
mov rcx, rdi
cmovne r12d, dword [rsp + 0x64]
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp r12d, 0xffffffff
jne 0x180010ca6
lea eax, [rbx + 1]
jmp 0x180010eb6
lea rcx, [rbp - 0x38]
call qword [sym.imp.KERNEL32.DLL_GetDriveTypeW]
mov r8d, 0x104
lea rdx, [rbp + 0x1f0]
lea rcx, [rbp - 0x40]
mov r13d, eax
call qword [sym.imp.KERNEL32.DLL_QueryDosDeviceW]
test eax, eax
je 0x180010f58
lea rdx, str.Floppy
lea rcx, [rbp + 0x1f0]
call fcn.18002accc
test rax, rax
mov eax, r13d
setne cl
sub eax, 2
je 0x180010d13
sub eax, 1
je 0x180010d0a
cmp eax, 2
jne 0x180010f58
lea r14, [0x180057c30]
jmp 0x180010d2a
lea r14, [0x180057c20]
jmp 0x180010d2a
lea r14, [0x180057c20]
test cl, cl
lea rax, [0x180057c40]
cmove rax, r14
mov r14, rax
mov r9d, 0x12
xor r8d, r8d
xor edx, edx
mov rcx, r14
call qword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x180010f58
lea rax, [rbp - 0x80]
mov qword [rsp + 0xb50], r15
xor r9d, r9d
mov qword [rsp + 0x20], rax
mov r8, r14
mov dword [rbp - 0x80], 0x20
xor edx, edx
mov rcx, rsi
mov r15d, ebx
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
test eax, eax
je 0x180010ea3
nop
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rbx
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x40], ebx
lea rdx, [rbp - 0x80]
mov rcx, rsi
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailW]
mov r9d, dword [rsp + 0x40]
lea eax, [r9 - 1]
cmp eax, 0x3ff
ja 0x180010e7e
xorps xmm0, xmm0
mov dword [rbp + 0x610], 8
lea rax, [rbp - 0x60]
mov rcx, rsi
mov qword [rsp + 0x28], rax
lea r8, [rbp + 0x610]
lea rax, [rsp + 0x40]
movups xmmword [rbp - 0x60], xmm0
lea rdx, [rbp - 0x80]
mov qword [rsp + 0x20], rax
movups xmmword [rbp - 0x50], xmm0
mov dword [rbp - 0x60], 0x20
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailW]
test eax, eax
je 0x180010e7e
xor r9d, r9d
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
lea rcx, [rbp + 0x614]
xor edx, edx
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.DLL_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x180010e7e
mov qword [rsp + 0x38], rbx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
xor r9d, r9d
lea rax, [rsp + 0x70]
mov dword [rsp + 0x28], 0xc
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, 0x2d1080
mov dword [rsp + 0x50], ebx
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_DeviceIoControl]
test eax, eax
je 0x180010e75
cmp r12d, dword [rsp + 0x74]
je 0x180010ee1
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
lea rax, [rbp - 0x80]
inc r15d
mov r9d, r15d
mov qword [rsp + 0x20], rax
mov r8, r14
xor edx, edx
mov rcx, rsi
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
test eax, eax
jne 0x180010d80
mov rcx, rsi
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
xor eax, eax
mov r15, qword [rsp + 0xb50]
mov rcx, qword [rbp + 0xa10]
xor rcx, rsp
call fcn.1800292f0
lea r11, [rsp + 0xb20]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rbp
ret
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov rcx, rsi
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov edx, dword [rbp - 0x4c]
lea rcx, [rsp + 0x44]
xor r8d, r8d
mov dword [rsp + 0x44], ebx
call qword [sym.imp.SETUPAPI.dll_CM_Get_Parent]
mov ecx, dword [rsp + 0x44]
lea rdx, [rbp + 0x400]
xor r9d, r9d
mov r8d, 0x104
call qword [sym.imp.SETUPAPI.dll_CM_Get_Device_IDW]
mov r8d, 4
lea rdx, str.USB_
lea rcx, [rbp + 0x400]
call fcn.18003ad9c
test eax, eax
jne 0x180010f49
mov eax, 2
jmp 0x180010eae
cmp r13d, 5
setne bl
lea eax, [rbx + 3]
jmp 0x180010eae
xor eax, eax
jmp 0x180010eb6