Function at 0x404220
Capabilities:
Get disk information
Get disk size

Disassembly:
push 0xffffffffffffffff
push 0x40a711
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x518
push ebx
push ebp
mov ebx, ecx
push esi
push edi
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CStringArray::CStringArray
lea eax, [esp + 0x128]
mov dword [esp + 0x530], 0
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
lea ebp, [esp + eax + 0x128]
lea ecx, [esp + 0x128]
cmp ecx, ebp
lea esi, [esp + 0x128]
jae 0x4042b0
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x40429c
mov edx, dword [esp + 0x30]
push esi
push edx
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CStringArray::SetAtGrow
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea esi, [esi + ecx + 1]
cmp esi, ebp
jb 0x404281
mov eax, dword [esp + 0x30]
xor esi, esi
cmp eax, esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x24], esi
jle 0x4044c7
lea ebp, [ebx + 0x10c]
mov eax, dword [esp + 0x2c]
push 0
push 0
push 0
mov eax, dword [eax + esi*4]
push 0
push eax
push esi
push 1
mov ecx, ebp
call sub.MFC42.DLL_CListCtrl::InsertItem
mov ecx, dword [esp + 0x2c]
mov edi, eax
lea edx, [esp + 0x60]
mov eax, dword [ecx + esi*4]
push edx
lea ecx, [esp + 0x48]
lea edx, [esp + 0x5c]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
mov ecx, 0x14
mov byte [esp + 0x530], 1
call fcn.004098d0
push edx
push eax
lea eax, [esp + 0x1c]
push str._ldM
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x24]
add esp, 0x10
push ecx
push 3
push edi
mov ecx, ebp
call sub.MFC42.DLL_CListCtrl::SetItemText
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x68]
push 0x20
push ecx
mov eax, dword [edx + esi*4]
lea edx, [esp + 0x5c]
push edx
lea ecx, [esp + 0x58]
lea edx, [esp + 0x5c]
push ecx
push edx
lea ecx, [esp + 0xbc]
push 0x80
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x4044a9
lea edx, [esp + 0x68]
mov ecx, ebp
push edx
push 1
push edi
call sub.MFC42.DLL_CListCtrl::SetItemText
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + esi*4]
mov dl, byte [ecx]
lea ecx, [esp + 0x88]
mov byte [esp + 0x3c], dl
mov eax, dword [esp + 0x3c]
push eax
push ecx
mov ecx, ebx
call fcn.00404670
test eax, eax
je 0x4043e9
mov edx, dword [esp + 0x9c]
lea eax, [esp + 0x14]
push edx
push 0x40e218
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x20]
add esp, 0xc
push ecx
push 2
push edi
mov ecx, ebp
call sub.MFC42.DLL_CListCtrl::SetItemText
mov edx, dword [esp + 0x2c]
mov eax, dword [edx + esi*4]
mov cl, byte [eax]
lea eax, [esp + 0x10]
mov byte [esp + 0x40], cl
mov ecx, ebx
mov edx, dword [esp + 0x40]
push edx
push eax
call fcn.00404530
mov eax, dword [esp + 0x10]
mov byte [esp + 0x530], 2
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x404483
push eax
push 4
push edi
mov ecx, ebp
call sub.MFC42.DLL_CListCtrl::SetItemText
push str.disk0
lea ecx, [esp + 0x14]
call fcn.0040961a
cmp dword [eax], 0
je 0x40443c
inc dword [esp + 0x1c]
push str.disk1
lea ecx, [esp + 0x14]
call fcn.0040961a
cmp dword [eax], 0
je 0x404453
inc dword [esp + 0x20]
push str.disk2
lea ecx, [esp + 0x14]
call fcn.0040961a
cmp dword [eax], 0
je 0x40446a
inc dword [esp + 0x18]
push str.disk3
lea ecx, [esp + 0x14]
call fcn.0040961a
cmp dword [eax], 0
je 0x404498
inc dword [esp + 0x24]
jmp 0x404498
mov ecx, dword [ebx + 0x12c]
push 0
push edi
push 0x1008
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [esp + 0x10]
mov byte [esp + 0x530], 1
call fcn.0040960e
lea ecx, [esp + 0x14]
mov byte [esp + 0x530], 0
call fcn.0040960e
mov eax, dword [esp + 0x30]
inc esi
cmp esi, eax
jl 0x4042d4
mov edx, dword [esp + 0x1c]
mov ecx, ebx
push edx
push 0
call fcn.00407570
mov eax, dword [esp + 0x20]
mov ecx, ebx
push eax
push 1
call fcn.00407570
mov ecx, dword [esp + 0x18]
push ecx
push 2
mov ecx, ebx
call fcn.00407570
mov edx, dword [esp + 0x24]
mov ecx, ebx
push edx
push 3
call fcn.00407570
lea ecx, [esp + 0x28]
mov dword [esp + 0x530], 0xffffffff
call fcn.004097dc
mov ecx, dword [esp + 0x528]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x524
ret