Function at 0x40e050
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x41860e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x114
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x14]
push 1
push eax
lea ecx, [esp + 0x140]
mov dword [esp + 0x134], 1
call sub.MFC42.DLL_CString::Right
mov eax, dword [eax]
mov edi, dword [sym.imp.MSVCRT.dll__mbscmp]
push 0x42108c
push eax
call edi
add esp, 8
lea ecx, [esp + 0x14]
test eax, eax
setne bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x40e0c3
push 0x42108c
lea ecx, [esp + 0x13c]
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x38]
call fcn.004160f0
mov ecx, dword [esp + 0x138]
lea edx, [esp + 0x5c]
push ecx
push str._s.
push edx
mov byte [esp + 0x138], 2
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea eax, [esp + 0x5c]
lea ecx, [esp + 0x38]
push 0
push eax
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
je 0x40e35a
mov ebp, dword [esp + 0x13c]
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_CFileFind::FindNextFileA
lea ecx, [esp + 0x38]
mov dword [esp + 0x24], eax
call sub.MFC42.DLL_CFileFind::IsDots
test eax, eax
jne 0x40e34e
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CFileFind::GetFileName
push 0x100
mov ecx, eax
mov byte [esp + 0x130], 3
call sub.MFC42.DLL_CString::GetBuffer
push eax
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x30]
mov byte [esp + 0x12c], 5
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x38]
push 0x10
lea ecx, [esp + 0x3c]
call dword [edx + 0x40]
test eax, eax
je 0x40e1e8
lea eax, [esp + 0x14]
lea ecx, [esp + 0x138]
push eax
lea edx, [esp + 0x20]
push ecx
push edx
call sub.MFC42.DLL_operator
push ebp
push ecx
lea eax, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x5c], esp
push eax
mov byte [esp + 0x138], 6
call sub.MFC42.DLL_CString::CString_1
push ecx
lea edx, [esp + 0x140]
mov ecx, esp
mov dword [esp + 0x64], esp
push edx
mov byte [esp + 0x13c], 7
call sub.MFC42.DLL_CString::CString_1
mov byte [esp + 0x138], 6
call fcn.0040e050
add esp, 0xc
mov byte [esp + 0x12c], 5
lea ecx, [esp + 0x1c]
jmp 0x40e338
lea eax, [esp + 0x28]
lea ecx, [esp + 0x38]
push eax
call sub.MFC42.DLL_CFileFind::GetFileName
push 0xc8
mov ecx, eax
mov byte [esp + 0x130], 8
call sub.MFC42.DLL_CString::GetBuffer
push eax
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x28]
mov byte [esp + 0x12c], 0xa
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
lea edx, [esp + 0x138]
push ecx
lea eax, [esp + 0x1c]
push edx
push eax
call sub.MFC42.DLL_operator
mov ecx, dword [esp + 0x10]
push str.Thumbs.db
push ecx
mov byte [esp + 0x134], 0xb
call edi
add esp, 8
test eax, eax
je 0x40e310
lea edx, [esp + 0x2c]
push 4
push edx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Right
mov eax, dword [eax]
push str..jpg
push eax
mov byte [esp + 0x134], 0xc
call edi
add esp, 8
test eax, eax
jne 0x40e2e7
lea eax, [esp + 0x134]
push 0x422360
lea ecx, [esp + 0x38]
push eax
push ecx
call sub.MFC42.DLL_operator_2
mov esi, eax
lea edx, [esp + 0x20]
push 0xf
push edx
lea ecx, [esp + 0x18]
mov byte [esp + 0x134], 0xd
call sub.MFC42.DLL_CString::Left
mov esi, dword [esi]
mov eax, dword [eax]
push esi
push eax
call edi
add esp, 8
lea ecx, [esp + 0x20]
test eax, eax
sete bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x34]
mov byte [esp + 0x12c], 0xc
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x40e2e7
mov bl, 1
jmp 0x40e2e9
xor bl, bl
lea ecx, [esp + 0x2c]
mov byte [esp + 0x12c], 0xb
call sub.MFC42.DLL_CString::CString
test bl, bl
jne 0x40e31b
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x18]
push ecx
push eax
mov ecx, ebp
call sub.MFC42.DLL_CStringArray::SetAtGrow
jmp 0x40e31b
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x18]
mov byte [esp + 0x12c], 0xa
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x12c], 5
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x12c], 2
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x40e10e
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_CFileFind::Close
lea ecx, [esp + 0x38]
mov byte [esp + 0x12c], 1
call sub.MFC42.DLL_CFileFind::CFileFind
lea ecx, [esp + 0x134]
mov byte [esp + 0x12c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x138]
mov dword [esp + 0x12c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x124]
pop edi
pop esi
pop ebp
mov eax, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x120
ret