Function at 0x428c73
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 edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x428f30
cmp word [edi], 0
je 0x428f30
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x210]
push edi
push eax
call sub.MSVCRT.dll_wcsncpy
xor eax, eax
push edi
mov word [ebp - 8], ax
call sub.MSVCRT.dll_wcslen
add esp, 0x10
test eax, eax
je 0x428cdc
cmp eax, esi
jge 0x428cdc
cmp word [edi + eax*2 - 2], 0x5c
je 0x428cdc
lea eax, [ebp - 0x210]
push 0x4665dc
push eax
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
push ebx
push esi
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x66c]
push eax
call sub.MSVCRT.dll_wcsncpy
mov ebx, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
xor eax, eax
mov word [ebp - 0x464], ax
mov eax, dword [ebp + 0xc]
add esp, 0xc
mov edi, 0x466604
test eax, eax
je 0x428dfd
cmp word [eax], 0
je 0x428dfd
push edi
push eax
call sub.MSVCRT.dll_wcscmp
pop ecx
pop ecx
test eax, eax
je 0x428dfd
test byte [ebp + 0x10], 1
je 0x428e04
lea eax, [ebp - 0x66c]
push eax
push 0x4665f8
lea eax, [ebp - 0x210]
push esi
push eax
call sub.MSVCRT.dll__snwprintf
add esp, 0x10
lea eax, [ebp - 0x460]
push eax
lea eax, [ebp - 0x210]
push eax
call ebx
mov edi, eax
cmp edi, 0xffffffff
je 0x428df4
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x66c]
push eax
push 0x4665ec
lea eax, [ebp - 0x210]
push esi
push eax
call sub.MSVCRT.dll__snwprintf
add esp, 0x14
test byte [ebp - 0x460], 0x10
je 0x428ddb
lea eax, [ebp - 0x434]
push 0x4665e4
push eax
call sub.MSVCRT.dll_wcscmp
pop ecx
pop ecx
test eax, eax
je 0x428ddb
lea eax, [ebp - 0x434]
push 0x4665e0
push eax
call sub.MSVCRT.dll_wcscmp
pop ecx
pop ecx
test eax, eax
je 0x428ddb
push dword [ebp + 0x10]
lea eax, [ebp - 0x210]
push dword [ebp + 0xc]
push eax
call fcn.00428c73
lea eax, [ebp - 0x460]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x428d6f
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp + 8], 1
jmp 0x428e04
and dword [ebp + 8], 0
mov dword [ebp + 0xc], edi
push dword [ebp + 0xc]
lea eax, [ebp - 0x66c]
push eax
mov edi, 0x4665ec
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call sub.MSVCRT.dll__snwprintf
add esp, 0x14
lea eax, [ebp - 0x460]
push eax
lea eax, [ebp - 0x210]
push eax
call ebx
mov ebx, eax
cmp ebx, 0xffffffff
je 0x428f2e
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x66c]
push eax
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call sub.MSVCRT.dll__snwprintf
add esp, 0x14
test byte [ebp - 0x460], 0x10
je 0x428eb5
cmp dword [ebp + 8], 0
jne 0x428eda
test byte [ebp + 0x10], 1
je 0x428eda
lea eax, [ebp - 0x434]
push 0x4665e4
push eax
call sub.MSVCRT.dll_wcscmp
pop ecx
pop ecx
test eax, eax
je 0x428eda
lea eax, [ebp - 0x434]
push 0x4665e0
push eax
call sub.MSVCRT.dll_wcscmp
pop ecx
pop ecx
test eax, eax
je 0x428eda
push dword [ebp + 0x10]
lea eax, [ebp - 0x210]
push dword [ebp + 0xc]
push eax
call fcn.00428c73
jmp 0x428eda
test byte [ebp + 0x10], 2
je 0x428ecd
push pe_nt_image_headers32
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x460]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x428e3f
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
test byte [ebp + 0x10], 2
je 0x428f0f
push pe_nt_image_headers32
lea eax, [ebp - 0x66c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [ebp + 8], 0
je 0x428f1e
mov dword [ebp - 4], 1
jmp 0x428f2e
lea eax, [ebp - 0x66c]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov dword [ebp - 4], eax
pop ebx
pop esi
mov eax, dword [ebp - 4]
pop edi
leave
ret 0xc