Function at 0x4728f0
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
push 0xffffffffffffffff
push 0x4ca1e7
mov eax, dword fs:[0]
push eax
sub esp, 0x26c
mov eax, dword [0x4ff080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x270], ecx
mov eax, dword [ebp + 0x18]
mov esi, dword [ebp + 8]
push str..
mov dword [ebp - 0x268], eax
lea eax, [ebp - 0x274]
push ecx
push eax
call fcn.004698c0
add esp, 0xc
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x260]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
mov dword [ebp - 0x26c], ebx
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov edx, dword [ebp - 0x274]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x472988
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp ebx, 0xffffffff
je 0x472b57
mov ebx, dword [ebp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
nop word [eax + eax]
mov ecx, 0x4ea6e4
lea eax, [ebp - 0x234]
nop dword [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4729d6
test dx, dx
je 0x4729d2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4729d6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4729b0
xor eax, eax
jmp 0x4729db
sbb eax, eax
or eax, 1
test eax, eax
je 0x472b30
mov eax, 0x4ea6e8
lea ecx, [ebp - 0x234]
nop
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x472a16
test dx, dx
je 0x472a12
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x472a16
add ecx, 4
add eax, 4
test dx, dx
jne 0x4729f0
xor eax, eax
jmp 0x472a1b
sbb eax, eax
or eax, 1
test eax, eax
je 0x472b30
push 0x4e8858
push dword [ebp - 0x270]
lea eax, [ebp - 0x278]
push eax
call fcn.004698c0
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x234]
push ecx
push eax
lea eax, [ebp - 0x264]
push eax
call fcn.004698c0
add esp, 0x18
mov byte [ebp - 4], 4
or eax, 0xffffffff
mov edx, dword [ebp - 0x278]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x472a7a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test byte [ebp - 0x260], 0x10
je 0x472aad
push dword [ebp - 0x268]
mov dl, 1
lea ecx, [ebp - 0x264]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ebx
push esi
call fcn.004728f0
add esp, 0x14
push dword [ebp - 0x264]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test bl, bl
je 0x472ac4
mov eax, dword [ebp - 0x268]
push dword [eax]
push dword [ebp - 0x264]
call fcn.00467f40
push 0x80
push dword [ebp - 0x264]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [ebp - 0x264]
call edi
push dword [ebp - 0x264]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x472b0b
mov ecx, dword [ebp - 0x264]
call fcn.00472200
test al, al
je 0x472b0b
push dword [ebp - 0x264]
call edi
test eax, eax
je 0x472b0b
mov byte [esi], 1
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp - 0x264]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x472b30
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x26c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4729a0
push dword [ebp - 0x26c]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x270]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a9b96
mov esp, ebp
pop ebp
ret