Function at 0x412520
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x421eed
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
push ebx
push esi
push edi
mov eax, dword [0x436028]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0
call sub.mfc90u.dll_CStringArray::CStringArray
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.0041dd7a
push 0
mov byte [ebp - 4], 2
mov eax, dword [ebp + 0xc]
push 0
push eax
lea ecx, [ebp - 0x2c]
call sub.mfc90u.dll_CFile::Open
test eax, eax
je 0x4125e6
push 0
push 0x1000
push 1
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x88]
call sub.mfc90u.dll_CArchive::CArchive
mov ebx, 3
mov byte [ebp - 4], bl
test byte [ebp - 0x70], 1
je 0x4125c5
lea edx, [ebp - 0x88]
push edx
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 4
call sub.mfc90u.dll_CStringArray::Serialize
lea ecx, [ebp - 0x88]
call sub.mfc90u.dll_CArchive::Close
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x2c]
call sub.mfc90u.dll_CFile::Close
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 2
call fcn.0041dc3c
mov eax, dword [ebp - 0x38]
xor esi, esi
mov dword [ebp - 0x18], eax
test eax, eax
jle 0x412691
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
jmp 0x412618
mov eax, dword [ebp - 0x38]
test esi, esi
jl 0x4126ed
cmp esi, eax
jge 0x4126ed
mov edx, dword [ebp - 0x3c]
lea eax, [edx + esi*4]
push eax
lea ecx, [ebp - 0x14]
call dword [0x424970]
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x14]
push eax
call ebx
test eax, eax
je 0x41267e
push ecx
lea edx, [ebp - 0x14]
mov ecx, esp
mov dword [ebp - 0x1c], esp
push edx
call dword [0x424970]
call dword [sym.imp.ASOHelper.dll_enum_PCO_ERROR_CODES___cdecl_IsTargetFolder_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t____]
add esp, 4
test eax, eax
jne 0x41267e
lea edi, [ebp - 0x14]
call fcn.00402770
test al, al
je 0x41267e
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
call fcn.00411c50
test al, al
je 0x4126de
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
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 esi
cmp esi, dword [ebp - 0x18]
jl 0x412615
mov ecx, dword [ebp + 8]
push 0x4b0
mov dword [ecx + 0x1018], 1
call dword [sym.imp.ASOHelper.dll_public:_void___thiscall_CDlgLeftSideChild::ChangeTheRightSideStep_enum_DLG_BTN_STEPS_]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call sub.mfc90u.dll_CFile::CFile
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.0041d960
lea ecx, [ebp + 0xc]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
jmp 0x412691
call sub.mfc90u.dll_AfxThrowInvalidArgException
int3