Function at 0x406520
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5f0
mov eax, dword [0x4f6fc0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x5f0], 0
mov al, byte [0x4f836d]
mov byte [ebp - 0x204], al
push 0xfe
push 0
lea ecx, [ebp - 0x203]
push ecx
call fcn.004b6780
add esp, 0xc
mov dl, byte [0x4f836e]
mov byte [ebp - 0x104], dl
push 0xfe
push 0
lea eax, [ebp - 0x103]
push eax
call fcn.004b6780
add esp, 0xc
mov cl, byte [0x4f846f]
mov byte [ebp - 0x5ec], cl
push 0x3e7
push 0
lea edx, [ebp - 0x5eb]
push edx
call fcn.004b6780
add esp, 0xc
push str.InternetSettings
push 1
call fcn.004417b0
add esp, 8
push 0x4d5944
push 0x4fcad8
push 0x4d5950
lea eax, [ebp - 0x204]
push eax
call fcn.004b6e08
add esp, 0x10
lea ecx, [ebp - 0x204]
push ecx
push 0xff
push 0x4ed098
push 0x4f8470
push 0x4d5958
push 0x4d5968
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov dword [ebp - 0x5f0], eax
lea edx, [ebp - 0x204]
push edx
push 0xff
push 0x54efd0
push 0x4f8471
push 0x4d5970
push 0x4d5984
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov dword [ebp - 0x5f0], eax
cmp dword [ebp - 0x5f0], 0
je 0x406a39
push 0x4d598c
push 0x4fcad8
push str.DynEd_Internet_Settings_in__s_s
lea eax, [ebp - 0x5ec]
push eax
call fcn.004b6e08
add esp, 0x10
lea ecx, [ebp - 0x204]
push ecx
push 0xff
push 0x54efd0
push 0x4f8472
push 0x4d59b8
push 0x4d59cc
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov dword [ebp - 0x5f0], eax
push 0x54efd0
push 0x4d5dd0
push 0x4d59d4
push str._s_sRecords_Server_Address:__s
lea edx, [ebp - 0x104]
push edx
call fcn.004b6e08
add esp, 0x14
lea eax, [ebp - 0x104]
push eax
lea ecx, [ebp - 0x5ec]
push ecx
call fcn.004b5e70
add esp, 8
push 0x4ed098
push 0x4d5dd0
push 0x4d59f8
push str._s_sDownload_Address:__s
lea edx, [ebp - 0x104]
push edx
call fcn.004b6e08
add esp, 0x14
lea eax, [ebp - 0x104]
push eax
lea ecx, [ebp - 0x5ec]
push ecx
call fcn.004b5e70
add esp, 8
lea edx, [ebp - 0x204]
push edx
push 0xff
push 0x54eb80
push 0x4f8473
push 0x4d5a18
push 0x4d5a20
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov dword [ebp - 0x5f0], eax
push 0x54eb80
push 0x4d5dd0
push 0x4d5a28
push str._s_sCgiPath:__s
lea eax, [ebp - 0x104]
push eax
call fcn.004b6e08
add esp, 0x14
lea ecx, [ebp - 0x104]
push ecx
lea edx, [ebp - 0x5ec]
push edx
call fcn.004b5e70
add esp, 8
lea eax, [ebp - 0x204]
push eax
push 0xff
push 0x54f210
push 0x4f8474
push 0x4d5a3c
push 0x4d5a4c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov dword [ebp - 0x5f0], eax
push 0x54f210
push 0x4d5dd0
push 0x4d5a54
push str._s_sWoResponsePageIniSetting:__s
lea ecx, [ebp - 0x104]
push ecx
call fcn.004b6e08
add esp, 0x14
lea edx, [ebp - 0x104]
push edx
lea eax, [ebp - 0x5ec]
push eax
call fcn.004b5e70
add esp, 8
lea ecx, [ebp - 0x204]
push ecx
push 0xff
push 0x54ea80
push 0x4f8475
push 0x4d5a7c
push 0x4d5a90
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov dword [ebp - 0x5f0], eax
push 0x54ea80
push 0x4d5dd0
push 0x4d5a98
push str._s_sStreaming_Address:__s
lea edx, [ebp - 0x104]
push edx
call fcn.004b6e08
add esp, 0x14
lea eax, [ebp - 0x104]
push eax
lea ecx, [ebp - 0x5ec]
push ecx
call fcn.004b5e70
add esp, 8
lea edx, [ebp - 0x204]
push edx
push 0xff
lea eax, [ebp - 0x104]
push eax
push 0x4f8476
push 0x4d5ab8
push 0x4d5acc
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov dword [ebp - 0x5f0], eax
mov ecx, 1
imul ecx, ecx, 0
movsx edx, byte [ebp + ecx - 0x104]
cmp edx, 0x79
je 0x406877
mov eax, 1
imul eax, eax, 0
movsx ecx, byte [ebp + eax - 0x104]
cmp ecx, 0x59
jne 0x406897
push 0x4d5dd0
push 0x4d5ad4
push str._s_sConnection_type:_Dial_Up
lea edx, [ebp - 0x104]
push edx
call fcn.004b6e08
add esp, 0x10
jmp 0x4068b5
push 0x4d5dd0
push 0x4d5af8
push str._s_sConnection_type:_Always_On
lea eax, [ebp - 0x104]
push eax
call fcn.004b6e08
add esp, 0x10
lea ecx, [ebp - 0x104]
push ecx
lea edx, [ebp - 0x5ec]
push edx
call fcn.004b5e70
add esp, 8
lea eax, [ebp - 0x204]
push eax
push 0xff
lea ecx, [ebp - 0x104]
push ecx
push 0x4f8477
push 0x4d5b1c
push 0x4d5b28
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov dword [ebp - 0x5f0], eax
mov edx, 1
imul edx, edx, 0
movsx eax, byte [ebp + edx - 0x104]
cmp eax, 0x79
je 0x406927
mov ecx, 1
imul ecx, ecx, 0
movsx edx, byte [ebp + ecx - 0x104]
cmp edx, 0x59
jne 0x4069ed
lea eax, [ebp - 0x204]
push eax
push 0xff
push 0x54f610
push 0x4f8478
push 0x4d5b30
push 0x4d5b40
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov dword [ebp - 0x5f0], eax
push 0x4d5b48
push 0x54f610
call fcn.004bab10
add esp, 8
test eax, eax
jne 0x406993
push 0x4d5dd0
push 0x4d5b50
push str._s_sProxy_Address:_Auto_detect
lea ecx, [ebp - 0x104]
push ecx
call fcn.004b6e08
add esp, 0x10
mov dword [0x54e96c], 1
jmp 0x4069eb
lea edx, [ebp - 0x204]
push edx
push 0xff
lea eax, [ebp - 0x104]
push eax
push 0x4f8479
push 0x4d5b74
push 0x4d5b80
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov dword [ebp - 0x5f0], eax
lea ecx, [ebp - 0x104]
push ecx
push 0x54f610
push 0x4d5dd0
push 0x4d5b88
push str._s_sProxy_Address:__s:_s
lea edx, [ebp - 0x104]
push edx
call fcn.004b6e08
add esp, 0x18
jmp 0x406a0b
push 0x4d5dd0
push 0x4d5ba8
push str._s_sProxy_Address:_None
lea eax, [ebp - 0x104]
push eax
call fcn.004b6e08
add esp, 0x10
lea ecx, [ebp - 0x104]
push ecx
lea edx, [ebp - 0x5ec]
push edx
call fcn.004b5e70
add esp, 8
lea eax, [ebp - 0x5ec]
push eax
push 1
mov ecx, dword [0x4f84c0]
push ecx
call fcn.00403ac0
add esp, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b6253
mov esp, ebp
pop ebp
ret