Function at 0x4d6960
Capabilities:
Check internet connectivity via wininet

Disassembly:
sub esp, 0x34
push ebp
push esi
push edi
push 4
lea eax, [esp + 0x10]
push eax
push str.EnableAutodial
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
xor ebp, ebp
push SysReAllocString
lea ecx, [esp + 0x38]
mov dword [esp + 0x20], ebp
call fcn.0043cc90
lea ecx, [esp + 0x24]
call fcn.00475350
lea ecx, [esp + 0x14]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x30], ebp
call fcn.004ccff0
mov eax, dword [esp + 0x2c]
cmp eax, ebp
je 0x4d69b2
lea ecx, [eax + 4]
jmp 0x4d69b4
xor ecx, ecx
mov eax, dword [esp + 0x28]
cmp eax, ebp
je 0x4d69c1
add eax, 4
jmp 0x4d69c3
xor eax, eax
push 0xf003f
push ecx
mov ecx, dword [esp + 0x2c]
push eax
push ecx
lea ecx, [esp + 0x24]
call fcn.004cd0a0
mov edx, dword [esp + 0x38]
push edx
push 4
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x20]
call fcn.004cd3b0
lea ecx, [esp + 0x14]
call fcn.004cd270
lea ecx, [esp + 0x14]
call fcn.004cd000
push ebp
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x18], ebp
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0x4d6b0a
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x44]
push ebp
push edx
push eax
call fcn.004d64c0
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x3c], ecx
add esp, 0xc
lea ecx, [esp + 0x14]
mov edi, eax
call fcn.004ccff0
mov eax, dword [esp + 0x2c]
cmp eax, ebp
je 0x4d6a4a
lea ecx, [eax + 4]
jmp 0x4d6a4c
xor ecx, ecx
mov eax, dword [esp + 0x28]
cmp eax, ebp
je 0x4d6a59
add eax, 4
jmp 0x4d6a5b
xor eax, eax
mov edx, dword [esp + 0x24]
push 0xf003f
push ecx
push eax
push edx
lea ecx, [esp + 0x24]
call fcn.004cd0a0
mov eax, dword [esp + 0x38]
push eax
push 4
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x20]
call fcn.004cd3b0
lea ecx, [esp + 0x14]
call fcn.004cd270
lea ecx, [esp + 0x14]
call fcn.004cd000
lea ecx, [esp + 0x2c]
call fcn.004039f0
mov eax, dword [esp + 0x28]
cmp eax, ebp
mov dword [esp + 0x2c], ebp
je 0x4d6b01
mov edx, dword [eax]
and edx, 0xff
cmp edx, 0x80
mov esi, eax
jae 0x4d6b01
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
and eax, 0xff
cmp eax, 0x7f
jne 0x4d6af0
mov eax, dword [esi]
and eax, 0xff
cmp eax, 0x80
jae 0x4d6aeb
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
and eax, 0xff
jmp 0x4d6af0
mov eax, 0xff
cmp eax, ebp
jne 0x4d6b01
mov ecx, dword [esp + 0x28]
push ecx
call fcn.00499410
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
add esp, 0x34
ret
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], edx
call fcn.004ccff0
mov eax, dword [esp + 0x2c]
cmp eax, ebp
je 0x4d6b28
lea ecx, [eax + 4]
jmp 0x4d6b2a
xor ecx, ecx
mov eax, dword [esp + 0x28]
cmp eax, ebp
je 0x4d6b37
add eax, 4
jmp 0x4d6b39
xor eax, eax
push ebx
push 0xf003f
push ecx
push eax
mov eax, dword [esp + 0x34]
push eax
lea ecx, [esp + 0x28]
call fcn.004cd0a0
mov ecx, dword [esp + 0x3c]
push ecx
push 4
lea edx, [esp + 0x3c]
push edx
lea ecx, [esp + 0x24]
call fcn.004cd3b0
lea ecx, [esp + 0x18]
call fcn.004cd270
lea ecx, [esp + 0x18]
call fcn.004cd000
mov eax, dword [esp + 0x30]
cmp eax, ebp
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
je 0x4d6bd9
mov ecx, dword [eax]
and ecx, 0xff
cmp ecx, 0x80
mov esi, eax
jae 0x4d6bd9
push eax
call edi
and eax, 0xff
cmp eax, 0x7f
jne 0x4d6bc8
mov edx, dword [esi]
and edx, 0xff
cmp edx, 0x80
jae 0x4d6bc3
push esi
call ebx
and eax, 0xff
jmp 0x4d6bc8
mov eax, 0xff
cmp eax, ebp
jne 0x4d6bd9
mov eax, dword [esp + 0x30]
push eax
call fcn.00499410
add esp, 4
mov eax, dword [esp + 0x2c]
cmp eax, ebp
mov dword [esp + 0x30], ebp
je 0x4d6c34
mov ecx, dword [eax]
and ecx, 0xff
cmp ecx, 0x80
mov esi, eax
jae 0x4d6c34
push eax
call edi
and eax, 0xff
cmp eax, 0x7f
jne 0x4d6c23
mov edx, dword [esi]
and edx, 0xff
cmp edx, 0x80
jae 0x4d6c1e
push esi
call ebx
and eax, 0xff
jmp 0x4d6c23
mov eax, 0xff
cmp eax, ebp
jne 0x4d6c34
mov eax, dword [esp + 0x2c]
push eax
call fcn.00499410
add esp, 4
pop ebx
pop edi
pop esi
mov eax, 6
pop ebp
add esp, 0x34
ret