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

Disassembly:
mov eax, 0x1c54
call fcn.00444200
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 0x41437f
cmp byte [edi], 0
je 0x41437f
push ebp
push edi
lea eax, [esp + 0x260]
push 0x47f2fc
push eax
call fcn.00407cd0
push 0x200
lea eax, [esp + 0x46c]
push eax
lea eax, [esp + 0x270]
push eax
call fcn.00416610
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 0x414182
push 0x200
lea eax, [esp + 0x860]
push eax
push edi
call fcn.00416610
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.004440d2
add esp, 0x1c54
ret
push ebx
mov ecx, 0x47f304
lea eax, [esp + 0x3c]
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4141b6
test dx, dx
je 0x4141b2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4141b6
add eax, 4
add ecx, 4
test dx, dx
jne 0x414190
xor eax, eax
jmp 0x4141bb
sbb eax, eax
or eax, 1
test eax, eax
je 0x4142a6
mov eax, 0x47f308
lea ecx, [esp + 0x3c]
nop dword [eax]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x4141f6
test dx, dx
je 0x4141f2
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x4141f6
add ecx, 4
add eax, 4
test dx, dx
jne 0x4141d0
xor eax, eax
jmp 0x4141fb
sbb eax, eax
or eax, 1
test eax, eax
je 0x4142a6
push 0x200
lea eax, [esp + 0x864]
push eax
lea eax, [esp + 0x44]
push eax
call fcn.004165a0
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.00416610
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 0x41427e
lea eax, [esp + 0x260]
push esi
push eax
call fcn.004140c0
add esp, 8
lea eax, [esp + 0x260]
push esi
push eax
call fcn.00447260
add esp, 8
test eax, eax
je 0x414298
cmp byte [esi], 0
jne 0x4142a6
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 0x414183
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x200
lea eax, [esp + 0xc64]
push eax
push edi
call fcn.00416610
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.004165a0
add esp, 0xc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
call fcn.00470ed0
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 0x47eb50
push 3
push str.Utility::RemoveAllFile
push dword [0x4a9068]
call fcn.0040ee70
add esp, 0x2c
mov al, 1
pop ebx
pop ebp
pop edi
pop esi
mov ecx, dword [esp + 0x1c50]
xor ecx, esp
call fcn.004440d2
add esp, 0x1c54
ret
mov ecx, dword [esp + 0x1c58]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.004440d2
add esp, 0x1c54
ret