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

Disassembly:
push 0xffffffffffffffff
push 0x4d29d1
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x5000f4]
xor eax, esp
mov dword [esp + 0x260], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5000f4]
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 0x4eb464
lea eax, [esp + 0x20]
push esi
push eax
call fcn.00405800
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.00405020
cmp ebx, 0xffffffff
je 0x411e64
mov ebx, dword [esp + 0x298]
jmp 0x411cd0
mov ecx, 0x4eb470
lea eax, [esp + 0x50]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x411d06
test dx, dx
je 0x411d02
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x411d06
add eax, 4
add ecx, 4
test dx, dx
jne 0x411ce0
xor eax, eax
jmp 0x411d0b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x411e41
mov ecx, 0x4eb474
lea eax, [esp + 0x50]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x411d46
test dx, dx
je 0x411d42
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x411d46
add eax, 4
add ecx, 4
test dx, dx
jne 0x411d20
xor eax, eax
jmp 0x411d4b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x411e41
push 0x4eb47c
lea edx, [esp + 0x24]
push esi
push edx
call fcn.00405800
add esp, 0xc
mov dword [esp + 0x284], 1
lea ecx, [esp + 0x50]
push ecx
push eax
lea edx, [esp + 0x1c]
push edx
call fcn.00405800
add esp, 0xc
mov byte [esp + 0x284], 3
lea ecx, [esp + 0x20]
call fcn.00405020
test byte [esp + 0x24], 0x10
je 0x411dcf
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.00411c20
mov ecx, dword [esp + 0x30]
add esp, 0x1c
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test bl, bl
je 0x411de0
mov edx, dword [esp + 0x14]
mov eax, dword [ebp]
push edx
call fcn.00404c20
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 0x411e2d
mov eax, dword [esp + 0x14]
push eax
call fcn.00411640
add esp, 4
test al, al
je 0x411e2d
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x411e2d
mov byte [edi], 1
mov dword [esp + 0x284], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.00405020
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x24]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x411cd0
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp byte [esp + 0x290], 0
je 0x411e77
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.004aa641
add esp, 0x274
ret