Function at 0x1008ec80
Capabilities:
Check http status code
Check internet connectivity via wininet
Create http request
Get http content length
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100d5c30
push 0x10076590
mov eax, dword fs:[0]
push eax
add esp, 0xfffffd94
mov eax, dword [0x100e13e0]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x24], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x27c], ecx
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x5c], 0
mov ecx, 8
mov esi, str.Accept:___r_n_r_n
lea edi, [ebp - 0x44]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 4
cmp dword [ebp + 8], 0
jne 0x1008ed13
xor eax, eax
jmp 0x1008eebb
mov eax, dword [ebp - 0x27c]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x27c]
mov eax, dword [edx + 0xc]
call eax
mov dword [ebp - 4], 0
push 0
lea ecx, [ebp - 0x54]
push ecx
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
mov edx, dword [ebp - 0x54]
and edx, 0x20
je 0x1008ed4d
mov dword [ebp - 4], 0xfffffffe
jmp 0x1008eea0
cmp dword [ebp + 0xc], 0
je 0x1008ed70
mov eax, dword [ebp + 0xc]
push eax
call fcn.1006f3ab
add esp, 4
test eax, eax
jbe 0x1008ed70
mov dword [ebp - 0x1c], 3
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x20], ecx
push 0
push 0
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x1c]
push eax
push 0x100c4b50
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0
jne 0x1008ed9c
mov dword [ebp - 4], 0xfffffffe
jmp 0x1008eea0
push 0
push 0x84000100
push 0xffffffffffffffff
lea ecx, [ebp - 0x44]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x58]
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
jne 0x1008edcc
mov dword [ebp - 4], 0xfffffffe
jmp 0x1008eea0
mov word [ebp - 0x270], 0
push 0x208
push 0
lea ecx, [ebp - 0x26e]
push ecx
call fcn.10072040
add esp, 0xc
mov dword [ebp - 0x278], 0x208
push 0
lea edx, [ebp - 0x278]
push edx
mov eax, dword [ebp - 0x270]
push eax
push 0x2f
mov ecx, dword [ebp - 0x5c]
push ecx
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov dword [ebp - 0x274], 0
push 0
lea edx, [ebp - 0x48]
push edx
lea eax, [ebp - 0x274]
push eax
push 0x20000013
mov ecx, dword [ebp - 0x5c]
push ecx
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x1008ee47
cmp dword [ebp - 0x274], 0xc8
je 0x1008ee50
mov dword [ebp - 4], 0xfffffffe
jmp 0x1008eea0
push 0
lea edx, [ebp - 0x48]
push edx
lea eax, [ebp - 0x4c]
push eax
push 0x20000005
mov ecx, dword [ebp - 0x5c]
push ecx
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x1008ee79
mov edx, dword [ebp - 0x27c]
mov eax, dword [ebp - 0x4c]
mov dword [edx + 0x28], eax
mov dword [ebp - 0x50], 1
mov dword [ebp - 4], 0xfffffffe
jmp 0x1008eea0
mov ecx, dword [ebp - 0x27c]
mov edx, dword [ebp - 0x58]
mov dword [ecx + 4], edx
mov eax, dword [ebp - 0x27c]
mov ecx, dword [ebp - 0x5c]
mov dword [eax + 8], ecx
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x24]
xor ecx, ebp
call fcn.1006f3c1
mov esp, ebp
pop ebp
ret 8