Function at 0x1008da80
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 0x100d25c0
push 0x10075280
mov eax, dword fs:[0]
push eax
add esp, 0xfffffd94
mov eax, dword [0x100dd3e0]
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 0x1008db13
xor eax, eax
jmp 0x1008dcbb
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 0x1008db4d
mov dword [ebp - 4], 0xfffffffe
jmp 0x1008dca0
cmp dword [ebp + 0xc], 0
je 0x1008db70
mov eax, dword [ebp + 0xc]
push eax
call fcn.1006dffb
add esp, 4
test eax, eax
jbe 0x1008db70
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 0x100bf9f0
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0
jne 0x1008db9c
mov dword [ebp - 4], 0xfffffffe
jmp 0x1008dca0
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 0x1008dbcc
mov dword [ebp - 4], 0xfffffffe
jmp 0x1008dca0
mov word [ebp - 0x270], 0
push 0x208
push 0
lea ecx, [ebp - 0x26e]
push ecx
call fcn.10070cb0
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 0x1008dc47
cmp dword [ebp - 0x274], 0xc8
je 0x1008dc50
mov dword [ebp - 4], 0xfffffffe
jmp 0x1008dca0
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 0x1008dc79
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 0x1008dca0
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.1006e011
mov esp, ebp
pop ebp
ret 8