Function at 0x427210
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [0x466c98]
sub esp, 0x6c
push ebx
push ebp
push esi
push edi
xor edi, edi
cmp eax, edi
mov esi, ecx
je 0x427248
mov ecx, dword [esi + 0x1055]
push 0x10
push 0x45fefc
push str.The_PETSCC_Is_not_Supported_Under_NT_
call fcn.00401480
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
mov dword [esi + 0x14c3], edi
mov ebp, dword [esp + 0x80]
push ebp
push 0xf
lea eax, [esp + 0x3c]
push eax
push 0x45ff38
push 0x45ff40
push 0x45ff4c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 0x34]
push 0x45ff58
push ecx
call fcn.0044370e
add esp, 8
test eax, eax
jne 0x427590
mov eax, dword [0x466b3c]
mov edx, dword [esi + 0x1504]
mov dword [eax*4 + 0x466b48], edx
mov ecx, dword [0x466b3c]
mov ebx, 1
inc ecx
mov dword [0x466b3c], ecx
mov dword [0x466b38], ebx
mov dword [esi + 0x14c3], ebx
mov dword [esi + 0x162c], ebx
mov dword [esi + 0x14bf], 0xc
cmp dword [0x466b3c], ebx
jle 0x4272ec
mov ecx, dword [0x466b40]
mov dword [esi + 0x162c], edi
pop edi
mov dword [esi + 0x212d], ecx
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x6c
ret 4
push edi
push 0x44000000
push edi
push edi
push edi
push edi
push str..AGWPTSCC.VXD
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 0x212d], eax
jne 0x427359
push str.AgwPTSCC.vxd_Not_Found__n_Tnc_Will_Be_IDLE__
push str.NOPETSCC1
push 0x45ffac
mov dword [esi + 0x14c3], edi
mov dword [esi + 0x162c], edi
call fcn.0040d190
mov ecx, dword [esi + 0x1055]
add esp, 0xc
push 0x10
lea edx, [esp + 0x38]
push edx
push 0x466a30
call fcn.00401480
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x6c
ret 4
lea ebx, [esi + 0x10]
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push 0x45ffb4
push 0x45ffc0
mov dword [0x466b40], eax
call edi
push ebx
push 0
push 0x45ffcc
push 0x45ffd8
mov dword [esi + 0x160c], eax
call edi
push ebx
xor ebx, ebx
push ebx
push 0x45ffe4
push 0x45fff0
mov dword [esi + 0x1610], eax
call edi
push ebp
push 0x4b0
push str.CHAN0
push 0x460004
mov dword [esi + 0x1614], eax
mov dword [esp + 0x24], 0x150
mov dword [esp + 0x28], 7
call edi
push ebp
push 0x4b0
push 0x460014
push 0x46001c
mov dword [esp + 0x90], eax
mov dword [esp + 0x2c], eax
call edi
push ebp
push 7
push 0x46002c
push 0x460030
mov dword [esp + 0x90], eax
mov dword [esp + 0x30], eax
call edi
push ebp
push 0xa
mov dword [esp + 0x88], eax
mov dword [esp + 0x20], eax
lea eax, [esp + 0x3c]
push eax
push 0x460040
push 0x460044
push 0x46004c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 0x80]
push ecx
lea edx, [esp + 0x38]
push 0x46005c
push edx
call fcn.0043a803
mov eax, dword [esp + 0x8c]
push 2
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x68]
push edx
mov dword [esp + 0x2c], eax
call fcn.004394b0
push 2
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x76]
push ecx
call fcn.004394b0
push 2
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0x84]
push eax
call fcn.004394b0
add esp, 0x30
push ebp
push ebx
push str.CHAN0MODEM
push 0x46006c
call edi
push 1
lea ecx, [esp + 0x17]
push ecx
lea edx, [esp + 0x62]
push edx
mov dword [esp + 0x8c], eax
mov byte [esp + 0x1f], al
call fcn.004394b0
push 2
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x6f]
push ecx
call fcn.004394b0
add esp, 0x18
push ebp
push ebx
push str.CHAN1MODEM
push 0x460088
call edi
push 1
lea edx, [esp + 0x17]
mov dword [esp + 0x84], eax
mov byte [esp + 0x17], al
push edx
lea eax, [esp + 0x65]
push eax
call fcn.004394b0
add esp, 0xc
push ebx
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esi + 0x212d]
push 0xa
lea edx, [esp + 0x34]
push edx
push 0x18
lea eax, [esp + 0x68]
push eax
push 0x222000
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov al, byte [esp + 0x28]
test al, al
jne 0x42753b
push str.PetSCC_Driver_Not_Installed__n_Tnc_Will_Be_IDLE__
push str.NOPSCC2
push 0x4600d4
call fcn.0040d190
add esp, 0xc
push 0x10
push 0x4600dc
jmp 0x427561
cmp al, 2
jne 0x4275f5
push str.PetSCC_Card_Not_Found__n_Tnc_Will_Be_IDLE__
push str.NOPSCC3
push 0x460124
call fcn.0040d190
add esp, 0xc
push 0x10
push 0x46012c
mov ecx, dword [esi + 0x1055]
push 0x466a30
call fcn.00401480
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
mov dword [esi + 0x14c3], ebx
mov dword [esi + 0x162c], ebx
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x6c
ret 4
push ebp
push edi
push 0x460140
push 0x46014c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov edx, dword [esi + 0x1055]
mov ecx, dword [edx + eax*4 + 0x30]
lea eax, [edx + eax*4 + 0x30]
mov edx, dword [ecx + 0x212d]
mov dword [esi + 0x212d], edx
mov edx, dword [esi + 0x1504]
dec edx
mov dword [esi + 0x14bf], 0xc
mov dword [esi + 0x162c], edi
mov dword [esi + 0x1504], edx
mov eax, dword [eax]
cmp dword [eax + 0x14c3], edi
jne 0x4275f5
mov dword [esi + 0x14c3], edi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x6c
ret 4
pop edi
pop esi
mov ebx, 1
pop ebp
mov eax, ebx
pop ebx
add esp, 0x6c
ret 4