Function at 0x4080fd
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45c08f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x3c], 0
mov eax, dword [ebp - 0x5c]
cmp dword [eax + 0x528], 1
jge 0x408135
xor eax, eax
jmp 0x4082fa
lea ecx, [ebp - 0x38]
call sub.MFC42.DLL_CString::CString_3
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ecx + 0x53c]
push edx
mov eax, dword [ebp - 0x5c]
mov ecx, dword [eax + 0x538]
push ecx
push str._s_s_________.log
lea edx, [ebp - 0x38]
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
push ecx
mov ecx, esp
mov dword [ebp - 0x48], esp
push 0
push 0
push 0
mov eax, dword [ebp - 0x5c]
mov edx, dword [eax + 0x528]
neg edx
push edx
call fcn.00402130
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x44]
push ecx
call sub.MFC42.DLL_CTime::GetTickCount
mov ecx, eax
call fcn.00402190
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString_3
mov byte [ebp - 4], 1
push str._Y_m_d
lea edx, [ebp - 0x4c]
push edx
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CTime::Format
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x64], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x64]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp - 0x5c]
mov ecx, dword [eax + 0x53c]
push ecx
push str._s__s.log
lea edx, [ebp - 0x10]
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4c]
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x34]
call fcn.0045ab40
mov byte [ebp - 4], 3
push 0
lea ecx, [ebp - 0x38]
call fcn.004020c0
push eax
lea ecx, [ebp - 0x34]
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
jne 0x40824a
mov dword [ebp - 0x50], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
call sub.MFC42.DLL_CFileFind::CFileFind
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x50]
jmp 0x4082fa
lea ecx, [ebp - 0x34]
call sub.MFC42.DLL_CFileFind::FindNextFileA
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x34]
call sub.MFC42.DLL_CFileFind::GetFileName
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x40]
push edx
call fcn.00409370
and eax, 0xff
test eax, eax
je 0x4082b8
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x34]
call sub.MFC42.DLL_CFileFind::GetFilePath
mov dword [ebp - 0x68], eax
mov ecx, dword [ebp - 0x68]
mov dword [ebp - 0x6c], ecx
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x6c]
call fcn.004020c0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x54]
call sub.MFC42.DLL_CString::CString
mov edx, dword [ebp - 0x3c]
add edx, 1
mov dword [ebp - 0x3c], edx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x40]
call sub.MFC42.DLL_CString::CString
cmp dword [ebp - 0x14], 0
jne 0x40824a
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x58], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
call sub.MFC42.DLL_CFileFind::CFileFind
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret