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

Disassembly:
push 0xffffffffffffffff
push 0x4557d4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x114
push ebx
push ebp
push esi
push edi
push 0x104
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x2c], eax
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
lea ecx, [esp + 0x14]
mov esi, eax
call sub.MFC42.DLL_CString::CString_2
xor ebx, ebx
push 0x4690f8
lea ecx, [esp + 0x58]
mov dword [esp + 0x130], ebx
call fcn.004149aa
mov ecx, 0x19
xor eax, eax
lea edi, [esp + 0x58]
push sub.MFC42.DLL_CString::CString
rep stosd dword es:[edi], eax
push sub.MFC42.DLL_CString::CString_2
push 0x19
lea eax, [esp + 0x64]
push 4
push eax
mov byte [esp + 0x140], 1
call fcn.00414e92
mov ebp, esi
mov byte [esp + 0x12c], 2
shr ebp, 2
mov dword [esp + 0x28], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x20], ebp
je 0x40f6a3
mov edi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x134]
lea ecx, [esp + 0x54]
lea eax, [esp + 0xbc]
sub edi, ecx
sub eax, ebx
lea esi, [esp + 0x54]
mov dword [esp + 0x34], edi
mov dword [esp + 0x40], eax
jmp 0x40f4a6
mov edi, dword [esp + 0x34]
add edi, esi
push edi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
je 0x40f4c4
push edi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x40f67a
push 0x466110
lea ecx, [esp + 0x1c]
call fcn.004149aa
push edi
lea ecx, [esp + 0x40]
mov byte [esp + 0x130], 3
call fcn.004149aa
push eax
mov ecx, esi
mov byte [esp + 0x130], 4
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x3c]
mov byte [esp + 0x12c], 3
call sub.MFC42.DLL_CString::CString
mov ebp, dword [esi]
mov edi, 0x46610c
mov eax, ebp
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [edi]
jne 0x40f532
test cl, cl
je 0x40f52e
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [edi + 1]
jne 0x40f532
add eax, 2
add edi, 2
test cl, cl
jne 0x40f50e
xor eax, eax
jmp 0x40f537
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40f665
mov edi, 0x466108
mov eax, ebp
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [edi]
jne 0x40f56a
test cl, cl
je 0x40f566
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [edi + 1]
jne 0x40f56a
add eax, 2
add edi, 2
test cl, cl
jne 0x40f546
xor eax, eax
jmp 0x40f56f
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40f665
lea eax, [esp + 0x30]
push 2
push eax
mov ecx, esi
call sub.MFC42.DLL_CString::Left
lea ecx, [esp + 0x18]
push eax
lea edx, [esp + 0x48]
push ecx
push edx
mov byte [esp + 0x138], 5
call sub.MFC42.DLL_operator
push eax
mov ecx, esi
mov byte [esp + 0x130], 6
call fcn.004149b6
lea ecx, [esp + 0x44]
mov byte [esp + 0x12c], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0x12c], 3
call sub.MFC42.DLL_CString::CString
push esi
mov ecx, esi
call fcn.004149b6
mov eax, dword [esi]
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [esp + 0x40]
cmp eax, 0xffffffff
mov dword [ecx + ebx], eax
je 0x40f690
push 1
lea edx, [esp + 0x20]
push 4
push edx
mov ecx, esi
call sub.MFC42.DLL_CString::Mid
push eax
lea eax, [esp + 0x28]
push str.PFAD_
push eax
mov byte [esp + 0x138], 7
call sub.MFC42.DLL_operator_1
push eax
mov ecx, ebx
mov byte [esp + 0x130], 8
call fcn.004149b6
lea ecx, [esp + 0x24]
mov byte [esp + 0x12c], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x12c], 3
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
inc ecx
add ebx, 4
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x18]
mov byte [esp + 0x12c], 2
call sub.MFC42.DLL_CString::CString
mov ebp, dword [esp + 0x20]
mov eax, dword [esp + 0x28]
add esi, 4
inc eax
cmp eax, ebp
mov dword [esp + 0x28], eax
jb 0x40f4a2
jmp 0x40f6a1
lea ecx, [esp + 0x18]
mov byte [esp + 0x12c], 2
call sub.MFC42.DLL_CString::CString
xor ebx, ebx
mov ecx, dword [esp + 0x2c]
push ecx
call sub.MFC42.DLL_operatordelete
mov eax, dword [esp + 0x14]
add esp, 4
xor esi, esi
cmp eax, ebx
mov dword [esp + 0x38], ebx
jbe 0x40f78a
mov esi, dword [esp + 0x134]
mov ebx, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
lea edi, [esp + 0xbc]
mov edx, eax
sub edi, esi
mov ebp, eax
mov dword [esp + 0x24], edx
mov edx, dword [esi + edi]
lea eax, [esp + 0x38]
push 0
push eax
lea ecx, [esp + 0x50]
push 0xc
push ecx
push 0
push 0
push 0x2d1080
push edx
call ebx
mov eax, dword [esp + 0x4c]
lea ecx, [esp + 0x14]
push eax
push 0x4660fc
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea edx, [esp + 0x14]
lea eax, [esp + 0x20]
push edx
push 0x4660f8
push eax
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x130], 9
call fcn.004149b6
lea ecx, [esp + 0x20]
mov byte [esp + 0x12c], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
lea edx, [esp + 0x1c]
push ecx
push esi
push edx
call sub.MFC42.DLL_operator
push eax
mov ecx, esi
mov byte [esp + 0x130], 0xa
call fcn.004149b6
lea ecx, [esp + 0x1c]
mov byte [esp + 0x12c], 2
call sub.MFC42.DLL_CString::CString
add esi, 4
dec ebp
jne 0x40f6e0
mov esi, dword [esp + 0x24]
push sub.MFC42.DLL_CString::CString
push 0x19
lea eax, [esp + 0x60]
push 4
push eax
mov byte [esp + 0x13c], 1
call fcn.00414d9e
lea ecx, [esp + 0x54]
mov byte [esp + 0x12c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x12c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x124]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x120
ret