Function at 0x4148a0
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1d4
mov eax, dword [0x4b1120]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push str.GetInternetConnectedState___Test_cnx_Internet
call fcn.00437970
add esp, 4
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
push 0
lea eax, [ebp - 4]
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0x414b21
mov ecx, dword [ebp - 4]
push ecx
push str.GetInternetConnectedState___InternetGetConnectedState_returns_TRUE_with_dwFlags___x
call fcn.00437970
add esp, 8
call fcn.00414800
test eax, eax
je 0x414908
mov dword [ebp - 0x1c4], str.ws2_32.dll
jmp 0x414912
mov dword [ebp - 0x1c4], str.wsock32.dll
mov edx, dword [ebp - 0x1c4]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x414b16
cmp dword [0x4c9c48], 0
jne 0x414b16
push str.WSACleanup
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x14], eax
push str.WSAStartup
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x10], eax
push str.gethostbyname
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x14], 0
je 0x414afa
cmp dword [ebp - 0x10], 0
je 0x414afa
cmp dword [ebp - 0x18], 0
je 0x414afa
xor eax, eax
mov word [ebp - 0x1b0], ax
push 0x18e
push 0
lea ecx, [ebp - 0x1ae]
push ecx
call fcn.00447660
add esp, 0xc
lea edx, [ebp - 0x1b0]
push edx
push 0x101
call dword [ebp - 0x10]
test eax, eax
jne 0x414af8
mov dword [ebp - 0x1bc], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1b8], eax
cmp dword [ebp - 0x1b8], 0
jne 0x4149eb
mov dword [ebp - 0x1c8], 0
jmp 0x414a33
mov ecx, dword [ebp - 0x1b8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [eax + eax + 2]
mov dword [ebp - 0x1b4], edx
mov eax, dword [ebp - 0x1b4]
call fcn.0044a220
mov dword [ebp - 0x1cc], esp
mov eax, dword [ebp - 0x1b4]
push eax
mov ecx, dword [ebp - 0x1b8]
push ecx
mov edx, dword [ebp - 0x1cc]
push edx
call fcn.00416bf0
mov dword [ebp - 0x1c8], eax
mov eax, dword [ebp - 0x1c8]
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x414a5b
mov ecx, dword [ebp - 8]
or ecx, 2
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 8]
push edx
push 0x48d498
call fcn.00437970
add esp, 8
cmp dword [ebp + 0xc], 0
jne 0x414af5
mov dword [ebp - 0x1b8], 0x48d4e8
cmp dword [ebp - 0x1b8], 0
jne 0x414a84
mov dword [ebp - 0x1d0], 0
jmp 0x414acc
mov eax, dword [ebp - 0x1b8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax + eax + 2]
mov dword [ebp - 0x1b4], ecx
mov eax, dword [ebp - 0x1b4]
call fcn.0044a220
mov dword [ebp - 0x1d4], esp
mov edx, dword [ebp - 0x1b4]
push edx
mov eax, dword [ebp - 0x1b8]
push eax
mov ecx, dword [ebp - 0x1d4]
push ecx
call fcn.00416bf0
mov dword [ebp - 0x1d0], eax
mov edx, dword [ebp - 0x1d0]
push edx
call dword [ebp - 0x18]
test eax, eax
je 0x414af5
mov eax, dword [ebp - 8]
or eax, 2
mov dword [ebp - 8], eax
push str.microsoft.com
push str.GetInternetConnectedState___Ping_OK:__s
call fcn.00437970
add esp, 8
call dword [ebp - 0x14]
jmp 0x414b03
mov ecx, dword [ebp - 8]
or ecx, 2
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0xc], 0
jmp 0x414b1f
mov eax, dword [ebp - 8]
or eax, 2
mov dword [ebp - 8], eax
jmp 0x414b32
mov ecx, dword [ebp - 4]
push ecx
push str.GetInternetConnectedState___InternetGetConnectedState_returns_FALSE_with_dwFlags___u
call fcn.00437970
add esp, 8
mov edx, dword [ebp - 4]
and edx, 0x53
je 0x414b43
mov eax, dword [ebp - 8]
or eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
push ecx
push str.GetInternetConnectedState___Return__u_with_1CONNECTION_CONFIGURED_and_2CONNECTION_ACTIVED
call fcn.00437970
add esp, 8
push str.GetInternetConnectedState___End_cnx_Internet
call fcn.00437970
add esp, 4
mov eax, dword [ebp - 8]
lea esp, [ebp - 0x1d4]
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00447645
mov esp, ebp
pop ebp
ret