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

Disassembly:
push ebp
sub esp, 0x288
lea ebp, [esp - 4]
mov eax, dword [0x488180]
xor eax, ebp
mov dword [ebp + 0x288], eax
push 0x30
mov eax, 0x462457
call fcn.00447edc
mov ebx, dword [ebp + 0x294]
xor edi, edi
mov dword [ebp - 0x18], edi
cmp dword [ebx + 0x18], 8
mov dword [ebp - 0x20], ecx
jb 0x419ee6
mov eax, dword [ebx + 4]
jmp 0x419ee9
lea eax, [ebx + 4]
movzx edx, byte [ebp + 0x298]
push edx
push eax
push str.deleteDirectory__S_childrenOnly_d
lea esi, [ecx + 0x188]
call fcn.0040939b
push 7
pop eax
xor ecx, ecx
mov byte [ebp - 0x11], 0
mov dword [ebp + 0x284], eax
mov dword [ebp + 0x280], edi
mov word [ebp + 0x270], cx
mov dword [ebp - 4], edi
mov dword [ebp + 0x268], eax
xor eax, eax
mov dword [ebp + 0x264], edi
mov word [ebp + 0x254], ax
push 0x47014c
lea eax, [ebp - 0x3c]
push ebx
push eax
mov byte [ebp - 4], 1
call fcn.0040ba03
add esp, 0x18
push 0xffffffffffffffff
push edi
lea ecx, [ebp + 0x250]
mov byte [ebp - 4], 2
call fcn.004098a1
push edi
xor edi, edi
inc edi
push edi
lea esi, [ebp - 0x3c]
mov byte [ebp - 4], 1
call fcn.00409a53
cmp dword [ebp + 0x268], 8
mov eax, dword [ebp + 0x254]
jae 0x419f84
lea eax, [ebp + 0x254]
lea ecx, [ebp]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x1c], eax
cmp eax, 0xffffffff
je 0x41a0ee
push dword [ebp - 0x20]
mov byte [ebp - 4], 3
call fcn.0041b467
mov dword [ebp - 4], edi
cmp word [ebp + 0x2c], 0x2e
je 0x41a096
push 0xffffffffffffffff
xor edi, edi
lea esi, [ebp + 0x26c]
call fcn.0040a5b1
lea eax, [ebp + 0x2c]
push eax
lea eax, [ebp - 0x3c]
push ebx
push eax
call fcn.0040ba03
add esp, 0xc
push 0xffffffffffffffff
push edi
mov ecx, esi
mov byte [ebp - 4], 5
call fcn.004098a1
push edi
inc edi
push edi
lea esi, [ebp - 0x3c]
mov byte [ebp - 4], 1
call fcn.00409a53
test byte [ebp], 0x10
je 0x41a04d
push 0x469990
lea eax, [ebp + 0x26c]
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.0040ba03
add esp, 0xc
mov ecx, dword [ebp - 0x20]
push 0
mov byte [ebp - 4], 6
or dword [ebp - 0x18], edi
push eax
call fcn.00419ea9
test al, al
jne 0x41a02e
cmp byte [ebp - 0x11], al
mov byte [ebp - 0x11], al
je 0x41a032
mov byte [ebp - 0x11], 1
mov dword [ebp - 4], edi
test byte [ebp - 0x18], 1
je 0x41a096
and dword [ebp - 0x18], 0xfffffffe
push 0
push 1
lea esi, [ebp - 0x3c]
call fcn.00409a53
jmp 0x41a096
cmp dword [ebp + 0x284], 8
mov eax, dword [ebp + 0x270]
jae 0x41a062
lea eax, [ebp + 0x270]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x41a092
cmp dword [ebp + 0x284], 8
mov eax, dword [ebp + 0x270]
jae 0x41a087
lea eax, [ebp + 0x270]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x41a096
mov byte [ebp - 0x11], 1
lea eax, [ebp]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
xor edi, edi
inc edi
cmp eax, edi
je 0x419f9b
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_FindClose]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x41a0ea
cmp byte [ebp + 0x298], 0
jne 0x41a0ee
cmp dword [ebx + 0x18], 8
lea esi, [ebx + 4]
jb 0x41a0d8
mov eax, dword [esi]
jmp 0x41a0da
mov eax, esi
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x41a132
mov byte [ebp - 0x11], 1
push 0
push edi
lea esi, [ebp + 0x250]
call fcn.00409a53
push 0
push edi
lea esi, [ebp + 0x26c]
call fcn.00409a53
mov al, byte [ebp - 0x11]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x288]
xor ecx, ebp
call fcn.00443d6d
add ebp, 0x28c
leave
ret 8
cmp dword [ebx + 0x18], 8
jb 0x41a13a
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x41a0ee
jmp 0x41a0ea