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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41eba2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x268
mov dword [ebp - 0x26c], ecx
push 0x428ac0
push 0x42aac8
push 0x428acc
lea eax, [ebp - 0x254]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea ecx, [ebp - 0x14c]
push ecx
lea edx, [ebp - 0x254]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x40c121
push 0x428ad4
push 0x42aac8
push 0x428adc
lea eax, [ebp - 0x254]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea ecx, [ebp - 0x14c]
push ecx
lea edx, [ebp - 0x254]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x40c0e3
push 0
lea eax, [ebp - 0x254]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x40c0dc
lea ecx, [ebp - 0x254]
push ecx
push 0x428ae4
mov edx, dword [ebp - 0x26c]
add edx, 0x368
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x254]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x150], eax
cmp dword [ebp - 0x150], 0xffffffff
je 0x40c0da
mov ecx, dword [ebp - 0x150]
or ecx, 2
mov dword [ebp - 0x150], ecx
mov edx, dword [ebp - 0x150]
push edx
lea eax, [ebp - 0x254]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
jmp 0x40c0e3
xor eax, eax
jmp 0x40c283
push 0x428ae8
push 0x42aac8
push 0x428af4
lea ecx, [ebp - 0x254]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0
lea edx, [ebp - 0x254]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x40c11c
xor eax, eax
jmp 0x40c283
jmp 0x40c25d
lea eax, [ebp - 0x254]
push eax
lea ecx, [ebp - 0x25c]
call sub.MFC42.DLL_CString::CString_2
mov dword [ebp - 4], 0
push 0x428afc
lea ecx, [ebp - 0x25c]
call sub.MFC42.DLL_CString::operator
lea ecx, [ebp - 0x14c]
push ecx
lea ecx, [ebp - 0x25c]
call fcn.00401ec0
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x260], eax
lea ecx, [ebp - 0x25c]
call fcn.00401590
sub eax, 1
push eax
lea edx, [ebp - 0x268]
push edx
lea ecx, [ebp - 0x25c]
call sub.MFC42.DLL_CString::Left
mov dword [ebp - 0x270], eax
mov eax, dword [ebp - 0x270]
mov dword [ebp - 0x274], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x274]
push ecx
lea ecx, [ebp - 0x25c]
call sub.MFC42.DLL_CString::operator_1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x268]
call sub.MFC42.DLL_CString::CString
lea edx, [ebp - 0x14c]
push edx
mov eax, dword [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov dword [ebp - 0x258], eax
lea ecx, [ebp - 0x120]
push ecx
lea edx, [ebp - 0x25c]
push edx
lea eax, [ebp - 0x264]
push eax
call sub.MFC42.DLL_operator_2
mov byte [ebp - 4], 2
cmp dword [ebp - 0x258], 0
je 0x40c226
push 0x104
lea ecx, [ebp - 0x264]
call sub.MFC42.DLL_CString::GetBuffer
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x264]
call sub.MFC42.DLL_CString::ReleaseBuffer
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x264]
call sub.MFC42.DLL_CString::CString
cmp dword [ebp - 0x258], 0
jne 0x40c1c1
mov ecx, dword [ebp - 0x260]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x25c]
call sub.MFC42.DLL_CString::CString
lea edx, [ebp - 0x254]
push edx
push 0x428b00
mov eax, dword [ebp - 0x26c]
add eax, 0x368
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret