Function at 0x406cb0
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x2a
push 0
push 0
dec ecx
jne 0x406cb8
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x407358
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x18]
push eax
mov ecx, 0x407370
mov edx, 0x407388
mov eax, 0x80000002
call fcn.00406bc8
lea eax, [ebp - 8]
push eax
mov ecx, 0x4073c8
mov edx, 0x4073d8
mov eax, 0x80000002
call fcn.00406bc8
push dword [ebp - 8]
push 0x40740c
lea eax, [ebp - 0x100]
push eax
mov ecx, 0x407418
mov edx, 0x4073d8
mov eax, 0x80000002
call fcn.00406bc8
push dword [ebp - 0x100]
lea eax, [ebp - 8]
mov edx, 3
call fcn.0040405c
lea eax, [ebp - 0x10]
push eax
mov ecx, 0x407430
mov edx, 0x4073d8
mov eax, 0x80000002
call fcn.00406bc8
lea eax, [ebp - 0xc]
push eax
mov ecx, 0x407450
mov edx, 0x4073d8
mov eax, 0x80000002
call fcn.00406bc8
lea eax, [ebp - 0x14]
push eax
mov ecx, 0x407468
mov edx, 0x4073d8
mov eax, 0x80000002
call fcn.00406bc8
lea eax, [ebp - 0x104]
push eax
mov ecx, 0x40747c
mov edx, 0x407490
mov eax, 0x80000002
call fcn.00406bc8
push dword [ebp - 0x104]
push 0x4074c8
lea eax, [ebp - 0x108]
push eax
mov ecx, 0x4074d4
mov edx, 0x407490
mov eax, 0x80000002
call fcn.00406bc8
push dword [ebp - 0x108]
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.0040405c
lea eax, [ebp - 0xb8]
mov edx, 0x94
call fcn.00404f6c
mov dword [ebp - 0xb8], 0x94
lea eax, [ebp - 0xb8]
push eax
call fcn.00404d60
lea eax, [ebp - 0xfc]
mov edx, 0x20
call fcn.00404f6c
mov dword [ebp - 0xfc], 0x20
lea eax, [ebp - 0xfc]
push eax
call fcn.00404d78
lea eax, [ebp - 0xdc]
mov edx, 0x24
call fcn.00404f6c
lea eax, [ebp - 0xdc]
push eax
call fcn.00404d40
push dword [ebp - 0x24]
push 0x4074f0
push 0x4074fc
lea eax, [ebp - 0x10c]
call fcn.00408c84
push dword [ebp - 0x10c]
push 0x4074fc
push 0x407508
push 0x4074fc
lea eax, [ebp - 0x110]
call fcn.00408ac8
push dword [ebp - 0x110]
push 0x4074fc
push dword [ebp - 0x1c]
push 0x4074fc
call fcn.004086a4
call fcn.0040285c
lea edx, [ebp - 0x114]
call fcn.00408404
push dword [ebp - 0x114]
push 0x407520
push 0x4074fc
mov eax, dword [ebp - 0xf4]
mov dword [ebp - 0x120], eax
xor eax, eax
mov dword [ebp - 0x11c], eax
fild qword [ebp - 0x120]
fdiv dword [0x407528]
fdiv dword [0x407528]
call fcn.0040285c
lea edx, [ebp - 0x118]
call fcn.00408404
push dword [ebp - 0x118]
push 0x407534
push 0x4074fc
mov eax, dword [ebp - 0xf0]
mov dword [ebp - 0x120], eax
xor eax, eax
mov dword [ebp - 0x11c], eax
fild qword [ebp - 0x120]
fdiv dword [0x407528]
fdiv dword [0x407528]
call fcn.0040285c
lea edx, [ebp - 0x124]
call fcn.00408404
push dword [ebp - 0x124]
push 0x407534
push 0x4074fc
mov eax, dword [ebp - 0xe0]
mov dword [ebp - 0x120], eax
xor eax, eax
mov dword [ebp - 0x11c], eax
fild qword [ebp - 0x120]
fdiv dword [0x407528]
fdiv dword [0x407528]
call fcn.0040285c
lea edx, [ebp - 0x128]
call fcn.00408404
push dword [ebp - 0x128]
push 0x407534
lea eax, [ebp - 0x24]
mov edx, 0x16
call fcn.0040405c
push 0
lea eax, [ebp - 0x20]
push eax
call sub.wininet.dll_InternetGetConnectedState
test eax, eax
je 0x40702f
mov eax, dword [ebp - 0x20]
and eax, 1
cmp eax, 1
jne 0x406fc0
push dword [ebp - 0x24]
push 0x4074fc
push 0x407544
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.0040405c
mov eax, dword [ebp - 0x20]
and eax, 2
cmp eax, 2
jne 0x406fe5
push dword [ebp - 0x24]
push 0x4074fc
push 0x407554
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.0040405c
mov eax, dword [ebp - 0x20]
and eax, 4
cmp eax, 4
jne 0x40700a
push dword [ebp - 0x24]
push 0x4074fc
push 0x407560
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.0040405c
mov eax, dword [ebp - 0x20]
and eax, 8
cmp eax, 8
jne 0x40702f
push dword [ebp - 0x24]
push 0x4074fc
push 0x407570
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.0040405c
push dword [ebp - 0x24]
push 0x4074fc
push dword [ebp - 8]
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.0040405c
push dword [ebp - 0x24]
push 0x4074fc
push dword [ebp - 0x18]
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.0040405c
push dword [ebp - 0x24]
push 0x4074fc
lea eax, [ebp - 0x12c]
call fcn.00408b00
push dword [ebp - 0x12c]
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.0040405c
push dword [ebp - 0x24]
push 0x4074fc
push dword [ebp - 0x14]
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.0040405c
push dword [ebp - 0x24]
push 0x4074fc
push dword [ebp - 0xc]
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.0040405c
push dword [ebp - 0x24]
push 0x4074fc
push dword [ebp - 0x10]
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.0040405c
push dword [ebp - 0x24]
push 0x4074fc
lea eax, [ebp - 0x130]
call fcn.00408a98
push dword [ebp - 0x130]
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.0040405c
push dword [ebp - 0x24]
push 0x4074fc
lea eax, [ebp - 0x134]
call fcn.0040842c
push dword [ebp - 0x134]
lea eax, [ebp - 0x138]
call fcn.004084b8
push dword [ebp - 0x138]
lea eax, [ebp - 0x24]
mov edx, 4
call fcn.0040405c
push dword [ebp - 0x24]
push 0x4074fc
call fcn.00404d50
mov dword [ebp - 0x120], eax
xor eax, eax
mov dword [ebp - 0x11c], eax
fild qword [ebp - 0x120]
fdiv dword [0x40757c]
fdiv dword [0x407580]
call fcn.0040285c
lea edx, [ebp - 0x13c]
call fcn.00408404
push dword [ebp - 0x13c]
push 0x40758c
lea eax, [ebp - 0x24]
mov edx, 4
call fcn.0040405c
push dword [ebp - 0x24]
push 0x4074fc
push 0
call fcn.00404e90
lea edx, [ebp - 0x140]
call fcn.00408404
push dword [ebp - 0x140]
push 0x4074fc
push 1
call fcn.00404e90
lea edx, [ebp - 0x144]
call fcn.00408404
push dword [ebp - 0x144]
lea eax, [ebp - 0x24]
mov edx, 5
call fcn.0040405c
call fcn.00408994
test al, al
jne 0x40730a
xor eax, eax
push ebp
push 0x407219
push dword fs:[eax]
mov dword fs:[eax], esp
push dword [ebp - 0x24]
push 0x4074fc
lea eax, [ebp - 0x148]
mov edx, 0xfe061
call fcn.00403f48
push dword [ebp - 0x148]
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.0040405c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x407223
xor eax, eax
push ebp
push 0x407266
push dword fs:[eax]
mov dword fs:[eax], esp
push dword [ebp - 0x24]
push 0x4074fc
lea eax, [ebp - 0x14c]
mov edx, 0xfe091
call fcn.00403f48
push dword [ebp - 0x14c]
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.0040405c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x407270
xor eax, eax
push ebp
push 0x4072b3
push dword fs:[eax]
mov dword fs:[eax], esp
push dword [ebp - 0x24]
push 0x4074fc
lea eax, [ebp - 0x150]
mov edx, 0xffff5
call fcn.00403f48
push dword [ebp - 0x150]
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.0040405c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4072bd
xor eax, eax
push ebp
push 0x407300
push dword fs:[eax]
mov dword fs:[eax], esp
push dword [ebp - 0x24]
push 0x4074fc
lea eax, [ebp - 0x154]
mov edx, 0xfec71
call fcn.00403f48
push dword [ebp - 0x154]
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.0040405c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40730a
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x24]
call fcn.00403e6c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40735f
lea eax, [ebp - 0x154]
mov edx, 0xd
call fcn.00403e3c
lea eax, [ebp - 0x118]
mov edx, 7
call fcn.00403e3c
lea eax, [ebp - 0x24]
call fcn.00403e18
lea eax, [ebp - 0x1c]
mov edx, 6
call fcn.00403e3c
ret