Function at 0x570e50
Capabilities:
Check internet connectivity via wininet
Create http request
Parse url

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x585e6f
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x48b0
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 0x5ccd40
lea ecx, [ebp - 0x485c]
call fcn.004180c0
mov dword [ebp - 4], 0
mov byte [ebp - 0x485d], 0
mov dword [ebp - 0x48bc], 0
mov eax, 0x50
mov word [ebp - 0x4874], ax
mov byte [ebp - 4], 1
cmp dword [ebp + 8], 0
je 0x5711e7
mov ecx, dword [ebp + 8]
movzx edx, word [ecx]
test edx, edx
je 0x5711e7
push 0x3c
push 0
lea eax, [ebp - 0x48b8]
push eax
call fcn.00550230
add esp, 0xc
mov dword [ebp - 0x48b8], 0x3c
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x48b4], ecx
mov dword [ebp - 0x48b0], 0x104
lea edx, [ebp - 0x424]
mov dword [ebp - 0x48a8], edx
mov dword [ebp - 0x48a4], 0x104
lea eax, [ebp - 0x834]
mov dword [ebp - 0x489c], eax
mov dword [ebp - 0x4898], 0x104
lea ecx, [ebp - 0x62c]
mov dword [ebp - 0x4894], ecx
mov dword [ebp - 0x4890], 0x104
lea edx, [ebp - 0x2834]
mov dword [ebp - 0x4884], edx
mov dword [ebp - 0x4880], 0x1000
mov dword [ebp - 0x48c0], 0x1000
mov eax, dword [ebp + 8]
push eax
call fcn.0055091a
add esp, 4
mov dword [ebp - 0x487c], eax
lea ecx, [ebp - 0x48b8]
push ecx
push 0x10000000
mov edx, dword [ebp - 0x487c]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x570fa7
mov byte [ebp - 0x485e], 1
jmp 0x570fae
mov byte [ebp - 0x485e], 0
mov cl, byte [ebp - 0x485e]
mov byte [ebp - 0x485d], cl
movzx edx, byte [ebp - 0x485d]
test edx, edx
je 0x5711dc
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 - 0x48ac]
mov dword [ebp - 0x4868], eax
cmp dword [ebp - 0x4868], 0
jle 0x5711da
cmp dword [ebp - 0x4868], 4
jle 0x571012
cmp dword [ebp - 0x4868], 5
je 0x571006
jmp 0x5711da
mov byte [ebp - 0x485d], 1
jmp 0x5711da
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
add edx, 1
mov eax, dword [ebp + 0xc]
mov dword [eax], edx
mov byte [ebp - 0x485d], 0
movzx ecx, byte [ebp + 0x18]
test ecx, ecx
jne 0x57103e
call fcn.00570650
movzx edx, al
test edx, edx
je 0x5711da
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 0x5ccd64
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x4864], eax
cmp dword [ebp - 0x4864], 0
je 0x5711cf
mov eax, dword [ebp - 0x48b4]
push eax
push 0x1000
lea ecx, [ebp - 0x4834]
push ecx
call fcn.005508be
add esp, 0xc
push 0x5ccd6c
push 0x1000
lea edx, [ebp - 0x4834]
push edx
call fcn.00554507
add esp, 0xc
mov eax, dword [ebp - 0x48a8]
push eax
push 0x1000
lea ecx, [ebp - 0x4834]
push ecx
call fcn.00554507
add esp, 0xc
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
add eax, 1
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
push 0
push 0x84240200
push 0
push 0
lea edx, [ebp - 0x4834]
push edx
mov eax, dword [ebp - 0x4864]
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov dword [ebp - 0x486c], eax
cmp dword [ebp - 0x486c], 0
jne 0x5711ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
add eax, 1
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
movzx edx, byte [ebp + 0x18]
test edx, edx
je 0x5711aa
push 0
call dword [sym.imp.WININET.dll_InternetAttemptConnect]
test eax, eax
jne 0x57119f
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 - 0x4864]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 0x4870], 0
mov dword [ebp - 0x4878], 0
push 0
lea ecx, [ebp - 0x4878]
push ecx
lea edx, [ebp - 0x4870]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0056f9b0
mov byte [ebp - 0x485f], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x485c]
call fcn.00418180
mov al, byte [ebp - 0x485f]
jmp 0x57122a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp + 0x10]
mov dword [edx], eax
jmp 0x5711c0
mov eax, dword [ebp - 0x486c]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov byte [ebp - 0x485d], 1
mov ecx, dword [ebp - 0x4864]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x5711da
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp + 0x10]
mov dword [edx], eax
jmp 0x5711e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
jmp 0x5711f6
mov dword [ebp - 4], 0
jmp 0x571206
mov dl, byte [ebp - 0x485d]
mov byte [ebp - 0x4860], dl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x485c]
call fcn.00418180
mov al, byte [ebp - 0x4860]
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