Function at 0x4061a1
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42351a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa4
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x38]
call sub.MFC42.DLL_CFile::CFile
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.004226f2
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x14]
call fcn.004226f2
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1c]
call fcn.004226f2
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x24]
call fcn.004226f2
mov byte [ebp - 4], 6
lea ecx, [ebp + 8]
call fcn.004040f0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40630b
push 0
push 0x40
lea ecx, [ebp + 8]
call fcn.004040f0
push eax
lea ecx, [ebp - 0x38]
call sub.MFC42.DLL_CFile::Open
test eax, eax
je 0x4062a3
lea ecx, [ebp - 0x38]
call sub.MFC42.DLL_CFile::GetLength
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
add eax, 1
push eax
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x40]
push edx
mov eax, dword [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x38]
call sub.MFC42.DLL_CFile::Read
mov ecx, dword [ebp - 0x3c]
add ecx, dword [ebp - 0x40]
mov byte [ecx], 0
mov edx, dword [ebp - 0x3c]
push edx
lea ecx, [ebp - 0x28]
call fcn.0042274c
cmp dword [ebp - 0x3c], 0
je 0x406299
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x48]
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [ebp - 0x3c], 0
lea ecx, [ebp - 0x38]
call sub.MFC42.DLL_CFile::Close
jmp 0x406309
mov dword [ebp - 0x4c], 0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x24]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x38]
call fcn.00422740
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x4c]
jmp 0x406711
jmp 0x406318
push 0x439654
lea ecx, [ebp - 0x28]
call fcn.0042274c
lea edx, [ebp - 0x28]
push edx
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString_1
mov byte [ebp - 4], 7
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString_1
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::MakeLower
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::MakeLower
lea ecx, [ebp - 0x10]
call fcn.004040f0
push eax
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::Find
cmp eax, 0xffffffff
je 0x4063dc
mov dword [ebp - 0x50], 1
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x24]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x38]
call fcn.00422740
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x50]
jmp 0x406711
push str._rename__r_n
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::Find
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
je 0x40654c
mov ecx, dword [ebp - 0x20]
add ecx, 0xa
push ecx
lea edx, [ebp - 0x54]
push edx
lea ecx, [ebp - 0x28]
call sub.MFC42.DLL_CString::Left
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x80], eax
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x80]
push ecx
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::operator
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x54]
call sub.MFC42.DLL_CString::CString
mov edx, dword [ebp - 0x20]
add edx, 0xa
push edx
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x28]
call sub.MFC42.DLL_CString::Mid
mov dword [ebp - 0x84], eax
mov ecx, dword [ebp - 0x84]
mov dword [ebp - 0x88], ecx
mov byte [ebp - 4], 0xa
mov edx, dword [ebp - 0x88]
push edx
lea ecx, [ebp - 0x24]
call sub.MFC42.DLL_CString::operator
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x58]
call sub.MFC42.DLL_CString::CString
push 0x431fec
push 2
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::Right
mov dword [ebp - 0x8c], eax
mov ecx, dword [ebp - 0x8c]
mov dword [ebp - 0x90], ecx
mov byte [ebp - 4], 0xb
mov edx, dword [ebp - 0x90]
push edx
call fcn.00408310
mov byte [ebp - 0x5c], al
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x60]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x5c]
and eax, 0xff
test eax, eax
je 0x4064cf
push 0x431ff0
lea ecx, [ebp + 0xc]
call fcn.00422710
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp + 0xc]
push edx
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x64]
push ecx
call sub.MFC42.DLL_operator
mov dword [ebp - 0x94], eax
mov edx, dword [ebp - 0x94]
mov dword [ebp - 0x98], edx
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x98]
push eax
lea ecx, [ebp - 0x68]
push ecx
call sub.MFC42.DLL_operator
mov dword [ebp - 0x9c], eax
mov edx, dword [ebp - 0x9c]
mov dword [ebp - 0xa0], edx
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0xa0]
push eax
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::operator
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x68]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x64]
call sub.MFC42.DLL_CString::CString
jmp 0x4065dd
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::operator
push str._r_n_rename__r_n
lea ecx, [ebp - 0x24]
call fcn.0042274c
lea edx, [ebp + 0xc]
push edx
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x6c]
push edx
call sub.MFC42.DLL_operator
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0xa8], eax
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0xa8]
push ecx
lea edx, [ebp - 0x70]
push edx
call sub.MFC42.DLL_operator
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0xb0], eax
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp - 0xb0]
push ecx
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::operator
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x70]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x6c]
call sub.MFC42.DLL_CString::CString
push 0
push 0x1001
lea ecx, [ebp + 8]
call fcn.004040f0
push eax
lea ecx, [ebp - 0x38]
call sub.MFC42.DLL_CFile::Open
test eax, eax
je 0x40661d
lea ecx, [ebp - 0x14]
call fcn.004040b0
push eax
lea ecx, [ebp - 0x14]
call fcn.004040f0
push eax
lea ecx, [ebp - 0x38]
call sub.MFC42.DLL_CFile::Write
lea ecx, [ebp - 0x38]
call sub.MFC42.DLL_CFile::Close
jmp 0x406698
mov dword [ebp - 0x74], 0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x24]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x38]
call fcn.00422740
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x74]
jmp 0x406711
mov dword [ebp - 0x78], 1
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x24]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x38]
call fcn.00422740
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret