Function at 0x40f100
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45f807
mov eax, dword fs:[0]
push eax
sub esp, 0x3a8
mov eax, dword [0x4745a8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov ebx, ecx
cmp dword [ebx + 0x6c], 0
mov dword [ebp - 0x224], eax
je 0x40fac8
push 0x4650dc
lea ecx, [ebp - 0x274]
call fcn.00402de0
lea ecx, [ebp - 0x274]
mov dword [ebx + 0x6c], ecx
push str.basecfg
lea ecx, [ebp - 0x364]
mov dword [ebp - 4], 0
call fcn.00402de0
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push esi
push 0x104
lea eax, [ebp - 0x118]
push eax
push 0x46c3e8
push str.LNSIP
lea edx, [ebp - 0x364]
push str.2401
mov byte [ebp - 4], 1
mov dword [ebx + 0x6c], edx
call edi
test eax, eax
je 0x40f1be
lea ecx, [ebp - 0x118]
push ecx
push str.LNSIP
mov ecx, ebx
call fcn.00406dc0
push esi
push 0x104
lea edx, [ebp - 0x118]
push edx
push 0x46c3e8
push str.LNSIPSecond
push str.2401
call edi
test eax, eax
je 0x40f1f3
lea eax, [ebp - 0x118]
push eax
push str.LNSIPSecond
mov ecx, ebx
call fcn.00406dc0
push esi
push 0xffffffffffffffff
push str.UseIPSEC
push str.2401
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, 0xffffffff
je 0x40f218
push eax
push str.useIPSEC
mov ecx, ebx
call fcn.00407040
push esi
push 0xffffffffffffffff
push str.UseRSA
push str.2401
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, 0xffffffff
je 0x40f23d
push eax
push str.useRSA
mov ecx, ebx
call fcn.00407040
push esi
push 0
push str.ModifyAdvanced
push str.2401
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, 0xffffffff
je 0x40f262
push eax
push str.modifyAdvanced
mov ecx, ebx
call fcn.00407040
push esi
push 0xffffffffffffffff
push str.ForbidVirNIC
push str.2401
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, 0xffffffff
je 0x40f287
push eax
push str.forbidVirNIC
mov ecx, ebx
call fcn.00407040
push esi
push 0xffffffffffffffff
push str.UpVersion
push str.2401
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, 0xffffffff
je 0x40f2ac
push eax
push str.upVersion
mov ecx, ebx
call fcn.00407040
push esi
push 0xffffffffffffffff
push str.ResumeCon
push str.2401
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, 0xffffffff
je 0x40f2d1
push eax
push str.resumConn
mov ecx, ebx
call fcn.00407040
push esi
push 0x104
lea ecx, [ebp - 0x118]
push ecx
push 0x46c3e8
push str.PreSharedKey
push str.2401
call edi
test eax, eax
je 0x40f306
lea edx, [ebp - 0x118]
push edx
push str.preSharedKey
mov ecx, ebx
call fcn.00406dc0
push esi
push 0xffffffffffffffff
push str.LNSAsIPSECServer
push str.2401
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, 0xffffffff
je 0x40f32b
push eax
push str.LNSAsIPSECServer
mov ecx, ebx
call fcn.00407040
push esi
push 0x104
lea eax, [ebp - 0x118]
push eax
push 0x46c3e8
push str.OtherIPSECServer
push str.2401
call edi
test eax, eax
je 0x40f360
lea ecx, [ebp - 0x118]
push ecx
push str.otherIPSECServer
mov ecx, ebx
call fcn.00406dc0
lea edx, [ebp - 0x364]
push edx
lea ecx, [ebp - 0x274]
call fcn.00402720
push str.l2tpcfg
lea ecx, [ebp - 0x3b4]
call fcn.00402de0
push esi
push 0x104
lea ecx, [ebp - 0x118]
push ecx
push 0x46c3e8
push str.L2TPTunnelName
lea eax, [ebp - 0x3b4]
push str.2401
mov byte [ebp - 4], 2
mov dword [ebx + 0x6c], eax
call edi
test eax, eax
je 0x40f3c4
lea edx, [ebp - 0x118]
push edx
push str.L2TPTunnelName
mov ecx, ebx
call fcn.00406dc0
push esi
push 0x104
lea eax, [ebp - 0x118]
push eax
push 0x46c3e8
push str.L2TPAuthMode
push str.2401
call edi
test eax, eax
je 0x40f3f9
lea ecx, [ebp - 0x118]
push ecx
push str.L2TPAuthMode
mov ecx, ebx
call fcn.00406dc0
push esi
push 0x104
lea edx, [ebp - 0x118]
push edx
push 0x46c3e8
push str.L2TPHelloInterval
push str.2401
call edi
test eax, eax
je 0x40f42e
lea eax, [ebp - 0x118]
push eax
push str.L2TPHelloInterval
mov ecx, ebx
call fcn.00406dc0
push esi
push 0xffffffffffffffff
push str.L2TPUseTunnelPwd
push str.2401
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, 0xffffffff
je 0x40f453
push eax
push str.L2TPUseTunnelPwd
mov ecx, ebx
call fcn.00407040
push esi
push 0xffffffffffffffff
push str.L2TPAVPHidden
push str.2401
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, 0xffffffff
je 0x40f478
push eax
push str.L2TPAVPHidden
mov ecx, ebx
call fcn.00407040
push esi
push 0x104
lea ecx, [ebp - 0x118]
push ecx
push 0x46c3e8
push str.L2TPTunnelPwd
push str.2401
call edi
test eax, eax
je 0x40f4ad
lea edx, [ebp - 0x118]
push edx
push str.L2TPTunnelPwd
mov ecx, ebx
call fcn.00406dc0
push esi
push 0xffffffffffffffff
push str.L2TPPort
push str.2401
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, 0xffffffff
je 0x40f4d2
push eax
push str.L2TPPort
mov ecx, ebx
call fcn.00407040
lea eax, [ebp - 0x3b4]
push eax
lea ecx, [ebp - 0x274]
call fcn.00402720
push str.ipseccfg
lea ecx, [ebp - 0x2c4]
call fcn.00402de0
push esi
push 0x104
lea edx, [ebp - 0x118]
push edx
push 0x46c3e8
push str.IPSECEncapsulationMode
lea ecx, [ebp - 0x2c4]
push str.2401
mov byte [ebp - 4], 3
mov dword [ebx + 0x6c], ecx
call edi
test eax, eax
je 0x40f536
lea eax, [ebp - 0x118]
push eax
push str.IPSECEncapsulationMode
mov ecx, ebx
call fcn.00406dc0
push esi
push 0x104
lea ecx, [ebp - 0x118]
push ecx
push 0x46c3e8
push str.IPSECSALifetime
push str.2401
call edi
test eax, eax
je 0x40f56b
lea edx, [ebp - 0x118]
push edx
push str.IPSECSALifetime
mov ecx, ebx
call fcn.00406dc0
push esi
push 0x104
lea eax, [ebp - 0x118]
push eax
push 0x46c3e8
push str.IPSECSecurityProto
push str.2401
call edi
test eax, eax
je 0x40f5a0
lea ecx, [ebp - 0x118]
push ecx
push str.IPSECSecurityProto
mov ecx, ebx
call fcn.00406dc0
push esi
push 0x104
lea edx, [ebp - 0x118]
push edx
push 0x46c3e8
push str.IPSECESPAuthAlgorithm
push str.2401
call edi
test eax, eax
je 0x40f5d5
lea eax, [ebp - 0x118]
push eax
push str.IPSECESPAuthAlgorithm
mov ecx, ebx
call fcn.00406dc0
push esi
push 0x104
lea ecx, [ebp - 0x118]
push ecx
push 0x46c3e8
push str.IPSECESPEncryption
push str.2401
call edi
test eax, eax
je 0x40f60a
lea edx, [ebp - 0x118]
push edx
push str.IPSECESPEncryption
mov ecx, ebx
call fcn.00406dc0
push esi
push 0x104
lea eax, [ebp - 0x118]
push eax
push 0x46c3e8
push str.IPSECAHAuthAlgorithm
push str.2401
call edi
test eax, eax
je 0x40f63f
lea ecx, [ebp - 0x118]
push ecx
push str.IPSECAHAuthAlgorithm
mov ecx, ebx
call fcn.00406dc0
push esi
push 0xffffffffffffffff
push str.IPSECUseNatTranversal
push str.2401
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, 0xffffffff
je 0x40f664
push eax
push str.IPSECUseNatTranversal
mov ecx, ebx
call fcn.00407040
push esi
push 0xffffffffffffffff
push str.IPSECPFS
push str.2401
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, 0xffffffff
je 0x40f689
push eax
push str.IPSECPFS
mov ecx, ebx
call fcn.00407040
lea edx, [ebp - 0x2c4]
push edx
lea ecx, [ebp - 0x274]
call fcn.00402720
push str.ikecfg
lea ecx, [ebp - 0x314]
call fcn.00402de0
push esi
push 0x104
lea ecx, [ebp - 0x118]
push ecx
push 0x46c3e8
push str.IKENegotiationMode
lea eax, [ebp - 0x314]
push str.2401
mov byte [ebp - 4], 4
mov dword [ebx + 0x6c], eax
call edi
test eax, eax
je 0x40f6ed
lea edx, [ebp - 0x118]
push edx
push str.IKENegotiationMode
mov ecx, ebx
call fcn.00406dc0
push esi
push 0x104
lea eax, [ebp - 0x118]
push eax
push 0x46c3e8
push str.IKEIDType
push str.2401
call edi
test eax, eax
je 0x40f722
lea ecx, [ebp - 0x118]
push ecx
push str.IKEIDType
mov ecx, ebx
call fcn.00406dc0
push esi
push 0x104
lea edx, [ebp - 0x118]
push edx
push 0x46c3e8
push str.IKEAuthMethod
push str.2401
call edi
test eax, eax
je 0x40f757
lea eax, [ebp - 0x118]
push eax
push str.IKEAuthMethod
mov ecx, ebx
call fcn.00406dc0
push esi
push 0x104
lea ecx, [ebp - 0x118]
push ecx
push 0x46c3e8
push str.IKEncryption
push str.2401
call edi
test eax, eax
je 0x40f78c
lea edx, [ebp - 0x118]
push edx
push str.IKEncryption
mov ecx, ebx
call fcn.00406dc0
push esi
push 0x104
lea eax, [ebp - 0x118]
push eax
push 0x46c3e8
push str.IKEAuthAlgorithm
push str.2401
call edi
test eax, eax
je 0x40f7c1
lea ecx, [ebp - 0x118]
push ecx
push str.IKEAuthAlgorithm
mov ecx, ebx
call fcn.00406dc0
push esi
push 0x104
lea edx, [ebp - 0x118]
push edx
push 0x46c3e8
push str.IKEDiffeHellman
push str.2401
call edi
test eax, eax
je 0x40f7f6
lea eax, [ebp - 0x118]
push eax
push str.IKEDiffeHellman
mov ecx, ebx
call fcn.00406dc0
push esi
push 0x104
lea ecx, [ebp - 0x118]
push ecx
push 0x46c3e8
push str.IKEISAKMPLifetime
push str.2401
call edi
test eax, eax
je 0x40f82b
lea edx, [ebp - 0x118]
push edx
push str.IKEISAKMPLifetime
mov ecx, ebx
call fcn.00406dc0
push esi
push 0x104
lea eax, [ebp - 0x118]
push eax
push 0x46c3e8
push str.IKELocalName
push str.2401
call edi
test eax, eax
je 0x40f860
lea ecx, [ebp - 0x118]
push ecx
push str.IKELocalName
mov ecx, ebx
call fcn.00406dc0
push esi
push 0x104
lea edx, [ebp - 0x118]
push edx
push 0x46c3e8
push str.IKERemoteName
push str.2401
call edi
test eax, eax
je 0x40f895
lea eax, [ebp - 0x118]
push eax
push str.IKERemoteName
mov ecx, ebx
call fcn.00406dc0
push esi
push 0xffffffffffffffff
push str.IKESendKeepAlive
push str.2401
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, 0xffffffff
je 0x40f8ba
push eax
push str.IKESendKeepAlive
mov ecx, ebx
call fcn.00407040
push esi
push 0x104
lea ecx, [ebp - 0x118]
push ecx
push 0x46c3e8
push str.IKESendInterval
push str.2401
call edi
test eax, eax
je 0x40f8ef
lea edx, [ebp - 0x118]
push edx
push str.IKESendInterval
mov ecx, ebx
call fcn.00406dc0
push esi
push 0xffffffffffffffff
push str.IKERecvKeepAlivePacket
push str.2401
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, 0xffffffff
je 0x40f914
push eax
push str.IKERecvKeepAlivePacket
mov ecx, ebx
call fcn.00407040
push esi
push 0x104
lea eax, [ebp - 0x118]
push eax
push 0x46c3e8
push str.IKERecvPacketTimeOut
push str.2401
call edi
test eax, eax
je 0x40f949
lea ecx, [ebp - 0x118]
push ecx
push str.IKERecvPacketTimeOut
mov ecx, ebx
call fcn.00406dc0
push esi
push 0xffffffffffffffff
push str.IKEPort
push str.2401
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, 0xffffffff
je 0x40f96e
push eax
push str.IKEPort
mov ecx, ebx
call fcn.00407040
push str..MaxUserCtrl
push str.2401
lea edx, [ebp - 0x220]
push 0x4660ac
push edx
call fcn.0043ac3a
add esp, 0x10
push esi
push 0xffffffffffffffff
lea eax, [ebp - 0x220]
push eax
push str.Common
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, 0xffffffff
je 0x40f9b3
push eax
push str.MaxUserCtrl
mov ecx, ebx
call fcn.00407040
push str..ProbationCtrl
push str.2401
lea ecx, [ebp - 0x220]
push 0x4660ac
push ecx
call fcn.0043ac3a
add esp, 0x10
push esi
push 0xffffffffffffffff
lea edx, [ebp - 0x220]
push edx
push str.Common
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, 0xffffffff
je 0x40f9f8
push eax
push str.ProbationCtrl
mov ecx, ebx
call fcn.00407040
push str..TimeStamp
push str.2401
lea eax, [ebp - 0x220]
push 0x4660ac
push eax
call fcn.0043ac3a
add esp, 0x10
push esi
push 0x104
lea ecx, [ebp - 0x118]
push ecx
push 0x46c3e8
lea edx, [ebp - 0x220]
push edx
push str.Common
call edi
lea eax, [ebp - 0x118]
push eax
push str.TimeStamp
mov ecx, ebx
call fcn.00406dc0
lea ecx, [ebp - 0x314]
push ecx
lea ecx, [ebp - 0x274]
call fcn.00402720
mov ecx, dword [ebx + 0x6c]
call fcn.00402620
mov ecx, dword [ebp - 0x224]
lea edx, [ebp - 0x274]
mov eax, edx
push eax
mov dword [ebx + 0x6c], edx
call fcn.00402720
lea ecx, [ebp - 0x314]
mov byte [ebp - 4], 3
call fcn.00402fa0
lea ecx, [ebp - 0x2c4]
mov byte [ebp - 4], 2
call fcn.00402fa0
lea ecx, [ebp - 0x3b4]
mov byte [ebp - 4], 1
call fcn.00402fa0
lea ecx, [ebp - 0x364]
mov byte [ebp - 4], 0
call fcn.00402fa0
lea ecx, [ebp - 0x274]
mov dword [ebp - 4], 0xffffffff
call fcn.00402fa0
push 1
mov ecx, ebx
call fcn.00407280
movzx eax, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00439bf4
mov esp, ebp
pop ebp
ret 8