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

Disassembly:
push 0xffffffffffffffff
push 0x406887
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x174
push ebx
push ebp
push esi
push edi
mov ecx, 0x40c5bc
call sub.MFC42.DLL_CString::Empty
mov ecx, 0x40c5b8
call sub.MFC42.DLL_CString::Empty
xor ebp, ebp
xor edi, edi
mov dword [esp + 0x14], ebp
mov byte [esp + 0x1c], 0x44
mov ebx, 1
mov eax, dword [esp + 0x1c]
push ebx
push eax
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_2
push 0x409c74
lea ecx, [esp + 0x14]
mov dword [esp + 0x190], ebp
call fcn.00406076
lea ecx, [esp + 0x10]
push 0x409c70
lea edx, [esp + 0x2c]
push ecx
push edx
call sub.MFC42.DLL_operator
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
lea ecx, [esp + 0x28]
mov esi, eax
call sub.MFC42.DLL_CString::CString
cmp esi, 2
jne 0x404429
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_3
lea eax, [esp + 0x10]
push str.SYSTEMADSSYSMASTER.INF
lea ecx, [esp + 0x34]
push eax
push ecx
mov byte [esp + 0x198], bl
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x190], 2
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x30]
mov byte [esp + 0x18c], bl
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x44]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x404346
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x10]
push 0x409c70
lea edx, [esp + 0x28]
push ecx
push edx
call sub.MFC42.DLL_operator
mov edi, dword [esp + 0x24]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x194]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x24]
mov edi, ebx
call sub.MFC42.DLL_CString::CString
jmp 0x404418
lea ecx, [esp + 0x20]
lea edx, [esp + 0x40]
push ecx
lea eax, [esp + 0x3c]
push edx
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x34]
push eax
push ecx
push edx
mov dword [esp + 0x40], ebp
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x54], ebp
mov dword [esp + 0x34], ebp
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
mov esi, eax
mov eax, dword [esp + 0x14]
cmp eax, ebp
push 0x409c70
jne 0x4043c7
lea eax, [esp + 0x14]
lea ecx, [esp + 0x38]
push eax
push ecx
call sub.MFC42.DLL_operator
push eax
mov ecx, 0x40c5bc
mov byte [esp + 0x190], 3
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x34]
mov byte [esp + 0x18c], bl
call sub.MFC42.DLL_CString::CString
cmp dword [esp + 0x20], ebp
jbe 0x4043c0
cmp esi, ebp
jne 0x40440d
mov ecx, 0x40c5bc
jmp 0x404408
lea edx, [esp + 0x14]
lea eax, [esp + 0x40]
push edx
push eax
call sub.MFC42.DLL_operator
push eax
mov ecx, 0x40c5b8
mov byte [esp + 0x190], 4
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x3c]
mov byte [esp + 0x18c], bl
call sub.MFC42.DLL_CString::CString
cmp dword [esp + 0x20], ebp
jbe 0x404403
cmp esi, ebp
jne 0x40440d
mov ecx, 0x40c5b8
call sub.MFC42.DLL_CString::Empty
mov eax, dword [esp + 0x14]
mov edi, ebx
inc eax
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x18c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x18c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov al, byte [esp + 0x1c]
inc al
cmp al, 0x5a
mov byte [esp + 0x1c], al
jle 0x404245
mov ecx, dword [esp + 0x184]
xor eax, eax
cmp edi, ebp
pop edi
pop esi
pop ebp
setne al
pop ebx
mov dword fs:[0], ecx
add esp, 0x180
ret