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

Disassembly:
push 0x2bc
mov eax, 0x596da5
call fcn.004103bb
mov esi, dword [ebp + 8]
push esi
call fcn.00433f51
pop ecx
cmp eax, 3
jb 0x41630a
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41630a
push esi
lea ecx, [ebp - 0x28]
call fcn.00401680
and dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
call fcn.004178f3
mov ebx, 0x59a69c
pop ecx
test eax, eax
jne 0x416061
push ebx
call fcn.00433f51
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x28]
call fcn.00402595
call fcn.004115b1
test al, al
je 0x416085
pop ebx
push ebx
push ecx
pop ecx
push eax
pop edi
push edi
pop ebx
pop edx
push edx
pop ebp
pop edi
pop esp
push eax
push esp
pop esi
push esp
pop esp
push ecx
push esi
push ebx
pop ebx
push edi
pop esp
pop ebx
pop edi
pop esp
call fcn.00411230
test al, al
je 0x41609e
pop ebx
pop eax
push esp
push esi
push eax
pop esp
push ebx
push edx
push ebp
pop ebx
push edi
pop edi
push esi
pop ecx
pop edx
pop edi
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.00401658
mov esi, 0x59a694
mov byte [ebp - 4], 2
push esi
call fcn.00433f51
pop ecx
push eax
push esi
lea ecx, [ebp - 0x70]
call fcn.00402595
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 ebx, eax
mov dword [ebp - 0x2c4], ebx
call fcn.00411275
test al, al
je 0x41611b
pop ecx
push eax
push esi
push edx
push esi
push ebx
push edi
pop ebp
push ecx
push edi
push esp
push edx
push ebp
pop ebp
push ecx
pop ecx
pop esi
push edx
pop edi
pop ebp
pop esi
pop esi
pop ebp
pop eax
call fcn.004110d7
test al, al
je 0x416149
pop eax
push esi
push eax
pop ebp
push ebx
pop esi
push ecx
push eax
push esi
push ebx
pop esi
pop esp
pop ebp
pop esi
push edi
pop esi
push eax
pop eax
push esp
push edx
pop esp
pop edx
push esp
pop edi
push eax
pop ebp
pop ebx
pop ebx
push eax
pop ebx
pop eax
mov ebx, dword [ebp - 0x2c4]
cmp ebx, 0xffffffff
je 0x41626d
push 0x2e
pop edi
mov esi, 0x59a69c
lea eax, [ebp - 0x2c0]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x41626d
cmp word [ebp - 0x294], di
je 0x41615a
cmp word [ebp - 0x292], 0
je 0x41615a
cmp word [ebp - 0x292], di
jne 0x416196
cmp word [ebp - 0x290], 0
je 0x41615a
test byte [ebp - 0x2c0], 0x10
lea eax, [ebp - 0x28]
je 0x416212
push eax
lea ecx, [ebp - 0x58]
call fcn.00401658
cmp word [ebp - 0x294], 0
mov byte [ebp - 4], 3
jne 0x4161bd
xor eax, eax
jmp 0x4161ca
lea eax, [ebp - 0x294]
push eax
call fcn.00433f51
pop ecx
push eax
lea eax, [ebp - 0x294]
push eax
lea ecx, [ebp - 0x58]
call fcn.00402595
push esi
call fcn.00433f51
pop ecx
push eax
push esi
lea ecx, [ebp - 0x58]
call fcn.00402595
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push eax
call fcn.00415fff
pop ecx
push 0
push 1
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 2
call fcn.00401b31
jmp 0x41615a
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x40]
call fcn.00401bbf
cmp word [ebp - 0x294], 0
jne 0x41622d
xor eax, eax
jmp 0x41623a
lea eax, [ebp - 0x294]
push eax
call fcn.00433f51
pop ecx
push eax
lea eax, [ebp - 0x294]
push eax
lea ecx, [ebp - 0x40]
call fcn.00402595
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
sub esp, 0x18
mov ecx, esp
push eax
call fcn.00401680
call fcn.004170ac
add esp, 0x18
jmp 0x41615a
call fcn.0041156c
test al, al
je 0x416293
push esp
pop edi
pop ebp
push ebp
pop edx
pop edx
pop ecx
push esi
push eax
push ebx
pop ecx
pop ebp
pop ecx
push edx
push ebp
push ebp
pop ebx
push edi
push esp
push ebp
pop esi
pop esi
pop ebp
pop edx
push eax
pop edi
pop ebp
pop edi
push esi
call fcn.00411230
test al, al
je 0x4162b5
push ecx
push esp
pop eax
push ecx
pop ebx
pop ecx
pop esi
pop esp
pop esp
push eax
pop ecx
pop ebx
pop edx
push esp
push ecx
pop ecx
pop edx
pop edi
pop ebp
pop edx
pop esi
push esi
pop ebp
push ecx
pop edi
push dword [ebp - 0x2c4]
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]
xor ebx, ebx
lea ecx, [ebp - 0x70]
push ebx
push 1
call fcn.00401b31
push ebx
push 1
lea ecx, [ebp - 0x40]
call fcn.00401b31
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.00401b31
call fcn.00410376
ret