Function at 0x40d9d5
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45f4a6
mov eax, dword fs:[0]
push eax
sub esp, 0x2c4
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 edi, ecx
cmp dword [edi + 0x6c], 0
mov dword [ebp - 0x22c], eax
je 0x40dcae
push str.wlan
lea ecx, [ebp - 0x280]
call fcn.00402de0
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push esi
push 0
push str.SecType
lea ecx, [ebp - 0x280]
push str.1100
mov dword [ebp - 4], 0
mov dword [edi + 0x6c], ecx
call ebx
mov ecx, eax
sub ecx, 2
je 0x40d996
sub ecx, 2
je 0x40d98f
dec ecx
jne 0x40d99b
lea eax, [ecx + 6]
jmp 0x40d99b
mov eax, 7
jmp 0x40d99b
mov eax, 4
push eax
push str.secType
mov ecx, edi
call fcn.00407040
push esi
push 1
push str.EncType
push str.1100
call ebx
cmp eax, 3
ja case.default.0x40d9bc
jmp dword [eax*4 + 0x40dcd8]
mov eax, 1
jmp case.default.0x40d9bc
xor eax, eax
jmp case.default.0x40d9bc
mov eax, 4
jmp case.default.0x40d9bc
mov eax, 6
push eax
push str.encType
mov ecx, edi
call fcn.00407040
push esi
push 0
push str.KeyIndex
push str.1100
call ebx
push eax
push str.keyIndex
mov ecx, edi
call fcn.00407040
push esi
push 0
push str.IfSaveKey
push str.1100
call ebx
push eax
push str.ifSaveKey
mov ecx, edi
call fcn.00407040
push esi
push 0
push str.IfAutoConn
push str.1100
call ebx
push eax
push str.ifAutoConn
mov ecx, edi
call fcn.00407040
push esi
push 0
push str.Reconnection
push str.1100
call ebx
push eax
push str.reconnection
mov ecx, edi
call fcn.00407040
push esi
push 0xffffffffffffffff
push str.UpVersion
push str.1100
call ebx
cmp eax, 0xffffffff
je 0x40da78
push eax
push str.upVersion
mov ecx, edi
call fcn.00407040
push esi
push 0xffffffffffffffff
push str.pktType
push str.1100
call ebx
cmp eax, 0xffffffff
je 0x40da99
push eax
push str.packetType
mov ecx, edi
call fcn.00407040
push esi
push 0xffffffffffffffff
push str.UpIP
push str.1100
call ebx
cmp eax, 0xffffffff
je 0x40daba
push eax
push str.upIp
mov ecx, edi
call fcn.00407040
push esi
push 0xffffffffffffffff
push str.bX1CanChange
push str.1100
call ebx
cmp eax, 0xffffffff
je 0x40dadb
push eax
push str.allowChange
mov ecx, edi
call fcn.00407040
push esi
push 0xffffffffffffffff
push str.EapType
push str.1100
call ebx
push esi
push 0xffffffffffffffff
push str.VerifyServer
push str.1100
mov dword [ebp - 0x228], eax
call ebx
cmp dword [ebp - 0x228], 0xffffffff
mov dword [ebp - 0x230], eax
jne 0x40db17
cmp eax, 1
je 0x40db97
mov edx, dword [edi + 0x6c]
push str.x1Config
lea ecx, [ebp - 0x2d0]
mov dword [ebp - 0x224], edx
call fcn.00402de0
lea eax, [ebp - 0x2d0]
mov dword [edi + 0x6c], eax
mov eax, dword [ebp - 0x228]
mov byte [ebp - 4], 1
cmp eax, 0xffffffff
je 0x40db55
push eax
push str.eapType
mov ecx, edi
call fcn.00407040
mov eax, dword [ebp - 0x230]
cmp eax, 0xffffffff
je 0x40db6d
push eax
push str.verifyServer
mov ecx, edi
call fcn.00407040
lea ecx, [ebp - 0x2d0]
push ecx
mov ecx, dword [ebp - 0x224]
call fcn.00402720
mov edx, dword [ebp - 0x224]
lea ecx, [ebp - 0x2d0]
mov dword [edi + 0x6c], edx
mov byte [ebp - 4], 0
call fcn.00402fa0
push esi
push 1
push str.SupportedConnTypes
push str.1100
call ebx
push eax
push str.supportedConnTypes
mov ecx, edi
call fcn.00407040
push str..MaxUserCtrl
push str.1100
lea eax, [ebp - 0x118]
push 0x4660ac
push eax
call fcn.0043ac3a
add esp, 0x10
push esi
push 0xffffffffffffffff
lea ecx, [ebp - 0x118]
push ecx
push str.Common
call ebx
cmp eax, 0xffffffff
je 0x40dbf4
push eax
push str.MaxUserCtrl
mov ecx, edi
call fcn.00407040
push str..ProbationCtrl
push str.1100
lea edx, [ebp - 0x118]
push 0x4660ac
push edx
call fcn.0043ac3a
add esp, 0x10
push esi
push 0xffffffffffffffff
lea eax, [ebp - 0x118]
push eax
push str.Common
call ebx
cmp eax, 0xffffffff
je 0x40dc35
push eax
push str.ProbationCtrl
mov ecx, edi
call fcn.00407040
push str..TimeStamp
push str.1100
lea ecx, [ebp - 0x118]
push 0x4660ac
push ecx
call fcn.0043ac3a
add esp, 0x10
push esi
push 0x104
lea edx, [ebp - 0x220]
push edx
push 0x46c3e8
lea eax, [ebp - 0x118]
push eax
push str.Common
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [ebp - 0x220]
push ecx
push str.TimeStamp
mov ecx, edi
call fcn.00406dc0
mov ecx, dword [ebp - 0x22c]
lea edx, [ebp - 0x280]
push edx
call fcn.00402720
lea ecx, [ebp - 0x280]
mov dword [ebp - 4], 0xffffffff
call fcn.00402fa0
push 1
mov ecx, edi
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