Function at 0x459e52
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 0x5b9321
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x6b06f8]
xor eax, esp
mov dword [esp + 0x270], eax
push ebx
push esi
push edi
mov eax, dword [0x6b06f8]
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 0x676f38
push eax
mov ecx, ebx
call fcn.0040fc53
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.004085a2
cmp dword [esp + 0x14], 0xffffffff
je 0x45a0ac
mov ecx, 0x67769c
lea eax, [esp + 0x58]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x459f17
test dx, dx
je 0x459f13
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x459f17
add eax, 4
add ecx, 4
test dx, dx
jne 0x459ef1
xor eax, eax
jmp 0x459f1c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x45a08b
mov ecx, 0x6776a0
lea eax, [esp + 0x58]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x459f53
test dx, dx
je 0x459f4f
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x459f53
add eax, 4
add ecx, 4
test dx, dx
jne 0x459f2d
xor eax, eax
jmp 0x459f58
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x45a08b
lea eax, [esp + 0x24]
push 0x670fe8
push eax
mov ecx, ebx
call fcn.0040fc53
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.0040fc53
add esp, 0x10
mov byte [esp + 0x290], 3
lea ecx, [esp + 0x24]
call fcn.004085a2
test byte [esp + 0x2c], 0x10
je 0x459fce
push edi
push dword [ebp + 0x14]
lea eax, [esp + 0x18]
push dword [esp + 0x20]
push dword [ebp + 0xc]
push eax
call fcn.00459e52
add esp, 0x14
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x45a07a
push 0x80
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp byte [ebp + 0x14], 0
je 0x45a027
mov eax, dword [edi]
push esi
sub esp, 0x1c
mov esi, esp
mov dword [esp + 0x48], esp
push eax
call fcn.004081bb
mov byte [esp + 0x2b0], 4
sub esp, 0x1c
mov esi, esp
mov dword [esp + 0x5c], esp
push dword [esp + 0x4c]
call fcn.004081bb
mov byte [esp + 0x2cc], 5
mov byte [esp + 0x2cc], 3
call fcn.004537ea
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 0x45a07a
push ecx
mov eax, esp
mov dword [esp + 0x24], esp
lea ecx, [esp + 0x14]
push ecx
push eax
call fcn.00408532
mov byte [esp + 0x294], 6
mov byte [esp + 0x294], 3
call fcn.0045347e
pop ecx
push dword [esp + 0x10]
call esi
test eax, eax
je 0x45a07a
mov eax, dword [esp + 0x18]
mov byte [eax], 1
or dword [esp + 0x290], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.004085a2
lea eax, [esp + 0x2c]
push eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x459ee8
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp byte [ebp + 0xc], 0
je 0x45a0ba
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.0057372c
mov esp, ebp
pop ebp
ret