Function at 0x40ef81
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, 0x470
mov eax, dword [0x42f058]
xor eax, ebp
mov dword [ebp - 8], eax
or dword [ebp - 0x470], 0xffffffff
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x46c], edx
push edi
push esi
mov dword [ebp - 0x468], esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40efde
call edi
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40f23e
mov esi, dword [ebp - 0x468]
test bl, 0x10
je 0x40f203
test bl, 1
je 0x40f014
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x40f014
call edi
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40f23e
cmp dword [ebp - 0x46c], 0
jne 0x40f02a
cmp dword [ebp + 8], 0
jne 0x40f02a
xor esi, esi
jmp 0x40f21e
mov esi, dword [ebp - 0x468]
lea eax, [ebp - 0x214]
push 0xffffffffffffffff
push esi
mov ebx, 0x104
push ebx
push eax
call fcn.00414d54
add esp, 0x10
cmp eax, 0x50
jne 0x40f057
mov esi, 0x8007007a
jmp 0x40f23e
push 0xffffffffffffffff
push str..
lea eax, [ebp - 0x214]
push ebx
push eax
call fcn.00414c7c
add esp, 0x10
cmp eax, 0x50
je 0x40f04d
lea eax, [ebp - 0x464]
push eax
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40f0ac
call edi
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40f23e
mov esi, dword [ebp - 0x468]
push 0x42c040
lea eax, [ebp - 0x438]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x40f1cb
push 0x42c044
lea eax, [ebp - 0x438]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x40f1cb
push 0xffffffffffffffff
push esi
mov esi, 0x104
lea eax, [ebp - 0x214]
push esi
push eax
call fcn.00414d54
add esp, 0x10
cmp eax, 0x50
je 0x40f1ec
push 0xffffffffffffffff
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x214]
push esi
push eax
call fcn.00414c7c
add esp, 0x10
cmp eax, 0x50
je 0x40f1ec
cmp dword [ebp + 8], 0
je 0x40f16a
test byte [ebp - 0x464], 0x10
je 0x40f16a
push 0xffffffffffffffff
push 0x42b498
lea eax, [ebp - 0x214]
push esi
push eax
call fcn.00414c7c
add esp, 0x10
cmp eax, 0x50
je 0x40f1ec
push dword [ebp + 8]
mov edx, dword [ebp - 0x46c]
lea ecx, [ebp - 0x214]
call fcn.0040ef81
mov esi, eax
jmp 0x40f1c7
cmp dword [ebp - 0x46c], 0
je 0x40f1cb
test byte [ebp - 0x464], 7
je 0x40f1a6
push 0x80
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x40f1a6
call edi
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40f20e
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40f1cb
call edi
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40f20e
lea eax, [ebp - 0x464]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40f0a6
call edi
cmp eax, 0x12
jne 0x40f1f3
xor esi, esi
jmp 0x40f20e
mov esi, 0x8007007a
jmp 0x40f20e
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
jmp 0x40f20e
mov ebx, dword [ebp - 0x470]
mov esi, 0x8000ffff
cmp ebx, 0xffffffff
je 0x40f21a
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
test esi, esi
js 0x40f23e
push dword [ebp - 0x468]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x40f23e
call edi
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov ecx, dword [ebp - 8]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041195e
mov esp, ebp
pop ebp
ret 4