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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4493c6
mov eax, dword fs:[0]
push eax
sub esp, 0x274
mov eax, dword [0x460590]
xor eax, esp
mov dword [esp + 0x26c], eax
push esi
push edi
mov eax, dword [0x460590]
xor eax, esp
push eax
lea eax, [esp + 0x280]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], edi
call fcn.00413d88
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40bdc4
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x10], esi
mov dword [esp + 0x288], 0
call fcn.00413d88
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40bdf9
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x288], 1
test edi, edi
jne 0x40be19
xor eax, eax
jmp 0x40be2f
mov eax, edi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40be20
sub eax, edx
sar eax, 1
push eax
push edi
lea ecx, [esp + 0x1c]
call fcn.00402090
push 4
push str..
lea ecx, [esp + 0x1c]
call fcn.00405e30
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x24]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x1c], eax
cmp eax, 0xffffffff
jne 0x40bec0
mov byte [esp + 0x288], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40be8b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov dword [esp + 0x288], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40beb2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x40c0bc
mov ecx, 0x452eb0
lea eax, [esp + 0x50]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40bef6
test dx, dx
je 0x40bef2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40bef6
add eax, 4
add ecx, 4
test dx, dx
jne 0x40bed0
xor eax, eax
jmp 0x40befb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40c045
mov ecx, 0x452eb4
lea eax, [esp + 0x50]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40bf36
test dx, dx
je 0x40bf32
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40bf36
add eax, 4
add ecx, 4
test dx, dx
jne 0x40bf10
xor eax, eax
jmp 0x40bf3b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40c045
cmp dword [ebp + 0xc], 0
jne 0x40bf63
lea ecx, [esp + 0x50]
push str.desktop.ini
push ecx
call fcn.004337d7
add esp, 8
test eax, eax
je 0x40c045
test edi, edi
jne 0x40bf6b
xor eax, eax
jmp 0x40bf7f
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40bf70
sub eax, edx
sar eax, 1
push eax
push edi
lea ecx, [esp + 0x18]
call fcn.00402090
mov ecx, dword [esp + 0x10]
mov edi, dword [ecx - 0xc]
mov eax, dword [ecx - 8]
mov edx, 1
sub edx, dword [ecx - 4]
lea esi, [edi + 1]
sub eax, esi
or eax, edx
jge 0x40bfb3
push esi
lea ecx, [esp + 0x14]
call fcn.00402140
mov ecx, dword [esp + 0x10]
mov edx, 0x5c
mov word [ecx + edi*2], dx
test esi, esi
jl 0x40c0e1
cmp esi, dword [ecx - 8]
jg 0x40c0e1
xor eax, eax
mov dword [ecx - 0xc], esi
mov word [ecx + esi*2], ax
lea eax, [esp + 0x50]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40bfe0
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x54]
push ecx
lea ecx, [esp + 0x18]
call fcn.00405e30
mov esi, dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x40c018
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test byte [esp + 0x24], 0x10
je 0x40c03a
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov ecx, dword [esp + 0x20]
push edx
push eax
push esi
call fcn.0040bd60
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x40c041
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x24]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40bec0
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov byte [esp + 0x288], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c090
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov dword [esp + 0x288], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c0b7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x280]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x26c]
xor ecx, esp
call fcn.004323db
mov esp, ebp
pop ebp
ret 0xc
push 0x80070057
call fcn.00401000
int3