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

Disassembly:
push 0xffffffffffffffff
push 0x406847
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, 0x40c55c
call sub.MFC42.DLL_CString::Empty
mov ecx, 0x40c558
call sub.MFC42.DLL_CString::Empty
xor ebp, ebp
xor edi, edi
mov dword [esp + 0x20], 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 0x409c80
lea ecx, [esp + 0x14]
mov dword [esp + 0x190], ebp
call fcn.00406036
lea ecx, [esp + 0x10]
push 0x409c7c
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 0x404461
lea ecx, [esp + 0x14]
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 + 0x18]
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 + 0x14]
lea edx, [esp + 0x44]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x404376
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x10]
push 0x409c7c
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 0x404450
cmp edi, ebp
je 0x404450
lea ecx, [esp + 0x18]
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 + 0x2c], ebp
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
mov esi, eax
mov eax, dword [esp + 0x20]
cmp eax, ebp
push 0x409c7c
jne 0x4043ff
lea eax, [esp + 0x14]
lea ecx, [esp + 0x38]
push eax
push ecx
call sub.MFC42.DLL_operator
push eax
mov ecx, 0x40c55c
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 + 0x18], ebp
jbe 0x4043f8
cmp esi, ebp
jne 0x404445
mov ecx, 0x40c55c
jmp 0x404440
lea edx, [esp + 0x14]
lea eax, [esp + 0x40]
push edx
push eax
call sub.MFC42.DLL_operator
push eax
mov ecx, 0x40c558
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 + 0x18], ebp
jbe 0x40443b
cmp esi, ebp
jne 0x404445
mov ecx, 0x40c558
call sub.MFC42.DLL_CString::Empty
mov eax, dword [esp + 0x20]
mov edi, ebx
inc eax
mov dword [esp + 0x20], eax
lea ecx, [esp + 0x14]
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 0x404275
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