Function at 0x595070
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7bc099
mov eax, dword fs:[0]
push eax
sub esp, 0x690
mov eax, dword [0x89b044]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
push 0x7faccc
push 1
lea eax, [ebp - 0x684]
push eax
lea ecx, [ebp + 8]
call fcn.00422bd0
mov dword [ebp - 0x694], eax
mov ecx, dword [ebp - 0x694]
push ecx
call fcn.00467600
add esp, 8
mov byte [ebp - 0x67d], al
lea ecx, [ebp - 0x684]
call fcn.00405ef0
movzx edx, byte [ebp - 0x67d]
test edx, edx
je 0x5950f3
push 0x5c
lea ecx, [ebp + 8]
call fcn.0046f000
lea ecx, [ebp + 8]
call fcn.00405e80
push eax
lea eax, [ebp - 0x674]
push eax
call fcn.0072a1ae
add esp, 8
push 0x7facd0
lea ecx, [ebp - 0x674]
push ecx
call fcn.0072a180
add esp, 8
lea ecx, [ebp + 8]
call fcn.00405e80
push eax
lea edx, [ebp - 0x46c]
push edx
call fcn.0072a1ae
add esp, 8
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0x674]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x67c], eax
cmp dword [ebp - 0x67c], 0xffffffff
jne 0x59517b
mov byte [ebp - 0x685], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00405ef0
mov al, byte [ebp - 0x685]
jmp 0x595395
lea edx, [ebp - 0x46c]
push edx
lea eax, [ebp - 0x674]
push eax
call fcn.0072a1ae
add esp, 8
mov byte [ebp - 0x675], 1
movzx ecx, byte [ebp - 0x675]
test ecx, ecx
je 0x595359
lea edx, [ebp - 0x264]
push edx
mov eax, dword [ebp - 0x67c]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x595315
push 0x7facd8
lea ecx, [ebp - 0x238]
push ecx
call fcn.00723784
add esp, 8
test eax, eax
je 0x5951f3
push 0x7facdc
lea edx, [ebp - 0x238]
push edx
call fcn.00723784
add esp, 8
test eax, eax
jne 0x5951f5
jmp 0x595198
lea eax, [ebp - 0x238]
push eax
lea ecx, [ebp - 0x46c]
push ecx
call fcn.0072a180
add esp, 8
mov edx, dword [ebp - 0x264]
and edx, 0x10
je 0x5952a1
push ecx
mov ecx, esp
mov dword [ebp - 0x68c], esp
lea eax, [ebp - 0x46c]
push eax
call fcn.004068d0
mov dword [ebp - 0x698], eax
call fcn.00595070
add esp, 4
mov byte [ebp - 0x699], al
movzx ecx, byte [ebp - 0x699]
test ecx, ecx
jne 0x59527c
mov edx, dword [ebp - 0x67c]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov byte [ebp - 0x68d], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00405ef0
mov al, byte [ebp - 0x68d]
jmp 0x595395
lea eax, [ebp - 0x46c]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [ebp - 0x674]
push ecx
lea edx, [ebp - 0x46c]
push edx
call fcn.0072a1ae
add esp, 8
jmp 0x595313
mov eax, dword [ebp - 0x264]
and eax, 1
je 0x5952be
push 0x80
lea ecx, [ebp - 0x46c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea edx, [ebp - 0x46c]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x5952fd
mov eax, dword [ebp - 0x67c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov byte [ebp - 0x68e], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00405ef0
mov al, byte [ebp - 0x68e]
jmp 0x595395
lea ecx, [ebp - 0x674]
push ecx
lea edx, [ebp - 0x46c]
push edx
call fcn.0072a1ae
add esp, 8
jmp 0x595354
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x595329
mov byte [ebp - 0x675], 0
jmp 0x595354
mov eax, dword [ebp - 0x67c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov byte [ebp - 0x68f], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00405ef0
mov al, byte [ebp - 0x68f]
jmp 0x595395
jmp 0x595198
mov ecx, dword [ebp - 0x67c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp + 8]
call fcn.00405e80
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne dl
mov byte [ebp - 0x690], dl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00405ef0
mov al, byte [ebp - 0x690]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0071fe0b
mov esp, ebp
pop ebp
ret