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

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x67
push 0
push 0
dec ecx
jne 0xd5aac
push ecx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0xd6516
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
inc dword [eax - 4]
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0006b234
lea eax, [ebp - 0x264]
xor ecx, ecx
mov edx, 0x250
call fcn.00012b38
mov dword [ebp - 0x10], 0xffffffff
xor eax, eax
push ebp
push 0xd6118
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x268]
mov ecx, 0xd6528
mov edx, dword [ebp - 0xc]
call fcn.00014548
mov eax, dword [ebp - 0x268]
call fcn.000144cc
push eax
call sub.kernel32.dll_FindFirstFileW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0xd60f4
lea eax, [ebp - 0x26c]
lea edx, [ebp - 0x238]
mov ecx, 0x104
call fcn.0001443c
mov eax, dword [ebp - 0x26c]
mov edx, 0xd6530
call fcn.000145f4
je 0xd60dc
lea eax, [ebp - 0x270]
lea edx, [ebp - 0x238]
mov ecx, 0x104
call fcn.0001443c
mov eax, dword [ebp - 0x270]
mov edx, 0xd6538
call fcn.000145f4
je 0xd60dc
test byte [ebp - 0x264], 0x10
jne 0xd5ddf
mov eax, dword [ebp + 8]
cmp byte [eax + 8], 0
jne 0xd5bf1
lea eax, [ebp - 0x27c]
lea edx, [ebp - 0x238]
mov ecx, 0x104
call fcn.0001443c
mov eax, dword [ebp - 0x27c]
lea edx, [ebp - 0x278]
call fcn.0006b4cc
mov eax, dword [ebp - 0x278]
lea edx, [ebp - 0x274]
call fcn.0006bd60
mov eax, dword [ebp - 0x274]
mov edx, 0xd6544
call fcn.000145f4
je 0xd60dc
lea eax, [ebp - 0x280]
lea edx, [ebp - 0x238]
mov ecx, 0x104
call fcn.0001443c
mov ecx, dword [ebp - 0x280]
lea eax, [ebp - 8]
mov edx, dword [ebp - 0xc]
call fcn.00014548
push 0x80
mov eax, dword [ebp - 8]
call fcn.000144cc
push eax
call sub.kernel32.dll_SetFileAttributesW
mov eax, dword [ebp - 8]
call fcn.000144cc
push eax
call sub.kernel32.dll_DeleteFileW
test eax, eax
jne 0xd5dc3
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
inc dword [eax - 8]
mov eax, dword [ebp + 8]
cmp dword [eax - 8], 0x32
ja 0xd5cdc
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 0
je 0xd5cdc
push 0xd6554
push dword [ebp - 8]
lea edx, [ebp - 0x290]
mov eax, 0xd6574
call fcn.0007a2b0
lea eax, [ebp - 0x290]
push eax
lea edx, [ebp - 0x294]
mov eax, dword [ebp - 0x14]
call fcn.000766dc
mov edx, dword [ebp - 0x294]
pop eax
call fcn.00013f00
mov edx, dword [ebp - 0x290]
lea eax, [ebp - 0x28c]
call fcn.00014458
push dword [ebp - 0x28c]
lea eax, [ebp - 0x288]
mov edx, 3
call fcn.000145ac
mov edx, dword [ebp - 0x288]
lea ecx, [ebp - 0x284]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
call fcn.00082e78
push 0
mov eax, dword [ebp - 8]
call fcn.000144cc
push eax
call sub.kernel32.dll_SetFileAttributesW
mov eax, dword [ebp - 8]
call fcn.000144cc
push eax
call sub.kernel32.dll_DeleteFileW
test eax, eax
jne 0xd5da7
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
inc dword [eax - 8]
mov eax, dword [ebp + 8]
cmp dword [eax - 8], 0x32
ja 0xd5d9d
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 0
je 0xd5d9d
push 0xd657c
push dword [ebp - 8]
lea edx, [ebp - 0x2a4]
mov eax, 0xd6574
call fcn.0007a2b0
lea eax, [ebp - 0x2a4]
push eax
lea edx, [ebp - 0x2a8]
mov eax, dword [ebp - 0x14]
call fcn.000766dc
mov edx, dword [ebp - 0x2a8]
pop eax
call fcn.00013f00
mov edx, dword [ebp - 0x2a4]
lea eax, [ebp - 0x2a0]
call fcn.00014458
push dword [ebp - 0x2a0]
lea eax, [ebp - 0x29c]
mov edx, 3
call fcn.000145ac
mov edx, dword [ebp - 0x29c]
lea ecx, [ebp - 0x298]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
call fcn.00082e78
mov eax, dword [ebp + 8]
mov dword [eax - 0x10], 3
mov eax, dword [ebp + 8]
cmp dword [eax - 0x10], 1
jne 0xd60dc
mov eax, dword [ebp + 8]
mov dword [eax - 0x10], 2
jmp 0xd60dc
mov eax, dword [ebp + 8]
cmp dword [eax - 0x10], 1
jne 0xd60dc
mov eax, dword [ebp + 8]
mov dword [eax - 0x10], 2
jmp 0xd60dc
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 0x3e8
jae 0xd608d
lea eax, [ebp - 8]
lea edx, [ebp - 0x238]
mov ecx, 0x104
call fcn.0001443c
lea eax, [ebp - 8]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
call fcn.00014548
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 8]
call fcn.000d5aa4
pop ecx
push 0x80
mov eax, dword [ebp - 8]
call fcn.000144cc
push eax
call sub.kernel32.dll_SetFileAttributesW
mov eax, dword [ebp - 8]
call fcn.000144cc
push eax
call sub.kernel32.dll_RemoveDirectoryW
test eax, eax
jne 0xd60dc
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 2
je 0xd60dc
mov eax, dword [ebp + 8]
inc dword [eax - 8]
mov eax, dword [ebp + 8]
cmp dword [eax - 8], 0x32
ja 0xd5eeb
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 0
je 0xd5eeb
push 0xd65a0
push dword [ebp - 8]
lea edx, [ebp - 0x2b8]
mov eax, 0xd65cc
call fcn.0007a2b0
lea eax, [ebp - 0x2b8]
push eax
lea edx, [ebp - 0x2bc]
mov eax, dword [ebp - 0x14]
call fcn.000766dc
mov edx, dword [ebp - 0x2bc]
pop eax
call fcn.00013f00
mov edx, dword [ebp - 0x2b8]
lea eax, [ebp - 0x2b4]
call fcn.00014458
push dword [ebp - 0x2b4]
lea eax, [ebp - 0x2b0]
mov edx, 3
call fcn.000145ac
mov edx, dword [ebp - 0x2b0]
lea ecx, [ebp - 0x2ac]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
call fcn.00082e78
push 0x10
mov eax, dword [ebp - 8]
call fcn.000144cc
push eax
call sub.kernel32.dll_SetFileAttributesW
mov eax, dword [ebp - 8]
call fcn.000144cc
push eax
call sub.kernel32.dll_RemoveDirectoryW
test eax, eax
jne 0xd60dc
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 2
je 0xd5fb6
mov eax, dword [ebp + 8]
inc dword [eax - 8]
mov eax, dword [ebp + 8]
cmp dword [eax - 8], 0x32
ja 0xd5fb6
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 0
je 0xd5fb6
push 0xd65d4
push dword [ebp - 8]
lea edx, [ebp - 0x2cc]
mov eax, 0xd65cc
call fcn.0007a2b0
lea eax, [ebp - 0x2cc]
push eax
lea edx, [ebp - 0x2d0]
mov eax, dword [ebp - 0x14]
call fcn.000766dc
mov edx, dword [ebp - 0x2d0]
pop eax
call fcn.00013f00
mov edx, dword [ebp - 0x2cc]
lea eax, [ebp - 0x2c8]
call fcn.00014458
push dword [ebp - 0x2c8]
lea eax, [ebp - 0x2c4]
mov edx, 3
call fcn.000145ac
mov edx, dword [ebp - 0x2c4]
lea ecx, [ebp - 0x2c0]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
call fcn.00082e78
push 0
mov eax, dword [ebp - 8]
call fcn.000144cc
push eax
call sub.kernel32.dll_SetFileAttributesW
mov eax, dword [ebp - 8]
call fcn.000144cc
push eax
call sub.kernel32.dll_RemoveDirectoryW
test eax, eax
jne 0xd60dc
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 2
je 0xd60dc
mov eax, dword [ebp + 8]
inc dword [eax - 8]
mov eax, dword [ebp + 8]
cmp dword [eax - 8], 0x32
ja 0xd6081
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 0
je 0xd6081
push 0xd6604
push dword [ebp - 8]
lea edx, [ebp - 0x2e0]
mov eax, 0xd65cc
call fcn.0007a2b0
lea eax, [ebp - 0x2e0]
push eax
lea edx, [ebp - 0x2e4]
mov eax, dword [ebp - 0x14]
call fcn.000766dc
mov edx, dword [ebp - 0x2e4]
pop eax
call fcn.00013f00
mov edx, dword [ebp - 0x2e0]
lea eax, [ebp - 0x2dc]
call fcn.00014458
push dword [ebp - 0x2dc]
lea eax, [ebp - 0x2d8]
mov edx, 3
call fcn.000145ac
mov edx, dword [ebp - 0x2d8]
lea ecx, [ebp - 0x2d4]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
call fcn.00082e78
mov eax, dword [ebp + 8]
mov dword [eax - 0x10], 3
jmp 0xd60dc
lea edx, [ebp - 0x2ec]
mov eax, 0xd6630
call fcn.0007a2b0
lea eax, [ebp - 0x2ec]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x2f0]
call fcn.00076650
mov edx, dword [ebp - 0x2f0]
pop eax
call fcn.00013f00
mov edx, dword [ebp - 0x2ec]
lea ecx, [ebp - 0x2e8]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
call fcn.00082e04
lea eax, [ebp - 0x264]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_FindNextFileW
test eax, eax
jne 0xd5b35
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xd611f
cmp dword [ebp - 0x10], 0xffffffff
je 0xd6110
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_FindClose_1
mov dword [ebp - 0x10], 0xffffffff
ret