Function at 0x497f98
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x50d1d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
push esi
mov esi, ecx
push edi
mov dword [esp + 0x14], esi
mov eax, dword [esi + 0x58]
test eax, eax
jne 0x497fbf
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
add esp, 0x4c
ret 4
mov ecx, dword [esp + 0x58]
cmp eax, 2
mov edx, 7
jne 0x497feb
cmp word [ecx + 0x24], dx
je 0x497feb
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
add esp, 0x4c
ret 4
cmp eax, 1
jne 0x498018
cmp word [ecx + 0x24], dx
jne 0x498000
mov edi, dword [ecx + 0x220]
test edi, edi
jne 0x498018
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
add esp, 0x4c
ret 4
cmp eax, 3
jne 0x49803b
cmp word [ecx + 0x24], dx
jne 0x49803b
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
add esp, 0x4c
ret 4
mov eax, dword [esi + 0x54]
lea ecx, [esp + 0x24]
push ecx
push eax
call dword [sym.imp.MSVCRT.dll__stat]
add esp, 8
test eax, eax
jl 0x498069
mov edx, dword [esi + 0x5c]
mov eax, dword [esp + 0x38]
shl edx, 0xa
cmp eax, edx
jle 0x498069
mov eax, dword [esi + 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [esi + 0x54]
push 0x547008
push eax
mov dword [esp + 0x58], 0
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
jne 0x4980b8
lea ecx, [esp + 8]
mov dword [esp + 0x50], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
add esp, 0x4c
ret 4
push ebx
push ebp
push str._n
lea ecx, [esp + 0x14]
call fcn.004c8322
mov eax, dword [esp + 0x10]
mov ebp, dword [sym.imp.MSVCRT.dll_fputs]
push esi
push eax
call ebp
add esp, 8
lea ecx, [esp + 0x18]
push ecx
call sub.MFC42.DLL_CTime::GetTickCount
push 0
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CTime::GetLocalTm
mov ebx, dword [eax]
push 0
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CTime::GetLocalTm
mov edx, dword [eax + 4]
push 0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x24], edx
call sub.MFC42.DLL_CTime::GetLocalTm
mov eax, dword [eax + 8]
push 0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x28], eax
call sub.MFC42.DLL_CTime::GetLocalTm
mov ecx, dword [eax + 0xc]
push 0
mov dword [esp + 0x2c], ecx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CTime::GetLocalTm
mov edi, dword [eax + 0x10]
push 0
lea ecx, [esp + 0x1c]
inc edi
call sub.MFC42.DLL_CTime::GetLocalTm
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov eax, dword [eax + 0x14]
push ebx
push edx
mov edx, dword [esp + 0x30]
push ecx
add eax, 0x76c
push edx
push edi
push eax
lea eax, [esp + 0x28]
push str._n_04d._02d._02d__02d:_02d:_02d
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x30]
push esi
push ecx
call ebp
add esp, 0x28
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_3
mov edi, dword [esp + 0x1c]
mov byte [esp + 0x58], 1
test byte [edi + 0x60], 1
je 0x4981eb
mov ebx, dword [esp + 0x60]
xor eax, eax
lea edx, [esp + 0x10]
mov ax, word [ebx + 0x24]
push edx
push eax
call fcn.004925f0
mov ecx, dword [esp + 0x18]
add esp, 8
xor edx, edx
lea eax, [esp + 0x14]
mov dx, word [ebx + 0x24]
push ecx
push edx
push str.__2d__s
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x24]
add esp, 0x10
lea edx, [esp + 0x10]
push ecx
push 0xe3
push edx
call sub.MFC42.DLL_CString::Format_1
push esi
push 0x5470cc
call ebp
mov eax, dword [esp + 0x24]
push esi
push eax
call ebp
add esp, 0x1c
jmp 0x4981ef
mov ebx, dword [esp + 0x60]
test byte [edi + 0x60], 2
je 0x49821e
lea ecx, [ebx + 0x9a]
lea edx, [esp + 0x10]
push ecx
push 0xe4
push edx
call sub.MFC42.DLL_CString::Format_1
push esi
push 0x5470cc
call ebp
mov eax, dword [esp + 0x24]
push esi
push eax
call ebp
add esp, 0x1c
test byte [edi + 0x60], 4
je 0x49824d
lea ecx, [ebx + 0xdc]
lea edx, [esp + 0x10]
push ecx
push 0xe5
push edx
call sub.MFC42.DLL_CString::Format_1
push esi
push 0x5470cc
call ebp
mov eax, dword [esp + 0x24]
push esi
push eax
call ebp
add esp, 0x1c
test byte [edi + 0x60], 8
je 0x49828b
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0xc]
push eax
lea ecx, [esp + 0x18]
call fcn.004c8322
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
push 0xe6
push ecx
call sub.MFC42.DLL_CString::Format_1
push esi
push 0x5470cc
call ebp
mov edx, dword [esp + 0x24]
push esi
push edx
call ebp
add esp, 0x1c
test byte [edi + 0x60], 0x10
je 0x4982cc
lea edx, [ebx + 0x11f]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4982c8
push edx
lea eax, [esp + 0x14]
push 0xe7
push eax
call sub.MFC42.DLL_CString::Format_1
push esi
push 0x5470cc
call ebp
mov ecx, dword [esp + 0x24]
push esi
push ecx
call ebp
add esp, 0x1c
mov edi, dword [esp + 0x1c]
mov eax, dword [ebx + 0x220]
test eax, eax
je 0x49831c
test byte [edi + 0x60], 0x20
je 0x49831c
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Empty
mov edx, dword [ebx + 0x220]
lea ecx, [esp + 0x14]
push edx
call sub.MFC42.DLL_CString::LoadStringA
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
push 0xe8
push ecx
call sub.MFC42.DLL_CString::Format_1
push esi
push 0x5470cc
call ebp
mov edx, dword [esp + 0x24]
push esi
push edx
call ebp
add esp, 0x1c
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
lea ecx, [esp + 0x14]
mov byte [esp + 0x58], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x58], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x50]
pop ebp
pop ebx
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x4c
ret 4