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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4948dc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x228
mov eax, dword [0x4d757c]
push ebx
mov ebx, dword [ebp + 8]
xor eax, ebp
push esi
push edi
mov dword [esp + 0x22c], eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x10], 0
call fcn.0044dca0
mov ecx, eax
call fcn.0044c290
mov esi, edx
cmp esi, 2
mov edi, eax
jl 0x41d754
jg 0x41d740
cmp edi, 0x540be400
jb 0x41d754
push 0x4ae4c0
mov ecx, ebx
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_2]
mov eax, ebx
jmp 0x41d917
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT]
lea eax, [esp + 0x18]
push eax
mov ecx, 0x4d8288
mov dword [esp + 0x240], 0
call fcn.004022e0
mov ecx, dword [eax]
push esi
push edi
push ecx
lea edx, [esp + 0x1c]
push str._sUsers_I64d
push edx
mov byte [esp + 0x250], 1
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::Format]
add esp, 0x14
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
mov eax, dword [esp + 0x10]
mov ebx, dword [sym.imp.MSVCR71.dll__waccess]
push 0
push eax
call ebx
add esp, 8
cmp eax, 0xffffffff
jne 0x41d7c6
mov ecx, dword [esp + 0x10]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT]
lea edx, [esp + 0x18]
push edx
mov ecx, 0x4d8288
mov byte [esp + 0x240], 3
call fcn.004022e0
mov eax, dword [eax]
push str.UserConfig.ini
push esi
push edi
push eax
lea ecx, [esp + 0x24]
push str._sUsers_I64d_s
push ecx
mov byte [esp + 0x254], 4
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::Format]
add esp, 0x18
lea ecx, [esp + 0x18]
mov byte [esp + 0x23c], 3
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
mov edx, dword [esp + 0x14]
xor eax, eax
mov word [esp + 0x20], 0
mov ecx, 0x81
lea edi, [esp + 0x22]
rep stosd dword es:[edi], eax
push edx
push 0x104
stosw word es:[edi], ax
lea eax, [esp + 0x28]
push eax
push 0x4ae4c0
push str.SavePath
push str.System
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [esp + 0x20]
push 0
push ecx
call ebx
add esp, 8
cmp eax, 0xffffffff
je 0x41d886
mov esi, dword [esp + 0x1c]
lea edx, [esp + 0x20]
push edx
mov ecx, esi
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_2]
jmp 0x41d8f7
push 0
push 5
lea eax, [esp + 0x28]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x10]
push 0x4ae6d4
push edx
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::Format]
mov eax, dword [esp + 0x18]
push 0
push eax
call ebx
add esp, 0x14
cmp eax, 0xffffffff
jne 0x41d8ca
mov ecx, dword [esp + 0xc]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
push edx
push eax
push str.SavePath
push str.System
call fcn.00409eb0
mov esi, dword [esp + 0x2c]
add esp, 0x10
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_1]
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
mov eax, esi
mov ecx, dword [esp + 0x234]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x22c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045a4fd
mov esp, ebp
pop ebp
ret 4