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

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x479256
push eax
mov eax, 0x10088
mov dword fs:[0], esp
call fcn.00450ed0
mov eax, dword [0x49c220]
push edi
mov dword [esp + 0x10088], eax
mov edi, ecx
mov al, byte [edi + 0x338]
test al, al
mov dword [esp + 0x10094], 1
jne 0x425de0
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 0x425dac
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 0x425dd8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
or eax, 0xffffffff
jmp 0x4261b9
push ebx
push esi
push 0
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
mov esi, dword [sym.imp.WINMM.dll_timeGetTime]
call esi
push eax
lea ecx, [esp + 0x10054]
push str.Agent_ld
push ecx
call fcn.0045140f
mov al, byte [esp + 0x40]
add esp, 0xc
test al, 4
push 0
push 0
push 0
jne 0x425e33
push 4
lea edx, [esp + 0x10060]
push edx
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ebx, eax
mov dword [esp + 0x14], ebx
jmp 0x425e49
push 0
lea eax, [esp + 0x10060]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esp + 0x14], eax
mov ebx, eax
test ebx, ebx
jne 0x425eb4
push str.Internetl
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esp + 0x100a4]
add eax, 0xfffffff0
mov byte [esp + 0x1009c], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x425e80
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x100a8]
add eax, 0xfffffff0
mov dword [esp + 0x1009c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x425eac
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
or eax, 0xffffffff
jmp 0x4261b7
mov eax, dword [str.Accept:___r_n_r_n]
mov ecx, dword [0x482ad0]
mov edx, dword [0x482ad4]
mov dword [esp + 0x10040], eax
mov eax, dword [0x482ad8]
mov dword [esp + 0x10044], ecx
push ebp
lea ecx, [esp + 0x24]
mov dword [esp + 0x1004c], edx
mov dword [esp + 0x10050], eax
call fcn.00466fcf
push 0
push 0x84000100
lea ecx, [esp + 0x1004c]
push ecx
mov byte [esp + 0x100ac], 2
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebp, dword [esp + 0x100b0]
push eax
lea edx, [esp + 0x10050]
push edx
push ebp
push ebx
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
test eax, eax
mov dword [esp + 0x20], eax
jne 0x425f9f
push 0x482abc
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [esp + 0x24]
mov byte [esp + 0x100a0], 1
call fcn.0046700e
lea eax, [ebp - 0x10]
mov byte [esp + 0x100a0], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x425f6b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x100ac]
add eax, 0xfffffff0
mov dword [esp + 0x100a0], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x425f97
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
or eax, 0xffffffff
jmp 0x4261b6
mov ebx, dword [esp + 0x100ac]
push 0
push 0x1001
push ebx
lea ecx, [esp + 0x30]
call fcn.00467267
test eax, eax
jne 0x426001
push 0x482a94
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [esp + 0x24]
mov byte [esp + 0x100a0], 1
call fcn.0046700e
lea eax, [ebp - 0x10]
mov byte [esp + 0x100a0], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x425ff9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [ebx - 0x10]
jmp 0x425f75
mov edx, dword [esp + 0x20]
xor ebp, ebp
push ebp
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0x20000005
push edx
mov dword [esp + 0x28], ebp
mov dword [esp + 0x48], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x426032
mov dword [esp + 0x14], ebp
push 0x47e1c1
lea ecx, [esp + 0x14]
call fcn.004025d0
mov byte [esp + 0x100a0], 3
mov ebx, 0xa
call esi
mov dword [esp + 0x3c], eax
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x1c]
push eax
push 0x4000
lea ecx, [esp + 0x4c]
push ecx
push edx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x4261dd
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x42616e
push eax
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x2c]
call fcn.00466d22
add ebp, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x4260e5
mov esi, ebp
imul esi, esi, 0x64
xor edx, edx
mov eax, esi
div ecx
lea ecx, [edi + 0x2c4]
push eax
call fcn.00432270
xor edx, edx
mov eax, esi
div dword [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
push 0x482a84
push ecx
call fcn.00402460
mov edx, dword [esp + 0x1c]
add esp, 0xc
push edx
push 0x413
mov ecx, edi
call fcn.00462034
mov esi, dword [sym.imp.WINMM.dll_timeGetTime]
test ebp, ebp
mov dword [esp + 0x40], ebp
fild dword [esp + 0x40]
jge 0x4260f7
fadd dword [0x482a80]
test ebx, ebx
mov dword [esp + 0x40], ebx
fild dword [esp + 0x40]
jge 0x426109
fadd dword [0x482a80]
fmul dword [0x482a7c]
sub esp, 8
lea eax, [esp + 0x18]
fdivp st(1)
fmul dword [0x482a78]
fstp qword [esp]
push str._.2fKB_s
push eax
call fcn.00402460
add esp, 0x10
push 0x482a44
push 0x414
mov ecx, edi
call fcn.00462034
mov ecx, dword [esp + 0x10]
push ecx
push 0x414
mov ecx, edi
call fcn.00462034
call esi
sub eax, dword [esp + 0x3c]
mov ebx, eax
jne 0x426160
mov ebx, 0xa
mov eax, dword [edi + 0x340]
test eax, eax
jne 0x426053
lea ecx, [esp + 0x24]
call fcn.00466f6d
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
lea ecx, [esp + 0x10]
call fcn.004019d0
lea ecx, [esp + 0x24]
mov byte [esp + 0x100a0], 1
call fcn.0046700e
lea ecx, [esp + 0x100a8]
call fcn.004019d0
lea ecx, [esp + 0x100ac]
call fcn.004019d0
xor eax, eax
pop ebp
pop esi
pop ebx
mov ecx, dword [esp + 0x1008c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x10088]
pop edi
call fcn.0045086e
add esp, 0x10094
ret 8
push 0x482a38
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [esp + 0x24]
call fcn.00466f6d
lea ecx, [esp + 0x10]
call fcn.004019d0
lea ecx, [esp + 0x24]
mov byte [esp + 0x100a0], 1
call fcn.0046700e
lea ecx, [esp + 0x100a8]
call fcn.004019d0
lea ecx, [esp + 0x100ac]
call fcn.004019d0
or eax, 0xffffffff
jmp 0x4261b6