Function at 0x1800138d0
Capabilities:
Get disk information via ioctl

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x4b0
mov rax, qword [0x180103990]
xor rax, rsp
mov qword [rsp + 0x4a0], rax
mov r14d, edx
lea rdx, str.Floppy
mov rcx, r9
mov ebx, r8d
call qword [sym.imp.MSVCR120.dll_strstr]
test rax, rax
setne cl
sub ebx, 2
je 0x180013931
dec ebx
je 0x180013928
cmp ebx, 2
je 0x18001391f
xor eax, eax
jmp 0x180013b1f
lea rsi, [0x1800c64c0]
jmp 0x180013948
lea rsi, [0x1800c64b0]
jmp 0x180013948
lea rsi, [0x1800c64b0]
lea rax, [0x1800c64d0]
test cl, cl
cmove rax, rsi
mov rsi, rax
mov r9d, socket
xor r8d, r8d
xor edx, edx
mov rcx, rsi
mov qword [rsp + 0x4d8], rdi
call qword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x180013974
xor eax, eax
jmp 0x180013b17
mov qword [rsp + 0x4d0], rbp
lea rax, [rsp + 0x78]
mov qword [rsp + 0x4e0], r15
xor r15d, r15d
xor r9d, r9d
mov r8, rsi
xor edx, edx
mov rcx, rdi
mov qword [rsp + 0x20], rax
mov ebp, r15d
mov dword [rsp + 0x78], 0x20
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
test eax, eax
je 0x180013afc
nop word [rax + rax]
lea rax, [rsp + 0x40]
lea rdx, [rsp + 0x78]
xor r9d, r9d
xor r8d, r8d
mov rcx, rdi
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x40], r15d
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailW]
mov r9d, dword [rsp + 0x40]
lea eax, [r9 - 1]
cmp eax, 0x3ff
ja 0x180013ad7
xor eax, eax
lea r8, [rsp + 0xa0]
lea rdx, [rsp + 0x78]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x48]
mov rcx, rdi
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov dword [rsp + 0xa0], 8
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x48], 0x20
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailW]
test eax, eax
je 0x180013ad7
xor r9d, r9d
mov qword [rsp + 0x30], r15
lea rcx, [rsp + 0xa4]
lea r8d, [r9 + 3]
xor edx, edx
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180013ad7
mov qword [rsp + 0x38], r15
lea rax, [rsp + 0x44]
xor r9d, r9d
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x68]
xor r8d, r8d
mov edx, 0x2d1080
mov rcx, rbx
mov dword [rsp + 0x28], 0xc
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x44], r15d
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x180013ace
cmp r14d, dword [rsp + 0x6c]
je 0x180013b3b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rax, [rsp + 0x78]
inc ebp
mov r8, rsi
xor edx, edx
mov rcx, rdi
mov r9d, ebp
mov qword [rsp + 0x20], rax
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
test eax, eax
jne 0x1800139c0
mov rcx, rdi
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
xor eax, eax
mov rbp, qword [rsp + 0x4d0]
mov r15, qword [rsp + 0x4e0]
mov rdi, qword [rsp + 0x4d8]
mov rcx, qword [rsp + 0x4a0]
xor rcx, rsp
call fcn.18008b810
add rsp, 0x4b0
pop r14
pop rsi
pop rbx
ret
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov eax, dword [rsp + 0x5c]
jmp 0x180013b07