Function at 0x406d50
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x108]
push ebx
push eax
call sub.MSVCRT.dll_strcpy
push ebx
call sub.MSVCRT.dll_strlen
add esp, 0xc
cmp byte [eax + ebx - 1], 0x5c
jne 0x406d86
push ebx
call sub.MSVCRT.dll_strlen
and byte [eax + ebx - 1], 0
pop ecx
lea eax, [ebp - 0x108]
push eax
call sub.MSVCRT.dll_strlen
cmp byte [ebp + eax - 0x109], 0x5c
pop ecx
jne 0x406da4
push 0x40ee98
jmp 0x406da9
push 0x40ebd4
lea eax, [ebp - 0x108]
push eax
call sub.MSVCRT.dll_strcat
pop ecx
lea eax, [ebp - 0x248]
pop ecx
mov dword [ebp + 8], 1
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x406de1
xor eax, eax
jmp 0x406fe5
push esi
push edi
mov edi, dword [sym.imp.MSVCRT.dll_strstr]
lea eax, [ebp - 0x21c]
push 0x40e758
push eax
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
je 0x406fbf
lea eax, [ebp - 0x21c]
push 0x40e754
push eax
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
je 0x406fbf
lea eax, [ebp - 0x108]
push ebx
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x108]
push 0x40d090
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x108]
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x108]
push eax
call sub.MSVCRT.dll_strlen
add esp, 0x1c
xor esi, esi
test eax, eax
jle 0x406e87
mov cl, byte [ebp + esi - 0x108]
lea edx, [ebp + esi - 0x108]
cmp cl, 0x41
jl 0x406e82
cmp cl, 0x5a
jg 0x406e82
add cl, 0x20
mov byte [edx], cl
inc esi
cmp esi, eax
jl 0x406e65
cmp dword [ebp - 0x248], 0x10
jne 0x406ec8
push dword [ebp + 0xc]
lea eax, [ebp - 0x108]
push eax
call fcn.00406d50
neg eax
sbb eax, eax
pop ecx
and eax, dword [ebp + 8]
pop ecx
mov dword [ebp + 8], eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x406fbf
and dword [ebp + 8], eax
jmp 0x406fbf
cmp dword [ebp + 0xc], 0
je 0x406f82
lea eax, [ebp - 0x108]
push str.ad001.gif
push eax
call edi
pop ecx
test eax, eax
pop ecx
jne 0x406fbf
lea eax, [ebp - 0x108]
push str.ad002.gif
push eax
call edi
pop ecx
test eax, eax
pop ecx
jne 0x406fbf
lea eax, [ebp - 0x108]
push str.admain.gif
push eax
call edi
pop ecx
test eax, eax
pop ecx
jne 0x406fbf
lea eax, [ebp - 0x108]
push str.ad_new.gif
push eax
call edi
pop ecx
test eax, eax
pop ecx
jne 0x406fbf
lea eax, [ebp - 0x108]
push str.ad_banner.htm
push eax
call edi
pop ecx
test eax, eax
pop ecx
jne 0x406fbf
lea eax, [ebp - 0x108]
push str.ad_bannernew.htm
push eax
call edi
pop ecx
test eax, eax
pop ecx
jne 0x406fbf
lea eax, [ebp - 0x108]
push str.addefault_main.swf
push eax
call edi
pop ecx
test eax, eax
pop ecx
jne 0x406fbf
lea eax, [ebp - 0x108]
push str.addefault_new.swf
push eax
call edi
pop ecx
test eax, eax
pop ecx
jne 0x406fbf
lea eax, [ebp - 0x108]
push str.deletetip.gif
push eax
call edi
pop ecx
test eax, eax
pop ecx
je 0x406fa8
lea eax, [ebp - 0x108]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
and eax, dword [ebp + 8]
mov dword [ebp + 8], eax
lea eax, [ebp - 0x248]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x406de9
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret