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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45186b
mov eax, dword fs:[0]
push eax
sub esp, 0x374
mov eax, dword [0x46e560]
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
mov ebx, ecx
mov dword [ebp - 0x37c], ebx
push ebx
lea eax, [ebp - 0x220]
push str._s.
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x378]
push eax
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
mov dword [ebp - 0x380], edi
cmp edi, 0xffffffff
je 0x40a785
cmp byte [ebp - 0x34c], 0
mov dword [ebp - 0x224], 0xf
mov dword [ebp - 0x228], 0
mov byte [ebp - 0x238], 0
jne 0x40a579
xor ecx, ecx
jmp 0x40a58b
lea ecx, [ebp - 0x34c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40a582
sub ecx, edx
push ecx
lea eax, [ebp - 0x34c]
push eax
lea ecx, [ebp - 0x238]
call fcn.00413340
mov dword [ebp - 4], 0
lea edx, [ebp - 0x238]
mov ebx, dword [ebp - 0x224]
mov ecx, 1
mov edi, dword [ebp - 0x228]
cmp ebx, 0x10
cmovae edx, dword [ebp - 0x238]
cmp edi, ecx
cmovb ecx, edi
test ecx, ecx
je 0x40a630
mov esi, 0x461bfc
sub ecx, 4
jb 0x40a5f1
lea esp, [esp]
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x40a5f6
add edx, 4
add esi, 4
sub ecx, 4
jae 0x40a5e0
cmp ecx, 0xfffffffc
je 0x40a62a
mov al, byte [edx]
cmp al, byte [esi]
jne 0x40a623
cmp ecx, 0xfffffffd
je 0x40a62a
mov al, byte [edx + 1]
cmp al, byte [esi + 1]
jne 0x40a623
cmp ecx, 0xfffffffe
je 0x40a62a
mov al, byte [edx + 2]
cmp al, byte [esi + 2]
jne 0x40a623
cmp ecx, 0xffffffff
je 0x40a62a
mov al, byte [edx + 3]
cmp al, byte [esi + 3]
je 0x40a62a
sbb eax, eax
or eax, 1
jmp 0x40a62c
xor eax, eax
test eax, eax
jne 0x40a645
cmp edi, 1
jb 0x40a645
xor eax, eax
cmp edi, 1
setne al
test eax, eax
je 0x40a73c
cmp ebx, 0x10
lea edx, [ebp - 0x238]
mov ecx, 2
cmovae edx, dword [ebp - 0x238]
cmp edi, ecx
cmovb ecx, edi
test ecx, ecx
je 0x40a6c0
mov esi, 0x461c00
sub ecx, 4
jb 0x40a681
lea ecx, [ecx]
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x40a686
add edx, 4
add esi, 4
sub ecx, 4
jae 0x40a670
cmp ecx, 0xfffffffc
je 0x40a6ba
mov al, byte [edx]
cmp al, byte [esi]
jne 0x40a6b3
cmp ecx, 0xfffffffd
je 0x40a6ba
mov al, byte [edx + 1]
cmp al, byte [esi + 1]
jne 0x40a6b3
cmp ecx, 0xfffffffe
je 0x40a6ba
mov al, byte [edx + 2]
cmp al, byte [esi + 2]
jne 0x40a6b3
cmp ecx, 0xffffffff
je 0x40a6ba
mov al, byte [edx + 3]
cmp al, byte [esi + 3]
je 0x40a6ba
sbb eax, eax
or eax, 1
jmp 0x40a6bc
xor eax, eax
test eax, eax
jne 0x40a6d6
cmp edi, 2
jae 0x40a6ca
or eax, 0xffffffff
jmp 0x40a6d2
xor eax, eax
cmp edi, 2
setne al
test eax, eax
je 0x40a73c
cmp ebx, 0x10
lea eax, [ebp - 0x238]
mov ebx, dword [ebp - 0x37c]
cmovae eax, dword [ebp - 0x238]
push eax
push ebx
lea eax, [ebp - 0x118]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
test byte [ebp - 0x378], 0x10
je 0x40a71b
mov dl, 1
lea ecx, [ebp - 0x118]
call fcn.0040a4e0
jmp 0x40a742
push 0x80
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x40a742
mov ebx, dword [ebp - 0x37c]
mov edi, dword [ebp - 0x380]
lea eax, [ebp - 0x378]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov dword [ebp - 4], 0xffffffff
mov esi, eax
cmp dword [ebp - 0x224], 0x10
jb 0x40a776
push dword [ebp - 0x238]
call fcn.00414aba
add esp, 4
test esi, esi
jne 0x40a551
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x80
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
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.004387e7
mov esp, ebp
pop ebp
ret