Function at 0x45980d
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 0x5b9031
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x6bd6f8]
xor eax, esp
mov dword [esp + 0x270], eax
push ebx
push esi
push edi
mov eax, dword [0x6bd6f8]
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 0x675b24
push eax
mov ecx, ebx
call fcn.0040fc0a
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.0040856e
cmp dword [esp + 0x14], 0xffffffff
je 0x459a67
mov ecx, 0x675b30
lea eax, [esp + 0x58]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4598d2
test dx, dx
je 0x4598ce
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4598d2
add eax, 4
add ecx, 4
test dx, dx
jne 0x4598ac
xor eax, eax
jmp 0x4598d7
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x459a46
mov ecx, 0x675b34
lea eax, [esp + 0x58]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x45990e
test dx, dx
je 0x45990a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x45990e
add eax, 4
add ecx, 4
test dx, dx
jne 0x4598e8
xor eax, eax
jmp 0x459913
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x459a46
lea eax, [esp + 0x24]
push 0x675b3c
push eax
mov ecx, ebx
call fcn.0040fc0a
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.0040fc0a
add esp, 0x10
mov byte [esp + 0x290], 3
lea ecx, [esp + 0x24]
call fcn.0040856e
test byte [esp + 0x2c], 0x10
je 0x459989
push edi
push dword [ebp + 0x14]
lea eax, [esp + 0x18]
push dword [esp + 0x20]
push dword [ebp + 0xc]
push eax
call fcn.0045980d
add esp, 0x14
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x459a35
push 0x80
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp byte [ebp + 0x14], 0
je 0x4599e2
mov eax, dword [edi]
push esi
sub esp, 0x1c
mov esi, esp
mov dword [esp + 0x48], esp
push eax
call fcn.00408187
mov byte [esp + 0x2b0], 4
sub esp, 0x1c
mov esi, esp
mov dword [esp + 0x5c], esp
push dword [esp + 0x4c]
call fcn.00408187
mov byte [esp + 0x2cc], 5
mov byte [esp + 0x2cc], 3
call fcn.0045310a
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 0x459a35
push ecx
mov eax, esp
mov dword [esp + 0x24], esp
lea ecx, [esp + 0x14]
push ecx
push eax
call fcn.004084fe
mov byte [esp + 0x294], 6
mov byte [esp + 0x294], 3
call fcn.00452da1
pop ecx
push dword [esp + 0x10]
call esi
test eax, eax
je 0x459a35
mov eax, dword [esp + 0x18]
mov byte [eax], 1
or dword [esp + 0x290], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.0040856e
lea eax, [esp + 0x2c]
push eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4598a3
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp byte [ebp + 0xc], 0
je 0x459a75
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.0057340c
mov esp, ebp
pop ebp
ret