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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x47e42c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x230
mov eax, dword [0x4ac3b8]
push ebx
push esi
push edi
mov dword [esp + 0x234], eax
mov dword [esp + 0x24], ecx
call fcn.004460a0
mov ebx, eax
mov ecx, ebx
mov dword [esp + 0x20], ebx
call fcn.00444770
mov ecx, ebx
mov esi, eax
mov edi, edx
call fcn.00444800
test eax, eax
jne 0x40b778
push 0x488000
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_7]
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x248], 0
call fcn.00405620
mov ecx, dword [eax]
push edi
push esi
push ecx
lea edx, [esp + 0x28]
push str._sUsers_I64d
push edx
mov byte [esp + 0x25c], 1
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::Format_1]
add esp, 0x18
lea ecx, [esp + 0x1c]
mov byte [esp + 0x244], 0
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
push 0
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
mov ebx, dword [sym.imp.MSVCR71.dll__waccess]
push eax
call ebx
add esp, 8
cmp eax, 0xffffffff
jne 0x40b5ff
push 0
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x488000
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_7]
push 0x488000
lea ecx, [esp + 0x18]
mov byte [esp + 0x248], 2
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_7]
lea eax, [esp + 0x1c]
push eax
mov byte [esp + 0x248], 3
call fcn.00405620
mov ecx, dword [eax]
push str.UserConfig.ini
push edi
push esi
push ecx
lea edx, [esp + 0x28]
push str._sUsers_I64d_s
push edx
mov byte [esp + 0x260], 4
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::Format_1]
add esp, 0x1c
lea ecx, [esp + 0x1c]
mov byte [esp + 0x244], 3
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
mov word [esp + 0x28], 0
xor eax, eax
mov ecx, 0x81
lea edi, [esp + 0x2a]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
stosw word es:[edi], ax
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
push eax
push 0x104
lea eax, [esp + 0x30]
push eax
push 0x488000
push str.SavePath
push str.System
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [esp + 0x28]
push 0
push ecx
call ebx
add esp, 8
cmp eax, 0xffffffff
jne 0x40b75a
mov eax, dword [esp + 0x24]
test eax, eax
je 0x40b6ce
mov eax, dword [eax + 0x20]
push 0
push 5
lea edx, [esp + 0x30]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x4883e8
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x18]
push 0x4883d8
push ecx
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::Format_1]
add esp, 0x10
push 0
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
push eax
call ebx
add esp, 8
cmp eax, 0xffffffff
jne 0x40b725
push 0
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [esp + 0x20]
call fcn.00444800
test eax, eax
jne 0x40b75a
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
push eax
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
push eax
push str.SavePath
push str.System
call fcn.0044a060
add esp, 0x10
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
mov ecx, dword [esp + 0x23c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x234]
call fcn.0045015b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret