Function at 0x46db7f
Capabilities:
Check if file exists
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5c7578
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x6c56f8]
xor eax, esp
mov dword [esp + 0x270], eax
push ebx
push esi
push edi
mov eax, dword [0x6c56f8]
xor eax, esp
push eax
lea eax, [esp + 0x288]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x18]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x1c]
push 0x68798c
push eax
mov ecx, ebx
call fcn.004116ea
pop ecx
pop ecx
and dword [esp + 0x290], 0
mov eax, dword [eax]
lea ecx, [esp + 0x2c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x14], eax
or dword [esp + 0x290], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.004085f6
cmp dword [esp + 0x14], 0xffffffff
je 0x46ddf3
mov ecx, 0x6880d4
lea eax, [esp + 0x58]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x46dc44
test dx, dx
je 0x46dc40
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x46dc44
add eax, 4
add ecx, 4
test dx, dx
jne 0x46dc1e
xor eax, eax
jmp 0x46dc49
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x46ddd2
mov ecx, 0x6880d8
lea eax, [esp + 0x58]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x46dc80
test dx, dx
je 0x46dc7c
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x46dc80
add eax, 4
add ecx, 4
test dx, dx
jne 0x46dc5a
xor eax, eax
jmp 0x46dc85
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x46ddd2
lea eax, [esp + 0x24]
push 0x6810d0
push eax
mov ecx, ebx
call fcn.004116ea
xor esi, esi
inc esi
mov dword [esp + 0x298], esi
lea ecx, [esp + 0x60]
push ecx
lea ecx, [esp + 0x1c]
push ecx
mov ecx, eax
call fcn.004116ea
add esp, 0x10
mov byte [esp + 0x290], 3
lea ecx, [esp + 0x24]
call fcn.004085f6
test byte [esp + 0x2c], 0x10
je 0x46dcfb
push edi
push dword [ebp + 0x14]
lea eax, [esp + 0x18]
push dword [esp + 0x20]
push dword [ebp + 0xc]
push eax
call fcn.0046db7f
add esp, 0x14
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x46ddc1
push dword [esp + 0x10]
call fcn.00421f7e
pop ecx
push 0x80
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0x80
push dword [esp + 0x14]
call fcn.00424fac
cmp byte [ebp + 0x14], 0
pop ecx
pop ecx
je 0x46dd6e
mov eax, dword [edi]
push esi
sub esp, 0x1c
mov esi, esp
mov dword [esp + 0x48], esp
push eax
call fcn.0040820f
mov byte [esp + 0x2b0], 4
sub esp, 0x1c
mov esi, esp
mov dword [esp + 0x5c], esp
push dword [esp + 0x4c]
call fcn.0040820f
mov byte [esp + 0x2cc], 5
mov byte [esp + 0x2cc], 3
call fcn.0046711c
add esp, 0x3c
push dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
call esi
push dword [esp + 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x46ddc1
push ecx
mov eax, esp
mov dword [esp + 0x24], esp
lea ecx, [esp + 0x14]
push ecx
push eax
call fcn.00408586
mov byte [esp + 0x294], 6
mov byte [esp + 0x294], 3
call fcn.00466dad
pop ecx
push dword [esp + 0x10]
call esi
test eax, eax
je 0x46ddc1
mov eax, dword [esp + 0x18]
mov byte [eax], 1
or dword [esp + 0x290], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.004085f6
lea eax, [esp + 0x2c]
push eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x46dc15
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp byte [ebp + 0xc], 0
je 0x46de01
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [esp + 0x288]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x270]
xor ecx, esp
call fcn.00581268
mov esp, ebp
pop ebp
ret