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

Disassembly:
mov eax, 0x2144
call fcn.004024d0
push ebp
push esi
push edi
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x151]
mov byte [esp + 0x150], 0
mov byte [esp + 0x1950], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x1951]
mov ebp, dword [esp + 0x2154]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
test ebp, ebp
stosb byte es:[edi], al
je 0x401e64
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x150]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x150]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x401e80
pop edi
pop esi
pop ebp
add esp, 0x2144
ret
lea edx, [esp + 0x150]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
dec eax
mov cl, byte [esp + eax + 0x150]
lea eax, [esp + eax + 0x150]
cmp cl, 0x5c
jne 0x401ea5
mov byte [eax], 0
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x150]
push eax
lea ecx, [esp + 0x1954]
push str._s.
push ecx
call esi
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x1950]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
je 0x401ffd
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
test byte [esp + 0x14], 0x10
je 0x401f82
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x955]
mov byte [esp + 0x954], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x40]
lea edx, [esp + 0x954]
push ecx
push edx
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpA]
lea eax, [esp + 0x954]
push 0x40726c
push eax
call edi
test eax, eax
je 0x401fe0
lea ecx, [esp + 0x954]
push 0x407268
push ecx
call edi
test eax, eax
je 0x401fe0
lea edx, [esp + 0x40]
lea eax, [esp + 0x954]
push edx
push ebp
push str._s_s
push eax
call esi
lea ecx, [esp + 0x964]
push 1
push ecx
call fcn.00401df0
add esp, 0x18
jmp 0x401fe0
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x1155]
mov byte [esp + 0x1154], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x40]
stosb byte es:[edi], al
push edx
push ebp
lea eax, [esp + 0x115c]
push str._s_s
push eax
call esi
add esp, 0x10
lea ecx, [esp + 0x1154]
push ecx
call ebx
test eax, eax
jne 0x401fe0
lea edx, [esp + 0x1154]
push 0x80
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [esp + 0x1154]
push eax
call ebx
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x401eec
mov eax, dword [esp + 0x10]
pop ebx
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x2158]
test eax, eax
je 0x402035
mov esi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push ebp
call esi
test eax, eax
jne 0x402035
push 0x80
push ebp
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebp
call esi
pop edi
pop esi
pop ebp
add esp, 0x2144
ret
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x2144
ret