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

Disassembly:
sub esp, 0x258
mov eax, dword [0x45d2b0]
xor eax, esp
mov dword [esp + 0x254], eax
push ebx
push ebp
mov ebp, dword [esp + 0x264]
push esi
push edi
push ebp
push str.Delete_File__s
push 0x80
call fcn.004025a0
add esp, 0xc
push 0x103
lea eax, [esp + 0x15d]
push 0
push eax
mov byte [esp + 0x164], 0
call fcn.0043d080
add esp, 0xc
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
jne 0x401079
push 0x80
push ebp
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
jmp 0x401269
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x401248
push 0x103
lea ecx, [esp + 0x15c]
push ebp
push ecx
call fcn.004381cc
lea eax, [esp + 0x164]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4010a8
sub eax, edx
lea edx, [esp + 0x158]
push 0x5c
push edx
mov esi, eax
call fcn.00437e1e
lea ecx, [esp + esi + 0x160]
add esp, 8
cmp eax, ecx
je 0x4010ea
lea edi, [esp + 0x158]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4010d8
mov dx, word [0x451188]
mov word [edi], dx
lea edi, [esp + 0x158]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4010f2
mov eax, dword [0x450ed0]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x15c]
push edx
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
mov dword [esp + 0x14], edi
cmp edi, 0xffffffff
je 0x401248
mov ebx, dword [esp + 0x274]
lea ebx, [ebx]
push 0x103
lea eax, [esp + 0x15c]
push ebp
push eax
call fcn.004381cc
lea eax, [esp + 0x50]
add esp, 0xc
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401150
sub eax, edx
mov edx, eax
lea eax, [esp + 0x158]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401165
sub eax, esi
add eax, edx
cmp eax, 0x103
ja 0x4011cc
lea edi, [esp + 0x158]
dec edi
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x401180
mov cx, word [0x451188]
lea eax, [esp + 0x44]
mov word [edi], cx
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401198
lea edi, [esp + 0x158]
sub eax, edx
dec edi
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4011b0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x14]
test byte [esp + 0x18], 0x10
je 0x4011fd
cmp byte [esp + 0x44], 0x2e
je 0x401222
mov eax, dword [esp + 0x270]
test eax, eax
je 0x401222
push ebx
push eax
lea edx, [esp + 0x160]
push edx
call section..text
add esp, 0xc
test eax, eax
je 0x401248
jmp 0x401222
push 0x80
lea eax, [esp + 0x15c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test ebx, ebx
jne 0x401222
lea ecx, [esp + 0x158]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea edx, [esp + 0x18]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x401130
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
cmp eax, 0x12
je 0x40124c
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x401269
call dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
je 0x401248
push 0x80
push ebp
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebp
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov ecx, dword [esp + 0x264]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00437bf9
add esp, 0x258
ret