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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4514bb
mov eax, dword fs:[0]
push eax
sub esp, 0x374
mov eax, dword [0x46d560]
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 0x40a715
cmp byte [ebp - 0x34c], 0
mov dword [ebp - 0x224], 0xf
mov dword [ebp - 0x228], 0
mov byte [ebp - 0x238], 0
jne 0x40a509
xor ecx, ecx
jmp 0x40a51b
lea ecx, [ebp - 0x34c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40a512
sub ecx, edx
push ecx
lea eax, [ebp - 0x34c]
push eax
lea ecx, [ebp - 0x238]
call fcn.00412f70
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 0x40a5c0
mov esi, 0x460d4c
sub ecx, 4
jb 0x40a581
lea esp, [esp]
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x40a586
add edx, 4
add esi, 4
sub ecx, 4
jae 0x40a570
cmp ecx, 0xfffffffc
je 0x40a5ba
mov al, byte [edx]
cmp al, byte [esi]
jne 0x40a5b3
cmp ecx, 0xfffffffd
je 0x40a5ba
mov al, byte [edx + 1]
cmp al, byte [esi + 1]
jne 0x40a5b3
cmp ecx, 0xfffffffe
je 0x40a5ba
mov al, byte [edx + 2]
cmp al, byte [esi + 2]
jne 0x40a5b3
cmp ecx, 0xffffffff
je 0x40a5ba
mov al, byte [edx + 3]
cmp al, byte [esi + 3]
je 0x40a5ba
sbb eax, eax
or eax, 1
jmp 0x40a5bc
xor eax, eax
test eax, eax
jne 0x40a5d5
cmp edi, 1
jb 0x40a5d5
xor eax, eax
cmp edi, 1
setne al
test eax, eax
je 0x40a6cc
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 0x40a650
mov esi, 0x460d50
sub ecx, 4
jb 0x40a611
lea ecx, [ecx]
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x40a616
add edx, 4
add esi, 4
sub ecx, 4
jae 0x40a600
cmp ecx, 0xfffffffc
je 0x40a64a
mov al, byte [edx]
cmp al, byte [esi]
jne 0x40a643
cmp ecx, 0xfffffffd
je 0x40a64a
mov al, byte [edx + 1]
cmp al, byte [esi + 1]
jne 0x40a643
cmp ecx, 0xfffffffe
je 0x40a64a
mov al, byte [edx + 2]
cmp al, byte [esi + 2]
jne 0x40a643
cmp ecx, 0xffffffff
je 0x40a64a
mov al, byte [edx + 3]
cmp al, byte [esi + 3]
je 0x40a64a
sbb eax, eax
or eax, 1
jmp 0x40a64c
xor eax, eax
test eax, eax
jne 0x40a666
cmp edi, 2
jae 0x40a65a
or eax, 0xffffffff
jmp 0x40a662
xor eax, eax
cmp edi, 2
setne al
test eax, eax
je 0x40a6cc
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 0x40a6ab
mov dl, 1
lea ecx, [ebp - 0x118]
call fcn.0040a470
jmp 0x40a6d2
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 0x40a6d2
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 0x40a706
push dword [ebp - 0x238]
call fcn.00414771
add esp, 4
test esi, esi
jne 0x40a4e1
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.004384c1
mov esp, ebp
pop ebp
ret