Function at 0x40f7f0
Capabilities:
Get disk information via ioctl
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4557f6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x26c
push ebx
push ebp
xor ebx, ebx
push esi
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esp + 0x288]
push 0x12
push ebx
mov esi, 0x1c
push ebx
push eax
mov dword [esp + 0x290], ebx
mov dword [esp + 0x3c], esi
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x40f861
lea ecx, [esp + 0x10]
mov dword [esp + 0x280], eax
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x40fa35
mov ecx, dword [esp + 0x28c]
push edi
mov dword [esp + 0x10], 0x800
mov dword [esp + 0x58], esi
mov dword [esp + 0x20], ecx
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x28c]
lea edx, [esp + 0x58]
push edx
push eax
push ecx
push ebx
push ebp
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
cmp eax, ebx
mov dword [esp + 0x28], eax
je 0x40fa07
mov edi, dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailA]
lea edx, [esp + 0x10]
push ebx
push edx
push ebx
lea eax, [esp + 0x64]
push ebx
push eax
push ebp
call edi
test eax, eax
je 0x40f8c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x40fa0b
mov eax, dword [esp + 0x10]
inc eax
push eax
mov dword [esp + 0x14], eax
call dword [sym.imp.MSVCRT.dll_malloc]
mov esi, eax
add esp, 4
lea ecx, [esp + 0x30]
lea eax, [esp + 0x58]
mov dword [esi], 5
mov edx, dword [esp + 0x10]
push ecx
push ebx
push edx
push esi
push eax
push ebp
call edi
test eax, eax
jne 0x40f90a
push esi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
jmp 0x40fa0b
mov cl, byte [0x4690f8]
xor eax, eax
mov byte [esp + 0x74], cl
mov ecx, 0x81
lea edi, [esp + 0x75]
mov edx, dword [esp + 0x44]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push ebx
lea eax, [esp + 0x48]
push edx
push eax
call dword [sym.imp.CFGMGR32.dll_CM_Get_Parent]
mov edx, dword [esp + 0x44]
push ebx
lea ecx, [esp + 0x78]
push 0x208
push ecx
push edx
call dword [sym.imp.CFGMGR32.dll_CM_Get_Device_IDA]
cmp eax, ebx
jne 0x40f9fd
lea eax, [esp + 0x74]
push eax
call fcn.0040f3a0
add esp, 4
test eax, eax
je 0x40f9fd
push ebx
push ebx
push 3
push ebx
push 3
lea ecx, [esi + 4]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x40f9fd
lea edx, [esp + 0x24]
push ebx
push edx
lea ecx, [esp + 0x54]
push 0xc
push ecx
push ebx
push ebx
push 0x2d1080
push eax
mov dword [esp + 0x44], ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov edx, dword [esp + 0x50]
lea eax, [esp + 0x14]
push edx
push 0x4660fc
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x74]
lea edx, [esp + 0x14]
lea eax, [esp + 0x2c]
push ecx
push edx
push eax
call sub.MFC42.DLL_operator_2
mov edi, dword [esp + 0x20]
push eax
mov ecx, edi
mov byte [esp + 0x288], 1
call fcn.004149b6
lea ecx, [esp + 0x2c]
mov byte [esp + 0x284], bl
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x1c]
inc ecx
add edi, 4
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edi
push esi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
inc dword [esp + 0x18]
cmp dword [esp + 0x28], ebx
jne 0x40f879
push ebp
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
lea ecx, [esp + 0x14]
mov dword [esp + 0x284], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x1c]
pop edi
mov ecx, dword [esp + 0x278]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x278
ret