Function at 0x4015f0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4049b6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x358
push ebx
push esi
push edi
mov esi, ecx
lea ecx, [esp + 0x34]
mov dword [esp + 0x36c], 0
call fcn.00404358
lea ecx, [esp + 0x48]
mov byte [esp + 0x36c], 1
call fcn.00404358
push ecx
mov ebx, 2
mov ecx, esp
mov dword [esp + 0x10], esp
push 0x407070
mov byte [esp + 0x374], bl
call fcn.004042c2
lea eax, [esp + 0x38]
lea edx, [esp + 0x378]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x3c], esp
push edx
mov byte [esp + 0x37c], 3
call sub.MFC42.DLL_CString::CString_1
mov ecx, esi
mov byte [esp + 0x378], bl
call fcn.00401120
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov byte [esp + 0x36c], 4
lea edx, [ecx + eax*4 - 4]
lea ecx, [esp + 0x18]
push edx
call sub.MFC42.DLL_CString::operator_1
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push 0x40706c
call fcn.004042c2
lea eax, [esp + 0x4c]
lea edx, [esp + 0x1c]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
mov byte [esp + 0x37c], 5
call sub.MFC42.DLL_CString::CString_1
mov ecx, esi
mov byte [esp + 0x378], 4
call fcn.00401120
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esp + 0x4c]
lea ecx, [esp + 0x14]
push eax
mov byte [esp + 0x370], 6
call sub.MFC42.DLL_CString::operator_1
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx - 8]
cmp eax, 8
jle 0x401759
mov edx, dword [esp + 0x374]
lea eax, [esp + 0x15c]
push edx
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 8
lea ecx, [esp + 0x260]
lea edx, [esp + 0x15c]
push 0x104
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
lea eax, [esp + 0x260]
lea ecx, [esp + 0x374]
push eax
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x1c]
call fcn.00404352
lea ecx, [esp + 0x10]
mov byte [esp + 0x36c], 7
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x5c]
push 0x105
push ecx
mov byte [esp + 0x374], 8
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, str.wininit.ini
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x5c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x60]
and ecx, 3
push 0x3002
rep movsb byte es:[edi], byte [esi]
push eax
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CStdioFile::Open
test eax, eax
je 0x4018db
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CStdioFile::ReadString
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::TrimRight_1
mov edx, dword [esp + 0x10]
push str._rename_
push edx
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
lea ecx, [esp + 0x1c]
test eax, eax
mov eax, dword [esp + 0x1c]
push ebx
push 0
jne 0x401877
call dword [eax + 0x30]
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esp + 0x378]
mov byte [esp + 0x36c], 9
test eax, eax
jne 0x401841
mov ecx, dword [esp + 0x374]
lea edx, [esp + 0xc]
push ecx
push str.NULL_s_r_n
push edx
jmp 0x401853
mov eax, dword [esp + 0x374]
lea ecx, [esp + 0xc]
push eax
push str.DIRNUL_s_r_n
push ecx
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x18]
add esp, 0xc
lea ecx, [esp + 0x1c]
push edx
call sub.MFC42.DLL_CStdioFile::WriteString
mov byte [esp + 0x36c], 8
lea ecx, [esp + 0xc]
jmp 0x4018cd
call dword [eax + 0x30]
push str._rename__r_n
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CStdioFile::WriteString
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [esp + 0x374]
lea edx, [esp + 0xc]
push ecx
push str.NULL_s_r_n
push edx
mov byte [esp + 0x378], 0xa
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x18]
add esp, 0xc
lea ecx, [esp + 0x1c]
push eax
call sub.MFC42.DLL_CStdioFile::WriteString
mov byte [esp + 0x36c], 8
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CStdioFile::Close
lea ecx, [esp + 0x10]
mov byte [esp + 0x36c], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x36c], 6
call sub.MFC42.DLL_CStdioFile::CStdioFile
lea ecx, [esp + 0x14]
mov byte [esp + 0x36c], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x36c], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x48]
mov byte [esp + 0x36c], 1
call sub.MFC42.DLL_CStringArray::CStringArray
lea ecx, [esp + 0x34]
mov byte [esp + 0x36c], 0
call sub.MFC42.DLL_CStringArray::CStringArray
lea ecx, [esp + 0x374]
mov dword [esp + 0x36c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x364]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x364
ret 8