Function at 0x402662
Capabilities:
Read .ini file

Disassembly:
jmp 0x412d5d
mov eax, 0x804468
call fcn.0072bca0
sub esp, 0x20
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x90], 0
je 0x413194
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
mov ecx, dword [esi + 0x90]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push dword [eax + 0x94]
mov edx, dword [ecx + 8]
movzx eax, word [ecx + 0x20]
push eax
push 0x8aabec
push edx
call edi
mov dword [ebp - 0x18], eax
call sub.MFC42.DLL_AfxGetModuleState
mov ebx, dword [eax + 4]
lea eax, [ebp - 0x20]
push 0x8aabcc
push eax
call fcn.006caa00
pop ecx
pop ecx
mov ecx, dword [eax]
mov eax, dword [esi + 0x90]
push dword [ebx + 0x94]
mov edx, dword [eax + 8]
movzx eax, word [eax + 0x22]
push eax
push ecx
push edx
call edi
lea ecx, [ebp - 0x20]
mov ebx, eax
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esi + 0x90]
mov eax, dword [ebp - 0x18]
mov word [ecx + 0x20], ax
mov ecx, dword [esi + 0x90]
movzx eax, ax
mov word [ecx + 0x22], bx
movzx ecx, bx
shl ecx, 0x10
or ecx, eax
mov dword [esi + 0x6ec], ecx
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
mov ecx, dword [esi + 0x90]
push dword [eax + 0x94]
mov edx, dword [ecx + 8]
movzx eax, word [ecx + 0x24]
push eax
push 0x8aabbc
push edx
call edi
mov ebx, eax
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
mov ecx, dword [esi + 0x90]
push dword [eax + 0x94]
mov edx, dword [ecx + 8]
movzx eax, word [ecx + 0x26]
push eax
push 0x8aaba8
push edx
call edi
mov ecx, dword [esi + 0x90]
mov word [ecx + 0x24], bx
mov ecx, dword [esi + 0x90]
mov word [ecx + 0x26], ax
movzx eax, ax
movzx ecx, bx
shl eax, 0x10
or eax, ecx
mov dword [esi + 0x6f0], eax
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
mov ecx, dword [esi + 0x90]
push dword [eax + 0x94]
mov edx, dword [ecx + 8]
movzx eax, word [ecx + 0x28]
push eax
push 0x8aab98
push edx
call edi
mov ebx, eax
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
mov ecx, dword [esi + 0x90]
push dword [eax + 0x94]
mov edx, dword [ecx + 8]
movzx eax, word [ecx + 0x2a]
push eax
push 0x8aab88
push edx
call edi
mov ecx, dword [esi + 0x90]
mov word [ecx + 0x28], bx
mov ecx, dword [esi + 0x90]
mov word [ecx + 0x2a], ax
movzx eax, ax
movzx ecx, bx
shl eax, 0x10
or eax, ecx
mov dword [esi + 0x6f4], eax
call fcn.00401ec9
mov cx, word [eax + 0x60]
movzx eax, word [eax + 0x62]
movzx ecx, cx
shl eax, 0x10
or eax, ecx
mov ecx, esi
mov dword [esi + 0x6f8], eax
call fcn.00401384
push dword [esi + 0x570]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x413194
lea ecx, [esi + 0x550]
mov dword [ebp - 0x20], ecx
call fcn.00773100
push dword [esi + 0x90]
lea ecx, [ebp - 0x1c]
call fcn.004020b3
mov eax, dword [esi + 0x90]
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [eax + 0x9c], 2
je 0x412f71
cmp dword [esi + 0x6e8], ebx
lea edi, [esi + 0x6e8]
jne 0x412f71
lea eax, [ebp - 0x1c]
push ebx
push eax
lea ecx, [esi + 0x194]
call fcn.006cf060
mov dword [edi], eax
cmp dword [esi + 0x6e8], ebx
je 0x412fbf
cmp dword [ebp + 8], ebx
je 0x412fa4
mov ecx, dword [esi + 0x1d4]
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [esi + 0x1d4]
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esi + 0x1d4]
push ebx
mov eax, dword [ecx]
call dword [eax + 0x10]
push 5
lea ecx, [esi + 0x194]
call sub.MFC42.DLL_CWnd::ShowWindow
mov ecx, dword [ebp - 0x20]
push ebx
call sub.MFC42.DLL_CWnd::ShowWindow
jmp 0x413184
lea ecx, [ebp - 0x2c]
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [esi + 0x90]
mov byte [ebp - 4], 1
add eax, 0xf8
mov dword [ebp - 0x20], eax
mov ecx, dword [eax + 8]
cmp ecx, ebx
jle 0x413178
dec ecx
test ecx, ecx
jl 0x413178
mov dword [ebp - 0x18], ebx
jmp 0x412ff5
mov eax, dword [ebp - 0x20]
mov edi, dword [ebp - 0x18]
lea ecx, [ebp - 0x10]
add edi, dword [eax + 4]
call sub.MFC42.DLL_CString::CString_3
cmp dword [ebp + 8], 0
mov byte [ebp - 4], 2
je 0x41301b
lea eax, [edi + 8]
lea ecx, [ebp - 0x10]
push eax
call sub.MFC42.DLL_CString::operator
jmp 0x41304b
mov eax, dword [esi + 0x90]
push 1
mov ecx, edi
mov eax, dword [eax + 8]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.006d18e0
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::operator
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
mov eax, dword [edi + 4]
push 0x8bd670
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
pop ecx
test eax, eax
pop ecx
je 0x413074
push dword [edi + 4]
lea ecx, [esi + 0x550]
push ebx
call fcn.00772d60
push dword [edi + 4]
jmp 0x413084
push dword [edi]
lea ecx, [esi + 0x550]
push ebx
call fcn.00772d60
push dword [edi]
push 0
push ebx
lea ecx, [esi + 0x550]
call fcn.007745a0
push 0xffffff
push 0
push 0
push ebx
lea ecx, [esi + 0x550]
call fcn.007738a0
push 0xffffff
push 0xff
push dword [ebp - 0x10]
lea ecx, [esi + 0x550]
push 1
push ebx
call fcn.00772fc0
push edi
push ebx
lea ecx, [esi + 0x550]
call fcn.00773d40
mov eax, dword [edi + 0x14]
dec eax
je 0x4130f4
lea edi, [esi + 0x550]
push 1
push ebx
mov ecx, edi
call fcn.00773200
push dword [ebp - 0x10]
mov ecx, edi
push 1
push ebx
call fcn.007745a0
jmp 0x413156
push dword [ebp - 0x10]
call dword [sym.imp.MSVCRT.dll_atoi]
pop ecx
mov dword [ebp - 0x14], eax
mov ecx, dword [edi + 0x20]
dec ecx
cmp eax, ecx
jle 0x41310d
and dword [ebp - 0x14], 0
push 0
add edi, 0x18
push dword [ebp - 0x14]
lea ecx, [esi + 0x550]
push 0xa
push edi
push 1
push 1
push ebx
call fcn.00773900
push dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.0040119f
push dword [eax]
lea ecx, [esi + 0x550]
mov byte [ebp - 4], 4
push 1
push ebx
call fcn.007745a0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x20]
add dword [ebp - 0x18], 0x40
inc ebx
mov eax, dword [eax + 8]
dec eax
cmp ebx, eax
jle 0x412ff2
xor ebx, ebx
and byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0x1c]
or dword [ebp - 4], 0xffffffff
cmp ecx, ebx
je 0x413194
call fcn.0040271b
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4