Function at 0x414d90
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x498f37
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x20]
push eax
mov edi, ecx
call fcn.00407140
push str..
push eax
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x50], 0
call fcn.00401050
add esp, 0xc
lea ecx, [esp + 0x20]
mov byte [esp + 0x44], 2
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x24]
call sub.MFC71.DLL_CFileFind::CFileFind
push 0
lea ecx, [esp + 0x20]
mov byte [esp + 0x48], 3
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
lea ecx, [esp + 0x2c]
call sub.MFC71.DLL_CFileFind::FindFile
test eax, eax
je 0x414f10
mov edi, edi
lea ecx, [esp + 0x24]
call sub.MFC71.DLL_CFileFind::FindNextFileA
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x28]
mov ebp, eax
call sub.MFC71.DLL_CFileFind::GetFileTitle
lea ecx, [esp + 0x10]
mov byte [esp + 0x44], 4
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::IsEmpty]
test al, al
jne 0x414ef9
push 0x4a26a0
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Compare]
test eax, eax
je 0x414ef9
push 0x4a269c
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Compare]
test eax, eax
je 0x414ef9
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 0x414ef9
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetLength]
cmp esi, eax
jge 0x414ef9
push esi
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Left]
mov ecx, eax
mov byte [esp + 0x44], 5
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
mov ecx, edi
call fcn.0040a9b0
mov ebx, eax
neg ebx
sbb bl, bl
lea ecx, [esp + 0x18]
inc bl
mov byte [esp + 0x44], 4
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
test bl, bl
je 0x414ef9
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x28]
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 + 0x44], 3
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
test ebp, ebp
jne 0x414e10
mov ebx, dword [edi + 0x3a4]
test ebx, ebx
jle 0x414fb9
xor edx, edx
xor eax, eax
test ebx, ebx
jle 0x414f6d
test eax, eax
jl 0x4150d0
cmp eax, dword [edi + 0x3a4]
jge 0x4150d0
mov ecx, dword [edi + 0x3a0]
mov ecx, dword [ecx + eax*4]
mov esi, dword [ecx + 0x238]
test esi, esi
je 0x414f62
mov esi, dword [ecx + 0x27c]
test esi, esi
jne 0x414f62
mov ecx, dword [ecx + 0x22c]
shr ecx, 0x14
add edx, ecx
mov ecx, dword [edi + 0x3a4]
inc eax
cmp eax, ecx
jl 0x414f26
mov eax, dword [edi + 0x4f8]
test eax, eax
jle 0x414fb9
cmp edx, eax
jle 0x414fb9
dec ebx
js 0x414fb9
lea ebp, [edi + 0x39c]
test ebx, ebx
jl 0x4150d0
cmp ebx, dword [ebp + 8]
jge 0x4150d0
mov edx, dword [ebp + 4]
mov esi, dword [edx + ebx*4]
mov eax, dword [esi + 0x24]
test eax, eax
jne 0x414fb6
mov eax, dword [esi + 0x278]
test eax, eax
jne 0x414fb6
mov eax, dword [esi + 0x27c]
test eax, eax
je 0x414fe6
dec ebx
jns 0x414f84
lea ecx, [esp + 0x24]
mov byte [esp + 0x44], 2
call fcn.00496456
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret
mov ecx, dword [edi + 0x160]
test ecx, ecx
je 0x414ff6
push esi
call fcn.00404670
push esi
lea eax, [esp + 0x14]
push eax
mov ecx, edi
call fcn.0040aa40
push str..jfrec
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x20]
push edx
mov byte [esp + 0x50], 6
call fcn.00401050
push str..inpart
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x28]
push ecx
mov byte [esp + 0x5c], 7
call fcn.00401050
add esp, 0x18
mov eax, dword [esi + 0x238]
test eax, eax
mov byte [esp + 0x44], 8
je 0x415051
push 1
push esi
mov ecx, edi
call fcn.00412120
mov dword [esi + 0x240], 1
cmp dword [edi + 0x394], esi
jne 0x41506d
mov dword [edi + 0x394], 0
push 1
push ebx
mov ecx, ebp
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 + 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call esi
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call esi
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
jmp 0x414fb9
jmp fcn.0049641a