Function at 0x4078c0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4293f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
push ebx
push ebp
xor eax, eax
push esi
mov esi, ecx
mov dword [esp + 0x29], eax
mov dword [esp + 0x2d], eax
push edi
mov eax, dword [esi + 8]
xor edi, edi
cmp eax, 1
mov dword [esp + 0x14], edi
mov byte [esp + 0x2c], 0
jge 0x407910
xor eax, eax
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [esi + 4]
mov edx, dword [esi]
push ecx
push edx
lea eax, [esp + 0x18]
push str._s_s__________.log
push eax
mov dword [esp + 0x6c], edi
call sub.MFC42.DLL_CString::Format
mov eax, dword [esi + 8]
add esp, 0xc
neg eax
mov ecx, esp
mov dword [esp + 0x2c], esp
lea eax, [eax + eax*2]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea edx, [eax + eax*8]
lea eax, [esp + 0x28]
shl edx, 7
mov dword [ecx], edx
lea ecx, [esp + 0x2c]
push eax
push ecx
call sub.MFC42.DLL_CTime::GetTickCount
mov ecx, eax
call fcn.00403ad0
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::CString_2
lea edx, [esp + 0x1c]
push str._Y_m_d
push edx
lea ecx, [esp + 0x2c]
mov byte [esp + 0x64], 1
call sub.MFC42.DLL_CTime::Format
mov eax, dword [eax]
lea ecx, [esp + 0x2c]
push eax
push 0x435020
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString
mov ebp, dword [sym.imp.MSVCRT.dll_atoi]
lea edx, [esp + 0x2c]
push edx
call ebp
add esp, 4
lea ecx, [esp + 0x38]
mov ebx, eax
call fcn.0042855e
mov eax, dword [esp + 0x10]
push edi
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x64], 2
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
jne 0x407a1d
lea ecx, [esp + 0x38]
mov byte [esp + 0x5c], 1
call sub.MFC42.DLL_CFileFind::CFileFind
lea ecx, [esp + 0x20]
mov byte [esp + 0x5c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x5c], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_CFileFind::FindNextFileA
lea ecx, [esp + 0x1c]
mov edi, eax
push ecx
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CFileFind::GetFileName
mov edx, dword [esi + 4]
push 8
lea ecx, [esp + 0x20]
mov byte [esp + 0x60], 3
mov eax, dword [edx - 8]
inc eax
push eax
lea eax, [esp + 0x20]
push eax
call sub.MFC42.DLL_CString::Mid_1
push 0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x60], 4
call sub.MFC42.DLL_CString::GetBuffer
push eax
call ebp
add esp, 4
cmp eax, ebx
jg 0x407a91
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CFileFind::GetFilePath
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::CString
inc dword [esp + 0x14]
lea ecx, [esp + 0x18]
mov byte [esp + 0x5c], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x5c], 2
call sub.MFC42.DLL_CString::CString
test edi, edi
jne 0x407a1d
lea ecx, [esp + 0x38]
mov byte [esp + 0x5c], 1
call sub.MFC42.DLL_CFileFind::CFileFind
lea ecx, [esp + 0x20]
mov byte [esp + 0x5c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x5c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x50
ret