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

Disassembly:
mov eax, 0x1c54
call fcn.00444260
mov eax, dword [0x4a6c44]
xor eax, esp
mov dword [esp + 0x1c50], eax
push esi
mov esi, dword [esp + 0x1c60]
push edi
mov edi, dword [esp + 0x1c60]
test edi, edi
je 0x4143ef
cmp byte [edi], 0
je 0x4143ef
push ebp
push edi
lea eax, [esp + 0x260]
push 0x47f334
push eax
call fcn.00407cd0
push 0x200
lea eax, [esp + 0x46c]
push eax
lea eax, [esp + 0x270]
push eax
call fcn.00416680
add esp, 0x18
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x460]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x4141f2
push 0x200
lea eax, [esp + 0x860]
push eax
push edi
call fcn.00416680
add esp, 0xc
lea eax, [esp + 0x85c]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
pop ebp
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x1c50]
xor ecx, esp
call fcn.00444138
add esp, 0x1c54
ret
push ebx
mov ecx, 0x47f33c
lea eax, [esp + 0x3c]
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x414226
test dx, dx
je 0x414222
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x414226
add eax, 4
add ecx, 4
test dx, dx
jne 0x414200
xor eax, eax
jmp 0x41422b
sbb eax, eax
or eax, 1
test eax, eax
je 0x414316
mov eax, 0x47f340
lea ecx, [esp + 0x3c]
nop dword [eax]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x414266
test dx, dx
je 0x414262
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x414266
add ecx, 4
add eax, 4
test dx, dx
jne 0x414240
xor eax, eax
jmp 0x41426b
sbb eax, eax
or eax, 1
test eax, eax
je 0x414316
push 0x200
lea eax, [esp + 0x864]
push eax
lea eax, [esp + 0x44]
push eax
call fcn.00416610
lea eax, [esp + 0x86c]
push eax
push edi
lea eax, [esp + 0x274]
push 0x47cb80
push eax
call fcn.00407cd0
push 0x200
lea eax, [esp + 0x480]
push eax
lea eax, [esp + 0x284]
push eax
call fcn.00416680
mov ebx, dword [esp + 0x38]
lea eax, [esp + 0x488]
add esp, 0x28
and ebx, 0xfffffff8
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test bl, 0x10
je 0x4142ee
lea eax, [esp + 0x260]
push esi
push eax
call fcn.00414130
add esp, 8
lea eax, [esp + 0x260]
push esi
push eax
call fcn.004472c0
add esp, 8
test eax, eax
je 0x414308
cmp byte [esi], 0
jne 0x414316
lea eax, [esp + 0x460]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esp + 0x10]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4141f3
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x200
lea eax, [esp + 0xc64]
push eax
push edi
call fcn.00416680
add esp, 0xc
lea eax, [esp + 0xc60]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push 0
push 0x400
lea eax, [esp + 0x1468]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
push 0x400
lea eax, [esp + 0x1064]
push eax
lea eax, [esp + 0x1468]
push eax
call fcn.00416610
add esp, 0xc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
call fcn.00470f20
push eax
push esi
lea eax, [esp + 0x106c]
push eax
push edi
push str.End_of_RemoveAllFile:_path___s___s__error_code:__d__error:__s
push 0xc2b
push 0x47eb88
push 3
push str.Utility::RemoveAllFile
push dword [0x4a9068]
call fcn.0040eee0
add esp, 0x2c
mov al, 1
pop ebx
pop ebp
pop edi
pop esi
mov ecx, dword [esp + 0x1c50]
xor ecx, esp
call fcn.00444138
add esp, 0x1c54
ret
mov ecx, dword [esp + 0x1c58]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.00444138
add esp, 0x1c54
ret