Function at 0x570700
Capabilities:
Check internet connectivity via wininet
Create http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x585e3c
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1228
call fcn.005536b0
mov eax, dword [0x5f4900]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
push str.HTTP::CONNECTORG
lea ecx, [ebp - 0x1084]
call fcn.004180c0
mov dword [ebp - 4], 0
mov byte [ebp - 0x11a1], 1
mov dword [ebp - 0x11f0], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x11bc], eax
lea ecx, [ebp - 0x11c4]
call fcn.00403a90
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x11b4]
call fcn.00403a90
mov byte [ebp - 4], 2
mov ecx, 0x50
mov word [ebp - 0x11d4], cx
mov byte [ebp - 4], 3
mov dword [ebp - 0x1210], 0
push 0
lea edx, [ebp - 0x1210]
push edx
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
mov dword [ebp - 0x1228], eax
cmp dword [ebp - 0x1228], 0
jne 0x570dba
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
add ecx, 1
mov edx, dword [ebp + 0xc]
mov dword [edx], ecx
mov dword [ebp - 0x11f4], 0x2000000
mov dword [ebp - 0x11dc], 0x824
mov dword [ebp - 0x11e4], 0
mov eax, dword [ebp - 0x11f4]
push eax
lea ecx, [ebp - 0x11dc]
push ecx
lea edx, [ebp - 0x105c]
push edx
mov eax, dword [ebp - 0x11bc]
push eax
call dword [sym.imp.WININET.dll_InternetCanonicalizeUrlW]
mov dword [ebp - 0x11d0], eax
cmp dword [ebp - 0x11d0], 0
jne 0x570896
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x570894
xor ecx, ecx
mov eax, dword [ebp - 0x11dc]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00428226
add esp, 4
mov dword [ebp - 0x1230], eax
mov eax, dword [ebp - 0x1230]
mov dword [ebp - 0x11c0], eax
cmp dword [ebp - 0x11c0], 0
je 0x570894
mov dword [ebp - 0x11e4], 1
mov ecx, dword [ebp - 0x11f4]
push ecx
lea edx, [ebp - 0x11dc]
push edx
mov eax, dword [ebp - 0x11c0]
push eax
mov ecx, dword [ebp - 0x11bc]
push ecx
call dword [sym.imp.WININET.dll_InternetCanonicalizeUrlW]
mov dword [ebp - 0x11d0], eax
jmp 0x5708a2
lea edx, [ebp - 0x105c]
mov dword [ebp - 0x11c0], edx
cmp dword [ebp - 0x11d0], 0
je 0x5708b7
mov eax, dword [ebp - 0x11c0]
mov dword [ebp - 0x11bc], eax
lea ecx, [ebp - 0x11d4]
push ecx
lea edx, [ebp - 0x11b4]
push edx
lea eax, [ebp - 0x11c4]
push eax
lea ecx, [ebp - 0x11f0]
push ecx
mov edx, dword [ebp - 0x11bc]
push edx
call fcn.00571c0f
test eax, eax
je 0x5708ec
mov byte [ebp - 0x11a2], 1
jmp 0x5708f3
mov byte [ebp - 0x11a2], 0
mov al, byte [ebp - 0x11a2]
mov byte [ebp - 0x11a1], al
movzx ecx, byte [ebp - 0x11a1]
test ecx, ecx
je 0x570d96
cmp dword [ebp - 0x11f0], 0x1001
jne 0x570961
mov dl, byte [ebp - 0x11a1]
mov byte [ebp - 0x11aa], dl
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x11b4]
call fcn.00403b70
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x11c4]
call fcn.00403b70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1084]
call fcn.00418180
mov al, byte [ebp - 0x11aa]
jmp 0x570e2a
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
add ecx, 1
mov edx, dword [ebp + 0xc]
mov dword [edx], ecx
push 0
push 0
push 0
push 0
push 0x5cd5a4
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x11a8], eax
cmp dword [ebp - 0x11a8], 0
je 0x570d96
mov dword [ebp - 0x11b8], 0
mov dword [ebp - 0x11a0], 0x11c
mov dword [ebp - 0x119c], 0
mov dword [ebp - 0x1198], 0
mov dword [ebp - 0x1194], 0
mov dword [ebp - 0x1190], 0
xor eax, eax
mov word [ebp - 0x118c], ax
push 0xfe
push 0
lea ecx, [ebp - 0x118a]
push ecx
call fcn.00550230
add esp, 0xc
xor edx, edx
mov word [ebp - 0x108c], dx
xor eax, eax
mov word [ebp - 0x108a], ax
xor ecx, ecx
mov dword [ebp - 0x1088], ecx
mov dword [ebp - 0x1190], 2
mov dword [ebp - 0x119c], 6
push 4
push 2
push 1
push 8
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov dword [ebp - 0x1220], eax
mov dword [ebp - 0x121c], edx
mov edx, dword [ebp - 0x121c]
push edx
mov eax, dword [ebp - 0x1220]
push eax
push 0xa
lea ecx, [ebp - 0x11a0]
push ecx
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
je 0x570aba
push 0xc
call fcn.004281f9
add esp, 4
mov dword [ebp - 0x11f8], eax
mov byte [ebp - 4], 4
cmp dword [ebp - 0x11f8], 0
je 0x570a94
mov ecx, dword [ebp - 0x11f8]
call fcn.0056dea0
mov dword [ebp - 0x11e0], eax
jmp 0x570a9e
mov dword [ebp - 0x11e0], 0
mov edx, dword [ebp - 0x11e0]
mov dword [ebp - 0x1238], edx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x1238]
mov dword [ebp - 0x11b8], eax
mov ecx, dword [ebp - 0x11bc]
push ecx
lea ecx, [ebp - 0x11b0]
call fcn.00403a10
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x11b4]
call fcn.00404bc0
cmp eax, 1
jle 0x570b58
push 0
lea ecx, [ebp - 0x11b4]
call fcn.00403e60
push eax
lea ecx, [ebp - 0x11b0]
call fcn.00407c10
mov dword [ebp - 0x11e8], eax
cmp dword [ebp - 0x11e8], 0
jle 0x570b58
mov edx, dword [ebp - 0x11e8]
push edx
lea eax, [ebp - 0x1224]
push eax
lea ecx, [ebp - 0x11b0]
call fcn.00407c90
mov dword [ebp - 0x122c], eax
mov ecx, dword [ebp - 0x122c]
mov dword [ebp - 0x1208], ecx
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x1208]
push edx
lea ecx, [ebp - 0x11b0]
call fcn.00403d70
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x1224]
call fcn.00403b70
mov dword [ebp - 0x11c8], 0xbb8
cmp dword [ebp - 0x11c8], 0
je 0x570bb3
push 4
lea eax, [ebp - 0x11c8]
push eax
push 6
mov ecx, dword [ebp - 0x11a8]
push ecx
call dword [sym.imp.WININET.dll_InternetSetOptionW]
push 4
lea edx, [ebp - 0x11c8]
push edx
push 5
mov eax, dword [ebp - 0x11a8]
push eax
call dword [sym.imp.WININET.dll_InternetSetOptionW]
push 4
lea ecx, [ebp - 0x11c8]
push ecx
push 2
mov edx, dword [ebp - 0x11a8]
push edx
call dword [sym.imp.WININET.dll_InternetSetOptionW]
push 0
push 0x84240200
push 0
push 0
lea ecx, [ebp - 0x11b0]
call fcn.00403e60
push eax
mov eax, dword [ebp - 0x11a8]
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov dword [ebp - 0x11ec], eax
cmp dword [ebp - 0x11ec], 0
jne 0x570d1d
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
add edx, 1
mov eax, dword [ebp + 0xc]
mov dword [eax], edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
mov dword [edx], ecx
mov byte [ebp - 0x11a1], 0
movzx edx, byte [ebp + 0x18]
test edx, edx
je 0x570d1b
mov eax, dword [ebp - 0x11b8]
mov dword [ebp - 0x11fc], eax
mov ecx, dword [ebp - 0x11fc]
mov dword [ebp - 0x11cc], ecx
cmp dword [ebp - 0x11cc], 0
je 0x570c5c
push 1
mov edx, dword [ebp - 0x11cc]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x11cc]
mov edx, dword [eax]
call edx
mov dword [ebp - 0x1234], eax
jmp 0x570c66
mov dword [ebp - 0x1234], 0
mov dword [ebp - 0x11b8], 0
push 0
call dword [sym.imp.WININET.dll_InternetAttemptConnect]
test eax, eax
jne 0x570d1b
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
add ecx, 1
mov edx, dword [ebp + 0xc]
mov dword [edx], ecx
mov eax, dword [ebp - 0x11a8]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 0x1200], 0
mov dword [ebp - 0x1218], 0
push 0
lea ecx, [ebp - 0x1218]
push ecx
lea edx, [ebp - 0x1200]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0056f9b0
mov byte [ebp - 0x11a9], al
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x11b0]
call fcn.00403b70
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x11b4]
call fcn.00403b70
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x11c4]
call fcn.00403b70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1084]
call fcn.00418180
mov al, byte [ebp - 0x11a9]
jmp 0x570e2a
jmp 0x570d2a
mov edx, dword [ebp - 0x11ec]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 0x11b8], 0
je 0x570d7a
mov eax, dword [ebp - 0x11b8]
mov dword [ebp - 0x1204], eax
mov ecx, dword [ebp - 0x1204]
mov dword [ebp - 0x11d8], ecx
cmp dword [ebp - 0x11d8], 0
je 0x570d70
push 1
mov edx, dword [ebp - 0x11d8]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x11d8]
mov edx, dword [eax]
call edx
mov dword [ebp - 0x120c], eax
jmp 0x570d7a
mov dword [ebp - 0x120c], 0
mov eax, dword [ebp - 0x11a8]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x11b0]
call fcn.00403b70
cmp dword [ebp - 0x11e4], 0
je 0x570dba
mov ecx, dword [ebp - 0x11c0]
mov dword [ebp - 0x1214], ecx
mov edx, dword [ebp - 0x1214]
push edx
call fcn.0042822f
add esp, 4
jmp 0x570dd8
mov dword [ebp - 4], 2
jmp 0x570de8
mov al, byte [ebp - 0x11a1]
mov byte [ebp - 0x11ab], al
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x11b4]
call fcn.00403b70
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x11c4]
call fcn.00403b70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1084]
call fcn.00418180
mov al, byte [ebp - 0x11ab]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005502f8
mov esp, ebp
pop ebp
ret 0x14