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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x68a8d0
mov eax, dword fs:[0]
push eax
sub esp, 0x2ac
mov eax, dword [0x746694]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x10], 0
jne 0x5bea6d
mov al, 1
jmp 0x5befe8
push eax
lea ecx, [ebp - 0x28]
call fcn.005acee0
mov edi, dword [ebp - 0x18]
xor ecx, ecx
mov edx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x28]
mov dword [ebp - 4], 0
test edi, edi
je 0x5beaba
nop dword [eax]
cmp edx, 0x10
lea eax, [ebp - 0x28]
cmovae eax, esi
cmp byte [eax + ecx], 0x2f
jne 0x5beab5
cmp edx, 0x10
lea eax, [ebp - 0x28]
cmovae eax, esi
mov byte [eax + ecx], 0x5c
mov edx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
mov esi, dword [ebp - 0x28]
inc ecx
cmp ecx, edi
jb 0x5bea90
xor edi, edi
mov dword [ebp - 0x2b4], 0
mov dword [ebp - 0x2b0], edi
push edi
push edi
cmp edx, 0x10
mov byte [ebp - 4], 1
push 0xffffffffffffffff
lea eax, [ebp - 0x28]
cmovae eax, esi
push eax
push edi
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x5beb0d
mov edi, eax
add eax, eax
push eax
push 0
mov dword [ebp - 0x2b0], edi
call fcn.00663d02
mov esi, eax
add esp, 8
mov dword [ebp - 0x2b4], esi
jmp 0x5beb13
mov esi, dword [ebp - 0x2b4]
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
push edi
cmovae ecx, dword [ebp - 0x28]
push esi
push 0xffffffffffffffff
push ecx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x5beb51
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne byte [ebp - 0x2a9]
jmp 0x5befa5
test al, 0x10
je 0x5bef86
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], 0
cmp byte [eax + ecx - 1], 0x5c
je 0x5beb8b
push 1
push 0x70eff4
lea ecx, [ebp - 0x28]
call fcn.004485a0
lea eax, [ebp - 0x2b4]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.005be920
mov eax, dword [ebp - 0x2b0]
inc eax
mov dword [ebp - 0x2b0], eax
add eax, eax
push eax
push dword [ebp - 0x2b4]
call fcn.00663d02
mov esi, eax
add esp, 0x10
mov dword [ebp - 0x2b4], esi
lea edi, [esi - 2]
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x5bebc4
mov eax, dword [0x72cdb8]
mov dword [edi], eax
lea eax, [ebp - 0x2a8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
mov dword [ebp - 0x2b8], edi
cmp edi, 0xffffffff
je 0x5bef29
mov edi, dword [ebp - 0x2b0]
nop dword [eax]
mov ecx, 0x69c918
lea eax, [ebp - 0x27c]
nop dword [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x5bec36
test dx, dx
je 0x5bec32
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x5bec36
add eax, 4
add ecx, 4
test dx, dx
jne 0x5bec10
xor eax, eax
jmp 0x5bec3b
sbb eax, eax
or eax, 1
test eax, eax
je 0x5bef08
mov ecx, 0x69c91c
lea eax, [ebp - 0x27c]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x5bec76
test dx, dx
je 0x5bec72
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x5bec76
add eax, 4
add ecx, 4
test dx, dx
jne 0x5bec50
xor eax, eax
jmp 0x5bec7b
sbb eax, eax
or eax, 1
test eax, eax
je 0x5bef08
test byte [ebp - 0x2a8], 0x10
je 0x5bed9a
lea eax, [ebp - 0x27c]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.005be990
add esp, 8
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
push dword [ebp - 0x18]
cmovae ecx, dword [ebp - 0x28]
push ecx
push 0
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.005a5ba0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x40], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x30], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
push dword [ebp + 0xc]
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 3
push eax
call fcn.005bea30
and byte [ebp - 0x2a9], al
add esp, 8
mov edx, dword [ebp - 0x2c]
mov byte [ebp - 4], 2
cmp edx, 0x10
jb 0x5bed47
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5bed3d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5bf003
push edx
push ecx
call fcn.0065d157
add esp, 8
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
mov byte [ebp - 4], 1
cmp edx, 0x10
jb 0x5bef08
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5bed8b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5bf003
push edx
push ecx
call fcn.0065d157
add esp, 8
jmp 0x5bef08
cmp byte [ebp + 0xc], 0
je 0x5bef01
lea eax, [ebp - 0x27c]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.005be990
add esp, 8
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
push dword [ebp - 0x18]
cmovae ecx, dword [ebp - 0x28]
push ecx
push 0
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.005a5ba0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
movups xmm0, xmmword [eax]
mov byte [ebp - 4], 1
movups xmmword [ebp - 0x40], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x30], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov edx, dword [ebp - 0x44]
cmp edx, 0x10
jb 0x5bee42
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5bee38
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5bf003
push edx
push ecx
call fcn.0065d157
add esp, 8
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
push 0
cmovae eax, dword [ebp - 0x40]
push 0
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, edi
jbe 0x5bee85
mov dword [ebp - 0x2b0], eax
add eax, eax
push eax
push esi
call fcn.00663d02
mov edi, dword [ebp - 0x2b0]
mov esi, eax
add esp, 8
mov dword [ebp - 0x2b4], esi
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
push edi
cmovae eax, dword [ebp - 0x40]
push esi
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test byte [ebp - 0x2a8], 1
je 0x5beeb7
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test byte [ebp - 0x2a9], al
mov edx, dword [ebp - 0x2c]
setne byte [ebp - 0x2a9]
cmp edx, 0x10
jb 0x5bef08
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5beef5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5bf003
push edx
push ecx
call fcn.0065d157
add esp, 8
jmp 0x5bef08
mov byte [ebp - 0x2aa], 1
lea eax, [ebp - 0x2a8]
push eax
push dword [ebp - 0x2b8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x5bec00
mov edi, dword [ebp - 0x2b8]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x5bef3d
mov byte [ebp - 0x2a9], 0
jmp 0x5befa5
cmp edi, 0xffffffff
je 0x5bef49
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp byte [ebp - 0x2a9], 0
je 0x5bef34
cmp byte [ebp - 0x2aa], 0
jne 0x5bef34
lea eax, [ebp - 0x2b4]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.005be920
mov esi, dword [ebp - 0x2b4]
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne byte [ebp - 0x2a9]
jmp 0x5befa5
cmp byte [ebp + 0xc], 0
je 0x5bef9e
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne byte [ebp - 0x2a9]
jmp 0x5befa5
mov byte [ebp - 0x2a9], 1
test esi, esi
je 0x5befb2
push esi
call fcn.00663ce7
add esp, 4
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x5befe2
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5befd8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5bf003
push edx
push ecx
call fcn.0065d157
add esp, 8
mov al, byte [ebp - 0x2a9]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0065d16a
mov esp, ebp
pop ebp
ret
call fcn.00663c8b
int3