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

Disassembly:
push 0x2b8
mov eax, 0x5df025
call fcn.005d2642
mov esi, dword [ebp + 8]
push esi
call fcn.0048cd3b
pop ecx
cmp eax, 3
jb 0x4600ad
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4600ad
push esi
lea ecx, [ebp - 0x28]
call fcn.00403740
and dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
call fcn.00459c66
mov ebx, 0x5e283c
pop ecx
test eax, eax
jne 0x45fe0c
push ebx
call fcn.0048cd3b
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x28]
call fcn.00405290
call fcn.004543ea
test al, al
je 0x45fe34
push ebx
push ecx
pop edx
pop ecx
pop edx
push eax
pop ecx
push edi
push ebx
push edx
push edx
push edi
pop esi
pop ebx
push esp
push esi
push eax
pop edi
pop eax
push esp
push edx
pop edi
pop esi
push ebp
pop eax
pop edx
pop esi
push ebx
push ebp
pop ebp
push esi
call fcn.00454726
test al, al
je 0x45fe5b
pop esi
pop ebp
pop ebx
pop ecx
push ecx
push ebp
pop eax
push esi
pop ecx
pop eax
pop edx
push ebp
pop eax
push esp
pop esi
pop esi
push edi
pop ecx
pop ebx
push eax
push esi
pop edi
pop ecx
push ecx
pop eax
push esi
push ebp
pop eax
push edi
pop ecx
call fcn.00454909
test al, al
je 0x45fe83
push esp
pop eax
push ecx
pop edi
push ecx
pop ecx
pop eax
push esp
pop ecx
pop edi
pop edi
push ebx
pop ecx
pop edx
pop ecx
push eax
pop esp
pop eax
push edx
pop ecx
pop eax
pop ebx
pop eax
pop ecx
pop edx
push ebp
push ecx
pop eax
push edi
push esp
pop edx
and dword [ebp - 0x30], 0
xor eax, eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x70]
call fcn.00403710
mov esi, 0x5e4250
mov byte [ebp - 4], 2
push esi
call fcn.0048cd3b
pop ecx
push eax
push esi
lea ecx, [ebp - 0x70]
call fcn.00405290
cmp dword [ebp - 0x5c], 8
lea ecx, [ebp - 0x2c0]
lea eax, [ebp - 0x70]
cmovae eax, dword [ebp - 0x70]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov dword [ebp - 0x2c4], esi
call fcn.004544b9
test al, al
je 0x45ff02
push edx
pop edi
push esi
push ebp
pop esp
push edx
push ebp
push eax
pop edx
push ebp
pop edx
pop ebp
push ebp
pop esp
pop edi
pop edx
pop edx
push edi
pop esi
push ecx
mov esi, dword [ebp - 0x2c4]
call fcn.004547b0
test al, al
je 0x45ff1c
pop edi
push ebx
pop edi
push ebp
push ebp
pop eax
pop ebp
push edx
pop ebp
pop edx
pop ecx
push esi
push ebp
pop ebx
push ebx
pop ecx
push ebx
cmp esi, 0xffffffff
je 0x460040
push 0x2e
pop ebx
mov edi, 0x5e283c
lea eax, [ebp - 0x2c0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x460040
cmp word [ebp - 0x294], bx
je 0x45ff2d
cmp word [ebp - 0x292], 0
je 0x45ff2d
cmp word [ebp - 0x292], bx
jne 0x45ff69
cmp word [ebp - 0x290], 0
je 0x45ff2d
test byte [ebp - 0x2c0], 0x10
lea eax, [ebp - 0x28]
je 0x45ffe5
push eax
lea ecx, [ebp - 0x58]
call fcn.00403710
cmp word [ebp - 0x294], 0
mov byte [ebp - 4], 3
jne 0x45ff90
xor eax, eax
jmp 0x45ff9d
lea eax, [ebp - 0x294]
push eax
call fcn.0048cd3b
pop ecx
push eax
lea eax, [ebp - 0x294]
push eax
lea ecx, [ebp - 0x58]
call fcn.00405290
push edi
call fcn.0048cd3b
pop ecx
push eax
push edi
lea ecx, [ebp - 0x58]
call fcn.00405290
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push eax
call fcn.0045fdaa
pop ecx
push 0
push 1
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 2
call fcn.0041e4c0
jmp 0x45ff2d
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x40]
call fcn.00402ee0
cmp word [ebp - 0x294], 0
jne 0x460000
xor eax, eax
jmp 0x46000d
lea eax, [ebp - 0x294]
push eax
call fcn.0048cd3b
pop ecx
push eax
lea eax, [ebp - 0x294]
push eax
lea ecx, [ebp - 0x40]
call fcn.00405290
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
sub esp, 0x18
mov ecx, esp
push eax
call fcn.00403740
call fcn.004615b1
add esp, 0x18
jmp 0x45ff2d
call fcn.00454a62
test al, al
je 0x46005c
push esi
push edx
push eax
pop ebp
pop edx
pop edx
push edx
pop ebx
push ebp
pop eax
pop ebp
push eax
push esi
pop eax
pop esp
pop ecx
pop ecx
pop ebx
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0x20
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push 0
push 1
lea ecx, [ebp - 0x70]
call fcn.0041e4c0
push 0
push 1
lea ecx, [ebp - 0x40]
call fcn.0041e4c0
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.0041e4c0
call fcn.005d25ec
ret