Function at 0x407960
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4311a9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c4
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
push 0
mov ecx, dword [ebp - 0x10]
call sub.MFC42.DLL_CWinApp::CWinApp
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
mov dword [eax], 0x4353a8
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0xc8], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0xc4], 0
push 0x104
lea eax, [ebp - 0x114]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x5c
lea ecx, [ebp - 0x114]
push ecx
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 8
mov dword [ebp - 0x21c], eax
mov edx, dword [ebp - 0x21c]
mov byte [edx + 1], 0
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x218]
push ecx
call sub.MSVCRT.dll_strcpy
add esp, 8
lea edx, [ebp - 0x218]
push edx
mov ecx, 0x43f5a8
call fcn.004300fe
mov ecx, 0x43f5a8
call fcn.00408dd0
sub eax, 1
push eax
mov ecx, 0x43f5a8
call fcn.00408e30
movsx eax, al
cmp eax, 0x5c
jne 0x407a8a
mov ecx, 0x43f5a8
call fcn.00408dd0
sub eax, 1
push eax
lea ecx, [ebp - 0x24c]
push ecx
mov ecx, 0x43f5a8
call sub.MFC42.DLL_CString::Left
mov dword [ebp - 0x26c], eax
mov edx, dword [ebp - 0x26c]
mov dword [ebp - 0x270], edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x270]
push eax
mov ecx, 0x43f5a8
call sub.MFC42.DLL_CString::operator
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24c]
call sub.MFC42.DLL_CString::CString
push str.para.dat
push 0x43f5a8
lea ecx, [ebp - 0x254]
push ecx
call sub.MFC42.DLL_operator
mov dword [ebp - 0x274], eax
mov edx, dword [ebp - 0x274]
mov dword [ebp - 0x278], edx
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x278]
call fcn.00408e10
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
neg eax
sbb eax, eax
inc eax
mov byte [ebp - 0x250], al
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x254]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x250]
and eax, 0xff
test eax, eax
je 0x407af6
jmp 0x407c80
lea ecx, [ebp - 0x22c]
call fcn.00430110
mov byte [ebp - 4], 3
push 0
push 0x40
push str.para.dat
push 0x43f5a8
lea ecx, [ebp - 0x25c]
push ecx
call sub.MFC42.DLL_operator
mov dword [ebp - 0x27c], eax
mov edx, dword [ebp - 0x27c]
mov dword [ebp - 0x280], edx
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x280]
call fcn.00408e10
push eax
lea ecx, [ebp - 0x22c]
call sub.MFC42.DLL_CFile::Open
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x258], al
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x25c]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x258]
and eax, 0xff
test eax, eax
je 0x407c71
lea ecx, [ebp - 0x230]
call sub.MFC42.DLL_CString::CString_1
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x22c]
call sub.MFC42.DLL_CFile::GetLength
mov dword [ebp - 0x234], eax
mov ecx, dword [ebp - 0x234]
push ecx
mov edx, dword [ebp - 0x234]
push edx
lea ecx, [ebp - 0x230]
call sub.MFC42.DLL_CString::GetBufferSetLength
push eax
lea ecx, [ebp - 0x22c]
call sub.MFC42.DLL_CFile::Read
lea ecx, [ebp - 0x22c]
call sub.MFC42.DLL_CFile::Close
mov ecx, 0x43f594
call fcn.00408e10
push eax
lea ecx, [ebp - 0x230]
call sub.MFC42.DLL_CString::Find
test eax, eax
jne 0x407c62
push 0x435378
lea ecx, [ebp - 0x230]
call sub.MFC42.DLL_CString::Find
mov dword [ebp - 0x238], eax
cmp dword [ebp - 0x238], 0
jle 0x407c62
mov eax, dword [ebp - 0x238]
add eax, 2
push eax
lea ecx, [ebp - 0x260]
push ecx
lea ecx, [ebp - 0x230]
call sub.MFC42.DLL_CString::Mid_1
mov dword [ebp - 0x284], eax
mov edx, dword [ebp - 0x284]
mov dword [ebp - 0x288], edx
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x288]
call fcn.00408e10
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0xc4], eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x260]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x230]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x22c]
call sub.MFC42.DLL_CFile::CFile
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0xc8], 0
jne 0x407d4f
lea ecx, [ebp - 0x248]
call fcn.00430110
mov byte [ebp - 4], 7
push 0
push 0x1001
push str.para.dat
push 0x43f5a8
lea eax, [ebp - 0x268]
push eax
call sub.MFC42.DLL_operator
mov dword [ebp - 0x28c], eax
mov ecx, dword [ebp - 0x28c]
mov dword [ebp - 0x290], ecx
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x290]
call fcn.00408e10
push eax
lea ecx, [ebp - 0x248]
call sub.MFC42.DLL_CFile::Open
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x264], al
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x268]
call sub.MFC42.DLL_CString::CString
mov edx, dword [ebp - 0x264]
and edx, 0xff
test edx, edx
je 0x407d40
mov ecx, 0x43f594
call fcn.00408dd0
push eax
mov ecx, 0x43f594
call fcn.00408e10
push eax
lea ecx, [ebp - 0x248]
call sub.MFC42.DLL_CFile::Write
lea ecx, [ebp - 0x248]
call sub.MFC42.DLL_CFile::Close
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x248]
call sub.MFC42.DLL_CFile::CFile
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret