Function at 0x40f1a0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45f257
mov eax, dword fs:[0]
push eax
sub esp, 0x3a8
mov eax, dword [0x4735a8]
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 0x40fb68
push 0x4640bc
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 0x46b340
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 0x40f25e
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 0x46b340
push str.LNSIPSecond
push str.2401
call edi
test eax, eax
je 0x40f293
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 0x40f2b8
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 0x40f2dd
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 0x40f302
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 0x40f327
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 0x40f34c
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 0x40f371
push eax
push str.resumConn
mov ecx, ebx
call fcn.00407040
push esi
push 0x104
lea ecx, [ebp - 0x118]
push ecx
push 0x46b340
push str.PreSharedKey
push str.2401
call edi
test eax, eax
je 0x40f3a6
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 0x40f3cb
push eax
push str.LNSAsIPSECServer
mov ecx, ebx
call fcn.00407040
push esi
push 0x104
lea eax, [ebp - 0x118]
push eax
push 0x46b340
push str.OtherIPSECServer
push str.2401
call edi
test eax, eax
je 0x40f400
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 0x46b340
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 0x40f464
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 0x46b340
push str.L2TPAuthMode
push str.2401
call edi
test eax, eax
je 0x40f499
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 0x46b340
push str.L2TPHelloInterval
push str.2401
call edi
test eax, eax
je 0x40f4ce
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 0x40f4f3
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 0x40f518
push eax
push str.L2TPAVPHidden
mov ecx, ebx
call fcn.00407040
push esi
push 0x104
lea ecx, [ebp - 0x118]
push ecx
push 0x46b340
push str.L2TPTunnelPwd
push str.2401
call edi
test eax, eax
je 0x40f54d
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 0x40f572
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 0x46b340
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 0x40f5d6
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 0x46b340
push str.IPSECSALifetime
push str.2401
call edi
test eax, eax
je 0x40f60b
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 0x46b340
push str.IPSECSecurityProto
push str.2401
call edi
test eax, eax
je 0x40f640
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 0x46b340
push str.IPSECESPAuthAlgorithm
push str.2401
call edi
test eax, eax
je 0x40f675
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 0x46b340
push str.IPSECESPEncryption
push str.2401
call edi
test eax, eax
je 0x40f6aa
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 0x46b340
push str.IPSECAHAuthAlgorithm
push str.2401
call edi
test eax, eax
je 0x40f6df
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 0x40f704
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 0x40f729
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 0x46b340
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 0x40f78d
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 0x46b340
push str.IKEIDType
push str.2401
call edi
test eax, eax
je 0x40f7c2
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 0x46b340
push str.IKEAuthMethod
push str.2401
call edi
test eax, eax
je 0x40f7f7
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 0x46b340
push str.IKEncryption
push str.2401
call edi
test eax, eax
je 0x40f82c
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 0x46b340
push str.IKEAuthAlgorithm
push str.2401
call edi
test eax, eax
je 0x40f861
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 0x46b340
push str.IKEDiffeHellman
push str.2401
call edi
test eax, eax
je 0x40f896
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 0x46b340
push str.IKEISAKMPLifetime
push str.2401
call edi
test eax, eax
je 0x40f8cb
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 0x46b340
push str.IKELocalName
push str.2401
call edi
test eax, eax
je 0x40f900
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 0x46b340
push str.IKERemoteName
push str.2401
call edi
test eax, eax
je 0x40f935
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 0x40f95a
push eax
push str.IKESendKeepAlive
mov ecx, ebx
call fcn.00407040
push esi
push 0x104
lea ecx, [ebp - 0x118]
push ecx
push 0x46b340
push str.IKESendInterval
push str.2401
call edi
test eax, eax
je 0x40f98f
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 0x40f9b4
push eax
push str.IKERecvKeepAlivePacket
mov ecx, ebx
call fcn.00407040
push esi
push 0x104
lea eax, [ebp - 0x118]
push eax
push 0x46b340
push str.IKERecvPacketTimeOut
push str.2401
call edi
test eax, eax
je 0x40f9e9
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 0x40fa0e
push eax
push str.IKEPort
mov ecx, ebx
call fcn.00407040
push str..MaxUserCtrl
push str.2401
lea edx, [ebp - 0x220]
push 0x465020
push edx
call fcn.0043a71a
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 0x40fa53
push eax
push str.MaxUserCtrl
mov ecx, ebx
call fcn.00407040
push str..ProbationCtrl
push str.2401
lea ecx, [ebp - 0x220]
push 0x465020
push ecx
call fcn.0043a71a
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 0x40fa98
push eax
push str.ProbationCtrl
mov ecx, ebx
call fcn.00407040
push str..TimeStamp
push str.2401
lea eax, [ebp - 0x220]
push 0x465020
push eax
call fcn.0043a71a
add esp, 0x10
push esi
push 0x104
lea ecx, [ebp - 0x118]
push ecx
push 0x46b340
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.004396d4
mov esp, ebp
pop ebp
ret 8