Function at 0x402c52
Capabilities:
Check if file exists

Disassembly:
push ebp
lea ebp, [esp - 0x1054]
mov eax, 0x1054
call fcn.0040f410
push 0xffffffffffffffff
push 0x410788
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x41c028]
xor eax, ebp
mov dword [ebp + 0x1050], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor ebx, ebx
push ebx
mov edi, ecx
call dword [sym.imp.SolvusoftWMhelper.dll_int___cdecl_DisableFsRedirection_void___]
pop ecx
lea ecx, [ebp - 0x2c]
call sub.mfc90u.dll_CFile::CFile
push 0x210
lea eax, [ebp + 0xe40]
push ebx
push eax
mov dword [ebp - 4], ebx
call sub.MSVCR90.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x14]
call dword [0x41278c]
push 0xe3e
lea eax, [ebp]
push ebx
push eax
mov byte [ebp - 4], 1
call sub.MSVCR90.dll_memset
add esp, 0xc
push dword [edi]
lea eax, [ebp]
call fcn.00401291
lea eax, [ebp + 0x410]
push eax
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
lea ecx, [ebp + 0x416]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
mov esi, eax
mov byte [ebp - 4], 2
call fcn.00403cb4
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_2]
lea ecx, [ebp - 0x1c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
push ebx
mov byte [ebp - 4], 4
mov edi, dword [edi]
push 0x8000
push edi
lea ecx, [ebp - 0x2c]
call sub.mfc90u.dll_CFile::Open
cmp eax, ebx
je 0x402e5e
push 4
lea eax, [ebp + 0xe40]
push eax
lea ecx, [ebp - 0x2c]
call sub.mfc90u.dll_CFile::Read
cmp eax, 4
jne 0x402e5e
mov esi, 0x208
push esi
lea eax, [ebp + 0xe44]
push eax
lea ecx, [ebp - 0x2c]
call sub.mfc90u.dll_CFile::Read
cmp eax, esi
jne 0x402e5e
mov eax, dword [ebp + 0xe40]
xor ecx, ecx
mov edi, eax
mov edx, 0xc04
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.mfc90u.dll_new__
mov esi, eax
pop ecx
cmp esi, ebx
je 0x402db4
push esi
mov eax, edi
call fcn.00401009
mov eax, esi
jmp 0x402db6
xor eax, eax
mov esi, dword [ebp + 0xe40]
imul esi, esi, 0xc04
push esi
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp + 0x104c], eax
call sub.mfc90u.dll_CFile::Read
cmp eax, esi
jne 0x402e5e
lea ecx, [ebp - 0x2c]
call sub.mfc90u.dll_CFile::Close
cmp ebx, dword [ebp + 0xe40]
jge 0x402eab
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x18]
call dword [0x412774]
mov eax, ebx
imul eax, eax, 0xc04
mov byte [ebp - 4], 5
mov ecx, dword [ebp + 0x104c]
lea eax, [eax + ecx + 4]
push eax
lea ecx, [ebp - 0x1c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 6
call dword [sym.imp.SolvusoftWMhelper.dll_enum_PCO_ERROR_CODES___cdecl_STPathAppend_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t______class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t____const__]
pop ecx
pop ecx
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 5
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
push dword [ebp - 0x18]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x402e98
push dword [ebp + 0x104c]
call sub.mfc90u.dll_delete__
pop ecx
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0040e202
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1050]
xor ecx, ebp
call fcn.0040e9fc
add ebp, 0x1054
leave
ret
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
inc ebx
jmp 0x402de2
push dword [ebp + 0x104c]
call sub.mfc90u.dll_delete__
pop ecx
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0040e202
xor eax, eax
inc eax
jmp 0x402e75