Function at 0x4566c0
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
sub esp, 0x470
mov eax, dword [0x4ce724]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov word [ebp - 0x210], ax
push 0x206
push 0
lea ecx, [ebp - 0x20e]
push ecx
call fcn.00468010
add esp, 0xc
mov dword [ebp - 0x470], 0
push 0x24c
push 0
lea edx, [ebp - 0x46c]
push edx
call fcn.00468010
add esp, 0xc
mov dword [ebp - 0x218], 0
cmp dword [ebp + 8], 0
je 0x45673e
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45673e
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x456745
xor eax, eax
jmp 0x45694d
mov edx, dword [ebp + 8]
push edx
push 0x4be0fc
push 0x104
lea eax, [ebp - 0x210]
push eax
call fcn.004685e6
add esp, 0x10
lea ecx, [ebp - 0x470]
push ecx
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0xffffffff
jne 0x45678c
xor eax, eax
jmp 0x45694d
mov eax, dword [ebp + 0xc]
and eax, 2
je 0x4568d1
lea ecx, [ebp - 0x444]
mov dword [ebp - 0x214], ecx
mov edx, dword [ebp - 0x214]
movzx eax, word [edx + 2]
test eax, eax
jne 0x4567c7
mov ecx, dword [ebp - 0x214]
movzx edx, word [ecx]
cmp edx, 0x2e
jne 0x4567c7
jmp 0x4568b5
mov eax, dword [ebp - 0x214]
movzx ecx, word [eax + 4]
test ecx, ecx
jne 0x4567f7
mov edx, dword [ebp - 0x214]
movzx eax, word [edx]
cmp eax, 0x2e
jne 0x4567f7
mov ecx, dword [ebp - 0x214]
movzx edx, word [ecx + 2]
cmp edx, 0x2e
jne 0x4567f7
jmp 0x4568b5
mov eax, dword [ebp - 0x214]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0x4be10c
push 0x104
lea edx, [ebp - 0x210]
push edx
call fcn.004685e6
add esp, 0x14
mov eax, dword [ebp - 0x470]
and eax, 1
je 0x45683d
mov ecx, dword [ebp - 0x470]
and ecx, 0xfffffffe
push ecx
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [ebp - 0x470]
and eax, 0x10
je 0x456863
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x210]
push edx
call fcn.004566c0
add esp, 8
mov dword [ebp - 0x218], eax
jmp 0x4568b5
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x218], eax
mov ecx, dword [ebp - 0x218]
push ecx
lea edx, [ebp - 0x210]
push edx
push str.DeleteFile__s____d
call fcn.00457270
add esp, 0xc
cmp dword [ebp - 0x218], 0
jne 0x4568b5
mov eax, dword [ebp + 0xc]
and eax, 0x100
je 0x4568b5
push 0
lea ecx, [ebp - 0x210]
push ecx
call fcn.00456310
add esp, 8
lea edx, [ebp - 0x470]
push edx
mov eax, dword [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x456798
mov ecx, dword [ebp - 0x21c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [ebp - 0x470]
and edx, 1
je 0x4568fd
mov eax, dword [ebp - 0x470]
and eax, 0xfffffffe
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov dword [ebp - 0x218], eax
mov eax, dword [ebp - 0x218]
push eax
mov ecx, dword [ebp + 8]
push ecx
push str.RemoveDirectory__s____d
call fcn.00457270
add esp, 0xc
cmp dword [ebp - 0x218], 0
jne 0x456947
mov edx, dword [ebp + 0xc]
and edx, 0x100
je 0x456947
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.00456310
add esp, 8
mov eax, dword [ebp - 0x218]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00467fff
mov esp, ebp
pop ebp
ret