Function at 0x427450
Capabilities:
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x437e42
push eax
mov dword fs:[0], esp
sub esp, 0x178
lea eax, [esp + 0x74]
push ebx
push esi
push edi
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x4276ce
lea ecx, [esp + 0x80]
push ecx
call fcn.00427a60
add esp, 4
test eax, eax
je 0x4276ce
lea edx, [esp + 0x80]
push edx
call dword [sym.imp.MSVCRT.dll__strlwr]
add esp, 4
lea eax, [esp + 0x80]
lea ecx, [esp + 0x10]
push eax
call fcn.00422114
push 0xffffffffffffffff
lea ecx, [esp + 0x84]
push str._share
push ecx
mov dword [esp + 0x198], 0
call fcn.004273f0
add esp, 0xc
lea ecx, [esp + 0xc]
mov esi, eax
push 0x446190
call fcn.00422114
mov bl, 1
test esi, esi
mov byte [esp + 0x18c], bl
jge 0x427573
push 0xffffffffffffffff
lea edx, [esp + 0x84]
push 0x44559c
push edx
call fcn.004273f0
add esp, 0xc
test eax, eax
jl 0x4275c0
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Left
mov ecx, dword [eax]
lea edx, [esp + 0xc]
push ecx
push str._sShareLangRsc.ini
push edx
mov byte [esp + 0x198], 3
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x18]
mov byte [esp + 0x18c], bl
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0xc]
push eax
call fcn.00427a40
add esp, 4
test eax, eax
jne 0x427630
jmp 0x4275c0
lea ecx, [esp + 0x18]
push esi
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Left
mov edx, dword [eax]
lea eax, [esp + 0xc]
push edx
push str._sShareLangRsc.ini
push eax
mov byte [esp + 0x198], 4
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x18]
mov byte [esp + 0x18c], bl
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xc]
push ecx
call fcn.00427a40
add esp, 4
test eax, eax
jne 0x427630
mov ecx, 7
mov esi, str.SoftwareGlobalLinkGame_share
lea edi, [esp + 0x60]
push 0x446190
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea edx, [esp + 0x64]
push str.Path
lea eax, [esp + 0x24]
push edx
push eax
movsb byte es:[edi], byte [esi]
call fcn.00426620
add esp, 0x10
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x190], 2
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x1c]
mov byte [esp + 0x18c], bl
call sub.MFC42.DLL_CString::CString
push str.LangRsc.ini
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::operator_2
mov ecx, dword [esp + 0xc]
push ecx
call fcn.00427a40
add esp, 4
test eax, eax
je 0x4276a9
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_2
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x21]
mov byte [esp + 0x20], 0
rep stosd dword es:[edi], eax
mov edx, dword [esp + 0x194]
mov byte [esp + 0x18c], 5
stosw word es:[edi], ax
stosb byte es:[edi], al
push edx
lea eax, [esp + 0x18]
push 0x445118
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
add esp, 0xc
lea edx, [esp + 0x20]
push ecx
push 0x40
push edx
push 0x446190
push eax
push str.P80Port
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov al, byte [esp + 0x20]
test al, al
jne 0x4276d2
lea ecx, [esp + 0x14]
mov byte [esp + 0x18c], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x18c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x18c], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x427719
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
lea ecx, [esp + 0x14]
mov esi, eax
mov byte [esp + 0x18c], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x18c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x18c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, esi
mov ecx, dword [esp + 0x184]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x184
ret