Function at 0x40d970
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x465696
mov eax, dword fs:[0]
push eax
sub esp, 0x2c4
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 edi, ecx
cmp dword [edi + 0x6c], 0
mov dword [ebp - 0x22c], eax
je 0x40dd1e
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 0x40da06
sub ecx, 2
je 0x40d9ff
dec ecx
jne 0x40da0b
lea eax, [ecx + 6]
jmp 0x40da0b
mov eax, 7
jmp 0x40da0b
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.0x40da2c
jmp dword [eax*4 + 0x40dd48]
mov eax, 1
jmp case.default.0x40da2c
xor eax, eax
jmp case.default.0x40da2c
mov eax, 4
jmp case.default.0x40da2c
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 0x40dae8
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 0x40db09
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 0x40db2a
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 0x40db4b
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 0x40db87
cmp eax, 1
je 0x40dc07
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 0x40dbc5
push eax
push str.eapType
mov ecx, edi
call fcn.00407040
mov eax, dword [ebp - 0x230]
cmp eax, 0xffffffff
je 0x40dbdd
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 0x46c5a0
push eax
call fcn.00440e5a
add esp, 0x10
push esi
push 0xffffffffffffffff
lea ecx, [ebp - 0x118]
push ecx
push str.Common
call ebx
cmp eax, 0xffffffff
je 0x40dc64
push eax
push str.MaxUserCtrl
mov ecx, edi
call fcn.00407040
push str..ProbationCtrl
push str.1100
lea edx, [ebp - 0x118]
push 0x46c5a0
push edx
call fcn.00440e5a
add esp, 0x10
push esi
push 0xffffffffffffffff
lea eax, [ebp - 0x118]
push eax
push str.Common
call ebx
cmp eax, 0xffffffff
je 0x40dca5
push eax
push str.ProbationCtrl
mov ecx, edi
call fcn.00407040
push str..TimeStamp
push str.1100
lea ecx, [ebp - 0x118]
push 0x46c5a0
push ecx
call fcn.00440e5a
add esp, 0x10
push esi
push 0x104
lea edx, [ebp - 0x220]
push edx
push 0x472d70
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.0043fe0a
mov esp, ebp
pop ebp
ret 8