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

Disassembly:
push 0xffffffffffffffff
push 0x438a6b
mov eax, dword fs:[0]
push eax
mov eax, 0x10074
call fcn.004247f0
mov eax, dword [0x4495e0]
xor eax, esp
mov dword [esp + 0x10070], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4495e0]
xor eax, esp
push eax
lea eax, [esp + 0x10088]
mov dword fs:[0], eax
xor edi, edi
push edi
lea eax, [esp + 0x34]
push eax
mov dword [esp + 0x10098], 1
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
push 0x40
lea ecx, [esp + 0x10048]
push edi
push ecx
call fcn.00424640
add esp, 0xc
call dword [sym.imp.WINMM.dll_timeGetTime]
push eax
lea edx, [esp + 0x10048]
push str.Agent_ld
push edx
call fcn.004244eb
add esp, 0xc
push edi
mov ebx, 4
push edi
push edi
test byte [esp + 0x3c], bl
jne 0x405350
push ebx
lea eax, [esp + 0x10054]
push eax
jmp 0x405359
push edi
lea ecx, [esp + 0x10054]
push ecx
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ebp, eax
cmp ebp, edi
jne 0x4053c6
mov byte [esp + 0x10090], 0
mov eax, dword [esp + 0x10098]
add eax, 0xfffffff0
or ecx, 0xffffffff
lea edx, [eax + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x405390
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x10090], 0xffffffff
mov eax, dword [esp + 0x1009c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4053be
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
or eax, 0xffffffff
jmp 0x4055e5
mov ecx, dword [str.Accept:___r_n_r_n]
mov edx, dword [0x43fb94]
mov eax, dword [0x43fb98]
mov dword [esp + 0x10034], ecx
mov ecx, dword [0x43fb9c]
mov dword [esp + 0x10040], ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x10038], edx
mov dword [esp + 0x1003c], eax
call fcn.0041e203
push edi
push 0x84000100
lea edx, [esp + 0x1003c]
mov byte [esp + 0x10098], 2
mov esi, dword [esp + 0x100a0]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [esp + 0x10040]
push eax
push esi
push ebp
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov esi, eax
cmp esi, edi
jne 0x405478
push ebp
call dword [sym.imp.WININET.dll_InternetCloseHandle]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x10090], 1
call fcn.0041e30b
mov byte [esp + 0x10090], 0
mov eax, dword [esp + 0x10098]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x405384
mov ecx, dword [esp + 0x1009c]
push edi
push 0x1001
push ecx
lea ecx, [esp + 0x28]
call fcn.0041e65f
test eax, eax
jne 0x4054a9
lea ecx, [esp + 0x1c]
mov byte [esp + 0x10090], 1
call fcn.0041e30b
jmp 0x405365
push edi
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x20]
push edx
push 0x20000005
push esi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x40], ebx
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x4054d0
mov dword [esp + 0x18], edi
push 0x10000
lea eax, [esp + 0x38]
push edi
push eax
call fcn.00424640
mov ebx, dword [sym.imp.WININET.dll_InternetReadFile]
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
push 0x4000
lea edx, [esp + 0x3c]
push edx
push esi
call ebx
test eax, eax
je 0x405531
nop
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
test eax, eax
je 0x405568
push eax
lea eax, [esp + 0x38]
push eax
call fcn.0041df39
add edi, dword [esp + 0x14]
lea ecx, [esp + 0x14]
push ecx
push 0x4000
lea edx, [esp + 0x3c]
push edx
push esi
call ebx
test eax, eax
jne 0x405500
lea ecx, [esp + 0x1c]
call fcn.0041e19d
lea ecx, [esp + 0x1c]
mov byte [esp + 0x10090], 1
call fcn.0041e30b
lea ecx, [esp + 0x10098]
call fcn.00401200
lea ecx, [esp + 0x1009c]
call fcn.00401200
or eax, 0xffffffff
jmp 0x4055e5
call fcn.0041e19d
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push ebp
call esi
lea ecx, [esp + 0x1c]
mov byte [esp + 0x10090], 1
call fcn.0041e30b
mov byte [esp + 0x10090], 0
mov eax, dword [esp + 0x10098]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4055b5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x10090], 0xffffffff
mov eax, dword [esp + 0x1009c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4055e3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x10088]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x10070]
xor ecx, esp
call fcn.00422ad7
add esp, 0x10080
ret