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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x423c5e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x678
push esi
push edi
mov dword [ebp - 0x640], ecx
mov dword [ebp - 0x568], 0
mov dword [ebp - 0x13c], 0
mov byte [ebp - 0x130], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x12f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x460], 0
mov dword [ebp - 0x138], 0
mov dword [ebp - 0x134], 0
mov byte [ebp - 0x45c], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x45b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x358], 0
mov ecx, 0x7f
xor eax, eax
lea edi, [ebp - 0x357]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov al, byte [0x4399fc]
mov byte [ebp - 0x564], al
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x563]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea ecx, [ebp - 0x158]
call sub.MFC42.DLL_CFileFind::CFileFind
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
jne 0x40edb8
jmp 0x40f44c
cmp dword [ebp + 0x10], 0
jne 0x40edd4
push 0x104
lea ecx, [ebp - 0x130]
push ecx
call fcn.0040ea68
add esp, 8
jmp 0x40eded
push 0x104
mov edx, dword [ebp + 0x10]
push edx
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
push 0x432778
lea ecx, [ebp - 0x130]
push ecx
push 0x43373c
lea edx, [ebp - 0x564]
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
push 0
lea eax, [ebp - 0x564]
push eax
lea ecx, [ebp - 0x158]
call sub.MFC42.DLL_CFileFind::FindFile
mov dword [ebp - 0x13c], eax
cmp dword [ebp - 0x13c], 0
je 0x40ee83
lea ecx, [ebp - 0x158]
call sub.MFC42.DLL_CFileFind::FindNextFileA
mov dword [ebp - 0x13c], eax
lea ecx, [ebp - 0x5fc]
push ecx
lea ecx, [ebp - 0x158]
call sub.MFC42.DLL_CFileFind::GetFileName
mov dword [ebp - 0x644], eax
mov edx, dword [ebp - 0x644]
mov eax, dword [edx]
push eax
push 0x433744
push 0x432778
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea ecx, [ebp - 0x5fc]
call sub.MFC42.DLL_CString::CString
jmp 0x40ee28
push 0x433748
lea ecx, [ebp - 0x130]
push ecx
call sub.MSVCRT.dll_strcat
add esp, 8
push 0
push str.DeleteFile.
call fcn.00410257
add esp, 8
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40eebe
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40eed6
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
lea eax, [ebp - 0x130]
push eax
lea ecx, [ebp - 0x158]
call sub.MFC42.DLL_CFileFind::FindFile
mov dword [ebp - 0x13c], eax
cmp dword [ebp - 0x13c], 0
je 0x40f324
lea ecx, [ebp - 0x158]
call sub.MFC42.DLL_CFileFind::FindNextFileA
mov dword [ebp - 0x13c], eax
lea ecx, [ebp - 0x158]
call fcn.00418720
test eax, eax
jne 0x40f31f
lea ecx, [ebp - 0x158]
call sub.MFC42.DLL_CFileFind::IsDots
test eax, eax
jne 0x40f31f
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x604]
push edx
lea ecx, [ebp - 0x158]
call sub.MFC42.DLL_CFileFind::GetFilePath
mov dword [ebp - 0x648], eax
mov eax, dword [ebp - 0x648]
mov dword [ebp - 0x64c], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x64c]
push ecx
call fcn.00408310
and eax, 0xff
test eax, eax
je 0x40f10f
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x60c]
push eax
lea ecx, [ebp - 0x158]
call sub.MFC42.DLL_CFileFind::GetFilePath
mov dword [ebp - 0x650], eax
mov ecx, dword [ebp - 0x650]
mov dword [ebp - 0x654], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x654]
push edx
call fcn.00408310
mov byte [ebp - 0x608], al
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x60c]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x608]
and eax, 0xff
test eax, eax
je 0x40f10f
push str.index.ini
lea ecx, [ebp - 0x614]
push ecx
lea ecx, [ebp - 0x158]
call sub.MFC42.DLL_CFileFind::GetFileName
mov dword [ebp - 0x658], eax
mov edx, dword [ebp - 0x658]
mov dword [ebp - 0x65c], edx
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x65c]
call fcn.00418740
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x610], al
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x614]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x610]
and eax, 0xff
test eax, eax
je 0x40f10f
push 0x433764
lea ecx, [ebp - 0x61c]
push ecx
lea ecx, [ebp - 0x158]
call sub.MFC42.DLL_CFileFind::GetFileName
mov dword [ebp - 0x660], eax
mov edx, dword [ebp - 0x660]
mov dword [ebp - 0x664], edx
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x664]
call fcn.00418740
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x618], al
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x61c]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x618]
and eax, 0xff
test eax, eax
je 0x40f10f
push str.JIndex.ini
lea ecx, [ebp - 0x624]
push ecx
lea ecx, [ebp - 0x158]
call sub.MFC42.DLL_CFileFind::GetFileName
mov dword [ebp - 0x668], eax
mov edx, dword [ebp - 0x668]
mov dword [ebp - 0x66c], edx
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x66c]
call fcn.00418740
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x620], al
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x624]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x620]
and eax, 0xff
test eax, eax
je 0x40f10f
mov dword [ebp - 0x670], 1
jmp 0x40f119
mov dword [ebp - 0x670], 0
mov cl, byte [ebp - 0x670]
mov byte [ebp - 0x600], cl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x604]
call sub.MFC42.DLL_CString::CString
mov edx, dword [ebp - 0x600]
and edx, 0xff
test edx, edx
je 0x40f31f
lea eax, [ebp - 0x5f4]
push eax
lea ecx, [ebp - 0x62c]
push ecx
lea ecx, [ebp - 0x158]
call sub.MFC42.DLL_CFileFind::GetFilePath
mov dword [ebp - 0x674], eax
mov edx, dword [ebp - 0x674]
mov dword [ebp - 0x678], edx
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x678]
call fcn.004040f0
push eax
mov ecx, dword [ebp - 0x640]
call fcn.004141db
mov dword [ebp - 0x628], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x62c]
call sub.MFC42.DLL_CString::CString
cmp dword [ebp - 0x628], 0
je 0x40f2b4
mov eax, dword [ebp - 0x460]
push eax
sub esp, 0x8c
mov ecx, 0x23
lea esi, [ebp - 0x5f4]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x640]
call fcn.004143da
mov dword [ebp - 0x5f8], 0
jmp 0x40f1f6
mov edx, dword [ebp - 0x5f8]
add edx, 1
mov dword [ebp - 0x5f8], edx
cmp dword [ebp - 0x5f8], 0xa
jge 0x40f2b2
mov eax, dword [ebp - 0x5f8]
imul eax, eax, 0x104
add eax, 0x432778
push eax
lea ecx, [ebp - 0x634]
push ecx
lea ecx, [ebp - 0x158]
call sub.MFC42.DLL_CFileFind::GetFileName
mov dword [ebp - 0x67c], eax
mov edx, dword [ebp - 0x67c]
mov dword [ebp - 0x680], edx
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x680]
call fcn.00418740
neg eax
sbb eax, eax
inc eax
mov byte [ebp - 0x630], al
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x634]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x630]
and eax, 0xff
test eax, eax
je 0x40f2ad
mov ecx, dword [ebp - 0x138]
push ecx
sub esp, 0x8c
mov ecx, 0x23
lea esi, [ebp - 0x5f4]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebp + 0xc]
push edx
mov ecx, dword [ebp - 0x640]
call fcn.004143da
mov eax, dword [ebp - 0x138]
add eax, 1
mov dword [ebp - 0x138], eax
jmp 0x40f2b2
jmp 0x40f1e7
jmp 0x40f310
lea ecx, [ebp - 0x638]
push ecx
lea ecx, [ebp - 0x158]
call sub.MFC42.DLL_CFileFind::GetFilePath
mov dword [ebp - 0x684], eax
mov edx, dword [ebp - 0x684]
mov eax, dword [edx]
push eax
push str.Cant_GetFileUpdateInfo:
push 0x433798
lea ecx, [ebp - 0x358]
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea ecx, [ebp - 0x638]
call sub.MFC42.DLL_CString::CString
push 0
lea edx, [ebp - 0x358]
push edx
call fcn.00410257
add esp, 8
jmp 0x40f44c
mov eax, dword [ebp - 0x460]
add eax, 1
mov dword [ebp - 0x460], eax
jmp 0x40eef0
lea ecx, [ebp - 0x158]
call sub.MFC42.DLL_CFileFind::Close
push 0x104
lea ecx, [ebp - 0x45c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x5c
lea edx, [ebp - 0x45c]
push edx
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 8
mov dword [ebp - 0x134], eax
cmp dword [ebp - 0x134], 0
jne 0x40f369
jmp 0x40f44c
mov eax, dword [ebp - 0x134]
add eax, 1
mov dword [ebp - 0x134], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x134]
push edx
push 0x4337a0
push 0x4337a8
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x134]
push ecx
push 0x4337b8
push 0x4337c0
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov edx, dword [ebp - 0x460]
push edx
push 0x4337d0
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x2c]
push edx
push 0x4337d4
push 0x4337dc
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov eax, dword [ebp - 0x138]
push eax
push 0x4337ec
lea ecx, [ebp - 0x2c]
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x2c]
push eax
push 0x4337f0
push 0x4337f8
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ecx, dword [ebp + 8]
push ecx
push 0x433808
push 0x43380c
push 0x433814
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov edx, dword [ebp + 0xc]
push edx
push 0x433824
push 0x433828
push str.MainFileVersion
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov dword [ebp - 0x568], 1
cmp dword [ebp - 0x568], 0
je 0x40f466
push 0
push str.Generate_Cur_Ini_File_Success.
call fcn.00410257
add esp, 8
jmp 0x40f475
push 0
push str.Generate_Cur_Ini_File_Failed.
call fcn.00410257
add esp, 8
mov eax, dword [ebp - 0x568]
mov dword [ebp - 0x63c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x158]
call fcn.0042292c
mov eax, dword [ebp - 0x63c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10