Function at 0x414d80
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42989e
mov eax, dword fs:[0]
push eax
sub esp, 0x270
mov eax, dword [0x43c014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x240]
xorps xmm0, xmm0
push eax
push dword [ebp + 8]
movlpd qword [ebp - 0x240], xmm0
movlpd qword [ebp - 0x238], xmm0
movlpd qword [ebp - 0x230], xmm0
call dword [sym.imp.mfc140u.dll_CFile::GetStatus]
test eax, eax
je 0x415009
test byte [ebp - 0x220], 0x10
je 0x415009
push str..txt
lea edx, [ebp + 8]
lea ecx, [ebp - 0x258]
call fcn.00401d00
add esp, 4
lea ecx, [ebp - 0x27c]
mov byte [ebp - 4], 1
call dword [sym.imp.mfc140u.dll_CFileFind::CFileFind]
xor esi, esi
xor edi, edi
xor ebx, ebx
mov dword [ebp - 0x254], edi
mov dword [ebp - 0x250], ebx
mov dword [ebp - 0x248], esi
mov dword [ebp - 0x24c], esi
push esi
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x27c]
push dword [ebp - 0x258]
call dword [sym.imp.mfc140u.dll_CFileFind::FindFile]
test eax, eax
je 0x414f42
jmp 0x414e66
mov esi, dword [ebp - 0x248]
lea ecx, [ebp - 0x27c]
call dword [sym.imp.mfc140u.dll_CFileFind::FindNextFileW]
mov dword [ebp - 0x25c], eax
lea ecx, [ebp - 0x27c]
lea eax, [ebp - 0x244]
push eax
call dword [sym.imp.mfc140u.dll_CFileFind::GetFileName]
lea eax, [ebp - 0x244]
mov byte [ebp - 4], 4
cmp eax, ebx
jae 0x414edd
cmp edi, eax
ja 0x414edd
mov esi, eax
sub esi, edi
sar esi, 2
cmp ebx, dword [ebp - 0x248]
jne 0x414ed0
push ecx
lea ecx, [ebp - 0x254]
call fcn.00407ab0
mov eax, dword [ebp - 0x24c]
mov ebx, dword [ebp - 0x250]
mov edi, dword [ebp - 0x254]
mov dword [ebp - 0x248], eax
lea eax, [edi + esi*4]
mov byte [ebp - 4], 5
test ebx, ebx
je 0x414f1c
jmp 0x414f13
cmp ebx, esi
jne 0x414f05
push ecx
lea ecx, [ebp - 0x254]
call fcn.00407ab0
mov eax, dword [ebp - 0x24c]
mov ebx, dword [ebp - 0x250]
mov edi, dword [ebp - 0x254]
mov dword [ebp - 0x248], eax
mov byte [ebp - 4], 6
test ebx, ebx
je 0x414f1c
lea eax, [ebp - 0x244]
push eax
mov ecx, ebx
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__13]
add ebx, 4
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x244]
mov dword [ebp - 0x250], ebx
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
cmp dword [ebp - 0x25c], 0
jne 0x414e60
mov eax, ebx
sub eax, edi
sar eax, 2
cmp eax, 0x14
ja 0x414f5e
lea ecx, [ebp - 0x254]
call fcn.00407940
jmp 0x414ff1
mov esi, edi
lea edi, [edi + eax*4]
add edi, 0xffffffb0
cmp dword [ebp - 0x254], edi
je 0x414fba
nop
push 0x42ea98
lea edx, [ebp + 8]
lea ecx, [ebp - 0x244]
call fcn.00401d00
add esp, 4
push esi
lea ecx, [ebp - 0x244]
mov byte [ebp - 4], 7
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::Append_1]
push dword [ebp - 0x244]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x244]
mov byte [ebp - 4], 3
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
add esi, 4
cmp esi, edi
jne 0x414f70
mov esi, dword [ebp - 0x254]
test esi, esi
je 0x414ff1
mov edi, esi
cmp esi, ebx
je 0x414fdf
nop word [eax + eax]
mov ecx, edi
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
add edi, 4
cmp edi, ebx
jne 0x414fd0
mov eax, dword [ebp - 0x248]
sub eax, esi
sar eax, 2
push eax
push esi
call fcn.00401f40
lea ecx, [ebp - 0x27c]
call dword [0x42c970]
lea ecx, [ebp - 0x258]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp + 8]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00426682
mov esp, ebp
pop ebp
ret 4