Function at 0x40f0d0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4619d7
mov eax, dword fs:[0]
push eax
sub esp, 0x3a8
mov eax, dword [0x4775a8]
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 0x40fa98
push 0x467154
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 0x46e670
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 0x40f18e
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 0x46e670
push str.LNSIPSecond
push str.2401
call edi
test eax, eax
je 0x40f1c3
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 0x40f1e8
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 0x40f20d
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 0x40f232
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 0x40f257
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 0x40f27c
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 0x40f2a1
push eax
push str.resumConn
mov ecx, ebx
call fcn.00407040
push esi
push 0x104
lea ecx, [ebp - 0x118]
push ecx
push 0x46e670
push str.PreSharedKey
push str.2401
call edi
test eax, eax
je 0x40f2d6
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 0x40f2fb
push eax
push str.LNSAsIPSECServer
mov ecx, ebx
call fcn.00407040
push esi
push 0x104
lea eax, [ebp - 0x118]
push eax
push 0x46e670
push str.OtherIPSECServer
push str.2401
call edi
test eax, eax
je 0x40f330
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 0x46e670
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 0x40f394
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 0x46e670
push str.L2TPAuthMode
push str.2401
call edi
test eax, eax
je 0x40f3c9
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 0x46e670
push str.L2TPHelloInterval
push str.2401
call edi
test eax, eax
je 0x40f3fe
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 0x40f423
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 0x40f448
push eax
push str.L2TPAVPHidden
mov ecx, ebx
call fcn.00407040
push esi
push 0x104
lea ecx, [ebp - 0x118]
push ecx
push 0x46e670
push str.L2TPTunnelPwd
push str.2401
call edi
test eax, eax
je 0x40f47d
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 0x40f4a2
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 0x46e670
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 0x40f506
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 0x46e670
push str.IPSECSALifetime
push str.2401
call edi
test eax, eax
je 0x40f53b
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 0x46e670
push str.IPSECSecurityProto
push str.2401
call edi
test eax, eax
je 0x40f570
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 0x46e670
push str.IPSECESPAuthAlgorithm
push str.2401
call edi
test eax, eax
je 0x40f5a5
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 0x46e670
push str.IPSECESPEncryption
push str.2401
call edi
test eax, eax
je 0x40f5da
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 0x46e670
push str.IPSECAHAuthAlgorithm
push str.2401
call edi
test eax, eax
je 0x40f60f
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 0x40f634
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 0x40f659
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 0x46e670
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 0x40f6bd
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 0x46e670
push str.IKEIDType
push str.2401
call edi
test eax, eax
je 0x40f6f2
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 0x46e670
push str.IKEAuthMethod
push str.2401
call edi
test eax, eax
je 0x40f727
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 0x46e670
push str.IKEncryption
push str.2401
call edi
test eax, eax
je 0x40f75c
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 0x46e670
push str.IKEAuthAlgorithm
push str.2401
call edi
test eax, eax
je 0x40f791
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 0x46e670
push str.IKEDiffeHellman
push str.2401
call edi
test eax, eax
je 0x40f7c6
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 0x46e670
push str.IKEISAKMPLifetime
push str.2401
call edi
test eax, eax
je 0x40f7fb
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 0x46e670
push str.IKELocalName
push str.2401
call edi
test eax, eax
je 0x40f830
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 0x46e670
push str.IKERemoteName
push str.2401
call edi
test eax, eax
je 0x40f865
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 0x40f88a
push eax
push str.IKESendKeepAlive
mov ecx, ebx
call fcn.00407040
push esi
push 0x104
lea ecx, [ebp - 0x118]
push ecx
push 0x46e670
push str.IKESendInterval
push str.2401
call edi
test eax, eax
je 0x40f8bf
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 0x40f8e4
push eax
push str.IKERecvKeepAlivePacket
mov ecx, ebx
call fcn.00407040
push esi
push 0x104
lea eax, [ebp - 0x118]
push eax
push 0x46e670
push str.IKERecvPacketTimeOut
push str.2401
call edi
test eax, eax
je 0x40f919
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 0x40f93e
push eax
push str.IKEPort
mov ecx, ebx
call fcn.00407040
push str..MaxUserCtrl
push str.2401
lea edx, [ebp - 0x220]
push 0x46817c
push edx
call fcn.0043ce2a
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 0x40f983
push eax
push str.MaxUserCtrl
mov ecx, ebx
call fcn.00407040
push str..ProbationCtrl
push str.2401
lea ecx, [ebp - 0x220]
push 0x46817c
push ecx
call fcn.0043ce2a
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 0x40f9c8
push eax
push str.ProbationCtrl
mov ecx, ebx
call fcn.00407040
push str..TimeStamp
push str.2401
lea eax, [ebp - 0x220]
push 0x46817c
push eax
call fcn.0043ce2a
add esp, 0x10
push esi
push 0x104
lea ecx, [ebp - 0x118]
push ecx
push 0x46e670
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.0043bde4
mov esp, ebp
pop ebp
ret 8