Function at 0x4589d0
Capabilities:
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4b7542
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 0x458c4e
lea ecx, [esp + 0x80]
push ecx
call fcn.00455f10
add esp, 4
test eax, eax
je 0x458c4e
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 sub.MFC42.DLL_CString::CString_4
push 0xffffffffffffffff
lea ecx, [esp + 0x84]
push str._share
push ecx
mov dword [esp + 0x198], 0
call fcn.00458970
add esp, 0xc
lea ecx, [esp + 0xc]
mov esi, eax
push 0x4db968
call sub.MFC42.DLL_CString::CString_4
mov bl, 1
test esi, esi
mov byte [esp + 0x18c], bl
jge 0x458af3
push 0xffffffffffffffff
lea edx, [esp + 0x84]
push 0x4d6160
push edx
call fcn.00458970
add esp, 0xc
test eax, eax
jl 0x458b40
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_1
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.00455b60
add esp, 4
test eax, eax
jne 0x458bb0
jmp 0x458b40
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_1
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.00455b60
add esp, 4
test eax, eax
jne 0x458bb0
mov ecx, 7
mov esi, str.SoftwareGlobalLinkGame_share
lea edi, [esp + 0x60]
push 0x4db968
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.00457c30
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 0x4d6d10
lea ecx, [esp + 0x10]
call fcn.0045518c
mov ecx, dword [esp + 0xc]
push ecx
call fcn.00455b60
add esp, 4
test eax, eax
je 0x458c29
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_5
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 0x4d6364
push eax
call sub.MFC42.DLL_CString::Format_1
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
add esp, 0xc
lea edx, [esp + 0x20]
push ecx
push 0x40
push edx
push 0x4db968
push eax
push str.P80Port
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov al, byte [esp + 0x20]
test al, al
jne 0x458c52
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 0x458c99
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