Function at 0x4274d0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4b4000
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 0x427542
push str.Register80Server
lea eax, [esp + 0x28]
push 0x4db920
push eax
mov ecx, 0x4dba10
call sub.MFC42.DLL_CWinApp::GetProfileStringA
push eax
mov ecx, 0x4dbf5c
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 0x427588
push str.RegisterServer
lea ecx, [esp + 0x28]
push 0x4db920
push ecx
mov ecx, 0x4dba10
call sub.MFC42.DLL_CWinApp::GetProfileStringA
push eax
mov ecx, 0x4dbf5c
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 [0x4dbf5c]
add esp, 8
mov eax, dword [edx - 8]
test eax, eax
jne 0x42773e
mov eax, dword [0x4dbf54]
test eax, eax
je 0x42765a
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 0x4275f4
lea edx, [esp + 0x24]
push str.Register80Server_d
push edx
jmp 0x4275fe
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 0x4db920
push edx
mov ecx, 0x4dba10
call sub.MFC42.DLL_CWinApp::GetProfileStringA
push eax
mov ecx, 0x4dbf5c
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 0x427765
mov eax, dword [edi + 0x68c0]
push 0
test eax, eax
je 0x4276fd
push str.NewRegister80Server
lea eax, [esp + 0x28]
push 0x4db920
push eax
mov ecx, 0x4dba10
call sub.MFC42.DLL_CWinApp::GetProfileStringA
push eax
mov ecx, 0x4dbf5c
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 [0x4dbf5c]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x427765
push 0
push str.Register80Server1
lea edx, [esp + 0x28]
push 0x4db920
push edx
mov ecx, 0x4dba10
call sub.MFC42.DLL_CWinApp::GetProfileStringA
push eax
mov ecx, 0x4dbf5c
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 0x427765
push str.NewRegisterServer
lea eax, [esp + 0x28]
push 0x4db920
push eax
mov ecx, 0x4dba10
call sub.MFC42.DLL_CWinApp::GetProfileStringA
push eax
mov ecx, 0x4dbf5c
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 0x427765
mov eax, dword [edi + 0x68c0]
push 0
test eax, eax
je 0x427751
push str.Register80Server
jmp 0x427756
push str.RegisterServer
push 0x4db920
mov ecx, 0x4dba10
call sub.MFC42.DLL_CWinApp::WriteProfileStringA
mov ecx, dword [0x4dbf5c]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x4278a2
mov eax, dword [edi + 0x68c0]
push 0
test eax, eax
je 0x427816
push str.MainRegister80Svr1
lea edx, [esp + 0x28]
push 0x4db920
push edx
mov ecx, 0x4dba10
call sub.MFC42.DLL_CWinApp::GetProfileStringA
push eax
mov ecx, 0x4dbf5c
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 [0x4dbf5c]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x4278a2
push 0
push str.MainRegister80Svr2
lea ecx, [esp + 0x28]
push 0x4db920
push ecx
mov ecx, 0x4dba10
call sub.MFC42.DLL_CWinApp::GetProfileStringA
push eax
mov ecx, 0x4dbf5c
mov dword [esp + 0x88], 8
call sub.MFC42.DLL_CString::operator
mov dword [esp + 0x84], ebx
lea ecx, [esp + 0x20]
jmp 0x42789d
push str.MainRegisterSvr1
lea edx, [esp + 0x28]
push 0x4db920
push edx
mov ecx, 0x4dba10
call sub.MFC42.DLL_CWinApp::GetProfileStringA
push eax
mov ecx, 0x4dbf5c
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 [0x4dbf5c]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x4278a2
push 0
push str.MainRegisterSvr2
lea ecx, [esp + 0x28]
push 0x4db920
push ecx
mov ecx, 0x4dba10
call sub.MFC42.DLL_CWinApp::GetProfileStringA
push eax
mov ecx, 0x4dbf5c
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 0x4278b8
mov dword [0x4dbf60], 0x50
jmp 0x4278d6
push 0x7d0
push str.RegisterPort
push 0x4db920
mov ecx, 0x4dba10
call sub.MFC42.DLL_CWinApp::GetProfileIntA
mov dword [0x4dbf60], eax
lea esi, [edi + 0x7ec]
mov ecx, esi
call fcn.00468b40
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 0x427939
lea edx, [esp + 0x18]
push str.AddRegister80Svr_d
push edx
jmp 0x427943
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 0x4db920
push edx
mov ecx, 0x4dba10
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 0x427a9b
mov ecx, esi
xor ebp, ebp
call fcn.00468b60
test eax, eax
jle 0x427a68
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.00468950
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x38]
push edx
push eax
call fcn.00414f00
mov ecx, dword [esp + 0x18]
mov edi, dword [eax]
lea edx, [esp + 0x3c]
push ecx
push edx
mov byte [esp + 0x94], 0x10
call fcn.00414f00
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 0x427a4b
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.00468b60
cmp ebp, eax
jl 0x4279a9
jmp 0x427a61
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.00468b60
cmp ebp, eax
jl 0x427a8d
mov eax, dword [esp + 0x10]
mov ecx, esi
push eax
call fcn.00468980
cmp eax, ebx
je 0x427a8d
push 2
push eax
mov ecx, esi
call fcn.00468ae0
mov eax, dword [esp + 0x20]
inc eax
mov dword [esp + 0x20], eax
jmp 0x427922
mov eax, 1
mov dword [esp + 0x20], eax
mov ecx, dword [edi + 0x68c0]
push eax
test ecx, ecx
je 0x427abb
lea ecx, [esp + 0x18]
push str.MainRegister80Svr_d
push ecx
jmp 0x427ac5
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 0x4db920
push ecx
mov ecx, 0x4dba10
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 0x427c1b
mov ecx, esi
xor ebp, ebp
call fcn.00468b60
test eax, eax
jle 0x427be3
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.00468950
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x30]
push ecx
push edx
call fcn.00414f00
mov edi, dword [eax]
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x3c]
push eax
push ecx
mov byte [esp + 0x94], 0x13
call fcn.00414f00
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 0x427bcd
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.00468b60
cmp ebp, eax
jl 0x427b2b
jmp 0x427be3
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.00468b60
cmp ebp, eax
jl 0x427c09
mov edx, dword [esp + 0x10]
mov ecx, esi
push edx
call fcn.00468980
cmp eax, 0xffffffff
je 0x427c09
push 1
push eax
mov ecx, esi
call fcn.00468ae0
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
inc eax
mov dword [esp + 0x20], eax
jmp 0x427aa4
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
push 0
push str.Path
lea ecx, [esp + 0x20]
push 0x4db920
push ecx
mov ecx, eax
call sub.MFC42.DLL_CWinApp::GetProfileStringA
push 0x4d6d10
lea ecx, [esp + 0x1c]
mov byte [esp + 0x88], 0x14
call fcn.004550cc
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 0x427c97
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 0x427cba
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 0x427e4c
mov al, byte [ebx]
mov dword [esp + 0x1c], ebx
test al, al
je 0x427e4c
jmp 0x427ce1
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 0x427d09
push str.Registers80
jmp 0x427d0e
push str.Registers
call ebp
mov al, byte [esp + 0x3c]
test al, al
je 0x427e27
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.00468b60
test eax, eax
jle 0x427e01
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.00468950
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x34]
push eax
push ecx
call fcn.00414f00
mov edi, dword [eax]
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x40]
push edx
push eax
mov byte [esp + 0x94], 0x16
call fcn.00414f00
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 0x427de7
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.00468b60
cmp ebp, eax
jl 0x427d45
jmp 0x427dfd
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.00468b60
cmp ebp, eax
jl 0x427e27
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, esi
call fcn.00468980
cmp eax, 0xffffffff
je 0x427e27
push 1
push eax
mov ecx, esi
call fcn.00468ae0
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 0x427cd3
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.00468b40
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, 0x4dba10
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 0x427f28
push eax
mov ecx, ebp
call fcn.00468980
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, 0x4dba10
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 0x427ec4
mov edi, dword [esp + 0x24]
push 0
mov eax, dword [edi + 0x68c0]
test eax, eax
je 0x427f71
push str.NewRegister80Server
lea edx, [esp + 0x40]
push 0x4db920
push edx
mov ecx, 0x4dba10
call sub.MFC42.DLL_CWinApp::GetProfileStringA
mov eax, dword [eax]
mov ecx, esi
push eax
mov byte [esp + 0x88], 0x18
call fcn.00468890
mov byte [esp + 0x84], 0x14
lea ecx, [esp + 0x38]
jmp 0x427fa8
push str.NewRegisterServer
lea eax, [esp + 0x40]
push 0x4db920
push eax
mov ecx, 0x4dba10
call sub.MFC42.DLL_CWinApp::GetProfileStringA
mov eax, dword [eax]
mov ecx, esi
push eax
mov byte [esp + 0x88], 0x19
call fcn.00468890
mov byte [esp + 0x84], 0x14
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_CString::CString
mov ecx, edi
call fcn.004272e0
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