Function at 0x418820
Capabilities:
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4b28ca
push eax
mov eax, dword [0x4dc5a0]
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 0x418874
mov ecx, 0x4dc5a0
call fcn.0043abc0
test eax, eax
je 0x418874
mov ecx, 0x4dc5a0
call fcn.0043ac30
mov dword [esi + 0x258], eax
jmp 0x41892c
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 0x4db920
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 0x41896f
cmp ebp, eax
jl 0x41893e
xor edi, edi
jmp 0x418947
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 0x418964
cmp dword [edi + 0x60], ebx
je 0x418964
push 0
push 0
push ebx
push edi
mov ecx, esi
call fcn.00414d80
mov eax, dword [esi + 0x608]
inc ebp
cmp ebp, eax
jl 0x41893e
push 0
push ebx
push str.EnterWhenDblGame
push str.Settings
mov ecx, esi
call fcn.00413fc0
mov edi, dword [esi + 0x20]
mov dword [esi + 0x6a4], eax
test edi, edi
je 0x418a4e
mov ecx, edi
call fcn.0042f3a0
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.00443470
mov edx, dword [esi + 0x258]
add esp, 4
test edx, edx
setne al
push eax
mov ecx, edi
call fcn.00433df0
mov ecx, edi
call fcn.00433e50
mov eax, dword [esi + 0x258]
test eax, eax
je 0x418a47
mov eax, dword [esi + 0x25c]
test eax, eax
jne 0x418a47
push 0xec
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov dword [esp + 0x28], 4
je 0x418a11
mov ecx, eax
call fcn.0040c600
jmp 0x418a13
xor eax, eax
test eax, eax
mov dword [esp + 0x28], 0xffffffff
mov dword [esi + 0x25c], eax
je 0x418a47
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.00438630
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret