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

Disassembly:
push ebp
sub esp, 0x884
lea ebp, [esp - 4]
mov eax, dword [0x445bbc]
xor eax, ebp
mov dword [ebp + 0x884], eax
push 8
mov eax, 0x42f9f6
call fcn.00428eb0
mov esi, dword [ebp + 0x890]
mov dword [ebp - 0x14], esi
test esi, esi
je 0x418a6c
xor eax, eax
cmp ax, word [esi]
je 0x418a6c
push esi
call fcn.00418578
pop ecx
test al, al
je 0x418a6c
push esi
lea ecx, [ebp + 0x250]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
mov eax, dword [ebp + 0x264]
and dword [ebp - 4], 0
dec eax
push eax
lea ecx, [ebp + 0x250]
call dword [sym.imp.MSVCP90.dll_public:_wchar_t____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator___unsigned_int_]
movzx eax, word [eax]
cmp ax, 0x5c
je 0x41886c
cmp ax, 0x2f
je 0x41886c
push 0x4389c0
lea ecx, [ebp + 0x250]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
xor eax, eax
push 0x206
push eax
mov word [ebp + 0x474], ax
lea eax, [ebp + 0x476]
push eax
call sub.MSVCR90.dll_memset
mov eax, dword [ebp + 0x254]
add esp, 0xc
cmp dword [ebp + 0x268], 8
jae 0x41889f
lea eax, [ebp + 0x254]
mov esi, dword [sym.imp.MSVCR90.dll__swprintf]
push eax
lea eax, [ebp + 0x474]
push str._s.
push eax
call esi
add esp, 0xc
lea eax, [ebp]
push eax
lea eax, [ebp + 0x474]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
je 0x418a68
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, 0x4349c0
lea eax, [ebp + 0x2c]
push 0x4349bc
push eax
call dword [sym.imp.MSVCR90.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x418a1c
lea eax, [ebp + 0x2c]
push 0x4349b4
push eax
call dword [sym.imp.MSVCR90.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x418a1c
test byte [ebp], 0x10
je 0x41897a
xor eax, eax
push 0x206
push eax
mov word [ebp + 0x67c], ax
lea eax, [ebp + 0x67e]
push eax
call sub.MSVCR90.dll_memset
mov eax, dword [ebp + 0x254]
add esp, 0xc
cmp dword [ebp + 0x268], 8
jae 0x41894a
lea eax, [ebp + 0x254]
lea ecx, [ebp + 0x2c]
push ecx
push eax
lea eax, [ebp + 0x67c]
push edi
push eax
call esi
lea eax, [ebp + 0x67c]
push eax
call fcn.004187d8
add esp, 0x14
lea eax, [ebp + 0x67c]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x418a1c
lea eax, [ebp + 0x2c]
push str.Thumbs.db
push eax
call dword [sym.imp.MSVCR90.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x4189da
push 0x206
push eax
mov word [ebp + 0x67c], ax
lea eax, [ebp + 0x67e]
push eax
call sub.MSVCR90.dll_memset
mov eax, dword [ebp + 0x254]
add esp, 0xc
cmp dword [ebp + 0x268], 8
jae 0x4189c0
lea eax, [ebp + 0x254]
push eax
lea eax, [ebp + 0x67c]
push str._sThumbs.db
push eax
call esi
add esp, 0xc
lea eax, [ebp + 0x67c]
jmp 0x418a19
cmp dword [ebp + 0x268], 8
mov eax, dword [ebp + 0x254]
jae 0x4189ef
lea eax, [ebp + 0x254]
lea ecx, [ebp + 0x2c]
push ecx
push eax
lea eax, [ebp + 0x26c]
push edi
push eax
call esi
add esp, 0x10
push 0x80
lea eax, [ebp + 0x26c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp + 0x26c]
push eax
call ebx
lea eax, [ebp]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4188df
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push dword [ebp - 0x14]
call fcn.00418578
mov bl, al
neg bl
sbb bl, bl
pop ecx
inc bl
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x250]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov al, bl
jmp 0x418a79
xor bl, bl
jmp 0x418a54
push 0x132b3a1
call fcn.00419cbd
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x884]
xor ecx, ebp
call fcn.0042898c
add ebp, 0x888
leave
ret