Function at 0x441370
Capabilities:
Access peb ldr_data
Check internet connectivity via wininet
Create http request
Get http content length
Print debug messages
Read data from internet
Receive data

Disassembly:
push 0xffffffffffffffff
push 0x47b106
mov eax, dword fs:[0]
push eax
mov eax, 0x1007c
mov dword fs:[0], esp
call fcn.00450ed0
mov eax, dword [0x49c220]
push ebx
push ebp
mov dword [esp + 0x10080], eax
push esi
mov dword [esp + 0x10090], 1
call fcn.004601e6
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea ebx, [eax + 0x10]
mov dword [esp + 0x30], ebx
push 0
lea eax, [esp + 0x30]
push eax
mov byte [esp + 0x10098], 2
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
mov ebp, dword [sym.imp.WINMM.dll_timeGetTime]
call ebp
push eax
lea ecx, [esp + 0x10048]
push str.Agent_ld
push ecx
call fcn.0045140f
mov al, byte [esp + 0x38]
add esp, 0xc
test al, 4
push 0
push 0
push 0
jne 0x441415
push 4
lea edx, [esp + 0x10054]
push edx
call dword [sym.imp.WININET.dll_InternetOpenA]
mov esi, eax
mov dword [esp + 0xc], esi
jmp 0x44142b
push 0
lea eax, [esp + 0x10054]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esp + 0xc], eax
mov esi, eax
test esi, esi
jne 0x4414bd
push str.Internetl
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea eax, [ebx - 0x10]
mov byte [esp + 0x10090], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x441460
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10098]
add eax, 0xfffffff0
mov byte [esp + 0x10090], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x441489
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x1009c]
add eax, 0xfffffff0
mov dword [esp + 0x10090], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4414b5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
or eax, 0xffffffff
jmp 0x441751
mov eax, dword [str.Accept:___r_n_r_n]
mov ecx, dword [0x482ad0]
mov edx, dword [0x482ad4]
mov dword [esp + 0x10034], eax
mov eax, dword [0x482ad8]
mov dword [esp + 0x10038], ecx
push edi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x10040], edx
mov dword [esp + 0x10044], eax
call fcn.00466fcf
push 0
push 0x84000100
lea ecx, [esp + 0x10040]
push ecx
mov byte [esp + 0x100a0], 3
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, dword [esp + 0x100a4]
push eax
lea edx, [esp + 0x10044]
push edx
push edi
push esi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov esi, eax
test esi, esi
jne 0x4415cc
push 0x4853d0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x10094], 2
call fcn.0046700e
lea eax, [ebx - 0x10]
mov byte [esp + 0x10094], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x441576
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [edi - 0x10]
mov byte [esp + 0x10094], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x441598
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x100a0]
add eax, 0xfffffff0
mov dword [esp + 0x10094], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4415c4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
or eax, 0xffffffff
jmp 0x441750
mov eax, dword [esp + 0x100a0]
push 0
push 0x1001
push eax
lea ecx, [esp + 0x28]
call fcn.00467267
test eax, eax
jne 0x4415f2
push 0x4853bc
jmp 0x44153d
xor edi, edi
push edi
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0x20000005
push esi
mov dword [esp + 0x28], edi
mov dword [esp + 0x40], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x44161f
mov dword [esp + 0x14], edi
call ebp
mov edi, dword [sym.imp.WININET.dll_InternetReadFile]
lea edx, [esp + 0x18]
push edx
push 0x4000
lea eax, [esp + 0x40]
push eax
push esi
call edi
test eax, eax
je 0x44166f
lea ecx, [ecx]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4416b2
push eax
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x24]
call fcn.00466d22
call ebp
lea edx, [esp + 0x18]
push edx
push 0x4000
lea eax, [esp + 0x40]
push eax
push esi
call edi
test eax, eax
jne 0x441640
lea ecx, [esp + 0x1c]
call fcn.00466f6d
lea ecx, [esp + 0x1c]
mov byte [esp + 0x10094], 2
call fcn.0046700e
lea ecx, [esp + 0x34]
call fcn.004019d0
lea ecx, [esp + 0x1009c]
call fcn.004019d0
lea ecx, [esp + 0x100a0]
call fcn.004019d0
or eax, 0xffffffff
jmp 0x441750
lea ecx, [esp + 0x1c]
call fcn.00466f6d
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x10094], 2
call fcn.0046700e
lea eax, [ebx - 0x10]
mov byte [esp + 0x10094], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4416f9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x1009c]
add eax, 0xfffffff0
mov byte [esp + 0x10094], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x441722
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x100a0]
add eax, 0xfffffff0
mov dword [esp + 0x10094], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x44174e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
pop edi
mov ecx, dword [esp + 0x10088]
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x1007c]
pop ebx
call fcn.0045086e
add esp, 0x10088
ret