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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x270
mov eax, dword [0x450060]
xor eax, ebp
mov dword [ebp - 0x14], eax
and dword [ebp - 0x26c], 0
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call fcn.0040f58d
mov dword [ebp - 0x26c], eax
cmp dword [ebp - 0x26c], 0
jge 0x40ea32
jmp 0x40ede3
or dword [ebp - 0x270], 0xffffffff
and dword [ebp - 8], 0
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x40ea94
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x26c], eax
push dword [ebp - 0x26c]
call fcn.00407c6d
mov dword [ebp - 0x26c], eax
cmp dword [ebp - 0x26c], 0
jge 0x40ea94
push dword [ebp - 0x26c]
push 0x8a
push 0x405e74
call fcn.0040e33f
jmp 0x40ede3
mov eax, dword [ebp - 0x10]
and eax, 0x10
je 0x40edd9
mov eax, dword [ebp - 0x10]
and eax, 1
je 0x40eaff
push 0x80
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x40eaff
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x26c], eax
push dword [ebp - 0x26c]
call fcn.00407c6d
mov dword [ebp - 0x26c], eax
cmp dword [ebp - 0x26c], 0
jge 0x40eaff
push dword [ebp - 0x26c]
push 0x93
push 0x405e74
call fcn.0040e33f
jmp 0x40ede3
cmp dword [ebp + 0xc], 0
jne 0x40eb1c
cmp dword [ebp + 0x10], 0
jne 0x40eb1c
and dword [ebp - 0x26c], 0
jmp 0x40ede3
push 0
push dword [ebp - 4]
lea eax, [ebp - 8]
push eax
call fcn.0040be53
mov dword [ebp - 0x26c], eax
cmp dword [ebp - 0x26c], 0
jge 0x40eb43
jmp 0x40ede3
push 0
push 0x405ea8
lea eax, [ebp - 8]
push eax
call fcn.0040c3a6
mov dword [ebp - 0x26c], eax
cmp dword [ebp - 0x26c], 0
jge 0x40eb6c
jmp 0x40ede3
lea eax, [ebp - 0x268]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x270], eax
cmp dword [ebp - 0x270], 0xffffffff
jne 0x40ebd0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x26c], eax
push dword [ebp - 0x26c]
call fcn.00407c6d
mov dword [ebp - 0x26c], eax
cmp dword [ebp - 0x26c], 0
jge 0x40ebd0
push dword [ebp - 0x26c]
push 0xa7
push 0x405e74
call fcn.0040e33f
jmp 0x40ede3
movzx eax, word [ebp - 0x23c]
cmp eax, 0x2e
jne 0x40ec03
movzx eax, word [ebp - 0x23a]
test eax, eax
je 0x40ebfe
movzx eax, word [ebp - 0x23a]
cmp eax, 0x2e
jne 0x40ec03
movzx eax, word [ebp - 0x238]
test eax, eax
jne 0x40ec03
jmp 0x40ed89
push 0
push dword [ebp - 4]
lea eax, [ebp - 8]
push eax
call fcn.0040be53
mov dword [ebp - 0x26c], eax
cmp dword [ebp - 0x26c], 0
jge 0x40ec2a
jmp 0x40ede3
push 0
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 8]
push eax
call fcn.0040c3a6
mov dword [ebp - 0x26c], eax
cmp dword [ebp - 0x26c], 0
jge 0x40ec55
jmp 0x40ede3
cmp dword [ebp + 0x10], 0
je 0x40ecbb
mov eax, dword [ebp - 0x268]
and eax, 0x10
je 0x40ecbb
push 0
push 0x405bd4
lea eax, [ebp - 8]
push eax
call fcn.0040c3a6
mov dword [ebp - 0x26c], eax
cmp dword [ebp - 0x26c], 0
jge 0x40ec8f
jmp 0x40ede3
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 8]
call fcn.0040e9ef
mov dword [ebp - 0x26c], eax
cmp dword [ebp - 0x26c], 0
jge 0x40ecb6
jmp 0x40ede3
jmp 0x40ed89
cmp dword [ebp + 0xc], 0
je 0x40ed89
mov eax, dword [ebp - 0x268]
and eax, 1
jne 0x40ece6
mov eax, dword [ebp - 0x268]
and eax, 2
jne 0x40ece6
mov eax, dword [ebp - 0x268]
and eax, 4
je 0x40ed3d
push 0x80
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x40ed3d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x26c], eax
push dword [ebp - 0x26c]
call fcn.00407c6d
mov dword [ebp - 0x26c], eax
cmp dword [ebp - 0x26c], 0
jge 0x40ed3d
push dword [ebp - 0x26c]
push 0xc5
push 0x405e74
call fcn.0040e33f
jmp 0x40ede3
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40ed89
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x26c], eax
push dword [ebp - 0x26c]
call fcn.00407c6d
mov dword [ebp - 0x26c], eax
cmp dword [ebp - 0x26c], 0
jge 0x40ed89
push dword [ebp - 0x26c]
push 0xcb
push 0x405e74
call fcn.0040e33f
jmp 0x40ede3
lea eax, [ebp - 0x268]
push eax
push dword [ebp - 0x270]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40ebd0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x12
jne 0x40edbc
and dword [ebp - 0x26c], 0
jmp 0x40edd7
push dword [ebp - 0xc]
call fcn.00407c6d
mov dword [ebp - 0x26c], eax
cmp dword [ebp - 0x26c], 0
jge 0x40edd7
jmp 0x40ede3
jmp 0x40ede3
mov dword [ebp - 0x26c], 0x8000ffff
cmp dword [ebp - 0x270], 0xffffffff
je 0x40edf8
push dword [ebp - 0x270]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 8], 0
je 0x40ee06
push dword [ebp - 8]
call fcn.0040c820
cmp dword [ebp - 0x26c], 0
jl 0x40ee33
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x40ee33
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
push dword [ebp - 0xc]
call fcn.00407c6d
mov dword [ebp - 0x26c], eax
cmp dword [ebp - 4], 0
je 0x40ee41
push dword [ebp - 4]
call fcn.0040c820
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x26c]
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0042cd6d
leave
ret 0xc