Function at 0x40ef40
Capabilities:
Create directory
Get common file path
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x48b5f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x228
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x135]
mov byte [esp + 0x134], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push ebx
lea eax, [esp + 0x138]
push 0x1a
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea ecx, [esp + 0x134]
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_2
push 0x4a1ed4
lea ecx, [esp + 0x18]
mov dword [esp + 0x244], ebx
call sub.MFC42.DLL_CString::operator_2
mov edx, dword [esp + 0x14]
mov edi, dword [sym.imp.MSVCRT.dll__mkdir]
push edx
call edi
add esp, 4
lea ecx, [esp + 0x14]
push 0x4a1ecc
call sub.MFC42.DLL_CString::operator_2
mov eax, dword [esp + 0x14]
push eax
call edi
add esp, 4
lea ecx, [esp + 0x14]
push 0x4a1ec0
call sub.MFC42.DLL_CString::operator_2
mov ecx, dword [esp + 0x14]
push ecx
call edi
add esp, 4
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_3
mov ebp, dword [esp + 0x248]
lea ecx, [esp + 0x14]
push ebp
push ebx
mov byte [esp + 0x248], 1
call sub.MFC42.DLL_CString::GetBuffer
push eax
lea edx, [esp + 0x18]
push 0x4a1eb4
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
cmp ebp, ebx
jne 0x40f066
lea eax, [esp + 0x14]
push 0x4a1ea8
lea ecx, [esp + 0x20]
push eax
push ecx
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x244], 2
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x1c]
mov byte [esp + 0x240], 1
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x10]
mov edi, dword [sym.imp.MSVCRT.dll_fopen]
push 0x4a1ea4
push edx
call edi
add esp, 8
cmp eax, ebx
je 0x40f08b
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
jmp 0x40f0e5
mov eax, dword [esp + 0x10]
push 0x4a1ea0
push eax
call edi
add esp, 8
cmp eax, ebx
je 0x40f0aa
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
jmp 0x40f0e5
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
call fcn.0040f4d0
mov edx, dword [eax]
push ebp
push edx
lea eax, [esp + 0x18]
push 0x4a1eb4
push eax
mov byte [esp + 0x250], 3
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea ecx, [esp + 0x1c]
mov byte [esp + 0x240], 1
call sub.MFC42.DLL_CString::CString
mov ecx, esi
call fcn.0040f5a0
push ebp
mov ecx, esi
call fcn.0040f720
lea ecx, [esp + 0x10]
lea edx, [esp + 0x2c]
push ecx
push 0x4a1e98
push edx
mov ecx, esi
call fcn.0040ee80
lea eax, [esp + 0x10]
lea ecx, [esp + 0x28]
push eax
push 0x4a1e90
push ecx
mov ecx, esi
mov byte [esp + 0x24c], 4
call fcn.0040ee80
mov edx, dword [esp + 0x2c]
mov edi, dword [sym.imp.MSVCRT.dll__mbscmp]
push 0x4a1e88
push edx
mov byte [esp + 0x248], 5
call edi
add esp, 8
test eax, eax
jne 0x40f14c
mov byte [esi + 0xc], bl
mov eax, dword [esp + 0x28]
push 0x4a1e88
push eax
call edi
add esp, 8
test eax, eax
jne 0x40f162
mov byte [esi + 0xd], bl
lea ecx, [esp + 0x10]
lea edx, [esp + 0x18]
push ecx
push 0x4a1e78
push edx
mov ecx, esi
call fcn.0040ee80
mov eax, dword [esp + 0x18]
push 0x4a165c
push eax
mov byte [esp + 0x248], 6
call edi
add esp, 8
test eax, eax
je 0x40f1b9
mov ecx, dword [esp + 0x18]
push 0x4a1e74
push ecx
call edi
add esp, 8
test eax, eax
je 0x40f1b9
mov edx, dword [esp + 0x18]
push 0x4a1e70
push edx
call edi
add esp, 8
test eax, eax
jne 0x40f1d0
push ebx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::GetBuffer
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
mov dword [esi + 0x10], eax
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x31]
mov byte [esp + 0x30], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x30]
push eax
push 0x104
push ecx
push 0x4a89a8
push 0x4a1e64
push 0x4a1e3c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [esp + 0x30]
push 2
push edx
mov edi, eax
call dword [sym.imp.MSVCRT.dll__access]
add esp, 8
test eax, eax
jne 0x40f22f
cmp edi, ebx
jbe 0x40f22f
lea eax, [esp + 0x30]
lea ecx, [esi + 0x14]
push eax
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x10]
lea edx, [esp + 0x20]
push ecx
push 0x4a1e54
push edx
mov ecx, esi
call fcn.0040ee80
mov eax, dword [esp + 0x20]
mov byte [esp + 0x240], 7
cmp dword [eax - 8], ebx
jne 0x40f27f
cmp ebp, ebx
je 0x40f27f
lea ecx, [esp + 0x10]
push ecx
push 0x4a1e74
push 0x4a1e54
mov ecx, esi
call fcn.0040f350
mov ecx, dword [0x4ac920]
cmp ecx, ebx
je 0x40f27f
call fcn.00413fb0
lea edx, [esp + 0x10]
lea eax, [esp + 0x24]
push edx
push 0x4a1e48
push eax
mov ecx, esi
mov byte [esi + 0xe], bl
call fcn.0040ee80
mov eax, dword [esp + 0x24]
cmp dword [eax - 8], ebx
jle 0x40f2b8
push 0x4a1e74
push eax
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
jne 0x40f2b8
mov byte [esi + 0xe], 1
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x240], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x240], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0x240], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov byte [esp + 0x240], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x240], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x240], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x238]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x234
ret 4