Function at 0x46d690
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 0x57bea6
mov eax, dword fs:[0]
push eax
sub esp, 0x26c
mov eax, dword [0x5e95e0]
xor eax, esp
mov dword [esp + 0x264], eax
push esi
push edi
mov eax, dword [0x5e95e0]
xor eax, esp
push eax
lea eax, [esp + 0x278]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov dword [esp + 0x18], ecx
call fcn.00530e1f
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x46d6f0
push 0x80004005
call fcn.00401f70
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 + 0x280], 0
call fcn.00530e1f
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x46d725
push 0x80004005
call fcn.00401f70
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0xc], eax
test edi, edi
mov byte [esp + 0x280], 1
jne 0x46d745
xor eax, eax
jmp 0x46d75f
mov eax, edi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x46d750
sub eax, edx
sar eax, 1
push eax
push edi
lea ecx, [esp + 0x14]
call fcn.00402250
push 4
push 0x5a9234
lea ecx, [esp + 0x14]
call fcn.004121c0
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
jne 0x46d7f0
mov byte [esp + 0x280], 0
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46d7bb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov dword [esp + 0x280], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46d7e2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x46d9cf
mov ecx, 0x5925cc
lea eax, [esp + 0x48]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x46d826
test dx, dx
je 0x46d822
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x46d826
add eax, 4
add ecx, 4
test dx, dx
jne 0x46d800
xor eax, eax
jmp 0x46d82b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x46d958
mov ecx, 0x59a8a0
lea eax, [esp + 0x48]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x46d866
test dx, dx
je 0x46d862
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x46d866
add eax, 4
add ecx, 4
test dx, dx
jne 0x46d840
xor eax, eax
jmp 0x46d86b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x46d958
cmp dword [ebp + 0xc], 0
jne 0x46d893
lea ecx, [esp + 0x48]
push str.desktop.ini
push ecx
call fcn.005522fc
add esp, 8
test eax, eax
je 0x46d958
test edi, edi
jne 0x46d89b
xor eax, eax
jmp 0x46d8af
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x46d8a0
sub eax, edx
sar eax, 1
push eax
push edi
lea ecx, [esp + 0x18]
call fcn.00402250
push 0x5c
lea ecx, [esp + 0x14]
call fcn.00463630
lea eax, [esp + 0x48]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x46d8d0
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x4c]
push edx
lea ecx, [esp + 0x18]
call fcn.004121c0
mov esi, dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x46d908
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test byte [esp + 0x1c], 0x10
je 0x46d92a
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
mov ecx, dword [esp + 0x20]
push esi
call fcn.0046d690
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x46d958
cmp dword [ebp + 0x10], 0
je 0x46d951
lea edx, [esp + 0x48]
push str.index.dat
push edx
call fcn.005522fc
add esp, 8
test eax, eax
jne 0x46d951
lea edx, [esp + 0x48]
mov ecx, edi
call fcn.0046e400
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x46d7f0
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov byte [esp + 0x280], 0
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46d9a3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov dword [esp + 0x280], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46d9ca
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x278]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x264]
xor ecx, esp
call fcn.00552101
mov esp, ebp
pop ebp
ret 0xc