Function at 0x100b7790
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 0x101086d8
push 0x1008fe20
mov eax, dword fs:[0]
push eax
add esp, 0xfffffbfc
mov eax, dword [0x1010b070]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], 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 - 0x3ec], ecx
mov dword [ebp - 0x400], 0
mov dword [ebp - 0x3fc], 0
mov dword [ebp - 0x3f0], 0
mov ecx, 8
mov esi, str.Accept:___r_n_r_n
lea edi, [ebp - 0x1dc]
rep movsd dword es:[edi], dword [esi]
push 0xa8
push 0
lea eax, [ebp - 0x1bc]
push eax
call fcn.1008df10
add esp, 0xc
mov dword [ebp - 0x404], 0
mov dword [ebp - 0x40c], 0
mov dword [ebp - 0x408], 0
mov dword [ebp - 0x410], 0
mov dword [ebp - 0x3f8], 4
cmp dword [ebp + 8], 0
jne 0x100b786e
mov ecx, dword [ebp - 0x3ec]
mov dword [ecx + 4], 0x65
mov edx, dword [ebp - 0x3ec]
mov dword [edx + 8], 0
xor eax, eax
jmp 0x100b7c01
cmp dword [ebp + 0x10], 0
ja 0x100b787a
cmp dword [ebp + 0x14], 0
jbe 0x100b78f1
xor eax, eax
mov word [ebp - 0x94], ax
push 0x76
push 0
lea ecx, [ebp - 0x92]
push ecx
call fcn.1008df10
add esp, 0xc
cmp dword [ebp + 0x14], 0
jne 0x100b78b8
mov edx, dword [ebp + 0x10]
push edx
push 0x100e1c88
push 0x3c
lea eax, [ebp - 0x94]
push eax
call fcn.10069f70
add esp, 0x10
jmp 0x100b78d9
mov ecx, dword [ebp + 0x10]
add ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
push 0x100e1cb0
push 0x3c
lea eax, [ebp - 0x94]
push eax
call fcn.10069f70
add esp, 0x14
push 0xffffffffffffffff
lea ecx, [ebp - 0x94]
push ecx
lea edx, [ebp - 0x1dc]
push edx
call fcn.10069fa0
add esp, 0xc
mov eax, dword [ebp - 0x3ec]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x3ec]
mov eax, dword [edx + 0xc]
call eax
mov dword [ebp - 4], 0
push 0
lea ecx, [ebp - 0x404]
push ecx
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
mov edx, dword [ebp - 0x404]
and edx, 0x20
je 0x100b794b
mov eax, dword [ebp - 0x3ec]
mov dword [eax + 4], 0x66
mov ecx, dword [ebp - 0x3ec]
mov dword [ecx + 8], 0
mov dword [ebp - 4], 0xfffffffe
jmp 0x100b7bdd
cmp dword [ebp + 0xc], 0
je 0x100b7974
mov edx, dword [ebp + 0xc]
push edx
call fcn.100a03f4
add esp, 4
test eax, eax
jbe 0x100b7974
mov dword [ebp - 0x40c], 3
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x408], eax
push 0
push 0
mov ecx, dword [ebp - 0x408]
push ecx
mov edx, dword [ebp - 0x40c]
push edx
push 0x100e1d18
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x3fc], eax
cmp dword [ebp - 0x3fc], 0
jne 0x100b79c8
mov eax, dword [ebp - 0x3ec]
mov dword [eax + 4], 0x67
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x3ec]
mov dword [ecx + 8], eax
mov dword [ebp - 4], 0xfffffffe
jmp 0x100b7bdd
push 0
push 0x84004100
push 0xffffffffffffffff
lea edx, [ebp - 0x1dc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x3fc]
push ecx
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov dword [ebp - 0x3f0], eax
cmp dword [ebp - 0x3f0], 0
jne 0x100b7a20
mov edx, dword [ebp - 0x3ec]
mov dword [edx + 4], 0x68
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x3ec]
mov dword [ecx + 8], eax
mov dword [ebp - 4], 0xfffffffe
jmp 0x100b7bdd
xor edx, edx
mov word [ebp - 0x3e8], dx
push 0x208
push 0
lea eax, [ebp - 0x3e6]
push eax
call fcn.1008df10
add esp, 0xc
mov dword [ebp - 0x414], 0x208
push 0
lea ecx, [ebp - 0x414]
push ecx
mov edx, dword [ebp - 0x3e8]
push edx
push 0x2f
mov eax, dword [ebp - 0x3f0]
push eax
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov dword [ebp - 0x3f4], 0
push 0
lea ecx, [ebp - 0x3f8]
push ecx
lea edx, [ebp - 0x3f4]
push edx
push 0x20000013
mov eax, dword [ebp - 0x3f0]
push eax
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x100b7abc
cmp dword [ebp - 0x3f4], 0xc8
je 0x100b7ae4
cmp dword [ebp - 0x3f4], 0xce
je 0x100b7ae4
cmp dword [ebp - 0x3f4], 0x12e
je 0x100b7ae4
mov ecx, dword [ebp - 0x3ec]
mov dword [ecx + 4], 0x69
mov edx, dword [ebp - 0x3ec]
mov eax, dword [ebp - 0x3f4]
mov dword [edx + 8], eax
mov dword [ebp - 4], 0xfffffffe
jmp 0x100b7bdd
push 0
lea ecx, [ebp - 0x3f8]
push ecx
lea edx, [ebp - 0x410]
push edx
push 0x20000005
mov eax, dword [ebp - 0x3f0]
push eax
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x100b7b1b
mov ecx, dword [ebp - 0x3ec]
mov edx, dword [ebp - 0x410]
mov dword [ecx + 0x48], edx
jmp 0x100b7b28
mov eax, dword [ebp - 0x3ec]
mov dword [eax + 0x48], 0xffffffff
xor ecx, ecx
mov word [ebp - 0x114], cx
push 0x7e
push 0
lea edx, [ebp - 0x112]
push edx
call fcn.1008df10
add esp, 0xc
mov dword [ebp - 0x3f8], 0x80
push 0
lea eax, [ebp - 0x3f8]
push eax
lea ecx, [ebp - 0x114]
push ecx
push 0xb
mov edx, dword [ebp - 0x3f0]
push edx
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x100b7b88
lea eax, [ebp - 0x114]
push eax
mov ecx, dword [ebp - 0x3ec]
add ecx, 0x30
call fcn.10001432
jmp 0x100b7b96
mov ecx, dword [ebp - 0x3ec]
add ecx, 0x30
call fcn.10005503
mov dword [ebp - 0x400], 1
mov dword [ebp - 4], 0xfffffffe
jmp 0x100b7bdd
mov eax, dword [ebp - 0x3ec]
mov ecx, dword [ebp - 0x3fc]
mov dword [eax + 0x10], ecx
mov edx, dword [ebp - 0x3ec]
mov eax, dword [ebp - 0x3f0]
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 0x400]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.1008a9f7
mov esp, ebp
pop ebp
ret 0x10