Function at 0x406c34
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 0x406c6a
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 0x406c88
push 0x40edc0
jmp 0x406c8d
push 0x40eafc
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 0x406cc5
xor eax, eax
jmp 0x406ec9
push esi
push edi
mov edi, dword [sym.imp.MSVCRT.dll_strstr]
lea eax, [ebp - 0x21c]
push 0x40e680
push eax
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
je 0x406ea3
lea eax, [ebp - 0x21c]
push 0x40e67c
push eax
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
je 0x406ea3
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 0x406d6b
mov cl, byte [ebp + esi - 0x108]
lea edx, [ebp + esi - 0x108]
cmp cl, 0x41
jl 0x406d66
cmp cl, 0x5a
jg 0x406d66
add cl, 0x20
mov byte [edx], cl
inc esi
cmp esi, eax
jl 0x406d49
cmp dword [ebp - 0x248], 0x10
jne 0x406dac
push dword [ebp + 0xc]
lea eax, [ebp - 0x108]
push eax
call fcn.00406c34
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 0x406ea3
and dword [ebp + 8], eax
jmp 0x406ea3
cmp dword [ebp + 0xc], 0
je 0x406e66
lea eax, [ebp - 0x108]
push str.ad001.gif
push eax
call edi
pop ecx
test eax, eax
pop ecx
jne 0x406ea3
lea eax, [ebp - 0x108]
push str.ad002.gif
push eax
call edi
pop ecx
test eax, eax
pop ecx
jne 0x406ea3
lea eax, [ebp - 0x108]
push str.admain.gif
push eax
call edi
pop ecx
test eax, eax
pop ecx
jne 0x406ea3
lea eax, [ebp - 0x108]
push str.ad_new.gif
push eax
call edi
pop ecx
test eax, eax
pop ecx
jne 0x406ea3
lea eax, [ebp - 0x108]
push str.ad_banner.htm
push eax
call edi
pop ecx
test eax, eax
pop ecx
jne 0x406ea3
lea eax, [ebp - 0x108]
push str.ad_bannernew.htm
push eax
call edi
pop ecx
test eax, eax
pop ecx
jne 0x406ea3
lea eax, [ebp - 0x108]
push str.addefault_main.swf
push eax
call edi
pop ecx
test eax, eax
pop ecx
jne 0x406ea3
lea eax, [ebp - 0x108]
push str.addefault_new.swf
push eax
call edi
pop ecx
test eax, eax
pop ecx
jne 0x406ea3
lea eax, [ebp - 0x108]
push str.deletetip.gif
push eax
call edi
pop ecx
test eax, eax
pop ecx
je 0x406e8c
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 0x406ccd
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret