Function at 0x40141f
Capabilities:
Read .ini file

Disassembly:
jmp 0x40d710
push 0xffffffffffffffff
push 0x453cd6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x134
push esi
mov esi, ecx
push edi
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [esi + 0xc0]
xor edi, edi
cmp ecx, 0x66
mov dword [esp + 0x144], edi
mov dword [esp + 0x10], 0x40
mov eax, 0x10
je 0x40d75d
mov dword [esp + 0x10], eax
cmp dword [0x466cb8], eax
jne 0x40d775
mov byte [esi + 0xc4], 0xb
mov byte [esi + 0xc5], 0x16
jmp 0x40d783
mov byte [esi + 0xc4], 9
mov byte [esi + 0xc5], 0x14
push ebx
push ebp
lea ebp, [esi + 0xfbc8]
mov eax, 0x387
mov ecx, 0x148
mov edx, 0x3fb
mov dword [ebp], eax
mov ebx, 0x16e
xor eax, eax
mov dword [ebp + 4], ecx
mov ecx, dword [esp + 0x18]
cmp ecx, edi
mov dword [esp + 0x1c], eax
mov dword [ebp + 8], edx
mov dword [ebp + 0xc], ebx
jbe 0x40d8de
lea ecx, [esi + 0x16a70]
lea ebx, [esi + 0xccc8]
mov dword [esp + 0x14], ecx
lea ebp, [esi + 0xc8]
jmp 0x40d7db
mov eax, dword [esp + 0x1c]
xor edi, edi
test al, 3
jne 0x40d81c
shr eax, 2
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], edi
lea edx, [eax + 0x5f6]
mov dword [esp + 0x24], edi
push edx
push esi
shl eax, 6
push ecx
push 0x50000007
push 0x46b324
lea ecx, [eax + esi + 0xf7c8]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
call sub.MFC42.DLL_CButton::Create
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
lea edi, [eax + 0x4b0]
lea eax, [esp + 0x30]
mov ecx, ebp
lea edx, [edi + 0xc8]
push edx
push esi
push eax
push 0x50010000
push 0x46b324
call sub.MFC42.DLL_CButton::Create
push 0
mov ecx, ebp
call sub.MFC42.DLL_CWnd::EnableWindow
push 1
push 0
mov ecx, ebp
call fcn.00401366
push esi
lea ecx, [ebx - 0x2b00]
push edi
call sub.MFC42.DLL_CWnd::SubclassDlgItem
push 0xff
push 0
push 0x46b324
lea ecx, [ebx - 0x2b00]
call fcn.00401695
add edi, 0x82
push esi
push edi
mov ecx, ebx
call sub.MFC42.DLL_CWnd::SubclassDlgItem
push 0xff
push 0
push 0x46b324
mov ecx, ebx
call fcn.00401695
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
inc eax
add ebp, 0x284
mov dword [ecx], 0
add ecx, 4
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x18]
add ebx, 0xac
cmp eax, ecx
mov dword [esp + 0x1c], eax
jb 0x40d7d5
xor edi, edi
push 1
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::LoadStringA
mov ecx, dword [esp + 0x10]
push ecx
push 0x3f0
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42.DLL_CWnd::SetWindowTextA
push 2
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::LoadStringA
mov edx, dword [esp + 0x10]
mov ecx, esi
push edx
push 0x3f1
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42.DLL_CWnd::SetWindowTextA
push 3
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::LoadStringA
mov eax, dword [esp + 0x10]
mov ecx, esi
push eax
push 0x3f2
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42.DLL_CWnd::SetWindowTextA
mov ecx, dword [0x46b74c]
add ecx, 0x3f0
push ecx
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
mov edx, dword [eax + 0x20]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push edi
push 1
push 0xf1
push edx
call ebx
mov eax, dword [0x46b74c]
mov ecx, esi
add eax, 0x3f0
push eax
call fcn.00401131
push 0x5f0
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ebp, eax
push edi
push edi
push 0x14b
mov ecx, dword [ebp + 0x20]
mov dword [esp + 0x20], ebp
push ecx
call ebx
mov edx, dword [0x46b5f4]
mov eax, dword [ebp + 0x20]
push edx
push edi
push 0x143
push eax
call ebx
xor ebp, ebp
jmp 0x40d9b9
xor edi, edi
mov eax, ebp
lea ecx, [esp + 0x10]
push eax
push str.TEMPLATE_NAME__d
push ecx
inc ebp
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea edx, [esp + 0x18]
push 0x46b4e0
push 0x46b740
push edx
call sub.MFC42.DLL_operator_1
mov eax, dword [eax]
mov ecx, dword [esp + 0x10]
push eax
lea eax, [esp + 0x44]
push 0x104
push eax
push 0x46b324
push ecx
push str.TEMPLATE_NAME
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString
mov ebx, 0x46b4b0
mov eax, dword [ebx]
lea edx, [esp + 0x40]
push edx
push eax
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
je 0x40da36
add ebx, 0xc
inc edi
cmp ebx, 0x46b4e0
jl 0x40da13
jmp 0x40da75
mov eax, dword [0x46b5f4]
lea ecx, [edi + edi*2]
push eax
mov edx, dword [ecx*4 + 0x46b4b0]
push edx
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
je 0x40da75
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.USER32.dll_CharUpperA]
mov ecx, dword [esp + 0x14]
push eax
push 0
push 0x143
mov edx, dword [ecx + 0x20]
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
lea edi, [esp + 0x40]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x40d9b7
mov ebx, dword [esp + 0x14]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push eax
push eax
mov eax, dword [ebx + 0x20]
push 0x14e
push eax
call edi
mov ecx, dword [ebx + 0x20]
push 0
push 0
push 0x146
push ecx
call edi
xor edx, edx
cmp eax, 1
setle dl
dec edx
mov ecx, ebx
and edx, 5
push edx
call sub.MFC42.DLL_CWnd::ShowWindow
mov eax, dword [0x46bce8]
pop ebp
test eax, eax
pop ebx
jne 0x40dad7
mov eax, dword [0x46bd78]
test eax, eax
je 0x40db0f
push 0x46b818
lea eax, [esp + 0x10]
push str.MP_Ver:
push eax
call sub.MFC42.DLL_operator
push eax
mov ecx, 0x46bcbc
mov byte [esp + 0x148], 1
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0xc]
mov byte [esp + 0x144], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [0x46b73c]
push ecx
push 1
push 0x466538
push str.MAIN
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
je 0x40db47
push 0x615
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
mov edx, dword [eax + 0x20]
push 0
push 1
push 0xf1
push edx
jmp 0x40db60
push 0x614
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
mov eax, dword [eax + 0x20]
push 0
push 1
push 0xf1
push eax
call edi
mov ecx, dword [0x46b74c]
add ecx, 0x3f0
push ecx
mov ecx, esi
call fcn.00401131
lea ecx, [esp + 8]
mov dword [esp + 0x144], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x13c]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x140
ret