Function at 0x4025b0
Capabilities:
Check internet connectivity via wininet
Check os version
Create http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x413198
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x4190d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.CheckInternetConnection__:_enter
lea ecx, [ebp - 0xdc]
call fcn.00402ca0
mov dword [ebp - 4], 0
lea eax, [ebp - 0xdc]
push eax
call fcn.00402480
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xdc]
call fcn.00402c80
mov dword [ebp - 0xb4], 0
push 0x98
push 0
lea ecx, [ebp - 0xb0]
push ecx
call fcn.00404200
add esp, 0xc
mov dword [ebp - 0xb4], 0x9c
lea edx, [ebp - 0xb4]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x402665
mov dword [ebp - 0xb4], 0x94
lea eax, [ebp - 0xb4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0xa4], 2
jne 0x402820
cmp dword [ebp - 0xb0], 5
jne 0x402820
push 0x414668
lea ecx, [ebp - 0xe4]
call fcn.00402ca0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0xe4]
push ecx
call fcn.00402480
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xe4]
call fcn.00402c80
push 0
lea edx, [ebp - 0xb8]
push edx
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
jne 0x4026d6
xor eax, eax
jmp 0x4029dc
push 0
push 0
push 0
push 0
push 0x414578
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0xbc], eax
cmp dword [ebp - 0xbc], 0
je 0x40271c
push 0
push 0x80080000
push 0
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0xbc]
push ecx
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
test eax, eax
jne 0x4027cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc0], eax
cmp dword [ebp - 0xc0], 0x2ee7
je 0x40274c
cmp dword [ebp - 0xc0], 0x2efd
je 0x40274c
cmp dword [ebp - 0xc0], 0x2ee2
jne 0x40278b
push str.CheckInternetConnection__:_InternetOpenUrl_failed
lea ecx, [ebp - 0xec]
call fcn.00402ca0
mov dword [ebp - 4], 2
lea edx, [ebp - 0xec]
push edx
call fcn.00402480
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xec]
call fcn.00402c80
xor eax, eax
jmp 0x4029dc
push str.CheckInternetConnection__:_ping_failed
lea ecx, [ebp - 0xf4]
call fcn.00402ca0
mov dword [ebp - 4], 3
lea eax, [ebp - 0xf4]
push eax
call fcn.00402480
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf4]
call fcn.00402c80
xor eax, eax
jmp 0x4029dc
mov ecx, dword [ebp - 0xbc]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push str.CheckInternetConnection__:_ping_success
lea ecx, [ebp - 0xfc]
call fcn.00402ca0
mov dword [ebp - 4], 4
lea edx, [ebp - 0xfc]
push edx
call fcn.00402480
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xfc]
call fcn.00402c80
mov eax, 1
jmp 0x4029dc
push str.vista_or_later
lea ecx, [ebp - 0x104]
call fcn.00402ca0
mov dword [ebp - 4], 5
lea eax, [ebp - 0x104]
push eax
call fcn.00402480
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x104]
call fcn.00402c80
mov dword [ebp - 0xcc], 0
xor ecx, ecx
mov word [ebp - 0xd0], cx
mov dword [ebp - 0xc4], 0
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [ebp - 0xcc], eax
cmp dword [ebp - 0xcc], 0
jge 0x402893
xor eax, eax
jmp 0x4029dc
lea edx, [ebp - 0xc4]
push edx
push 0x414754
push 0x17
push 0
push 0x414764
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0xcc], eax
cmp dword [ebp - 0xcc], 0
jge 0x4028ca
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
jmp 0x4029dc
mov dword [ebp - 0xc8], 0
lea eax, [ebp - 0xd4]
push eax
mov ecx, dword [ebp - 0xc4]
mov edx, dword [ecx]
mov eax, dword [ebp - 0xc4]
push eax
mov ecx, dword [edx + 0x34]
call ecx
mov edx, dword [ebp - 0xd4]
and edx, 0x40
jne 0x402907
mov eax, dword [ebp - 0xd4]
and eax, 0x400
je 0x402911
mov dword [ebp - 0xc8], 1
mov ecx, dword [ebp - 0xc4]
mov edx, dword [ecx]
mov eax, dword [ebp - 0xc4]
push eax
mov ecx, dword [edx + 8]
call ecx
call dword [sym.imp.ole32.dll_CoUninitialize]
cmp dword [ebp - 0xc8], 0
je 0x402940
mov dword [ebp - 0x118], 0x4145d0
jmp 0x40294a
mov dword [ebp - 0x118], 0x4145cc
push str.CheckInternetConnection__:_result_
lea ecx, [ebp - 0x10c]
call fcn.00402ca0
mov dword [ebp - 0x11c], eax
mov edx, dword [ebp - 0x11c]
mov dword [ebp - 0x120], edx
mov dword [ebp - 4], 6
mov eax, dword [ebp - 0x118]
push eax
mov ecx, dword [ebp - 0x120]
push ecx
lea edx, [ebp - 0x114]
push edx
call fcn.004030a0
add esp, 0xc
mov dword [ebp - 0x124], eax
mov eax, dword [ebp - 0x124]
mov dword [ebp - 0x128], eax
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x128]
push ecx
call fcn.00402480
add esp, 4
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x114]
call fcn.00402c80
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10c]
call fcn.00402c80
mov eax, dword [ebp - 0xc8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004040d2
mov esp, ebp
pop ebp
ret