Function at 0x4095e6
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebx
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
mov edx, dword [esp + 0x20]
lea ecx, [esp]
call fcn.0040f000
mov edx, dword [esp + 0x24]
lea ecx, [esp + 4]
call fcn.0040f000
mov edx, str.No_internet_connection_is_available._r_n_r_n
lea ecx, [esp + 8]
call fcn.0040f008
push 0
push 0
call sub.WININET.DLL_InternetGetConnectedState
mov ebx, eax
cmp ebx, 1
jne 0x4096f2
push 0xe
push 0x418052
push dword [esp + 0xc]
push str.ping.exe
call fcn.0041186b
mov dword [esp + 0xc], eax
cmp dword [esp + 0xc], 0
je 0x40969a
push dword [esp + 0xc]
call fcn.004118bd
and eax, eax
je 0x409691
mov edx, dword [esp + 0x10]
push dword [0x41d82c]
call fcn.00416020
push dword [0x41d82c]
push dword [0x41d82c]
push dword [esp + 0x18]
call fcn.0041191b
pop eax
lea eax, [esp + 0x14]
push eax
call fcn.00415fa0
jmp 0x409653
push dword [esp + 0xc]
call fcn.00411945
push dword [esp + 0x10]
mov edx, 0x418052
pop ecx
call fcn.00416080
jne 0x4096e4
push 1
push str.unreachable
push dword [esp + 0x18]
call fcn.0040f7a0
mov ebx, eax
and ebx, ebx
jne 0x4096e4
push 1
push str.could_not_find_host
push dword [esp + 0x18]
call fcn.0040f7a0
mov ebx, eax
and ebx, ebx
jne 0x4096e4
mov eax, 1
jmp 0x4096e6
xor eax, eax
and eax, eax
je 0x4096f2
mov dword [esp + 0x14], 1
cmp dword [esp + 0x14], 0
je 0x4096fd
xor eax, eax
jmp 0x409702
mov eax, 1
and eax, eax
je 0x4097f3
push dword [esp]
mov edx, 0x419eb0
mov ecx, dword [esp]
call fcn.00416080
je 0x409726
jmp fcn.00401344
mov edx, 0x4182e6
mov ecx, dword [esp]
call fcn.00416080
je 0x40978e
push dword [0x41d82c]
push 0x40024
push dword [0x41d428]
mov edx, dword [esp + 0x18]
push dword [0x41d82c]
call fcn.00416020
mov edx, str.Continue_anyway_
call fcn.00416020
add dword [0x41d82c], 2
push 0
mov edx, dword [0x41c28c]
add dword [esp + 4], edx
call sub.USER32.DLL_MessageBoxW
pop dword [0x41d82c]
mov ebx, eax
cmp ebx, 7
jne 0x40978c
jmp fcn.00401344
jmp 0x4097ed
mov edx, 0x418312
mov ecx, dword [esp]
call fcn.00416080
je 0x4097ed
push dword [0x41d82c]
push 0x40010
push dword [0x41d428]
mov edx, dword [esp + 0x18]
push dword [0x41d82c]
call fcn.00416020
mov edx, str.Exiting...
call fcn.00416020
add dword [0x41d82c], 2
push 0
mov edx, dword [0x41c28c]
add dword [esp + 4], edx
call sub.USER32.DLL_MessageBoxW
pop dword [0x41d82c]
jmp fcn.00401344
pop eax
jmp 0x4098e3
mov edx, dword [0x41d428]
push dword [0x41d82c]
call fcn.00416020
mov edx, str._requires_offline_mode._r_n_r_n
call fcn.00416020
lea eax, [esp + 0xc]
push eax
call fcn.00415fa0
push dword [esp]
mov edx, 0x419ed6
mov ecx, dword [esp]
call fcn.00416080
je 0x409883
push dword [0x41d82c]
push 0x40024
push dword [0x41d428]
mov edx, dword [esp + 0x18]
push dword [0x41d82c]
call fcn.00416020
mov edx, str.Continue_anyway_
call fcn.00416020
add dword [0x41d82c], 2
push 0
mov edx, dword [0x41c28c]
add dword [esp + 4], edx
call sub.USER32.DLL_MessageBoxW
pop dword [0x41d82c]
mov ebx, eax
cmp ebx, 7
jne 0x409881
jmp fcn.00401344
jmp 0x4098e2
mov edx, 0x419edc
mov ecx, dword [esp]
call fcn.00416080
je 0x4098e2
push dword [0x41d82c]
push 0x40010
push dword [0x41d428]
mov edx, dword [esp + 0x18]
push dword [0x41d82c]
call fcn.00416020
mov edx, str.Exiting...
call fcn.00416020
add dword [0x41d82c], 2
push 0
mov edx, dword [0x41c28c]
add dword [esp + 4], edx
call sub.USER32.DLL_MessageBoxW
pop dword [0x41d82c]
jmp fcn.00401344
pop eax
xor eax, eax
push dword [esp]
call fcn.004160c0
push dword [esp + 0x10]
call fcn.004160c0
push dword [esp + 4]
call fcn.004160c0
push dword [esp + 8]
call fcn.004160c0
add esp, 0x18
pop ebx
ret 8