Function at 0x40f35b
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0xa084
call fcn.005fec20
mov eax, dword [0x708c34]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
xor ebx, ebx
push edi
push esi
mov edi, str.EnumAndFindDialupPasswords
mov dword [ebp - 0xa07c], eax
push edi
push str._n_n_s_Enumerating_dialup_vpn_entries_for_phonebook_file__s
mov dword [ebp - 0xa078], ebx
mov dword [ebp - 0xa074], ebx
call fcn.00449974
push esi
call fcn.00449791
add esp, 0x10
test eax, eax
jne 0x40f3c3
push esi
push edi
push str._s_Phonebook_file_is_not_present__s
call fcn.00449974
add esp, 0xc
xor eax, eax
jmp 0x40f6a8
lea eax, [ebp - 0xa074]
push eax
lea eax, [ebp - 0xa078]
push eax
push ebx
push esi
push ebx
call sub.RASAPI32.dll_RasEnumEntriesA
cmp dword [ebp - 0xa078], 1
jae 0x40f3f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str._s_Failed_to_get_RAS_entries_buffer_size__Error0x_.8x
jmp 0x40f3b4
push dword [ebp - 0xa078]
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
mov dword [ebp - 0xa084], edi
test edi, edi
jne 0x40f425
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.EnumAndFindDialupPasswords
push str._s_HeapAlloc_Failed__Error0x_.8x
jmp 0x40f3b4
lea eax, [ebp - 0xa074]
mov dword [edi], 0x214
push eax
lea eax, [ebp - 0xa078]
push eax
push edi
push esi
push ebx
call sub.RASAPI32.dll_RasEnumEntriesA
test eax, eax
je 0x40f45b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.EnumAndFindDialupPasswords
push str._s_RasEnumEntries_failed__Error0x_.8x
jmp 0x40f3b4
push dword [ebp - 0xa074]
push str._nFound__d_RAS_entries
call fcn.00449974
mov ebx, 0x42c
lea eax, [ebp - 0xa070]
push ebx
push 0
push eax
call fcn.00626f50
xor eax, eax
mov dword [ebp - 0xa070], ebx
add esp, 0x14
cmp dword [ebp - 0xa074], eax
jbe 0x40f695
lea ebx, [edi + 4]
mov edi, dword [ebp - 0xa07c]
inc eax
push ebx
push eax
push str._n_n_RAS_Entry_name__d:___s
mov dword [ebp - 0xa080], eax
call fcn.00449974
push ebx
lea eax, [ebp - 0xa06c]
push 0x100
push eax
call fcn.006311ec
and dword [ebp - 0xa07c], 0
lea eax, [ebp - 0xa07c]
add esp, 0x18
push eax
lea eax, [ebp - 0xa070]
push eax
push esi
call sub.RASAPI32.dll_RasGetEntryDialParamsA
test eax, eax
je 0x40f50b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xa06c]
push eax
push str.EnumAndFindDialupPasswords
push str._s_RasGetEntryDialParams_failed_for__s__Error0x_.8x
call fcn.00449974
add esp, 0x10
jmp 0x40f677
push dword [ebp - 0xa07c]
lea eax, [ebp - 0x9f6b]
push eax
lea eax, [ebp - 0x9c67]
push eax
lea eax, [ebp - 0x9d68]
push eax
lea eax, [ebp - 0x9e69]
push eax
push str._Found_data_for_this_entry__n_tUser_name:__s_n_tPassword:__s_n_tDomain:__s_n_tPhoneNumber:__s_n_tPassword_Present:__d_n
call fcn.00449974
add esp, 0x18
mov byte [ebp - 0x4e24], 0
lea eax, [ebp - 0x4e24]
push esi
push 0x2710
push eax
push 0x66ae5d
push str.DialParamsUID
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jne 0x40f575
push ebx
push str._n_Failed_to_find_DialParamsUID_from_Phone_book_for_entry__s
call fcn.00449974
pop ecx
pop ecx
jmp 0x40f677
lea eax, [ebp - 0x4e24]
push eax
push str._nFound_DialParamsUID___s
call fcn.00449974
pop ecx
pop ecx
push esi
push 0x2710
lea eax, [ebp - 0x2714]
mov byte [ebp - 0x2714], 0
push eax
push 0x66ae5d
push str.PhoneNumber
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jne 0x40f5be
push ebx
push str._n_Failed_to_find_Phonenumber_from_Phone_book_for_entry__s
call fcn.00449974
pop ecx
pop ecx
lea eax, [ebp - 0x2714]
push eax
push str._nFound_PhoneNumber___s
call fcn.00449974
push 0x2710
lea eax, [ebp - 0x9c44]
push eax
lea eax, [ebp - 0x9e69]
push eax
lea eax, [ebp - 0x4e24]
push eax
push dword [ebp + 0xc]
push edi
call fcn.0040f9c1
add esp, 0x20
cmp eax, 1
jne 0x40f677
lea eax, [ebp - 0x2714]
mov byte [ebp - 0x7534], 0
push eax
call fcn.00631510
pop ecx
test eax, eax
jne 0x40f623
lea eax, [ebp - 0x9c67]
push eax
call fcn.00631510
pop ecx
test eax, eax
je 0x40f64a
lea eax, [ebp - 0x9c67]
push eax
lea eax, [ebp - 0x2714]
push eax
push str.Phone_Host_s__Domain_s
lea eax, [ebp - 0x7534]
push 0x2710
push eax
call fcn.00445d6d
add esp, 0x14
push 0xffffffffffffffff
mov ecx, 0x66ae5d
lea eax, [ebp - 0x9c44]
push ecx
push eax
lea eax, [ebp - 0x9e69]
push eax
lea eax, [ebp - 0x7534]
push eax
push ecx
push 0x1f7
push 7
call fcn.00412c85
add esp, 0x20
mov eax, dword [ebp - 0xa080]
add ebx, 0x214
cmp eax, dword [ebp - 0xa074]
jb 0x40f49f
mov edi, dword [ebp - 0xa084]
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005fe955
leave
ret