Function at 0x40d950
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x41850b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x124
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x2c], ecx
lea ecx, [esp + 0x3c]
mov dword [esp + 0x13c], 0
call fcn.004160f0
mov eax, dword [esp + 0x144]
lea ecx, [esp + 0x6c]
push eax
push 0x421454
push ecx
mov byte [esp + 0x148], 1
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea edx, [esp + 0x6c]
lea ecx, [esp + 0x3c]
push 0
push edx
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
je 0x40dc50
mov ebp, dword [esp + 0x14c]
mov edi, dword [esp + 0x148]
mov esi, dword [sym.imp.MSVCRT.dll__mbscmp]
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CFileFind::FindNextFileA
lea ecx, [esp + 0x3c]
mov dword [esp + 0x24], eax
call sub.MFC42.DLL_CFileFind::IsDots
test eax, eax
jne 0x40dc03
lea eax, [esp + 0x34]
lea ecx, [esp + 0x3c]
push eax
call sub.MFC42.DLL_CFileFind::GetFileName
push 0x100
mov ecx, eax
mov byte [esp + 0x140], 2
call sub.MFC42.DLL_CString::GetBuffer
push eax
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x34]
mov byte [esp + 0x13c], 4
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x3c]
push 0x10
lea ecx, [esp + 0x40]
call dword [edx + 0x40]
test eax, eax
je 0x40daaf
lea eax, [esp + 0x144]
push 0x42108c
lea ecx, [esp + 0x2c]
push eax
push ecx
call sub.MFC42.DLL_operator_2
lea edx, [esp + 0x18]
mov byte [esp + 0x13c], 5
push edx
push eax
lea eax, [esp + 0x24]
push eax
call sub.MFC42.DLL_operator
lea ecx, [esp + 0x28]
mov byte [esp + 0x13c], 7
call sub.MFC42.DLL_CString::CString
push ebp
push edi
push ecx
lea edx, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x74], esp
push edx
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [esp + 0x38]
call fcn.0040d950
mov byte [esp + 0x13c], 4
lea ecx, [esp + 0x1c]
jmp 0x40dbed
lea eax, [esp + 0x20]
lea ecx, [esp + 0x3c]
push eax
call sub.MFC42.DLL_CFileFind::GetFileName
push 0xc8
mov ecx, eax
mov byte [esp + 0x140], 8
call sub.MFC42.DLL_CString::GetBuffer
push eax
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x20]
mov byte [esp + 0x13c], 0xa
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x144]
push 0x42108c
lea edx, [esp + 0x3c]
push ecx
push edx
call sub.MFC42.DLL_operator_2
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
push eax
push edx
mov byte [esp + 0x148], 0xb
call sub.MFC42.DLL_operator
lea ecx, [esp + 0x38]
mov byte [esp + 0x13c], 0xd
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x10]
push str.Thumbs.db
push eax
call esi
add esp, 8
test eax, eax
je 0x40dbc5
lea ecx, [esp + 0x30]
push 4
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Right
mov eax, dword [eax]
push str..rar
push eax
call esi
add esp, 8
lea ecx, [esp + 0x30]
test eax, eax
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x40db9c
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CFileFind::GetLength
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], 0
fild qword [esp + 0x58]
fst qword [edi]
fcomp qword [0x41d468]
fnstsw ax
test ah, 0x41
je 0x40dc11
jmp 0x40dbd0
lea edx, [esp + 0x14]
mov ecx, ebp
push edx
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CFileFind::GetLength
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], 0
fild qword [esp + 0x60]
fstp qword [edi]
jmp 0x40dbd0
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x14]
mov byte [esp + 0x13c], 0xa
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x13c], 4
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x13c], 1
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x40d9d6
jmp 0x40dc50
lea ecx, [esp + 0x14]
push ecx
mov ecx, ebp
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x14]
mov byte [esp + 0x13c], 0xa
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x13c], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x13c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CFileFind::Close
lea ecx, [esp + 0x3c]
mov byte [esp + 0x13c], 0
call sub.MFC42.DLL_CFileFind::CFileFind
lea ecx, [esp + 0x144]
mov dword [esp + 0x13c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x134]
pop edi
pop esi
pop ebp
mov eax, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x130
ret 0xc