Function at 0x41acb0
Capabilities:
Check internet connectivity via wininet
Create http request
Get http content length
Read data from internet
Receive data

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x4689db
push eax
mov eax, 0x287c
mov dword fs:[0], esp
call fcn.004420a0
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x30]
push 0
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x48]
rep stosd dword es:[edi], eax
call dword [0x46c27c]
push eax
lea ecx, [esp + 0x4c]
push str.Agent_ld
push ecx
call fcn.0044186a
mov al, byte [esp + 0x3c]
add esp, 0xc
test al, 4
push 0
push 0
push 0
jne 0x41ad1d
lea edx, [esp + 0x54]
push 4
push edx
jmp 0x41ad24
lea eax, [esp + 0x54]
push 0
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
test eax, eax
mov dword [esp + 0x10], eax
jne 0x41ad3c
mov eax, 0xfffffffe
jmp 0x41b01c
mov ecx, dword [str.Accept:___r_n_r_n]
mov edx, dword [0x47f53c]
mov eax, dword [0x47f540]
mov dword [esp + 0x38], ecx
mov ecx, dword [0x47f544]
mov dword [esp + 0x3c], edx
mov dl, byte [esp + 0x2b]
mov dword [esp + 0x44], ecx
push 0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x44], eax
mov byte [esp + 0x1c], dl
call fcn.00405c50
mov ebx, dword [esp + 0x289c]
push 0x47fc6c
push ebx
mov dword [esp + 0x289c], 0
call fcn.00441f40
add esp, 8
test eax, eax
je 0x41ade3
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x1c]
push ebp
call fcn.00407310
test al, al
je 0x41ae8e
mov edi, dword [esp + 0x1c]
mov ecx, ebp
mov eax, ecx
mov esi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x20], ebp
mov byte [ecx + ebp], 0
jmp 0x41ae8e
mov edi, str.http:__
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x1c]
push ebp
call fcn.00407310
test al, al
je 0x41ae29
mov edi, dword [esp + 0x1c]
mov ecx, ebp
mov edx, ecx
mov esi, str.http:__
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x20], ebp
mov byte [eax + ebp], 0
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x20]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
mov ecx, dword [0x46c634]
sub ecx, edx
cmp ecx, esi
ja 0x41ae4c
call fcn.00451e5b
test esi, esi
jbe 0x41ae8e
mov edx, dword [esp + 0x20]
push 0
lea ecx, [esp + 0x1c]
lea ebp, [edx + esi]
push ebp
call fcn.00407310
test al, al
je 0x41ae8e
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov ecx, esi
mov esi, ebx
lea edi, [edx + eax]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
call fcn.004072f0
mov esi, dword [esp + 0x1c]
test esi, esi
jne 0x41ae9b
mov esi, 0x46c630
push 0
lea ecx, [esp + 0x3c]
push 0x84000100
push ecx
call dword [0x46c228]
lea edx, [esp + 0x40]
push eax
mov eax, dword [esp + 0x1c]
push edx
push esi
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov esi, eax
xor ebp, ebp
cmp esi, ebp
jne 0x41af08
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [esp + 0x1c]
cmp ecx, ebp
je 0x41aefe
mov al, byte [ecx - 1]
test al, al
je 0x41aef4
cmp al, 0xff
je 0x41aef4
dec al
mov byte [ecx - 1], al
mov eax, 0xfffffffe
jmp 0x41b01c
dec ecx
push ecx
call fcn.00460f37
add esp, 4
mov eax, 0xfffffffe
jmp 0x41b01c
lea edx, [esp + 0x34]
push ebp
lea eax, [esp + 0x30]
push edx
push eax
push 0x20000005
push esi
mov dword [esp + 0x48], ebp
mov dword [esp + 0x40], ebp
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x41af2f
mov dword [esp + 0x2c], ebp
mov ecx, 0xa01
xor eax, eax
lea edi, [esp + 0x88]
mov ebx, dword [sym.imp.WININET.dll_InternetReadFile]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
lea edx, [esp + 0x88]
push ecx
push 0x2800
push edx
push esi
mov dword [esp + 0x24], ebp
call ebx
test eax, eax
je 0x41afa8
mov eax, dword [esp + 0x14]
test eax, eax
je 0x41afa8
add ebp, eax
mov eax, dword [esp + 0x28a4]
cmp ebp, eax
jae 0x41afa8
mov ecx, 0xa01
xor eax, eax
lea edi, [esp + 0x88]
mov dword [esp + 0x14], 0
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
lea ecx, [esp + 0x88]
push eax
push 0x2800
push ecx
push esi
call ebx
test eax, eax
jne 0x41af62
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
mov edx, dword [esp + 0x10]
push edx
call esi
mov eax, dword [esp + 0x28a0]
mov ecx, dword [esp + 0x1c]
cmp ebp, 0x3c00
mov dword [eax], ebp
jbe 0x41aff9
test ecx, ecx
je 0x41aff2
mov al, byte [ecx - 1]
test al, al
je 0x41afe8
cmp al, 0xff
je 0x41afe8
dec al
mov byte [ecx - 1], al
mov eax, 1
jmp 0x41b01c
dec ecx
push ecx
call fcn.00460f37
add esp, 4
mov eax, 1
jmp 0x41b01c
test ecx, ecx
je 0x41b019
mov al, byte [ecx - 1]
test al, al
je 0x41b00f
cmp al, 0xff
je 0x41b00f
dec al
mov byte [ecx - 1], al
jmp 0x41b019
dec ecx
push ecx
call fcn.00460f37
add esp, 4
or eax, 0xffffffff
mov ecx, dword [esp + 0x288c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2888
ret