Function at 0x418830
Capabilities:
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4b2aca
push eax
mov eax, dword [0x4dc5c8]
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [eax - 8]
xor ebp, ebp
cmp ecx, ebp
push edi
mov ebx, 1
je 0x418884
mov ecx, 0x4dc5c8
call fcn.0043ad90
test eax, eax
je 0x418884
mov ecx, 0x4dc5c8
call fcn.0043ae00
mov dword [esi + 0x258], eax
jmp 0x41893c
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_5
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], ebp
call sub.MFC42.DLL_CString::CString_5
push ebp
push str.Path
lea ecx, [esp + 0x20]
push 0x4db948
push ecx
mov ecx, esi
mov byte [esp + 0x38], bl
call sub.MFC42.DLL_CWinApp::GetProfileStringA
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], 2
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], bl
call sub.MFC42.DLL_CString::CString
lea edx, [esp + 0x14]
push 0x4d6d10
lea eax, [esp + 0x1c]
push edx
push eax
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 3
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], bl
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
push ecx
push ebp
push str.Launch
push str.OurFriend
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
lea ecx, [esp + 0x10]
mov dword [esi + 0x258], eax
mov byte [esp + 0x28], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, dword [esi + 0x608]
cmp eax, ebp
jle 0x41897f
cmp ebp, eax
jl 0x41894e
xor edi, edi
jmp 0x418957
mov edx, dword [esi + 0x60c]
mov edi, dword [edx + ebp*4]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x58]
test eax, eax
je 0x418974
cmp dword [edi + 0x60], ebx
je 0x418974
push 0
push 0
push ebx
push edi
mov ecx, esi
call fcn.00414d90
mov eax, dword [esi + 0x608]
inc ebp
cmp ebp, eax
jl 0x41894e
push 0
push ebx
push str.EnterWhenDblGame
push str.Settings
mov ecx, esi
call fcn.00413fd0
mov edi, dword [esi + 0x20]
mov dword [esi + 0x6a4], eax
test edi, edi
je 0x418a5e
mov ecx, edi
call fcn.0042f3e0
push 5
mov ecx, edi
call sub.MFC42.DLL_CWnd::ShowWindow
mov ecx, dword [edi + 0x20]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov edx, dword [esi + 0x648]
push edx
call fcn.004435d0
mov edx, dword [esi + 0x258]
add esp, 4
test edx, edx
setne al
push eax
mov ecx, edi
call fcn.00433dc0
mov ecx, edi
call fcn.00433e20
mov eax, dword [esi + 0x258]
test eax, eax
je 0x418a57
mov eax, dword [esi + 0x25c]
test eax, eax
jne 0x418a57
push 0xec
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov dword [esp + 0x28], 4
je 0x418a21
mov ecx, eax
call fcn.0040c550
jmp 0x418a23
xor eax, eax
test eax, eax
mov dword [esp + 0x28], 0xffffffff
mov dword [esi + 0x25c], eax
je 0x418a57
mov ecx, dword [sym.imp.MFC42.DLL_CRectconstCFrameWnd::rectDefault]
push 0
push 0
push 0
push 0
push ecx
push 0xcf0000
push str.switch_window
push 0
mov ecx, eax
call sub.MFC42.DLL_CFrameWnd::Create
mov ecx, edi
call fcn.00438620
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret