Function at 0x40c550
Capabilities:
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4aa053
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x90]
test eax, eax
je 0x40ca18
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
mov ecx, dword [esi + 0x90]
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov eax, dword [eax + 0x94]
mov edx, dword [ecx + 8]
push eax
xor eax, eax
mov ax, word [ecx + 0x20]
push eax
push 0x523560
push edx
call ebx
mov ebp, eax
call sub.MFC42.DLL_AfxGetModuleState
mov edi, dword [eax + 4]
lea ecx, [esp + 0x20]
push 0x523544
push ecx
call fcn.00429640
mov edi, dword [edi + 0x94]
mov ecx, dword [eax]
mov eax, dword [esi + 0x90]
add esp, 8
mov edx, dword [eax + 8]
push edi
xor edi, edi
mov di, word [eax + 0x22]
push edi
push ecx
push edx
call ebx
lea ecx, [esp + 0x20]
mov edi, eax
call sub.MFC42.DLL_CString::CString
mov edx, dword [esi + 0x90]
mov word [edx + 0x20], bp
mov eax, dword [esi + 0x90]
and ebp, 0xffff
mov word [eax + 0x22], di
and edi, 0xffff
shl edi, 0x10
or edi, ebp
mov dword [esi + 0x6ec], edi
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
mov ecx, dword [esi + 0x90]
mov eax, dword [eax + 0x94]
mov edx, dword [ecx + 8]
push eax
xor eax, eax
mov ax, word [ecx + 0x24]
push eax
push 0x523538
push edx
call ebx
mov edi, eax
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
mov ecx, dword [esi + 0x90]
mov eax, dword [eax + 0x94]
mov edx, dword [ecx + 8]
push eax
xor eax, eax
mov ax, word [ecx + 0x26]
push eax
push 0x523528
push edx
call ebx
mov ecx, dword [esi + 0x90]
mov word [ecx + 0x24], di
mov edx, dword [esi + 0x90]
and edi, 0xffff
mov word [edx + 0x26], ax
and eax, 0xffff
shl eax, 0x10
or eax, edi
mov dword [esi + 0x6f0], eax
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
mov ecx, dword [esi + 0x90]
mov eax, dword [eax + 0x94]
mov edx, dword [ecx + 8]
push eax
xor eax, eax
mov ax, word [ecx + 0x28]
push eax
push 0x52351c
push edx
call ebx
mov edi, eax
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
mov ecx, dword [esi + 0x90]
mov eax, dword [eax + 0x94]
mov edx, dword [ecx + 8]
push eax
xor eax, eax
mov ax, word [ecx + 0x2a]
push eax
push 0x52350c
push edx
call ebx
mov ecx, dword [esi + 0x90]
mov word [ecx + 0x28], di
mov edx, dword [esi + 0x90]
and edi, 0xffff
mov word [edx + 0x2a], ax
and eax, 0xffff
shl eax, 0x10
or eax, edi
mov dword [esi + 0x6f4], eax
call sub.MFC42.DLL_AfxGetThread
xor ebp, ebp
cmp eax, ebp
je 0x40c720
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x7c]
jmp 0x40c722
xor eax, eax
mov cx, word [eax + 0x60]
mov ax, word [eax + 0x62]
and eax, 0xffff
and ecx, 0xffff
shl eax, 0x10
or eax, ecx
mov ecx, esi
mov dword [esi + 0x6f8], eax
call fcn.0040d480
mov eax, dword [esi + 0x570]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40ca18
lea ebx, [esi + 0x550]
mov ecx, ebx
call fcn.0048c780
mov edi, dword [esi + 0x90]
push 0x10
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov dword [esp + 0x38], ebp
je 0x40c78f
push edi
mov ecx, eax
call fcn.0040ca60
jmp 0x40c791
xor eax, eax
mov dword [esp + 0x1c], eax
mov ecx, dword [esi + 0x90]
mov dword [esp + 0x38], 1
cmp dword [ecx + 0x9c], 2
je 0x40c7cb
cmp dword [esi + 0x6e8], ebp
jne 0x40c7d3
lea edx, [esp + 0x1c]
push ebp
push edx
lea ecx, [esi + 0x194]
call fcn.0042d7e0
mov dword [esi + 0x6e8], eax
cmp dword [esi + 0x6e8], ebp
je 0x40c81a
cmp dword [esp + 0x40], ebp
je 0x40c800
mov ecx, dword [esi + 0x1d4]
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [esi + 0x1d4]
lea eax, [esp + 0x1c]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [esi + 0x1d4]
push ebp
mov edx, dword [ecx]
call dword [edx + 0x10]
push 5
lea ecx, [esi + 0x194]
call sub.MFC42.DLL_CWnd::ShowWindow
push ebp
mov ecx, ebx
call sub.MFC42.DLL_CWnd::ShowWindow
jmp 0x40c9ef
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [esi + 0x90]
mov byte [esp + 0x38], 2
add eax, 0xf8
mov dword [esp + 0x20], eax
mov ecx, dword [eax + 8]
cmp ecx, ebp
jle 0x40c9e1
dec ecx
test ecx, ecx
jl 0x40c9e1
mov dword [esp + 0x18], ebp
jmp 0x40c855
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x18]
mov ecx, dword [eax + 4]
add edi, ecx
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [esp + 0x40]
mov byte [esp + 0x38], 3
test eax, eax
je 0x40c883
lea eax, [edi + 8]
lea ecx, [esp + 0x10]
push eax
call sub.MFC42.DLL_CString::operator_3
jmp 0x40c8b8
mov ecx, dword [esi + 0x90]
push 1
lea edx, [esp + 0x28]
mov eax, dword [ecx + 8]
mov ecx, edi
push eax
push edx
call fcn.0042fed0
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x3c], 4
call sub.MFC42.DLL_CString::operator_3
lea ecx, [esp + 0x24]
mov byte [esp + 0x38], 3
call sub.MFC42.DLL_CString::CString
mov eax, dword [edi + 4]
push 0x52e670
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
je 0x40c8df
mov eax, dword [edi + 4]
mov ecx, ebx
push eax
push ebp
call fcn.0048c550
mov eax, dword [edi + 4]
jmp 0x40c8ec
mov eax, dword [edi]
mov ecx, ebx
push eax
push ebp
call fcn.0048c550
mov eax, dword [edi]
push eax
push 0
push ebp
mov ecx, ebx
call fcn.0048d520
push 0xffffff
push 0
push 0
push ebp
mov ecx, ebx
call fcn.0048c930
mov eax, dword [esp + 0x10]
push 0xffffff
push 0xff
push eax
push 1
push ebp
mov ecx, ebx
call fcn.0048c6d0
push edi
push ebp
mov ecx, ebx
call fcn.0048ccc0
mov eax, dword [edi + 0x14]
dec eax
je 0x40c94b
push 1
push ebp
mov ecx, ebx
call fcn.0048c880
mov ecx, dword [esp + 0x10]
push ecx
push 1
push ebp
mov ecx, ebx
call fcn.0048d520
jmp 0x40c9b7
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.MSVCRT.dll_atoi]
mov ecx, dword [edi + 0x20]
add esp, 4
dec ecx
mov dword [esp + 0x14], eax
cmp eax, ecx
jle 0x40c971
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x14]
push 0
add edi, 0x18
push eax
push 0xa
push edi
push 1
push 1
push ebp
mov ecx, ebx
call fcn.0048c990
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x28]
push edx
push eax
mov ecx, edi
call fcn.0040ca30
mov eax, dword [eax]
mov ecx, ebx
push eax
push 1
push ebp
mov byte [esp + 0x44], 5
call fcn.0048d520
lea ecx, [esp + 0x28]
mov byte [esp + 0x38], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x38], 2
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
add edx, 0x40
inc ebp
mov dword [esp + 0x18], edx
mov edx, dword [ecx + 8]
dec edx
cmp ebp, edx
jle 0x40c851
lea ecx, [esp + 0x2c]
mov byte [esp + 0x38], 1
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
test ecx, ecx
je 0x40ca18
mov esi, dword [ecx + 8]
lea eax, [ecx + 8]
dec esi
mov edx, esi
mov dword [eax], esi
test edx, edx
jne 0x40ca18
test ecx, ecx
je 0x40ca18
mov eax, dword [ecx]
push 3
call dword [eax]
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 4