Function at 0x40cad0
Capabilities:
Check if file exists
Create directory
Delete directory
Delete file
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x48bbd1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x220
push ebx
push esi
lea eax, [esp + 0xc]
push edi
push eax
mov dword [esp + 0x18], 0
call fcn.0040cd60
add esp, 4
mov ecx, dword [esp + 0x10]
mov ebx, 1
push ecx
mov dword [esp + 0x238], ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40cb86
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x26]
mov edx, dword [esp + 0x10]
mov word [esp + 0x24], 0
push edx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x28]
push 0x104
push eax
push 0x4b99c0
push str.Path
push str.SectionPath
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
test eax, eax
jbe 0x40cb86
mov esi, dword [esp + 0x23c]
lea edx, [esp + 0x24]
push edx
mov ecx, esi
call sub.MFC42u.DLL_CString::CString_2
mov dword [esp + 0x14], ebx
jmp 0x40cd2b
mov eax, dword [0x4b00c0]
cmp eax, ebx
je 0x40cc64
test eax, eax
je 0x40cd17
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.004020b0
add esp, 8
push str.testdir
lea ecx, [esp + 0x10]
push eax
push ecx
mov byte [esp + 0x240], 2
call sub.MFC42u.DLL_operator_2
mov bl, 4
lea ecx, [esp + 0x1c]
mov byte [esp + 0x234], bl
call sub.MFC42u.DLL_CString::CString
mov edx, dword [esp + 0xc]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
neg eax
sbb eax, eax
inc eax
mov dword [0x4b00c0], eax
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov eax, dword [0x4b00c0]
test eax, eax
jne 0x40cc46
lea ecx, [esp + 0x18]
push ecx
call fcn.004047b0
add esp, 4
push 0x4af7dc
lea edx, [esp + 0x24]
push eax
push edx
mov byte [esp + 0x240], 5
call sub.MFC42u.DLL_operator_2
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 0x20]
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x234], bl
call sub.MFC42u.DLL_CString::CString
mov esi, dword [0x4b00c0]
lea ecx, [esp + 0xc]
mov byte [esp + 0x234], 1
call sub.MFC42u.DLL_CString::CString
mov eax, esi
mov ebx, 1
test eax, eax
je 0x40cd17
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x26]
mov word [esp + 0x24], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0xa
lea eax, [esp + 0x28]
push str.C:360Rec
push eax
call dword [sym.imp.MSVCRT.dll_wcsncpy]
add esp, 0xc
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x10]
call sub.MFC42u.DLL_CString::CString_2
mov eax, dword [esp + 0xc]
mov byte [esp + 0x234], 6
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x40ccf1
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x40ccf1
lea edx, [esp + 0x18]
push edx
call fcn.0040cd60
mov eax, dword [eax]
add esp, 4
push eax
mov eax, dword [esp + 0x10]
push eax
push str.Path
push str.SectionPath
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea ecx, [esp + 0x18]
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x234], 1
call sub.MFC42u.DLL_CString::CString
mov esi, dword [esp + 0x23c]
lea ecx, [esp + 0x24]
push ecx
mov ecx, esi
call sub.MFC42u.DLL_CString::CString_2
jmp 0x40cd27
mov esi, dword [esp + 0x23c]
push esi
call fcn.0040ce10
add esp, 4
mov dword [esp + 0x14], ebx
lea ecx, [esp + 0x10]
mov byte [esp + 0x234], 0
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x22c]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x22c
ret