Function at 0x406c7b
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 0x406cb1
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 0x406ccf
push 0x40edd0
jmp 0x406cd4
push 0x40eb0c
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 0x406d0c
xor eax, eax
jmp 0x406f10
push esi
push edi
mov edi, dword [sym.imp.MSVCRT.dll_strstr]
lea eax, [ebp - 0x21c]
push 0x40e690
push eax
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
je 0x406eea
lea eax, [ebp - 0x21c]
push 0x40e68c
push eax
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
je 0x406eea
lea eax, [ebp - 0x108]
push ebx
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x108]
push 0x40d0a0
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 0x406db2
mov cl, byte [ebp + esi - 0x108]
lea edx, [ebp + esi - 0x108]
cmp cl, 0x41
jl 0x406dad
cmp cl, 0x5a
jg 0x406dad
add cl, 0x20
mov byte [edx], cl
inc esi
cmp esi, eax
jl 0x406d90
cmp dword [ebp - 0x248], 0x10
jne 0x406df3
push dword [ebp + 0xc]
lea eax, [ebp - 0x108]
push eax
call fcn.00406c7b
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 0x406eea
and dword [ebp + 8], eax
jmp 0x406eea
cmp dword [ebp + 0xc], 0
je 0x406ead
lea eax, [ebp - 0x108]
push str.ad001.gif
push eax
call edi
pop ecx
test eax, eax
pop ecx
jne 0x406eea
lea eax, [ebp - 0x108]
push str.ad002.gif
push eax
call edi
pop ecx
test eax, eax
pop ecx
jne 0x406eea
lea eax, [ebp - 0x108]
push str.admain.gif
push eax
call edi
pop ecx
test eax, eax
pop ecx
jne 0x406eea
lea eax, [ebp - 0x108]
push str.ad_new.gif
push eax
call edi
pop ecx
test eax, eax
pop ecx
jne 0x406eea
lea eax, [ebp - 0x108]
push str.ad_banner.htm
push eax
call edi
pop ecx
test eax, eax
pop ecx
jne 0x406eea
lea eax, [ebp - 0x108]
push str.ad_bannernew.htm
push eax
call edi
pop ecx
test eax, eax
pop ecx
jne 0x406eea
lea eax, [ebp - 0x108]
push str.addefault_main.swf
push eax
call edi
pop ecx
test eax, eax
pop ecx
jne 0x406eea
lea eax, [ebp - 0x108]
push str.addefault_new.swf
push eax
call edi
pop ecx
test eax, eax
pop ecx
jne 0x406eea
lea eax, [ebp - 0x108]
push str.deletetip.gif
push eax
call edi
pop ecx
test eax, eax
pop ecx
je 0x406ed3
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 0x406d14
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret