Function at 0x411af0
Capabilities:
Check if file exists
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4d1ef1
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x4ff0f4]
xor eax, esp
mov dword [esp + 0x260], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4ff0f4]
xor eax, esp
push eax
lea eax, [esp + 0x27c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x28c]
mov edi, dword [esp + 0x294]
mov ebp, dword [esp + 0x2a4]
push 0x4ea444
lea eax, [esp + 0x20]
push esi
push eax
call fcn.004057d0
add esp, 0xc
mov dword [esp + 0x284], 0
mov eax, dword [eax]
lea ecx, [esp + 0x24]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x284], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.00404f30
cmp ebx, 0xffffffff
je 0x411d34
mov ebx, dword [esp + 0x298]
jmp 0x411ba0
mov ecx, 0x4ea450
lea eax, [esp + 0x50]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x411bd6
test dx, dx
je 0x411bd2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x411bd6
add eax, 4
add ecx, 4
test dx, dx
jne 0x411bb0
xor eax, eax
jmp 0x411bdb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x411d11
mov ecx, 0x4ea454
lea eax, [esp + 0x50]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x411c16
test dx, dx
je 0x411c12
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x411c16
add eax, 4
add ecx, 4
test dx, dx
jne 0x411bf0
xor eax, eax
jmp 0x411c1b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x411d11
push 0x4ea45c
lea edx, [esp + 0x24]
push esi
push edx
call fcn.004057d0
add esp, 0xc
mov dword [esp + 0x284], 1
lea ecx, [esp + 0x50]
push ecx
push eax
lea edx, [esp + 0x1c]
push edx
call fcn.004057d0
add esp, 0xc
mov byte [esp + 0x284], 3
lea ecx, [esp + 0x20]
call fcn.00404f30
test byte [esp + 0x24], 0x10
je 0x411c9f
mov eax, dword [esp + 0x2a0]
mov ecx, dword [esp + 0x29c]
mov edx, dword [esp + 0x290]
push ebp
push eax
push ecx
push ebx
push edi
push edx
lea eax, [esp + 0x2c]
push eax
call fcn.00411af0
mov ecx, dword [esp + 0x30]
add esp, 0x1c
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test bl, bl
je 0x411cb0
mov edx, dword [esp + 0x14]
mov eax, dword [ebp]
push edx
call fcn.00404b30
mov eax, dword [esp + 0x14]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x411cfd
mov eax, dword [esp + 0x14]
push eax
call fcn.00411510
add esp, 4
test al, al
je 0x411cfd
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x411cfd
mov byte [edi], 1
mov dword [esp + 0x284], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.00404f30
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x24]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x411ba0
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp byte [esp + 0x290], 0
je 0x411d47
mov edx, dword [esi]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [esp + 0x27c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x260]
xor ecx, esp
call fcn.004a9c1c
add esp, 0x274
ret