Function at 0x401de0
Capabilities:
Get common file path
Get disk size

Disassembly:
push 0xffffffffffffffff
push 0x4037d1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1f4
mov eax, dword [esp + 0x204]
push ebx
push ebp
push esi
xor ebx, ebx
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll__lopen]
mov esi, eax
lea ecx, [esp + 0x34]
push esi
call fcn.0040300c
or ebp, 0xffffffff
mov dword [esp + 0x20c], ebx
cmp esi, ebp
je 0x402128
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CFile::GetLength
mov esi, eax
lea ecx, [esp + 0x34]
mov dword [esp + 0x64], esi
call sub.MFC42.DLL_CFile::Close
lea ecx, [esp + 0x10]
call fcn.00403018
lea ecx, [esp + 0x14]
mov byte [esp + 0x20c], 1
call fcn.00403018
lea ecx, [esp + 0x100]
mov byte [esp + 0x20c], 2
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edx, [esp + 0x100]
lea eax, [esp + 0x14]
push edx
push 0x406044
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x20]
add esp, 0xc
cmp dword [ecx - 8], 2
jne 0x401ead
push 0x406088
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::operator
lea edx, [esp + 0x2c]
push 3
push edx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Left
mov eax, dword [eax]
lea ecx, [esp + 0x28]
push eax
push 0x406044
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::CString
mov ecx, 0x25
xor eax, eax
lea edi, [esp + 0x6c]
lea edx, [esp + 0x6c]
rep stosd dword es:[edi], eax
push edx
mov dword [esp + 0x70], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x70], 4
jne 0x402023
cmp dword [esp + 0x74], ebx
jne 0x402023
cmp dword [esp + 0x7c], 1
jne 0x402023
lea eax, [esp + 0x5c]
lea ecx, [esp + 0x54]
push eax
lea edx, [esp + 0x30]
push ecx
lea eax, [esp + 0x4c]
push edx
lea ecx, [esp + 0x34]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
jne 0x401f5e
push 0xf007
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::LoadStringA
mov edx, dword [esp + 0x10]
push 0x30
push str.Presto__Wrapper
push edx
jmp 0x4020f0
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x48]
push eax
mov eax, dword [esp + 0x48]
push ecx
push edx
push eax
call fcn.004034e0
mov ecx, dword [esp + 0x58]
mov edi, edx
mov edx, dword [esp + 0x54]
push ecx
mov esi, eax
push edx
push edi
push esi
call fcn.004034e0
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x60]
mov ebp, edx
push eax
push ecx
push edi
push esi
mov dword [esp + 0x2c], ebp
call fcn.004034e0
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x64]
push ebx
push 2
push ebx
push edx
mov dword [esp + 0x30], eax
call fcn.004034e0
cmp ebp, edx
ja 0x40209b
jb 0x401fd1
cmp dword [esp + 0x18], eax
ja 0x40209b
push 0xf006
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::LoadStringA
mov eax, dword [esp + 0x10]
push 0x30
push str.Presto__Wrapper
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [esp + 0x14]
mov byte [esp + 0x20c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x20c], bl
call sub.MFC42.DLL_CString::CString
mov dword [esp + 0x20c], 0xffffffff
jmp 0x40212f
push str.GetDiskFreeSpaceExA
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x402107
lea ecx, [esp + 0x18]
lea edx, [esp + 0x20]
push ecx
push edx
lea ecx, [esp + 0x54]
lea edx, [esp + 0x30]
push ecx
push edx
call eax
cmp eax, ebx
je 0x4020d6
push ebx
push 2
push ebx
push esi
call fcn.004034e0
mov ecx, dword [esp + 0x50]
cmp ecx, edx
ja 0x40209e
jb 0x402078
mov edx, dword [esp + 0x4c]
cmp edx, eax
ja 0x40209e
push 0xf006
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::LoadStringA
mov eax, dword [esp + 0x10]
push 0x30
push str.Presto__Wrapper
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x402107
or ebp, 0xffffffff
lea ecx, [esp + 0x14]
mov byte [esp + 0x20c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x20c], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x34]
mov dword [esp + 0x20c], ebp
call sub.MFC42.DLL_CFile::CFile
mov eax, 1
jmp 0x40213a
push 0xf007
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::LoadStringA
mov ecx, dword [esp + 0x10]
push 0x30
push str.Presto__Wrapper
push ecx
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
lea ecx, [esp + 0x14]
mov byte [esp + 0x20c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x20c], bl
call sub.MFC42.DLL_CString::CString
mov dword [esp + 0x20c], ebp
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CFile::CFile
xor eax, eax
mov ecx, dword [esp + 0x204]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x200
ret