Function at 0x411d95
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 0x412052
cmp word [edi], 0
je 0x412052
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 0x411dfe
cmp eax, esi
jge 0x411dfe
cmp word [edi + eax*2 - 2], 0x5c
je 0x411dfe
lea eax, [ebp - 0x210]
push 0x41d470
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, 0x41d468
test eax, eax
je 0x411f1f
cmp word [eax], 0
je 0x411f1f
push edi
push eax
call sub.MSVCRT.dll_wcscmp
pop ecx
pop ecx
test eax, eax
je 0x411f1f
test byte [ebp + 0x10], 1
je 0x411f26
lea eax, [ebp - 0x66c]
push eax
push str._s.
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 0x411f16
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x66c]
push eax
push str._s_s
lea eax, [ebp - 0x210]
push esi
push eax
call sub.MSVCRT.dll__snwprintf
add esp, 0x14
test byte [ebp - 0x460], 0x10
je 0x411efd
lea eax, [ebp - 0x434]
push 0x41d448
push eax
call sub.MSVCRT.dll_wcscmp
pop ecx
pop ecx
test eax, eax
je 0x411efd
lea eax, [ebp - 0x434]
push 0x41d444
push eax
call sub.MSVCRT.dll_wcscmp
pop ecx
pop ecx
test eax, eax
je 0x411efd
push dword [ebp + 0x10]
lea eax, [ebp - 0x210]
push dword [ebp + 0xc]
push eax
call fcn.00411d95
lea eax, [ebp - 0x460]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x411e91
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp + 8], 1
jmp 0x411f26
and dword [ebp + 8], 0
mov dword [ebp + 0xc], edi
push dword [ebp + 0xc]
lea eax, [ebp - 0x66c]
push eax
mov edi, str._s_s
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 0x412050
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 0x411fd7
cmp dword [ebp + 8], 0
jne 0x411ffc
test byte [ebp + 0x10], 1
je 0x411ffc
lea eax, [ebp - 0x434]
push 0x41d448
push eax
call sub.MSVCRT.dll_wcscmp
pop ecx
pop ecx
test eax, eax
je 0x411ffc
lea eax, [ebp - 0x434]
push 0x41d444
push eax
call sub.MSVCRT.dll_wcscmp
pop ecx
pop ecx
test eax, eax
je 0x411ffc
push dword [ebp + 0x10]
lea eax, [ebp - 0x210]
push dword [ebp + 0xc]
push eax
call fcn.00411d95
jmp 0x411ffc
test byte [ebp + 0x10], 2
je 0x411fef
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 0x411f61
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
test byte [ebp + 0x10], 2
je 0x412031
push pe_nt_image_headers32
lea eax, [ebp - 0x66c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [ebp + 8], 0
je 0x412040
mov dword [ebp - 4], 1
jmp 0x412050
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