Function at 0x418a20
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4a42d7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x24]
push eax
mov edi, ecx
call fcn.00407a20
push str..
push eax
lea ecx, [esp + 0x28]
push ecx
mov dword [esp + 0x54], 0
call fcn.004010a0
add esp, 0xc
lea ecx, [esp + 0x24]
mov byte [esp + 0x48], 2
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x28]
call fcn.004a117a
push 0
lea ecx, [esp + 0x24]
mov byte [esp + 0x4c], 3
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
lea ecx, [esp + 0x30]
call sub.MFC71.DLL_CFileFind::FindFile
test eax, eax
je 0x418ba0
mov edi, edi
lea ecx, [esp + 0x28]
call sub.MFC71.DLL_CFileFind::FindNextFileA
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x2c]
mov ebp, eax
call sub.MFC71.DLL_CFileFind::GetFileTitle
lea ecx, [esp + 0x10]
mov byte [esp + 0x48], 4
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::IsEmpty]
test al, al
jne 0x418b89
push 0x4aec14
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Compare]
test eax, eax
je 0x418b89
push 0x4aecd0
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Compare]
test eax, eax
je 0x418b89
push 0
push 0x2e
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Find_1]
mov esi, eax
test esi, esi
jle 0x418b89
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetLength]
cmp esi, eax
jge 0x418b89
push esi
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Left]
mov ecx, eax
mov byte [esp + 0x48], 5
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
mov ecx, edi
call fcn.0040c770
mov ebx, eax
neg ebx
sbb bl, bl
lea ecx, [esp + 0x1c]
inc bl
mov byte [esp + 0x48], 4
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
test bl, bl
je 0x418b89
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x2c]
call sub.MFC71.DLL_CFileFind::GetFilePath
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x10]
mov byte [esp + 0x48], 3
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
test ebp, ebp
jne 0x418aa0
mov eax, dword [edi + 0x3a4]
test eax, eax
jle 0x418d59
xor edx, edx
xor esi, esi
xor ecx, ecx
test eax, eax
mov dword [esp + 0x14], 0xffffffff
jle 0x418d59
lea ebx, [edi + 0x39c]
lea ebx, [ebx]
test ecx, ecx
jl 0x418d86
cmp ecx, dword [ebx + 8]
jge 0x418d86
mov eax, dword [ebx + 4]
mov eax, dword [eax + ecx*4]
mov ebp, dword [eax + 0x238]
test ebp, ebp
je 0x418c06
mov ebp, dword [eax + 0x27c]
test ebp, ebp
jne 0x418c06
mov ebp, dword [eax + 0x22c]
shr ebp, 0x14
add edx, ebp
mov ebp, dword [eax + 0x24]
test ebp, ebp
jne 0x418c39
mov ebp, dword [eax + 0x278]
test ebp, ebp
jne 0x418c39
mov ebp, dword [eax + 0x27c]
test ebp, ebp
jne 0x418c39
test esi, esi
je 0x418c33
mov ebp, dword [esi + 0x268]
cmp ebp, dword [eax + 0x268]
jl 0x418c35
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [edi + 0x3a4]
inc ecx
cmp ecx, eax
jl 0x418bd0
test esi, esi
je 0x418d59
mov eax, dword [edi + 0x518]
test eax, eax
je 0x418d59
mov eax, dword [edi + 0x514]
test eax, eax
jle 0x418d59
cmp edx, eax
jle 0x418d59
mov ecx, dword [edi + 0x160]
test ecx, ecx
je 0x418c80
push esi
call fcn.00404cf0
push esi
lea ecx, [esp + 0x14]
push ecx
mov ecx, edi
call fcn.0040c800
push str..jfrec
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x24]
push eax
mov byte [esp + 0x54], 6
call fcn.004010a0
push str..inpart
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x2c]
push edx
mov byte [esp + 0x60], 7
call fcn.004010a0
add esp, 0x18
mov eax, dword [esi + 0x238]
test eax, eax
mov byte [esp + 0x48], 8
je 0x418cdb
push 1
push esi
mov ecx, edi
call fcn.00417290
mov dword [esi + 0x240], 1
cmp dword [edi + 0x394], esi
jne 0x418cf7
mov dword [edi + 0x394], 0
mov eax, dword [esp + 0x14]
push 1
push eax
mov ecx, ebx
call sub.MFC71.DLL_CPtrArray::RemoveAt
push esi
call sub.MFC71.DLL_operator_delete_1
add esp, 4
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push eax
call esi
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call esi
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call esi
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x28]
mov byte [esp + 0x48], 2
call sub.MFC71.DLL_CFileFind::CFileFind
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ecx, dword [esp + 0x40]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x3c
ret
jmp fcn.004a11bc