Function at 0x4160d0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x41c0d2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
mov ebx, dword [esp + 0x18]
push ebp
mov ebp, dword [esp + 0x20]
push edi
xor edi, edi
cmp ebp, edi
mov dword [esp + 0xc], ecx
jne 0x41610c
cmp ebx, edi
jl 0x416531
cmp ebx, 4
jg 0x416531
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::CString_2
cmp ebp, edi
mov dword [esp + 0x18], edi
je 0x4162e0
cmp ebx, 8
jne 0x4161b6
push 0x425abc
push 1
push str.SYSSTATEMSG
push str.Option
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, edi
jne 0x41616a
lea ecx, [esp + 0x24]
mov dword [esp + 0x18], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 8
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [0x42905c]
lea ecx, [esp + 0x20]
push eax
push 0xb01
push ecx
mov byte [esp + 0x24], 1
call fcn.0040f220
mov edx, dword [esp + 0x2c]
add esp, 0xc
lea eax, [esp + 0x24]
push ebp
push edx
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x20]
mov byte [esp + 0x18], 0
call sub.MFC42.DLL_CString::CString
jmp 0x416383
cmp ebx, 9
jne 0x416231
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [0x42905c]
lea edx, [esp + 0x20]
push ecx
push 0xb0e
push edx
mov byte [esp + 0x24], 2
call fcn.0040f220
mov eax, dword [esp + 0x2c]
add esp, 0xc
lea ecx, [esp + 0x24]
push 0x429070
push eax
push ecx
call sub.MFC42.DLL_CString::Format
mov edx, dword [0x42905c]
lea eax, [esp + 0x2c]
push edx
push 0xb12
push eax
call fcn.0040f220
mov ecx, dword [esp + 0x38]
add esp, 0x18
push ecx
push edi
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::Insert
lea ecx, [esp + 0x20]
mov byte [esp + 0x18], 0
call sub.MFC42.DLL_CString::CString
jmp 0x416383
cmp ebx, 0xa
jne 0x4162cb
push 0x425abc
push 1
push str.SYSSTATEMSG
push str.Option
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, edi
jne 0x41627a
lea ecx, [esp + 0x24]
mov dword [esp + 0x18], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 8
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::CString_2
mov edx, dword [0x42905c]
lea eax, [esp + 0x20]
push edx
push 0xb12
push eax
mov byte [esp + 0x24], 3
call fcn.0040f220
mov ecx, dword [esp + 0x2c]
add esp, 0xc
lea edx, [esp + 0x24]
push 0x429070
push ecx
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x20]
mov byte [esp + 0x18], 0
call sub.MFC42.DLL_CString::CString
jmp 0x416383
push ebp
lea ecx, [esp + 0x28]
cmp ebx, 0x88
call sub.MFC42.DLL_CString::operator_1
jmp 0x416383
cmp ebx, 4
jne 0x4162f5
mov eax, dword [0x42905c]
push eax
push 0xafe
jmp 0x416376
push 0x425abc
push 1
push str.SYSSTATEMSG
push str.Option
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, edi
jne 0x416335
lea ecx, [esp + 0x24]
mov dword [esp + 0x18], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 8
cmp dword [0x424af4], edi
je 0x416368
lea ecx, [esp + 0x24]
mov dword [0x424af4], edi
mov dword [esp + 0x18], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 8
mov edx, dword [0x42905c]
lea eax, [ebx + 0xb02]
push edx
push eax
lea ecx, [esp + 0x2c]
push ecx
call fcn.0040f220
add esp, 0xc
push esi
push 0x429310
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [0x429330]
cmp esi, edi
jne 0x416410
push 0x158
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x24], eax
cmp eax, edi
mov byte [esp + 0x1c], 4
je 0x4163bd
push edi
mov ecx, eax
call fcn.00419250
jmp 0x4163bf
xor eax, eax
cmp eax, edi
mov byte [esp + 0x1c], 0
mov dword [0x429330], eax
je 0x416514
mov edx, dword [esp + 0x10]
mov ecx, eax
push edx
push 0x8e
call sub.MFC42.DLL_CDialog::Create
test eax, eax
jne 0x416402
mov ecx, dword [0x429330]
cmp ecx, edi
je 0x4163f7
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov dword [0x429330], edi
jmp 0x416514
mov esi, dword [0x429330]
cmp esi, edi
je 0x416514
mov eax, dword [esp + 0x28]
cmp bl, 9
jne 0x416422
mov byte [esi + 0x154], 2
jmp 0x416437
cmp bl, 0xa
jne 0x416430
mov byte [esi + 0x154], 3
jmp 0x416437
mov byte [esi + 0x154], 1
lea edi, [esi + 0x150]
push eax
mov ecx, edi
call sub.MFC42.DLL_CString::operator_1
push 0x3f5
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
test eax, eax
je 0x41646b
mov edi, dword [edi]
mov ecx, esi
push edi
push 0x3f5
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42.DLL_CWnd::SetWindowTextA
xor eax, eax
push 1
mov al, byte [0x428a39]
push 0x64
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea ecx, [eax + eax*4]
shl ecx, 3
push ecx
mov ecx, dword [0x429330]
push 0x64
call fcn.00418760
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_2
mov edx, dword [0x42905c]
lea eax, [esp + 0x10]
push edx
push 0xb07
push eax
mov byte [esp + 0x28], 5
call fcn.0040f220
mov ecx, dword [0x429330]
add esp, 0xc
push 0x3e8
call sub.MFC42.DLL_CWnd::GetDlgItem
test eax, eax
je 0x416506
test ebp, ebp
je 0x4164ed
mov ecx, dword [esp + 0x10]
push ebp
push ecx
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x4164ed
cmp ebx, 0x88
jne 0x4164ed
push eax
jmp 0x4164ef
push 5
mov ecx, dword [0x429330]
push 0x3e8
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42.DLL_CWnd::ShowWindow
lea ecx, [esp + 0x10]
mov byte [esp + 0x1c], 0
call sub.MFC42.DLL_CString::CString
push 0x429310
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [esp + 0x28]
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop esi
mov ecx, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 8