Function at 0x40f140
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x465a47
mov eax, dword fs:[0]
push eax
sub esp, 0x3a8
mov eax, dword [0x47c5a8]
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 0x40fb08
push 0x46b390
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 0x472d80
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 0x40f1fe
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 0x472d80
push str.LNSIPSecond
push str.2401
call edi
test eax, eax
je 0x40f233
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 0x40f258
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 0x40f27d
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 0x40f2a2
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 0x40f2c7
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 0x40f2ec
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 0x40f311
push eax
push str.resumConn
mov ecx, ebx
call fcn.00407040
push esi
push 0x104
lea ecx, [ebp - 0x118]
push ecx
push 0x472d80
push str.PreSharedKey
push str.2401
call edi
test eax, eax
je 0x40f346
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 0x40f36b
push eax
push str.LNSAsIPSECServer
mov ecx, ebx
call fcn.00407040
push esi
push 0x104
lea eax, [ebp - 0x118]
push eax
push 0x472d80
push str.OtherIPSECServer
push str.2401
call edi
test eax, eax
je 0x40f3a0
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 0x472d80
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 0x40f404
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 0x472d80
push str.L2TPAuthMode
push str.2401
call edi
test eax, eax
je 0x40f439
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 0x472d80
push str.L2TPHelloInterval
push str.2401
call edi
test eax, eax
je 0x40f46e
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 0x40f493
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 0x40f4b8
push eax
push str.L2TPAVPHidden
mov ecx, ebx
call fcn.00407040
push esi
push 0x104
lea ecx, [ebp - 0x118]
push ecx
push 0x472d80
push str.L2TPTunnelPwd
push str.2401
call edi
test eax, eax
je 0x40f4ed
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 0x40f512
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 0x472d80
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 0x40f576
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 0x472d80
push str.IPSECSALifetime
push str.2401
call edi
test eax, eax
je 0x40f5ab
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 0x472d80
push str.IPSECSecurityProto
push str.2401
call edi
test eax, eax
je 0x40f5e0
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 0x472d80
push str.IPSECESPAuthAlgorithm
push str.2401
call edi
test eax, eax
je 0x40f615
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 0x472d80
push str.IPSECESPEncryption
push str.2401
call edi
test eax, eax
je 0x40f64a
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 0x472d80
push str.IPSECAHAuthAlgorithm
push str.2401
call edi
test eax, eax
je 0x40f67f
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 0x40f6a4
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 0x40f6c9
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 0x472d80
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 0x40f72d
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 0x472d80
push str.IKEIDType
push str.2401
call edi
test eax, eax
je 0x40f762
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 0x472d80
push str.IKEAuthMethod
push str.2401
call edi
test eax, eax
je 0x40f797
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 0x472d80
push str.IKEncryption
push str.2401
call edi
test eax, eax
je 0x40f7cc
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 0x472d80
push str.IKEAuthAlgorithm
push str.2401
call edi
test eax, eax
je 0x40f801
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 0x472d80
push str.IKEDiffeHellman
push str.2401
call edi
test eax, eax
je 0x40f836
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 0x472d80
push str.IKEISAKMPLifetime
push str.2401
call edi
test eax, eax
je 0x40f86b
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 0x472d80
push str.IKELocalName
push str.2401
call edi
test eax, eax
je 0x40f8a0
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 0x472d80
push str.IKERemoteName
push str.2401
call edi
test eax, eax
je 0x40f8d5
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 0x40f8fa
push eax
push str.IKESendKeepAlive
mov ecx, ebx
call fcn.00407040
push esi
push 0x104
lea ecx, [ebp - 0x118]
push ecx
push 0x472d80
push str.IKESendInterval
push str.2401
call edi
test eax, eax
je 0x40f92f
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 0x40f954
push eax
push str.IKERecvKeepAlivePacket
mov ecx, ebx
call fcn.00407040
push esi
push 0x104
lea eax, [ebp - 0x118]
push eax
push 0x472d80
push str.IKERecvPacketTimeOut
push str.2401
call edi
test eax, eax
je 0x40f989
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 0x40f9ae
push eax
push str.IKEPort
mov ecx, ebx
call fcn.00407040
push str..MaxUserCtrl
push str.2401
lea edx, [ebp - 0x220]
push 0x46c5b4
push edx
call fcn.00440eaa
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 0x40f9f3
push eax
push str.MaxUserCtrl
mov ecx, ebx
call fcn.00407040
push str..ProbationCtrl
push str.2401
lea ecx, [ebp - 0x220]
push 0x46c5b4
push ecx
call fcn.00440eaa
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 0x40fa38
push eax
push str.ProbationCtrl
mov ecx, ebx
call fcn.00407040
push str..TimeStamp
push str.2401
lea eax, [ebp - 0x220]
push 0x46c5b4
push eax
call fcn.00440eaa
add esp, 0x10
push esi
push 0x104
lea ecx, [ebp - 0x118]
push ecx
push 0x472d80
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.0043fe5a
mov esp, ebp
pop ebp
ret 8