Function at 0x4061d0
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 0x449346
mov eax, dword fs:[0]
push eax
sub esp, 0x274
mov eax, dword [0x45e700]
xor eax, esp
mov dword [esp + 0x26c], eax
push esi
push edi
mov eax, dword [0x45e700]
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.00410248
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x406234
push 0x80004005
call fcn.00401dd0
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.00410248
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x406269
push 0x80004005
call fcn.00401dd0
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 0x406289
xor eax, eax
jmp 0x40629f
mov eax, edi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406290
sub eax, edx
sar eax, 1
push eax
push edi
lea ecx, [esp + 0x1c]
call fcn.00401c30
push 4
push str..
lea ecx, [esp + 0x1c]
call fcn.004028f0
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 0x406330
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 0x4062fb
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 0x406322
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x40652c
mov ecx, 0x4514cc
lea eax, [esp + 0x50]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x406366
test dx, dx
je 0x406362
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x406366
add eax, 4
add ecx, 4
test dx, dx
jne 0x406340
xor eax, eax
jmp 0x40636b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4064b5
mov ecx, 0x4514d0
lea eax, [esp + 0x50]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4063a6
test dx, dx
je 0x4063a2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4063a6
add eax, 4
add ecx, 4
test dx, dx
jne 0x406380
xor eax, eax
jmp 0x4063ab
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4064b5
cmp dword [ebp + 0xc], 0
jne 0x4063d3
lea ecx, [esp + 0x50]
push str.desktop.ini
push ecx
call fcn.0042f052
add esp, 8
test eax, eax
je 0x4064b5
test edi, edi
jne 0x4063db
xor eax, eax
jmp 0x4063ef
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4063e0
sub eax, edx
sar eax, 1
push eax
push edi
lea ecx, [esp + 0x18]
call fcn.00401c30
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 0x406423
push esi
lea ecx, [esp + 0x14]
call fcn.00401b80
mov ecx, dword [esp + 0x10]
mov edx, 0x5c
mov word [ecx + edi*2], dx
test esi, esi
jl 0x406551
cmp esi, dword [ecx - 8]
jg 0x406551
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 0x406450
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x54]
push ecx
lea ecx, [esp + 0x18]
call fcn.004028f0
mov esi, dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x406488
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test byte [esp + 0x24], 0x10
je 0x4064aa
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov ecx, dword [esp + 0x20]
push edx
push eax
push esi
call fcn.004061d0
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x4064b1
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 0x406330
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 0x406500
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 0x406527
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.0042e0b9
mov esp, ebp
pop ebp
ret 0xc
push 0x80070057
call fcn.00401dd0
int3