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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x66c
and dword [ebp - 4], 0
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x4253c3
cmp word [esi], 0
je 0x4253c3
push 0x104
lea eax, [ebp - 0x210]
push esi
push eax
call sub.MSVCRT.dll_wcsncpy
xor eax, eax
push esi
mov word [ebp - 8], ax
call sub.MSVCRT.dll_wcslen
add esp, 0x10
test eax, eax
je 0x425160
cmp word [esi + eax*2 - 2], 0x5c
je 0x425160
lea eax, [ebp - 0x210]
push 0x45a1c4
push eax
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
push ebx
push edi
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x66c]
push eax
call sub.MSVCRT.dll_wcscpy
mov ebx, dword [ebp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
pop ecx
pop ecx
mov esi, 0x45a1bc
test ebx, ebx
je 0x425286
cmp word [ebx], 0
je 0x425286
push esi
push ebx
call sub.MSVCRT.dll_wcscmp
pop ecx
pop ecx
test eax, eax
je 0x425286
test byte [ebp + 0x10], 1
je 0x42528c
lea eax, [ebp - 0x66c]
push eax
lea eax, [ebp - 0x210]
push eax
call sub.MSVCRT.dll_wcscpy
lea eax, [ebp - 0x210]
push esi
push eax
call sub.MSVCRT.dll_wcscat
add esp, 0x10
lea eax, [ebp - 0x460]
push eax
lea eax, [ebp - 0x210]
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x42527d
lea eax, [ebp - 0x66c]
push eax
lea eax, [ebp - 0x210]
push eax
call sub.MSVCRT.dll_wcscpy
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x210]
push eax
call sub.MSVCRT.dll_wcscat
add esp, 0x10
test byte [ebp - 0x460], 0x10
je 0x425260
lea eax, [ebp - 0x434]
push 0x45a1b4
push eax
call sub.MSVCRT.dll_wcscmp
pop ecx
pop ecx
test eax, eax
je 0x425260
lea eax, [ebp - 0x434]
push 0x45a1b0
push eax
call sub.MSVCRT.dll_wcscmp
pop ecx
pop ecx
test eax, eax
je 0x425260
push dword [ebp + 0x10]
lea eax, [ebp - 0x210]
push ebx
push eax
call fcn.004250fd
lea eax, [ebp - 0x460]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4251f0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp + 8], 1
jmp 0x42528c
and dword [ebp + 8], 0
mov ebx, esi
lea eax, [ebp - 0x66c]
push eax
lea eax, [ebp - 0x210]
push eax
call sub.MSVCRT.dll_wcscpy
lea eax, [ebp - 0x210]
push ebx
push eax
call sub.MSVCRT.dll_wcscat
add esp, 0x10
lea eax, [ebp - 0x460]
push eax
lea eax, [ebp - 0x210]
push eax
call edi
mov dword [ebp + 0xc], eax
cmp eax, 0xffffffff
je 0x4253c1
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov edi, pe_nt_image_headers32
lea eax, [ebp - 0x66c]
push eax
lea eax, [ebp - 0x210]
push eax
call sub.MSVCRT.dll_wcscpy
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x210]
push eax
call sub.MSVCRT.dll_wcscat
add esp, 0x10
test byte [ebp - 0x460], 0x10
je 0x425354
cmp dword [ebp + 8], 0
jne 0x425371
test byte [ebp + 0x10], 1
je 0x425371
lea eax, [ebp - 0x434]
push 0x45a1b4
push eax
call sub.MSVCRT.dll_wcscmp
pop ecx
pop ecx
test eax, eax
je 0x425371
lea eax, [ebp - 0x434]
push 0x45a1b0
push eax
call sub.MSVCRT.dll_wcscmp
pop ecx
pop ecx
test eax, eax
je 0x425371
push dword [ebp + 0x10]
lea eax, [ebp - 0x210]
push ebx
push eax
call fcn.004250fd
jmp 0x425371
test byte [ebp + 0x10], 2
je 0x425364
push edi
lea eax, [ebp - 0x210]
push eax
call esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x460]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4252d6
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindClose]
test byte [ebp + 0x10], 2
je 0x4253a2
push edi
lea eax, [ebp - 0x66c]
push eax
call esi
cmp dword [ebp + 8], 0
je 0x4253b1
mov dword [ebp - 4], 1
jmp 0x4253c1
lea eax, [ebp - 0x66c]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov dword [ebp - 4], eax
pop edi
pop ebx
mov eax, dword [ebp - 4]
pop esi
leave
ret 0xc