Function at 0x424d20
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x458b9b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3cc
push ebx
push ebp
push esi
push edi
push str.CRasModule::CreateRasProfile___Begin_n
xor esi, esi
push 1
mov ebx, ecx
push 2
mov dword [esp + 0x28], esi
call fcn.004048e0
add esp, 0xc
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x2d8]
rep stosd dword es:[edi], eax
push esi
lea eax, [esp + 0x18]
push esi
push eax
push esi
push 0x4845b8
push esi
mov dword [esp + 0x2c], esi
call sub.RASAPI32.dll_RasGetEntryPropertiesA
mov ecx, dword [esp + 0x14]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
cmp ebp, esi
jne 0x424dda
lea edx, [esp + 0x2d8]
push 0x104
push edx
push 0x278
call sub.RASAPI32.dll_RasGetErrorStringA
lea eax, [esp + 0x2d8]
push eax
push str.lpRasEntry_GlobalAlloc_Error:__s_n
push 1
push 2
call fcn.004048e0
add esp, 0x10
push str.CRasModule::CreateRasProfile___End_n
push 1
push 2
call fcn.004048e0
add esp, 0xc
xor eax, eax
jmp 0x425351
mov ecx, dword [esp + 0x14]
mov dword [ebp], ecx
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_2
lea edx, [esp + 0x10]
mov dword [esp + 0x3e4], esi
push edx
call fcn.00426ea0
mov eax, dword [esp + 0x14]
add esp, 4
mov edi, 1
push eax
push str.CRasModule::CreateRasProfile___szRasProfileName__s_n
push edi
push 2
call fcn.004048e0
mov edx, dword [esp + 0x20]
add esp, 0x10
lea ecx, [esp + 0x14]
push esi
push esi
push ecx
push ebp
push edx
push esi
call sub.RASAPI32.dll_RasGetEntryPropertiesA
cmp eax, 0x26f
jne 0x424e7a
push esi
lea eax, [esp + 0x18]
push esi
push eax
push ebp
push 0x4845b8
push esi
call sub.RASAPI32.dll_RasGetEntryPropertiesA
mov edi, eax
cmp edi, esi
je 0x424e5d
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push edi
push str.RasGetEntryProperties_Error:__d_n
jmp 0x42519f
push str.CRasModule::CreateRasProfile___RASProfile_not_found__created_one_n
push 1
push 2
mov dword [ebp + 4], 0x218
call fcn.004048e0
add esp, 0xc
mov edi, 1
mov dword [esp + 0x20], edi
mov ecx, dword [ebp + 4]
or ecx, 8
push str.IPHeaderCompression
mov dword [ebp + 4], ecx
lea ecx, [esp + 0x24]
push ecx
mov ecx, 0x484ca0
call fcn.00427fc0
test eax, eax
jne 0x424ead
cmp dword [esp + 0x20], esi
jne 0x424ead
mov eax, dword [ebp + 4]
and al, 0xf7
mov dword [ebp + 4], eax
mov eax, dword [ebx + 0x28]
sub eax, esi
je 0x424edd
dec eax
je 0x424ece
dec eax
jne 0x424ee8
mov edx, dword [ebp + 4]
and edx, 0x8ff0f3ff
or edx, 0x8100000
mov dword [ebp + 4], edx
jmp 0x424ee8
mov eax, dword [ebp + 4]
and eax, 0x87f4f3ff
or eax, 0x140000
jmp 0x424ee5
mov eax, dword [ebp + 4]
and eax, 0x87e0f3ff
mov dword [ebp + 4], eax
lea eax, [ebx + 0x10]
mov dword [ebp + 0xb8], 4
mov dword [ebp + 0xbc], edi
mov ecx, dword [eax]
cmp dword [ecx - 8], esi
jne 0x424f14
push 0x475798
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::CString_3
mov dword [esp + 0x1c], edi
mov edi, dword [eax]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp + 0x1b]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov al, byte [esp + 0x1c]
and ecx, 3
test al, 1
rep movsb byte es:[edi], byte [esi]
je 0x424f47
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::CString
lea eax, [ebp + 0x1b]
push eax
push str.CRasModule::CreateRasProfile__lpRasEntry__szLocalPhoneNumber_s_n
push 1
push 2
call fcn.004048e0
or ecx, 0xffffffff
mov edi, str.modem
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp + 0x3cc]
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, edx
lea edx, [ebp + 0x3dd]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebx + 4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebp + 0x45e]
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]
mov edi, 0x4845b8
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebp + 0x47f]
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]
mov edi, 0x4845b8
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [ebp + 4]
xor esi, esi
and edx, 0xfffffff9
mov dword [ebp + 4], edx
mov ecx, dword [ebx + 0x14]
cmp ecx, esi
mov eax, edx
je 0x425040
or al, 2
mov dword [ebp + 4], eax
mov ecx, dword [ebx + 0x14]
shr ecx, 0x18
mov byte [ebp + 0xa0], cl
mov edx, dword [ebx + 0x14]
shr edx, 0x10
mov byte [ebp + 0xa1], dl
mov eax, dword [ebx + 0x14]
shr eax, 8
mov byte [ebp + 0xa2], al
mov cl, byte [ebx + 0x14]
mov byte [ebp + 0xa3], cl
mov dword [ebp + 0xa4], esi
mov dword [ebp + 0xa8], esi
cmp dword [ebx + 0x18], esi
je 0x4250b3
mov eax, dword [ebp + 4]
or al, 4
mov dword [ebp + 4], eax
mov edx, dword [ebx + 0x18]
shr edx, 0x18
mov byte [ebp + 0xa4], dl
mov eax, dword [ebx + 0x18]
shr eax, 0x10
mov byte [ebp + 0xa5], al
mov ecx, dword [ebx + 0x18]
shr ecx, 8
mov byte [ebp + 0xa6], cl
mov dl, byte [ebx + 0x18]
mov byte [ebp + 0xa7], dl
mov eax, dword [ebx + 0x1c]
shr eax, 0x18
mov byte [ebp + 0xa8], al
mov ecx, dword [ebx + 0x1c]
shr ecx, 0x10
mov byte [ebp + 0xa9], cl
mov edx, dword [ebx + 0x1c]
shr edx, 8
mov byte [ebp + 0xaa], dl
mov al, byte [ebx + 0x1c]
mov byte [ebp + 0xab], al
mov dword [ebp + 0xac], esi
mov dword [ebp + 0xb0], esi
cmp dword [ebx + 0x20], esi
je 0x425127
mov ecx, dword [ebp + 4]
or ecx, 4
mov dword [ebp + 4], ecx
mov ecx, dword [ebx + 0x20]
shr ecx, 0x18
mov byte [ebp + 0xac], cl
mov edx, dword [ebx + 0x20]
shr edx, 0x10
mov byte [ebp + 0xad], dl
mov eax, dword [ebx + 0x20]
shr eax, 8
mov byte [ebp + 0xae], al
mov cl, byte [ebx + 0x20]
mov byte [ebp + 0xaf], cl
mov edx, dword [ebx + 0x24]
shr edx, 0x18
mov byte [ebp + 0xb0], dl
mov eax, dword [ebx + 0x24]
shr eax, 0x10
mov byte [ebp + 0xb1], al
mov ecx, dword [ebx + 0x24]
shr ecx, 8
mov byte [ebp + 0xb2], cl
mov dl, byte [ebx + 0x24]
mov byte [ebp + 0xb3], dl
lea eax, [esp + 0x18]
push str.ShowModemLights
mov dword [ebp + 0x6e0], esi
mov dword [ebp + 0x6e4], esi
push eax
mov ecx, 0x484ca0
mov dword [esp + 0x20], esi
call fcn.00427fc0
test eax, eax
jne 0x425165
mov eax, dword [esp + 0x18]
cmp eax, esi
mov eax, dword [ebp + 4]
je 0x42515f
or ah, 1
jmp 0x425162
and ah, 0xfe
mov dword [ebp + 4], eax
mov dword [ebp + 0x704], 1
mov dword [ebp + 0x700], 0xffffffff
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push esi
push esi
push ecx
push ebp
push edx
push esi
call sub.RASAPI32.dll_RasSetEntryPropertiesA
mov edi, eax
push ebp
cmp edi, esi
je 0x4251d7
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push edi
push str.RasSetEntryProperties_Error:__d_n
push 1
push 2
call fcn.004048e0
add esp, 0x10
push str.CRasModule::CreateRasProfile___End_n
push 1
push 2
call fcn.004048e0
add esp, 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x3e4], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x425351
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, 0x87
xor eax, eax
lea edi, [esp + 0xbc]
mov dword [esp + 0x28], 0x94
rep stosd dword es:[edi], eax
lea eax, [esp + 0x28]
mov dword [esp + 0xbc], 0x21c
push eax
mov dword [esp + 0xc4], 3
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x38], 2
jne 0x425242
mov eax, dword [esp + 0x2c]
cmp eax, 5
jb 0x42522d
cmp dword [esp + 0x30], 1
jae 0x425232
cmp eax, 6
jne 0x425242
mov eax, dword [esp + 0xc0]
or al, 8
mov dword [esp + 0xc0], eax
mov edi, dword [ebx + 8]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc4]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebx, dword [ebx + 0xc]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x1c5]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ebx, 0xffffffff
mov ecx, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, dword [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xc0]
push ecx
push edx
push 0
call sub.RASAPI32.dll_RasSetCredentialsA
cmp eax, 5
jne 0x4252d6
mov ebp, dword [esp + 0xc0]
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0xbc]
push 0
push eax
and ebp, 0xfffffff7
push ecx
push 0
mov dword [esp + 0xd0], ebp
call sub.RASAPI32.dll_RasSetCredentialsA
test eax, eax
je 0x42532b
lea edx, [esp + 0x2d8]
push 0x104
push edx
push eax
call sub.RASAPI32.dll_RasGetErrorStringA
lea eax, [esp + 0x2d8]
push eax
push str.RasSetCredentials_Error:__s_n
push 1
push 2
call fcn.004048e0
add esp, 0x10
push str.CRasModule::CreateRasProfile___End_n
push 1
push 2
call fcn.004048e0
add esp, 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x3e4], ebx
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x425351
push str.CRasModule::CreateRasProfile___End_n
push 1
push 2
call fcn.004048e0
add esp, 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x3e4], ebx
call sub.MFC42.DLL_CString::CString
mov eax, 1
mov ecx, dword [esp + 0x3dc]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x3d8
ret