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

Disassembly:
push 0xffffffffffffffff
push 0x43a306
mov eax, dword fs:[0]
push eax
sub esp, 0x26c
mov eax, dword [0x44a5dc]
xor eax, esp
mov dword [esp + 0x264], eax
push ebp
push esi
push edi
mov eax, dword [0x44a5dc]
xor eax, esp
push eax
lea eax, [esp + 0x27c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x28c]
mov dword [esp + 0x1c], ecx
call fcn.004077c6
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40558f
push 0x80004005
call fcn.00402320
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x14], esi
mov dword [esp + 0x284], 0
call fcn.004077c6
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4055c4
push 0x80004005
call fcn.00402320
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
test ebp, ebp
mov byte [esp + 0x284], 1
jne 0x4055e4
xor eax, eax
jmp 0x4055ff
mov eax, ebp
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4055f0
sub eax, edx
sar eax, 1
push eax
push ebp
lea ecx, [esp + 0x20]
call fcn.00402990
push 4
push str..
lea ecx, [esp + 0x20]
call fcn.00402290
mov edi, dword [esp + 0x18]
lea ecx, [esp + 0x24]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x20], eax
jne 0x405690
lea eax, [edi - 0x10]
mov byte [esp + 0x284], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x405657
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov dword [esp + 0x284], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40567e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x4058b7
mov ecx, 0x4413d0
lea eax, [esp + 0x50]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4056c6
test dx, dx
je 0x4056c2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4056c6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4056a0
xor eax, eax
jmp 0x4056cb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x405844
mov ecx, 0x4413d4
lea eax, [esp + 0x50]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x405706
test dx, dx
je 0x405702
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x405706
add eax, 4
add ecx, 4
test dx, dx
jne 0x4056e0
xor eax, eax
jmp 0x40570b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x405844
cmp dword [esp + 0x290], 0
jne 0x405737
lea ecx, [esp + 0x50]
push str.desktop.ini
push ecx
call fcn.00423569
add esp, 8
test eax, eax
je 0x405844
test ebp, ebp
jne 0x40573f
xor eax, eax
jmp 0x405753
mov eax, ebp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405744
sub eax, edx
sar eax, 1
push eax
push ebp
lea ecx, [esp + 0x1c]
call fcn.00402990
mov ecx, dword [esp + 0x14]
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 0x405787
push esi
lea ecx, [esp + 0x18]
call fcn.00402460
mov ecx, dword [esp + 0x14]
test esi, esi
mov word [ecx + edi*2], 0x5c
jl 0x4058e0
cmp esi, dword [ecx - 8]
jg 0x4058e0
lea eax, [esp + 0x50]
mov dword [ecx - 0xc], esi
mov word [ecx + esi*2], 0
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4057b0
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x54]
push edx
lea ecx, [esp + 0x1c]
call fcn.00402290
mov esi, dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x4057e8
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test byte [esp + 0x24], 0x10
je 0x405812
mov eax, dword [esp + 0x294]
mov ecx, dword [esp + 0x290]
push eax
push ecx
mov ecx, dword [esp + 0x24]
push esi
call fcn.00405530
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x405844
cmp dword [esp + 0x294], 0
je 0x40583d
lea edx, [esp + 0x50]
push str.index.dat
push edx
call fcn.00423569
add esp, 8
test eax, eax
jne 0x40583d
lea edx, [esp + 0x50]
mov ecx, ebp
call fcn.00405990
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, dword [esp + 0x20]
lea eax, [esp + 0x24]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x405690
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov byte [esp + 0x284], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40588b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov dword [esp + 0x284], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4058b2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x27c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x264]
xor ecx, esp
call fcn.00422f00
add esp, 0x278
ret 0xc
push 0x80070057
call fcn.00402320
int3