Function at 0x40e9b0
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
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x491c31
mov eax, dword fs:[0]
push eax
sub esp, 0x270
mov eax, dword [0x4c21d0]
xor eax, esp
mov dword [esp + 0x268], eax
push ebx
push esi
push edi
mov eax, dword [0x4c21d0]
xor eax, esp
push eax
lea eax, [esp + 0x280]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40ea0b
mov eax, 1
jmp 0x40ecc2
push 0x24c
lea eax, [esp + 0x2c]
push 0
push eax
mov dword [esp + 0x30], 0
call fcn.0046ff60
add esp, 0xc
lea ecx, [esp + 0x1c]
push edi
push ecx
mov ebx, 0x4a3a60
call fcn.004065a0
mov eax, dword [eax]
add esp, 8
lea edx, [esp + 0x24]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov dword [esp + 0x20], esi
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ea6e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, 0xffffffff
jne 0x40ea83
mov ecx, dword [edi]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor eax, eax
jmp 0x40ecc2
lea edx, [esp + 0x50]
push edx
lea ecx, [esp + 0x18]
call fcn.00401bb0
mov dword [esp + 0x288], 0
mov esi, dword [esp + 0x14]
mov ecx, 0x4a362c
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40eacd
test dx, dx
je 0x40eac9
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40eacd
add eax, 4
add ecx, 4
test dx, dx
jne 0x40eaa7
xor eax, eax
jmp 0x40ead2
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
jne 0x40ec60
mov ecx, 0x4a3a68
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40eb0c
test dx, dx
je 0x40eb08
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40eb0c
add eax, 4
add ecx, 4
test dx, dx
jne 0x40eae6
xor eax, eax
jmp 0x40eb11
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
jne 0x40ec60
lea eax, [esp + 0x10]
push edi
push eax
mov ebx, 0x4a36e4
call fcn.004065a0
add esp, 8
mov byte [esp + 0x288], 1
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ebx, [esp + 0x18]
call fcn.0040d300
mov ebx, 1
test byte [esp + 0x24], bl
je 0x40eb66
mov ecx, dword [esp + 0x10]
push 0x80
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test byte [esp + 0x24], 0x10
je 0x40eb7f
lea edx, [esp + 0x10]
push edx
call fcn.0040e9b0
add esp, 4
jmp 0x40ec24
mov eax, dword [edi]
sub eax, 0x10
push eax
call fcn.00401540
lea esi, [eax + 0x10]
add esp, 4
mov dword [esp + 0x18], esi
mov byte [esp + 0x288], 2
cmp dword [esi - 4], ebx
jle 0x40ebb2
mov eax, dword [esi - 0xc]
push eax
lea ecx, [esp + 0x1c]
call fcn.004018e0
mov esi, dword [esp + 0x18]
push esi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov eax, dword [esi - 8]
push eax
push esi
call fcn.0046e90b
add esp, 8
test eax, eax
js 0x40ece6
cmp eax, dword [esi - 8]
jg 0x40ece6
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40ec01
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
push ecx
call fcn.00410080
add esp, 8
lea eax, [esi - 0x10]
mov byte [esp + 0x288], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40ec24
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x288], 0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ec4c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x288], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
jmp 0x40ec6e
mov dword [esp + 0x288], 0xffffffff
lea eax, [esi - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ec87
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x20]
lea ecx, [esp + 0x24]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40ea83
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [edi]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
sete cl
mov eax, ecx
mov ecx, dword [esp + 0x280]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x268]
xor ecx, esp
call fcn.0046c455
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00401a60
int3