Function at 0x40116f
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x284
push esi
push edi
push 0x1c
mov esi, ecx
pop eax
xor edi, edi
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x5c], eax
push 0x10
lea eax, [ebp + 8]
push 0x40b208
push eax
mov dword [ebp - 0xc], esi
mov dword [esi + 0x6b08], edi
mov dword [ebp - 0x180], 5
call fcn.00404c10
add esp, 0xc
test eax, eax
jne 0x4011b8
push str.CDROM
jmp 0x4011f2
push 0x10
lea eax, [ebp + 8]
push 0x40b218
push eax
call fcn.00404c10
add esp, 0xc
test eax, eax
jne 0x4011d6
push str.DISK
jmp 0x4011f2
push 0x10
lea eax, [ebp + 8]
push 0x40b1f8
push eax
call fcn.00404c10
add esp, 0xc
test eax, eax
jne 0x4011fd
push str.FLOPPY
lea eax, [ebp - 0x7c]
push eax
call fcn.00404900
pop ecx
pop ecx
lea eax, [ebp - 0x7c]
push eax
push str.CDriveInfo::CreateSnapshot_Start__DriveType_s
push 3
call fcn.0040116e
add esp, 0xc
lea eax, [ebp + 8]
push 0x12
push edi
push edi
push eax
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x40122d
xor al, al
jmp 0x4013ba
push ebx
mov dword [ebp - 8], edi
add esi, 0x18
lea eax, [ebp - 0x5c]
mov ebx, dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
push eax
lea eax, [ebp + 8]
push dword [ebp - 8]
push eax
push edi
push dword [ebp - 4]
call ebx
test eax, eax
je 0x401396
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp + 8]
push dword [ebp - 8]
push eax
push edi
push dword [ebp - 4]
call ebx
lea eax, [ebp - 0x40]
mov ebx, 0x104
push eax
push edi
lea eax, [ebp - 0x180]
push ebx
push eax
lea eax, [ebp - 0x5c]
push eax
mov dword [ebp - 0x180], 5
push dword [ebp - 4]
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailA]
test eax, eax
je 0x401388
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x17c]
mov dword [esi - 0x14], eax
lea eax, [esi + 0x105]
push ecx
push 0x40d04c
push eax
call fcn.00404bae
add esp, 0xc
lea eax, [ebp - 0x284]
push edi
push ebx
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x40]
push 0xe
push eax
push dword [ebp - 4]
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyA]
test eax, eax
je 0x4012ed
cmp dword [ebp - 0x14], 1
jne 0x4012ed
lea eax, [ebp - 0x284]
push ebx
push eax
push esi
call fcn.00404ab0
add esp, 0xc
lea eax, [ebp - 0x17c]
push eax
call fcn.0040417c
pop ecx
lea ebx, [esi - 0x10]
push edi
mov byte [esi + 0x104], al
push dword [ebp - 0x2c]
push ebx
call dword [sym.imp.SETUPAPI.dll_CM_Get_Parent]
push edi
lea eax, [esi - 0xc]
push dword [ebx]
push eax
call dword [sym.imp.SETUPAPI.dll_CM_Get_Parent]
or dword [esi - 8], 0xffffffff
push edi
push edi
push 3
push edi
push 3
lea ebx, [esi + 0x105]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
je 0x401371
lea ecx, [ebp - 0x18]
push edi
push ecx
lea ecx, [ebp - 0x24]
push 0xc
push ecx
push edi
push edi
push 0x2d1080
push eax
mov dword [ebp - 0x18], edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x401368
mov eax, dword [ebp - 0x20]
mov dword [esi - 8], eax
mov eax, dword [ebp - 0x1c]
mov dword [esi - 4], eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esi - 0x18]
push eax
push ebx
mov dword [eax], edi
call fcn.00403db2
mov eax, dword [ebp - 0xc]
pop ecx
pop ecx
inc dword [eax + 0x6b08]
inc dword [ebp - 8]
add esi, 0x224
jmp 0x401234
push dword [ebp - 4]
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov eax, dword [ebp - 0xc]
push dword [eax + 0x6b08]
push str.CDriveInfo::CreateSnapshot_Finish__DriveCount_i
push 3
call fcn.0040116e
add esp, 0xc
mov al, 1
pop ebx
pop edi
pop esi
leave
ret 0x10