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

Disassembly:
push 0x2ac
mov eax, 0x6548b8
call fcn.00626aed
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp dword [eax + 0x10], ebx
jne 0x5b6bc6
mov al, 1
jmp 0x5b6ec5
push eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call fcn.005a2638
mov edx, dword [ebp - 0x18]
mov ecx, ebx
mov dword [ebp - 4], ebx
test edx, edx
je 0x5b6c14
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x28]
cmp esi, 0x10
lea eax, [ebp - 0x28]
cmovae eax, edi
cmp byte [eax + ecx], 0x2f
jne 0x5b6c0f
cmp esi, 0x10
lea eax, [ebp - 0x28]
cmovae eax, edi
mov byte [eax + ecx], 0x5c
mov esi, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x28]
inc ecx
cmp ecx, edx
jb 0x5b6bea
mov dword [ebp - 0x2b4], ebx
mov dword [ebp - 0x2b0], ebx
lea eax, [ebp - 0x2b4]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.005b7ea2
mov esi, dword [ebp - 0x2b4]
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x5b6e5f
test al, 0x10
je 0x5b6e59
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x18]
cmovae ecx, dword [ebp - 0x28]
mov byte [ebp - 0x2a9], 1
mov byte [ebp - 0x2aa], bl
cmp byte [eax + ecx - 1], 0x5c
je 0x5b6c8c
mov esi, 0x6d4ba4
push esi
call fcn.0062d730
pop ecx
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.00448360
lea eax, [ebp - 0x2b4]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.005b7ea2
mov eax, dword [ebp - 0x2b0]
inc eax
mov dword [ebp - 0x2b0], eax
add eax, eax
push eax
push dword [ebp - 0x2b4]
call fcn.0062d692
mov esi, eax
push 0x6f29b0
push esi
mov dword [ebp - 0x2b4], esi
call fcn.0062d6ac
add esp, 0x18
lea eax, [ebp - 0x2a8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x5b6e0f
mov bl, byte [ebp - 0x2a9]
lea eax, [ebp - 0x27c]
push 0x6631c4
push eax
call fcn.00631fd9
pop ecx
pop ecx
test eax, eax
je 0x5b6df1
lea eax, [ebp - 0x27c]
push 0x6631c8
push eax
call fcn.00631fd9
pop ecx
pop ecx
test eax, eax
je 0x5b6df1
test byte [ebp - 0x2a8], 0x10
je 0x5b6d70
lea eax, [ebp - 0x27c]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.005b8bc8
push eax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.005b1d6a
push dword [ebp + 0xc]
mov byte [ebp - 4], 3
push eax
call fcn.005b6ba6
add esp, 0x1c
lea ecx, [ebp - 0x40]
and bl, al
call fcn.00448620
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
jmp 0x5b6de3
cmp byte [ebp + 0xc], 0
je 0x5b6dea
lea eax, [ebp - 0x27c]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.005b8bc8
push eax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.005b1d6a
add esp, 0x14
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.00448620
lea eax, [ebp - 0x2b4]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.005b7ea2
test byte [ebp - 0x2a8], 1
mov esi, dword [ebp - 0x2b4]
pop ecx
pop ecx
je 0x5b6dd4
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test bl, al
lea ecx, [ebp - 0x40]
setne bl
call fcn.00448620
jmp 0x5b6df1
mov byte [ebp - 0x2aa], 1
lea eax, [ebp - 0x2a8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x5b6cec
mov byte [ebp - 0x2a9], bl
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x5b6e6f
cmp edi, 0xffffffff
je 0x5b6e26
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp byte [ebp - 0x2a9], 0
je 0x5b6e6f
cmp byte [ebp - 0x2aa], 0
jne 0x5b6e6f
lea eax, [ebp - 0x2b4]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.005b7ea2
mov esi, dword [ebp - 0x2b4]
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x5b6e66
cmp byte [ebp + 0xc], 0
je 0x5b6e6d
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne bl
jmp 0x5b6e6f
mov bl, 1
test esi, esi
je 0x5b6e7a
push esi
call fcn.0062d677
pop ecx
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x5b6ec3
mov ecx, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x2b8], eax
mov dword [ebp - 0x2b0], ecx
cmp eax, 0x1000
jb 0x5b6eba
lea eax, [ebp - 0x2b8]
push eax
lea eax, [ebp - 0x2b0]
push eax
call fcn.00446e30
mov eax, dword [ebp - 0x2b8]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x2b0]
push eax
push ecx
call fcn.00626a67
pop ecx
pop ecx
mov al, bl
call fcn.00626a9c
ret