Function at 0x427520
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4b41f0
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 0x427592
push str.Register80Server
lea eax, [esp + 0x28]
push 0x4db948
push eax
mov ecx, 0x4dba38
call sub.MFC42.DLL_CWinApp::GetProfileStringA
push eax
mov ecx, 0x4dbf84
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 0x4275d8
push str.RegisterServer
lea ecx, [esp + 0x28]
push 0x4db948
push ecx
mov ecx, 0x4dba38
call sub.MFC42.DLL_CWinApp::GetProfileStringA
push eax
mov ecx, 0x4dbf84
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 [0x4dbf84]
add esp, 8
mov eax, dword [edx - 8]
test eax, eax
jne 0x42778e
mov eax, dword [0x4dbf7c]
test eax, eax
je 0x4276aa
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 0x427644
lea edx, [esp + 0x24]
push str.Register80Server_d
push edx
jmp 0x42764e
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 0x4db948
push edx
mov ecx, 0x4dba38
call sub.MFC42.DLL_CWinApp::GetProfileStringA
push eax
mov ecx, 0x4dbf84
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 0x4277b5
mov eax, dword [edi + 0x68c0]
push 0
test eax, eax
je 0x42774d
push str.NewRegister80Server
lea eax, [esp + 0x28]
push 0x4db948
push eax
mov ecx, 0x4dba38
call sub.MFC42.DLL_CWinApp::GetProfileStringA
push eax
mov ecx, 0x4dbf84
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 [0x4dbf84]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x4277b5
push 0
push str.Register80Server1
lea edx, [esp + 0x28]
push 0x4db948
push edx
mov ecx, 0x4dba38
call sub.MFC42.DLL_CWinApp::GetProfileStringA
push eax
mov ecx, 0x4dbf84
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 0x4277b5
push str.NewRegisterServer
lea eax, [esp + 0x28]
push 0x4db948
push eax
mov ecx, 0x4dba38
call sub.MFC42.DLL_CWinApp::GetProfileStringA
push eax
mov ecx, 0x4dbf84
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 0x4277b5
mov eax, dword [edi + 0x68c0]
push 0
test eax, eax
je 0x4277a1
push str.Register80Server
jmp 0x4277a6
push str.RegisterServer
push 0x4db948
mov ecx, 0x4dba38
call sub.MFC42.DLL_CWinApp::WriteProfileStringA
mov ecx, dword [0x4dbf84]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x4278f2
mov eax, dword [edi + 0x68c0]
push 0
test eax, eax
je 0x427866
push str.MainRegister80Svr1
lea edx, [esp + 0x28]
push 0x4db948
push edx
mov ecx, 0x4dba38
call sub.MFC42.DLL_CWinApp::GetProfileStringA
push eax
mov ecx, 0x4dbf84
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 [0x4dbf84]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x4278f2
push 0
push str.MainRegister80Svr2
lea ecx, [esp + 0x28]
push 0x4db948
push ecx
mov ecx, 0x4dba38
call sub.MFC42.DLL_CWinApp::GetProfileStringA
push eax
mov ecx, 0x4dbf84
mov dword [esp + 0x88], 8
call sub.MFC42.DLL_CString::operator
mov dword [esp + 0x84], ebx
lea ecx, [esp + 0x20]
jmp 0x4278ed
push str.MainRegisterSvr1
lea edx, [esp + 0x28]
push 0x4db948
push edx
mov ecx, 0x4dba38
call sub.MFC42.DLL_CWinApp::GetProfileStringA
push eax
mov ecx, 0x4dbf84
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 [0x4dbf84]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x4278f2
push 0
push str.MainRegisterSvr2
lea ecx, [esp + 0x28]
push 0x4db948
push ecx
mov ecx, 0x4dba38
call sub.MFC42.DLL_CWinApp::GetProfileStringA
push eax
mov ecx, 0x4dbf84
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 0x427908
mov dword [0x4dbf88], 0x50
jmp 0x427926
push 0x7d0
push str.RegisterPort
push 0x4db948
mov ecx, 0x4dba38
call sub.MFC42.DLL_CWinApp::GetProfileIntA
mov dword [0x4dbf88], eax
lea esi, [edi + 0x7ec]
mov ecx, esi
call fcn.00469120
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 0x427989
lea edx, [esp + 0x18]
push str.AddRegister80Svr_d
push edx
jmp 0x427993
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 0x4db948
push edx
mov ecx, 0x4dba38
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 0x427aeb
mov ecx, esi
xor ebp, ebp
call fcn.00469140
test eax, eax
jle 0x427ab8
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.00468f30
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x38]
push edx
push eax
call fcn.00414f10
mov ecx, dword [esp + 0x18]
mov edi, dword [eax]
lea edx, [esp + 0x3c]
push ecx
push edx
mov byte [esp + 0x94], 0x10
call fcn.00414f10
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 0x427a9b
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.00469140
cmp ebp, eax
jl 0x4279f9
jmp 0x427ab1
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.00469140
cmp ebp, eax
jl 0x427add
mov eax, dword [esp + 0x10]
mov ecx, esi
push eax
call fcn.00468f60
cmp eax, ebx
je 0x427add
push 2
push eax
mov ecx, esi
call fcn.004690c0
mov eax, dword [esp + 0x20]
inc eax
mov dword [esp + 0x20], eax
jmp 0x427972
mov eax, 1
mov dword [esp + 0x20], eax
mov ecx, dword [edi + 0x68c0]
push eax
test ecx, ecx
je 0x427b0b
lea ecx, [esp + 0x18]
push str.MainRegister80Svr_d
push ecx
jmp 0x427b15
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 0x4db948
push ecx
mov ecx, 0x4dba38
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 0x427c6b
mov ecx, esi
xor ebp, ebp
call fcn.00469140
test eax, eax
jle 0x427c33
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.00468f30
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x30]
push ecx
push edx
call fcn.00414f10
mov edi, dword [eax]
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x3c]
push eax
push ecx
mov byte [esp + 0x94], 0x13
call fcn.00414f10
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 0x427c1d
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.00469140
cmp ebp, eax
jl 0x427b7b
jmp 0x427c33
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.00469140
cmp ebp, eax
jl 0x427c59
mov edx, dword [esp + 0x10]
mov ecx, esi
push edx
call fcn.00468f60
cmp eax, 0xffffffff
je 0x427c59
push 1
push eax
mov ecx, esi
call fcn.004690c0
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
inc eax
mov dword [esp + 0x20], eax
jmp 0x427af4
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
push 0
push str.Path
lea ecx, [esp + 0x20]
push 0x4db948
push ecx
mov ecx, eax
call sub.MFC42.DLL_CWinApp::GetProfileStringA
push 0x4d6d10
lea ecx, [esp + 0x1c]
mov byte [esp + 0x88], 0x14
call fcn.0045526c
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 0x427ce7
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 0x427d0a
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 0x427e9c
mov al, byte [ebx]
mov dword [esp + 0x1c], ebx
test al, al
je 0x427e9c
jmp 0x427d31
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 0x427d59
push str.Registers80
jmp 0x427d5e
push str.Registers
call ebp
mov al, byte [esp + 0x3c]
test al, al
je 0x427e77
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.00469140
test eax, eax
jle 0x427e51
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.00468f30
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x34]
push eax
push ecx
call fcn.00414f10
mov edi, dword [eax]
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x40]
push edx
push eax
mov byte [esp + 0x94], 0x16
call fcn.00414f10
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 0x427e37
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.00469140
cmp ebp, eax
jl 0x427d95
jmp 0x427e4d
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.00469140
cmp ebp, eax
jl 0x427e77
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, esi
call fcn.00468f60
cmp eax, 0xffffffff
je 0x427e77
push 1
push eax
mov ecx, esi
call fcn.004690c0
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 0x427d23
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.00469120
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, 0x4dba38
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 0x427f78
push eax
mov ecx, ebp
call fcn.00468f60
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, 0x4dba38
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 0x427f14
mov edi, dword [esp + 0x24]
push 0
mov eax, dword [edi + 0x68c0]
test eax, eax
je 0x427fc1
push str.NewRegister80Server
lea edx, [esp + 0x40]
push 0x4db948
push edx
mov ecx, 0x4dba38
call sub.MFC42.DLL_CWinApp::GetProfileStringA
mov eax, dword [eax]
mov ecx, esi
push eax
mov byte [esp + 0x88], 0x18
call fcn.0048d1e0
mov byte [esp + 0x84], 0x14
lea ecx, [esp + 0x38]
jmp 0x427ff8
push str.NewRegisterServer
lea eax, [esp + 0x40]
push 0x4db948
push eax
mov ecx, 0x4dba38
call sub.MFC42.DLL_CWinApp::GetProfileStringA
mov eax, dword [eax]
mov ecx, esi
push eax
mov byte [esp + 0x88], 0x19
call fcn.0048d1e0
mov byte [esp + 0x84], 0x14
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_CString::CString
mov ecx, edi
call fcn.00427330
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