Function at 0x100033f0
Capabilities:
Check os version
Query environment variable
Read .ini file

Disassembly:
sub esp, 0x8d4
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov ebx, 2
call fcn.1000fc40
mov ebp, eax
lea eax, [esp + 0x18]
lea ecx, [esp + 0x38]
push eax
push ecx
mov dword [esp + 0x20], 0x105
call dword [0x1002186c]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x38]
push 0x1001f9cc
push edx
call edi
mov eax, dword [esi + 0x14]
lea ecx, [esp + 0x38]
push eax
push ecx
call edi
mov edx, dword [str.Application_DataMicrosoftNetworkConnectionspbk_rasphone.pbk]
lea eax, [esp + 0x38]
push edx
push eax
call edi
lea ecx, [esp + 0x38]
push ecx
call fcn.10004500
add esp, 4
test al, al
jne 0x10003471
lea edx, [esp + 0x38]
push 0x105
push edx
push str._USERPROFILE_Application_DataMicrosoftNetworkConnectionspbk_rasphone.pbk
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
push 0
lea eax, [esp + 0x3e0]
push 0x23
push eax
push 0
call dword [0x1002273c]
lea ecx, [esp + 0x3dc]
push str.MicrosoftNetworkConnectionspbk_rasphone.pbk
push ecx
lea edx, [esp + 0x3e4]
push 0x1001f944
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [esp + 0x18]
lea ecx, [esp + 0x1d4]
mov dword [esp + 0x18], 0x105
push eax
push ecx
push ebp
call dword [0x10021868]
mov edx, dword [str.Application_DataMicrosoftNetworkConnectionspbk_rasphone.pbk]
lea eax, [esp + 0x1d4]
push edx
push eax
call edi
test ebp, ebp
je 0x100034e0
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x1d4]
lea ecx, [esp + 0x38]
lea edx, [esp + 0x3dc]
push eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edx
call fcn.10004500
add esp, 4
test al, al
je 0x1000352e
lea ecx, [esp + 0x1d4]
lea edx, [esp + 0x38]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x1000352e
lea eax, [esp + 0x1d4]
mov ebx, 3
mov dword [esp + 0x34], eax
lea ecx, [esp + 0x140]
mov dword [esp + 0x140], 0x94
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x150], 2
jne 0x10003562
cmp dword [esp + 0x144], 5
jb 0x10003562
mov ecx, esi
call fcn.10003310
push 0x1000
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov ebp, eax
test ebx, ebx
mov dword [esp + 0x1c], ebp
jle 0x1000378d
lea edx, [esp + 0x2c]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x14], edx
mov ecx, 0x400
xor eax, eax
mov edi, ebp
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x14]
mov ebx, dword [eax]
push ebx
push 0x1000
push ebp
mov dword [esp + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesA]
mov ecx, dword [esp + 0x1c]
cmp byte [ecx], 0
je 0x1000376f
push ebp
mov ecx, esi
call fcn.10003c70
mov dword [esp + 0x20], eax
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x2dc]
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esp + 0x6e4]
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esp + 0x4e4]
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esp + 0x5e4]
push ebx
lea edx, [esp + 0x2e0]
rep stosd dword es:[edi], eax
push 0x100
push edx
mov ecx, 0x40
lea edi, [esp + 0x7f0]
push eax
push str.DialParamsUID
rep stosd dword es:[edi], eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jle 0x100036a7
mov eax, dword [esi + 8]
xor ebx, ebx
test eax, eax
jle 0x100036a3
xor edi, edi
mov edx, dword [esi + 0x1c]
mov eax, edi
add eax, edx
lea ecx, [esp + 0x2dc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x10003660
mov eax, dword [esi + 8]
inc ebx
add edi, 0x301
cmp ebx, eax
jl 0x10003636
jmp 0x100036a3
mov edx, dword [esi + 0x1c]
lea edi, [ebx + ebx*2]
shl edi, 8
add edi, ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x6e4]
lea eax, [edi + edx + 0x200]
push eax
push ecx
call ebx
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x4e4]
lea eax, [edi + edx + 0x100]
push eax
push ecx
call ebx
mov edx, dword [esi + 0x1c]
mov byte [edi + edx + 0x300], 1
mov ebx, dword [esp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push ebx
lea eax, [esp + 0x5e8]
push 0x100
push eax
push 0
push str.PhoneNumber
push ebp
call edi
push ebx
lea ecx, [esp + 0x7e8]
push 0x100
push ecx
push 0
push str.Device
push ebp
call edi
lea edx, [esp + 0x7e4]
mov ecx, esi
push edx
call fcn.10003c70
mov dword [esp + 0x28], eax
lea eax, [esp + 0x6e4]
push eax
mov ecx, esi
call fcn.10003c70
mov ecx, dword [esp + 0x28]
mov edi, eax
lea edx, [esp + 0x5e4]
push ecx
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x4e8]
push edx
push eax
push edi
lea edx, [esp + 0x2ec]
push ecx
push edx
mov ecx, esi
call fcn.10003810
mov eax, dword [esp + 0x20]
test eax, eax
je 0x1000373c
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
test edi, edi
je 0x10003749
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x28]
test eax, eax
je 0x1000375a
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ebp, [eax + ebp + 1]
cmp byte [ebp], 0
jne 0x100035b8
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
mov ebp, dword [esp + 0x1c]
add ecx, 4
dec eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x24], eax
jne 0x10003589
mov eax, dword [esi + 8]
xor ebx, ebx
test eax, eax
jle 0x100037ee
xor edi, edi
mov eax, dword [esi + 0x1c]
add eax, edi
mov cl, byte [eax + 0x300]
test cl, cl
jne 0x100037e0
mov dl, byte [eax + 0x200]
lea ecx, [eax + 0x200]
test dl, dl
jne 0x100037c1
mov dl, byte [eax + 0x100]
test dl, dl
je 0x100037e0
push 0x10021d44
lea edx, [eax + 0x100]
push 0x10021d44
push edx
push ecx
push 0x10021d44
push eax
mov ecx, esi
call fcn.10003810
mov eax, dword [esi + 8]
inc ebx
add edi, 0x301
cmp ebx, eax
jl 0x10003798
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, 0x8d4
ret