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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4eb0d0
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x2a8
mov eax, dword [0x522104]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, dword [edi + 0x10]
test ecx, ecx
jne 0x488041
xor al, al
jmp 0x4882e6
mov eax, 0x7ffffffe
sub eax, ecx
cmp eax, 2
jb 0x488304
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x48805b
mov eax, dword [edi]
push 2
push 0x50bbc0
push ecx
push eax
push ecx
push dword [ebp - 0x18]
lea ecx, [ebp - 0x2a0]
call fcn.0040a4c0
cmp dword [ebp - 0x28c], 8
lea ecx, [ebp - 0x288]
lea eax, [ebp - 0x2a0]
cmovae eax, dword [ebp - 0x2a0]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov dword [ebp - 0x34], esi
lea ecx, [ebp - 0x2a0]
mov dword [ebp - 4], 0
call fcn.0040ab30
cmp esi, 0xffffffff
je 0x488251
nop word [eax + eax]
mov ecx, 0x502774
lea eax, [ebp - 0x25c]
nop dword [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4880f6
test dx, dx
je 0x4880f2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4880f6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4880d0
xor eax, eax
jmp 0x4880fb
sbb eax, eax
or eax, 1
test eax, eax
je 0x488234
mov eax, 0x50bbc8
lea ecx, [ebp - 0x25c]
nop
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x488136
test dx, dx
je 0x488132
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x488136
add ecx, 4
add eax, 4
test dx, dx
jne 0x488110
xor eax, eax
jmp 0x48813b
sbb eax, eax
or eax, 1
test eax, eax
je 0x488234
mov ecx, dword [edi + 0x10]
mov eax, 0x5c
mov word [ebp - 0x18], ax
cmp ecx, 0x7ffffffe
je 0x488304
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x488165
mov eax, dword [edi]
push 1
lea edx, [ebp - 0x18]
push edx
push ecx
push eax
push ecx
push dword [ebp - 0x18]
lea ecx, [ebp - 0x2b8]
call fcn.0040a4c0
lea ecx, [ebp - 0x25c]
mov byte [ebp - 4], 1
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x488190
sub ecx, edx
lea eax, [ebp - 0x25c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x2b8]
call fcn.0040a6b0
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x1c], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x30], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x20], xmm0
mov byte [ebp - 4], 3
xor ecx, ecx
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea ecx, [ebp - 0x2b8]
call fcn.0040ab30
mov eax, dword [ebp - 0x288]
test al, 0x10
je 0x48821e
test eax, 0x400
jne 0x488228
push 1
push 0
mov dl, 1
lea ecx, [ebp - 0x30]
call fcn.00487ff0
add esp, 8
jmp 0x488228
mov dl, 1
lea ecx, [ebp - 0x30]
call fcn.00489010
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0
call fcn.0040ab30
lea eax, [ebp - 0x288]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4880c0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x48825b
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4882c8
test al, 0x10
je 0x4882c8
xor esi, esi
nop dword [eax]
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x48827a
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4882a5
and eax, 0x3126
mov ecx, 0x80
cmove eax, ecx
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x48829d
mov ecx, dword [edi]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x4882af
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x4882c8
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 1
jl 0x488270
cmp dword [edi + 0x14], 8
jb 0x4882d0
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4882e4
test al, 0x10
jne 0x48803a
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a4c5b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0040a8d0
int3