Function at 0x408190
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x404
push esi
mov esi, ecx
mov eax, dword [esi + 0x90]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x4081b0
xor eax, eax
pop esi
add esp, 0x404
ret
push ebx
push ebp
push edi
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x14]
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x94]
push eax
push 0
push str.NetTypeNo
push str.NETTYPE
call ebp
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp eax, 2
mov dword [esi + 4], eax
jne 0x40830a
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x14]
lea edx, [esp + 0x14]
rep stosd dword es:[edi], eax
mov ecx, dword [esi + 0x94]
push ecx
push 0x400
push edx
push 0x430794
push 0x42d27c
push str.PROXY
call ebx
lea eax, [esp + 0x14]
lea ecx, [esi + 8]
push eax
call fcn.004235f0
mov eax, dword [esi + 0x94]
push eax
push 0x50
push str.Port
push str.PROXY
call ebp
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0x94]
push eax
push 0
push str.Authentication
push str.PROXY
call ebp
test eax, eax
mov dword [esi + 0x10], eax
je 0x40830a
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x14]
lea edx, [esp + 0x14]
rep stosd dword es:[edi], eax
mov ecx, dword [esi + 0x94]
push ecx
push 0x400
push edx
push 0x430794
push str.UserName
push str.PROXY
call ebx
lea eax, [esp + 0x14]
lea ecx, [esi + 0x14]
push eax
call fcn.004235f0
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x14]
lea edx, [esp + 0x14]
rep stosd dword es:[edi], eax
mov ecx, dword [esi + 0x94]
push ecx
push 0x400
push edx
push 0x430794
push str.Password
push str.PROXY
call ebx
lea eax, [esp + 0x14]
lea edi, [esi + 0x18]
push eax
push 0x400
push 0x400
mov ecx, edi
call sub.MFC42.DLL_CString::GetBuffer
push eax
call fcn.00407b20
add esp, 0xc
mov ecx, edi
mov dword [esp + 0x10], eax
push 0xffffffffffffffff
call sub.MFC42.DLL_CString::ReleaseBuffer
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x40830a
mov ecx, edi
call sub.MFC42.DLL_CString::Empty
cmp dword [esi + 4], 3
jne 0x408423
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x14]
lea edx, [esp + 0x14]
rep stosd dword es:[edi], eax
mov ecx, dword [esi + 0x94]
push ecx
push 0x400
push edx
push 0x430794
push str.ConnectionName
push str.Dial_up
call ebx
lea eax, [esp + 0x14]
lea ecx, [esi + 0x1c]
push eax
call fcn.004235f0
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x14]
lea edx, [esp + 0x14]
rep stosd dword es:[edi], eax
mov ecx, dword [esi + 0x94]
push ecx
push 0x400
push edx
push 0x430794
push str.UserName
push str.Dial_up
call ebx
lea eax, [esp + 0x14]
lea ecx, [esi + 0x20]
push eax
call fcn.004235f0
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x14]
lea edx, [esp + 0x14]
rep stosd dword es:[edi], eax
mov ecx, dword [esi + 0x94]
push ecx
push 0x400
push edx
push 0x430794
push str.Password
push str.Dial_up
call ebx
lea eax, [esp + 0x14]
lea edi, [esi + 0x24]
push eax
push 0x400
push 0x400
mov ecx, edi
call sub.MFC42.DLL_CString::GetBuffer
push eax
call fcn.00407b20
add esp, 0xc
mov ecx, edi
mov ebx, eax
push 0xffffffffffffffff
call sub.MFC42.DLL_CString::ReleaseBuffer
test ebx, ebx
jne 0x4083f3
mov ecx, edi
call sub.MFC42.DLL_CString::Empty
mov eax, dword [esi + 0x94]
push eax
push 0
push str.Type
push str.Dial_up
call ebp
mov dword [esi + 0x28], eax
mov eax, dword [esi + 0x94]
push eax
push 0
push str.AlreadyConnect
push str.Dial_up
call ebp
mov dword [esi + 0x2c], eax
pop edi
pop ebp
pop ebx
mov eax, 1
pop esi
add esp, 0x404
ret