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

Disassembly:
push ebp
sub esp, 0x67c
lea ebp, [esp - 4]
mov eax, dword [0x4c3a10]
xor eax, ebp
mov dword [ebp + 0x67c], eax
push 8
mov eax, 0x4a1776
call fcn.00476c0b
mov esi, dword [ebp + 0x688]
mov dword [ebp - 0x14], esi
test esi, esi
je 0x46e9ff
xor eax, eax
cmp ax, word [esi]
je 0x46e9ff
push esi
call fcn.0046e5bf
pop ecx
test al, al
je 0x46e9ff
push esi
lea ecx, [ebp + 0x250]
call fcn.00401900
mov eax, dword [ebp + 0x264]
and dword [ebp - 4], 0
dec eax
push eax
lea ecx, [ebp + 0x250]
call fcn.00403108
movzx eax, word [eax]
cmp ax, 0x5c
je 0x46e80e
cmp ax, 0x2f
je 0x46e80e
push 0x4b30a0
lea ecx, [ebp + 0x250]
call fcn.00401987
xor eax, eax
mov ebx, 0x206
push ebx
push eax
mov word [ebp + 0x26c], ax
lea eax, [ebp + 0x26e]
push eax
call fcn.004766d0
mov eax, dword [ebp + 0x254]
add esp, 0xc
cmp dword [ebp + 0x268], 8
jae 0x46e842
lea eax, [ebp + 0x254]
push eax
lea eax, [ebp + 0x26c]
push str._s.
push eax
call fcn.00476f05
add esp, 0xc
lea eax, [ebp]
push eax
lea eax, [ebp + 0x26c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
je 0x46e9fb
mov edi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esi, str._s_s
lea eax, [ebp + 0x2c]
push 0x4b31e8
push eax
call fcn.00479db7
pop ecx
pop ecx
test eax, eax
je 0x46e9b4
lea eax, [ebp + 0x2c]
push 0x4b3098
push eax
call fcn.00479db7
pop ecx
pop ecx
test eax, eax
je 0x46e9b4
test byte [ebp], 0x10
je 0x46e913
xor eax, eax
push ebx
push eax
mov word [ebp + 0x474], ax
lea eax, [ebp + 0x476]
push eax
call fcn.004766d0
mov eax, dword [ebp + 0x254]
add esp, 0xc
cmp dword [ebp + 0x268], 8
jae 0x46e8e4
lea eax, [ebp + 0x254]
lea ecx, [ebp + 0x2c]
push ecx
push eax
lea eax, [ebp + 0x474]
push esi
push eax
call fcn.00476f05
lea eax, [ebp + 0x474]
push eax
call fcn.0046e77d
add esp, 0x14
lea eax, [ebp + 0x474]
push eax
call edi
jmp 0x46e9b4
lea eax, [ebp + 0x2c]
push str.Thumbs.db
push eax
call fcn.00479db7
pop ecx
pop ecx
test eax, eax
jne 0x46e96b
push ebx
push eax
mov word [ebp + 0x474], ax
lea eax, [ebp + 0x476]
push eax
call fcn.004766d0
mov eax, dword [ebp + 0x254]
add esp, 0xc
cmp dword [ebp + 0x268], 8
jae 0x46e954
lea eax, [ebp + 0x254]
push eax
lea eax, [ebp + 0x474]
push str._sThumbs.db
push eax
call fcn.00476f05
add esp, 0xc
jmp 0x46e9a7
cmp dword [ebp + 0x268], 8
mov eax, dword [ebp + 0x254]
jae 0x46e980
lea eax, [ebp + 0x254]
lea ecx, [ebp + 0x2c]
push ecx
push eax
lea eax, [ebp + 0x474]
push esi
push eax
call fcn.00476f05
add esp, 0x10
push 0x80
lea eax, [ebp + 0x474]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp + 0x474]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x46e87f
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp - 0x14]
call edi
push dword [ebp - 0x14]
call fcn.0046e5bf
mov bl, al
neg bl
sbb bl, bl
pop ecx
inc bl
push 0
push 1
lea ecx, [ebp + 0x250]
call fcn.00401a62
mov al, bl
jmp 0x46ea0c
xor bl, bl
jmp 0x46e9e8
push 0x132b3a1
call fcn.0046ec1a
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x67c]
xor ecx, ebp
call fcn.0047674a
add ebp, 0x680
leave
ret