Function at 0x456410
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.00467d60
add esp, 0xc
mov dword [ebp - 0x470], 0
push 0x24c
push 0
lea edx, [ebp - 0x46c]
push edx
call fcn.00467d60
add esp, 0xc
mov dword [ebp - 0x218], 0
cmp dword [ebp + 8], 0
je 0x45648e
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45648e
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x456495
xor eax, eax
jmp 0x45669d
mov edx, dword [ebp + 8]
push edx
push str._s.
push 0x104
lea eax, [ebp - 0x210]
push eax
call fcn.00468336
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 0x4564dc
xor eax, eax
jmp 0x45669d
mov eax, dword [ebp + 0xc]
and eax, 2
je 0x456621
lea ecx, [ebp - 0x444]
mov dword [ebp - 0x214], ecx
mov edx, dword [ebp - 0x214]
movzx eax, word [edx + 2]
test eax, eax
jne 0x456517
mov ecx, dword [ebp - 0x214]
movzx edx, word [ecx]
cmp edx, 0x2e
jne 0x456517
jmp 0x456605
mov eax, dword [ebp - 0x214]
movzx ecx, word [eax + 4]
test ecx, ecx
jne 0x456547
mov edx, dword [ebp - 0x214]
movzx eax, word [edx]
cmp eax, 0x2e
jne 0x456547
mov ecx, dword [ebp - 0x214]
movzx edx, word [ecx + 2]
cmp edx, 0x2e
jne 0x456547
jmp 0x456605
mov eax, dword [ebp - 0x214]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0x4be08c
push 0x104
lea edx, [ebp - 0x210]
push edx
call fcn.00468336
add esp, 0x14
mov eax, dword [ebp - 0x470]
and eax, 1
je 0x45658d
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 0x4565b3
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x210]
push edx
call fcn.00456410
add esp, 8
mov dword [ebp - 0x218], eax
jmp 0x456605
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.00456fc0
add esp, 0xc
cmp dword [ebp - 0x218], 0
jne 0x456605
mov eax, dword [ebp + 0xc]
and eax, 0x100
je 0x456605
push 0
lea ecx, [ebp - 0x210]
push ecx
call fcn.00456060
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 0x4564e8
mov ecx, dword [ebp - 0x21c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [ebp - 0x470]
and edx, 1
je 0x45664d
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.00456fc0
add esp, 0xc
cmp dword [ebp - 0x218], 0
jne 0x456697
mov edx, dword [ebp + 0xc]
and edx, 0x100
je 0x456697
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.00456060
add esp, 8
mov eax, dword [ebp - 0x218]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00467d4f
mov esp, ebp
pop ebp
ret