Function at 0x4275f0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4b41a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6c
push ebx
push ebp
push esi
push edi
mov edi, ecx
push 0
mov dword [esp + 0x28], edi
mov eax, dword [edi + 0x68c0]
test eax, eax
je 0x427662
push str.Register80Server
lea eax, [esp + 0x28]
push 0x4db968
push eax
mov ecx, 0x4dba58
call sub.MFC42.DLL_CWinApp::GetProfileStringA
push eax
mov ecx, 0x4dbfa4
mov dword [esp + 0x88], 0
call sub.MFC42.DLL_CString::operator
or ebx, 0xffffffff
lea ecx, [esp + 0x20]
mov dword [esp + 0x84], ebx
call sub.MFC42.DLL_CString::CString
jmp 0x4276a8
push str.RegisterServer
lea ecx, [esp + 0x28]
push 0x4db968
push ecx
mov ecx, 0x4dba58
call sub.MFC42.DLL_CWinApp::GetProfileStringA
push eax
mov ecx, 0x4dbfa4
mov dword [esp + 0x88], 1
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x20]
mov dword [esp + 0x84], 0xffffffff
call sub.MFC42.DLL_CString::CString
or ebx, 0xffffffff
push 0
call dword [sym.imp.MSVCRT.dll_time]
push eax
call dword [sym.imp.MSVCRT.dll_srand]
mov edx, dword [0x4dbfa4]
add esp, 8
mov eax, dword [edx - 8]
test eax, eax
jne 0x42785e
mov eax, dword [0x4dbf9c]
test eax, eax
je 0x42777a
call dword [sym.imp.MSVCRT.dll_rand]
cdq
mov ecx, 3
idiv ecx
lea ecx, [esp + 0x20]
mov esi, edx
inc esi
call sub.MFC42.DLL_CString::CString_5
mov eax, dword [edi + 0x68c0]
mov dword [esp + 0x84], 2
test eax, eax
push esi
je 0x427714
lea edx, [esp + 0x24]
push str.Register80Server_d
push edx
jmp 0x42771e
lea eax, [esp + 0x24]
push str.RegisterServer_d
push eax
call sub.MFC42.DLL_CString::Format_1
mov ecx, dword [esp + 0x2c]
add esp, 0xc
lea edx, [esp + 0x1c]
push 0
push ecx
push 0x4db968
push edx
mov ecx, 0x4dba58
call sub.MFC42.DLL_CWinApp::GetProfileStringA
push eax
mov ecx, 0x4dbfa4
mov byte [esp + 0x88], 3
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x1c]
mov byte [esp + 0x84], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov dword [esp + 0x84], ebx
call sub.MFC42.DLL_CString::CString
jmp 0x427885
mov eax, dword [edi + 0x68c0]
push 0
test eax, eax
je 0x42781d
push str.NewRegister80Server
lea eax, [esp + 0x28]
push 0x4db968
push eax
mov ecx, 0x4dba58
call sub.MFC42.DLL_CWinApp::GetProfileStringA
push eax
mov ecx, 0x4dbfa4
mov dword [esp + 0x88], 4
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x20]
mov dword [esp + 0x84], ebx
call sub.MFC42.DLL_CString::CString
mov ecx, dword [0x4dbfa4]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x427885
push 0
push str.Register80Server1
lea edx, [esp + 0x28]
push 0x4db968
push edx
mov ecx, 0x4dba58
call sub.MFC42.DLL_CWinApp::GetProfileStringA
push eax
mov ecx, 0x4dbfa4
mov dword [esp + 0x88], 5
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x20]
mov dword [esp + 0x84], ebx
call sub.MFC42.DLL_CString::CString
jmp 0x427885
push str.NewRegisterServer
lea eax, [esp + 0x28]
push 0x4db968
push eax
mov ecx, 0x4dba58
call sub.MFC42.DLL_CWinApp::GetProfileStringA
push eax
mov ecx, 0x4dbfa4
mov dword [esp + 0x88], 6
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x20]
mov dword [esp + 0x84], ebx
call sub.MFC42.DLL_CString::CString
jmp 0x427885
mov eax, dword [edi + 0x68c0]
push 0
test eax, eax
je 0x427871
push str.Register80Server
jmp 0x427876
push str.RegisterServer
push 0x4db968
mov ecx, 0x4dba58
call sub.MFC42.DLL_CWinApp::WriteProfileStringA
mov ecx, dword [0x4dbfa4]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x4279c2
mov eax, dword [edi + 0x68c0]
push 0
test eax, eax
je 0x427936
push str.MainRegister80Svr1
lea edx, [esp + 0x28]
push 0x4db968
push edx
mov ecx, 0x4dba58
call sub.MFC42.DLL_CWinApp::GetProfileStringA
push eax
mov ecx, 0x4dbfa4
mov dword [esp + 0x88], 7
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x20]
mov dword [esp + 0x84], ebx
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x4dbfa4]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x4279c2
push 0
push str.MainRegister80Svr2
lea ecx, [esp + 0x28]
push 0x4db968
push ecx
mov ecx, 0x4dba58
call sub.MFC42.DLL_CWinApp::GetProfileStringA
push eax
mov ecx, 0x4dbfa4
mov dword [esp + 0x88], 8
call sub.MFC42.DLL_CString::operator
mov dword [esp + 0x84], ebx
lea ecx, [esp + 0x20]
jmp 0x4279bd
push str.MainRegisterSvr1
lea edx, [esp + 0x28]
push 0x4db968
push edx
mov ecx, 0x4dba58
call sub.MFC42.DLL_CWinApp::GetProfileStringA
push eax
mov ecx, 0x4dbfa4
mov dword [esp + 0x88], 9
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x20]
mov dword [esp + 0x84], ebx
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x4dbfa4]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x4279c2
push 0
push str.MainRegisterSvr2
lea ecx, [esp + 0x28]
push 0x4db968
push ecx
mov ecx, 0x4dba58
call sub.MFC42.DLL_CWinApp::GetProfileStringA
push eax
mov ecx, 0x4dbfa4
mov dword [esp + 0x88], 0xa
call sub.MFC42.DLL_CString::operator
mov dword [esp + 0x84], ebx
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::CString
mov eax, dword [edi + 0x68c0]
test eax, eax
je 0x4279d8
mov dword [0x4dbfa8], 0x50
jmp 0x4279f6
push 0x7d0
push str.RegisterPort
push 0x4db968
mov ecx, 0x4dba58
call sub.MFC42.DLL_CWinApp::GetProfileIntA
mov dword [0x4dbfa8], eax
lea esi, [edi + 0x7ec]
mov ecx, esi
call fcn.00468f00
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_5
lea ecx, [esp + 0x10]
mov dword [esp + 0x84], 0xb
call sub.MFC42.DLL_CString::CString_5
lea ecx, [esp + 0x28]
mov byte [esp + 0x84], 0xc
call sub.MFC42.DLL_CString::CString_5
mov eax, 1
mov byte [esp + 0x84], 0xd
mov dword [esp + 0x20], eax
mov ecx, dword [edi + 0x68c0]
push eax
test ecx, ecx
je 0x427a59
lea edx, [esp + 0x18]
push str.AddRegister80Svr_d
push edx
jmp 0x427a63
lea eax, [esp + 0x18]
push str.AddRegisterSvr_d
push eax
call sub.MFC42.DLL_CString::Format_1
mov ecx, dword [esp + 0x20]
add esp, 0xc
lea edx, [esp + 0x30]
push 0
push ecx
push 0x4db968
push edx
mov ecx, 0x4dba58
call sub.MFC42.DLL_CWinApp::GetProfileStringA
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x88], 0xe
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x30]
mov byte [esp + 0x84], 0xd
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x427bbb
mov ecx, esi
xor ebp, ebp
call fcn.00468f20
test eax, eax
jle 0x427b88
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString_5
lea ecx, [esp + 0x1c]
mov byte [esp + 0x84], 0xf
push ecx
push ebp
mov ecx, esi
call fcn.00468d10
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x38]
push edx
push eax
call fcn.00414f80
mov ecx, dword [esp + 0x18]
mov edi, dword [eax]
lea edx, [esp + 0x3c]
push ecx
push edx
mov byte [esp + 0x94], 0x10
call fcn.00414f80
mov eax, dword [eax]
push edi
push eax
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 0x18
lea ecx, [esp + 0x34]
test eax, eax
sete bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x38]
mov byte [esp + 0x84], 0xf
call sub.MFC42.DLL_CString::CString
test bl, bl
lea ecx, [esp + 0x1c]
jne 0x427b6b
call sub.MFC42.DLL_CString::Empty
lea ecx, [esp + 0x1c]
mov byte [esp + 0x84], 0xd
call sub.MFC42.DLL_CString::CString
mov ecx, esi
inc ebp
call fcn.00468f20
cmp ebp, eax
jl 0x427ac9
jmp 0x427b81
call sub.MFC42.DLL_CString::Empty
lea ecx, [esp + 0x1c]
mov byte [esp + 0x84], 0xd
call sub.MFC42.DLL_CString::CString
mov edi, dword [esp + 0x24]
or ebx, 0xffffffff
mov ecx, esi
call fcn.00468f20
cmp ebp, eax
jl 0x427bad
mov eax, dword [esp + 0x10]
mov ecx, esi
push eax
call fcn.00468d40
cmp eax, ebx
je 0x427bad
push 2
push eax
mov ecx, esi
call fcn.00468ea0
mov eax, dword [esp + 0x20]
inc eax
mov dword [esp + 0x20], eax
jmp 0x427a42
mov eax, 1
mov dword [esp + 0x20], eax
mov ecx, dword [edi + 0x68c0]
push eax
test ecx, ecx
je 0x427bdb
lea ecx, [esp + 0x18]
push str.MainRegister80Svr_d
push ecx
jmp 0x427be5
lea edx, [esp + 0x18]
push str.MainRegisterSvr_d
push edx
call sub.MFC42.DLL_CString::Format_1
mov eax, dword [esp + 0x20]
add esp, 0xc
lea ecx, [esp + 0x38]
push 0
push eax
push 0x4db968
push ecx
mov ecx, 0x4dba58
call sub.MFC42.DLL_CWinApp::GetProfileStringA
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x88], 0x11
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x38]
mov byte [esp + 0x84], 0xd
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x10]
mov eax, dword [edx - 8]
test eax, eax
je 0x427d3b
mov ecx, esi
xor ebp, ebp
call fcn.00468f20
test eax, eax
jle 0x427d03
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString_5
lea eax, [esp + 0x1c]
mov ecx, esi
push eax
push ebp
mov byte [esp + 0x8c], 0x12
call fcn.00468d10
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x30]
push ecx
push edx
call fcn.00414f80
mov edi, dword [eax]
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x3c]
push eax
push ecx
mov byte [esp + 0x94], 0x13
call fcn.00414f80
mov eax, dword [eax]
push edi
push eax
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 0x18
lea ecx, [esp + 0x34]
test eax, eax
sete bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0x84], 0x12
call sub.MFC42.DLL_CString::CString
test bl, bl
lea ecx, [esp + 0x1c]
jne 0x427ced
call sub.MFC42.DLL_CString::Empty
lea ecx, [esp + 0x1c]
mov byte [esp + 0x84], 0xd
call sub.MFC42.DLL_CString::CString
mov ecx, esi
inc ebp
call fcn.00468f20
cmp ebp, eax
jl 0x427c4b
jmp 0x427d03
call sub.MFC42.DLL_CString::Empty
lea ecx, [esp + 0x1c]
mov byte [esp + 0x84], 0xd
call sub.MFC42.DLL_CString::CString
mov ecx, esi
call fcn.00468f20
cmp ebp, eax
jl 0x427d29
mov edx, dword [esp + 0x10]
mov ecx, esi
push edx
call fcn.00468d40
cmp eax, 0xffffffff
je 0x427d29
push 1
push eax
mov ecx, esi
call fcn.00468ea0
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
inc eax
mov dword [esp + 0x20], eax
jmp 0x427bc4
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
push 0
push str.Path
lea ecx, [esp + 0x20]
push 0x4db968
push ecx
mov ecx, eax
call sub.MFC42.DLL_CWinApp::GetProfileStringA
push 0x4d6d10
lea ecx, [esp + 0x1c]
mov byte [esp + 0x88], 0x14
call fcn.0045518c
push 0x4000
mov dword [esp + 0x30], 0
call sub.MFC42.DLL_operatornew
mov ebx, eax
mov eax, dword [edi + 0x68c0]
add esp, 4
mov dword [esp + 0x30], ebx
test eax, eax
je 0x427db7
mov edx, dword [esp + 0x18]
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push edx
push 0x4000
lea eax, [esp + 0x34]
push ebx
push eax
push 0
push str.Registers80
call ebp
jmp 0x427dda
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x2c]
push ecx
push 0x4000
push ebx
push edx
push 0
push str.Registers
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp eax, 2
jbe 0x427f6c
mov al, byte [ebx]
mov dword [esp + 0x1c], ebx
test al, al
je 0x427f6c
jmp 0x427e01
mov ebx, dword [esp + 0x1c]
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov edi, dword [esp + 0x24]
mov eax, dword [edi + 0x68c0]
lea ecx, [esp + 0x3c]
test eax, eax
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x3c]
push eax
push 0x40
push ecx
push edx
mov byte [esp + 0x4c], 0
push ebx
je 0x427e29
push str.Registers80
jmp 0x427e2e
push str.Registers
call ebp
mov al, byte [esp + 0x3c]
test al, al
je 0x427f47
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x10]
push eax
push ebx
push str._s__s_
push ecx
call sub.MFC42.DLL_CString::Format_1
add esp, 0x10
mov ecx, esi
xor ebp, ebp
call fcn.00468f20
test eax, eax
jle 0x427f21
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::CString_5
lea edx, [esp + 0x20]
mov ecx, esi
push edx
push ebp
mov byte [esp + 0x8c], 0x15
call fcn.00468d10
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x34]
push eax
push ecx
call fcn.00414f80
mov edi, dword [eax]
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x40]
push edx
push eax
mov byte [esp + 0x94], 0x16
call fcn.00414f80
mov eax, dword [eax]
push edi
push eax
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 0x18
lea ecx, [esp + 0x38]
test eax, eax
sete bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x34]
mov byte [esp + 0x84], 0x15
call sub.MFC42.DLL_CString::CString
test bl, bl
lea ecx, [esp + 0x20]
jne 0x427f07
call sub.MFC42.DLL_CString::Empty
lea ecx, [esp + 0x20]
mov byte [esp + 0x84], 0x14
call sub.MFC42.DLL_CString::CString
mov ecx, esi
inc ebp
call fcn.00468f20
cmp ebp, eax
jl 0x427e65
jmp 0x427f1d
call sub.MFC42.DLL_CString::Empty
lea ecx, [esp + 0x20]
mov byte [esp + 0x84], 0x14
call sub.MFC42.DLL_CString::CString
mov ebx, dword [esp + 0x1c]
mov ecx, esi
call fcn.00468f20
cmp ebp, eax
jl 0x427f47
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, esi
call fcn.00468d40
cmp eax, 0xffffffff
je 0x427f47
push 1
push eax
mov ecx, esi
call fcn.00468ea0
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [ebx + ecx + 1]
mov dword [esp + 0x1c], eax
cmp byte [eax], 0
jne 0x427df3
mov ebx, dword [esp + 0x30]
mov edi, dword [esp + 0x24]
push ebx
call sub.MFC42.DLL_operatordelete
lea ebp, [edi + 0x36a4]
add esp, 4
mov ecx, ebp
call fcn.00468f00
mov edi, 1
lea edx, [esp + 0x14]
push edi
push str.UserName_d
push edx
call sub.MFC42.DLL_CString::Format_1
mov eax, dword [esp + 0x20]
add esp, 0xc
lea ecx, [esp + 0x20]
push 0
push eax
push 0x4bf4f8
push ecx
mov ecx, 0x4dba58
call sub.MFC42.DLL_CWinApp::GetProfileStringA
mov bl, 0x17
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x88], bl
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x20]
mov byte [esp + 0x84], 0x14
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x28]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x428048
push eax
mov ecx, ebp
call fcn.00468d40
inc edi
lea edx, [esp + 0x14]
push edi
push str.UserName_d
push edx
call sub.MFC42.DLL_CString::Format_1
mov eax, dword [esp + 0x20]
add esp, 0xc
lea ecx, [esp + 0x20]
push 0
push eax
push 0x4bf4f8
push ecx
mov ecx, 0x4dba58
call sub.MFC42.DLL_CWinApp::GetProfileStringA
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x88], bl
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x20]
mov byte [esp + 0x84], 0x14
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x28]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x427fe4
mov edi, dword [esp + 0x24]
push 0
mov eax, dword [edi + 0x68c0]
test eax, eax
je 0x428091
push str.NewRegister80Server
lea edx, [esp + 0x40]
push 0x4db968
push edx
mov ecx, 0x4dba58
call sub.MFC42.DLL_CWinApp::GetProfileStringA
mov eax, dword [eax]
mov ecx, esi
push eax
mov byte [esp + 0x88], 0x18
call fcn.0048cf10
mov byte [esp + 0x84], 0x14
lea ecx, [esp + 0x38]
jmp 0x4280c8
push str.NewRegisterServer
lea eax, [esp + 0x40]
push 0x4db968
push eax
mov ecx, 0x4dba58
call sub.MFC42.DLL_CWinApp::GetProfileStringA
mov eax, dword [eax]
mov ecx, esi
push eax
mov byte [esp + 0x88], 0x19
call fcn.0048cf10
mov byte [esp + 0x84], 0x14
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_CString::CString
mov ecx, edi
call fcn.00427400
pop edi
pop esi
pop ebp
pop ebx
lea ecx, [esp + 8]
mov byte [esp + 0x74], 0xd
test eax, eax
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x74], 0xc
call sub.MFC42.DLL_CString::CString
lea ecx, [esp]
mov byte [esp + 0x74], 0xb
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 4]
mov dword [esp + 0x74], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
add esp, 0x78
ret