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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b462b
mov eax, dword fs:[0]
push eax
sub esp, 0x27c
mov eax, dword [0x4e5070]
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 byte [ebp - 0x285], dl
mov esi, ecx
cmp dword [esi + 0x14], 0x10
jb 0x40cec0
mov eax, dword [esi]
jmp 0x40cec2
mov eax, esi
push eax
lea eax, [ebp - 0x114]
push 0x104
push eax
call fcn.0049cf5d
add esp, 0xc
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
push 0x4c9e58
lea eax, [ebp - 0x114]
push 0x104
push eax
call fcn.0049cfb7
add esp, 0xc
lea eax, [ebp - 0x284]
push eax
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40cf1f
xor eax, eax
jmp 0x40d1a6
mov ebx, dword [sym.imp.KERNEL32.DLL_DeleteFileA]
nop word [eax + eax]
mov ecx, 0x4c9e5c
lea eax, [ebp - 0x258]
nop dword [eax + eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40cf60
test dl, dl
je 0x40cf5c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40cf60
add eax, 2
add ecx, 2
test dl, dl
jne 0x40cf40
xor eax, eax
jmp 0x40cf65
sbb eax, eax
or eax, 1
test eax, eax
je 0x40d16c
mov ecx, 0x4c9e60
lea eax, [ebp - 0x258]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40cf98
test dl, dl
je 0x40cf94
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40cf98
add eax, 2
add ecx, 2
test dl, dl
jne 0x40cf78
xor eax, eax
jmp 0x40cf9d
sbb eax, eax
or eax, 1
test eax, eax
je 0x40d16c
mov ecx, esi
call fcn.00403500
push eax
lea eax, [ebp - 0x114]
push 0x104
push eax
call fcn.0049cf5d
add esp, 0xc
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x114]
push 0x104
push eax
call fcn.0049cfb7
add esp, 0xc
test byte [ebp - 0x284], 0x10
je 0x40d094
cmp byte [ebp - 0x114], 0
mov dword [ebp - 0x130], 0xf
mov dword [ebp - 0x134], 0
mov byte [ebp - 0x144], 0
jne 0x40d01e
xor ecx, ecx
jmp 0x40d030
lea ecx, [ebp - 0x114]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40d027
sub ecx, edx
push ecx
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x144]
call fcn.00403a90
mov dl, 1
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x144]
call fcn.0040ce80
test eax, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x130]
sete bl
cmp eax, 0x10
jb 0x40d081
inc eax
lea ecx, [ebp - 0x144]
push eax
push dword [ebp - 0x144]
call fcn.00403e20
test bl, bl
jne 0x40d182
mov ebx, dword [sym.imp.KERNEL32.DLL_DeleteFileA]
jmp 0x40d16c
cmp byte [ebp - 0x114], 0
mov dword [ebp - 0x118], 0xf
mov dword [ebp - 0x11c], 0
mov byte [ebp - 0x12c], 0
jne 0x40d0bc
xor ecx, ecx
jmp 0x40d0ce
lea ecx, [ebp - 0x114]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40d0c5
sub ecx, edx
push ecx
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x12c]
call fcn.00403a90
cmp dword [ebp - 0x118], 0x10
lea eax, [ebp - 0x12c]
cmovae eax, dword [ebp - 0x12c]
push eax
call ebx
test eax, eax
jne 0x40d133
cmp dword [ebp - 0x118], 0x10
lea eax, [ebp - 0x12c]
push 0x80
cmovae eax, dword [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
cmp dword [ebp - 0x118], 0x10
lea eax, [ebp - 0x12c]
cmovae eax, dword [ebp - 0x12c]
push eax
call ebx
mov eax, dword [ebp - 0x118]
cmp eax, 0x10
jb 0x40d151
inc eax
lea ecx, [ebp - 0x12c]
push eax
push dword [ebp - 0x12c]
call fcn.00403e20
mov dword [ebp - 0x118], 0xf
mov dword [ebp - 0x11c], 0
mov byte [ebp - 0x12c], 0
lea eax, [ebp - 0x284]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x40cf30
push edi
call dword [sym.imp.KERNEL32.DLL_FindClose]
cmp byte [ebp - 0x285], 0
je 0x40d1a1
cmp dword [esi + 0x14], 0x10
jb 0x40d19a
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryA]
mov eax, 1
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.00493122
mov esp, ebp
pop ebp
ret