Function at 0x401490
Capabilities:
Check http status code
Create http request
Get http content length
Read data from internet
Receive data
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x43a02c
mov eax, dword fs:[0]
push eax
mov eax, 0x4100
call fcn.00427550
mov eax, dword [0x44e848]
xor eax, esp
mov dword [esp + 0x40fc], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44e848]
xor eax, esp
push eax
lea eax, [esp + 0x4114]
mov dword fs:[0], eax
mov eax, dword [esp + 0x412c]
mov dword [esp + 0x50], eax
mov ebx, dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov dword [esp + 0x411c], 1
jmp 0x4014f0
push 0x80
lea ecx, [esp + 0x4094]
push 0
push ecx
call fcn.00427580
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea edx, [esp + 0x4094]
push str.Agent_ld
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0
push 0
push 0
push 0
lea eax, [esp + 0x40a0]
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov ebp, eax
test ebp, ebp
je 0x4015d2
mov ecx, 8
mov esi, str.Accept:___r_n_r_n
lea edi, [esp + 0x4070]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x3c]
mov dword [esp + 0x18], 0
call fcn.0040b1b1
mov esi, dword [esp + 0x4124]
xor edi, edi
push edi
push 0xc0000000
lea ecx, [esp + 0x4078]
push ecx
mov byte [esp + 0x4128], 2
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
lea edx, [esp + 0x407c]
push edx
push esi
push ebp
call ebx
mov esi, eax
cmp esi, edi
jne 0x4015f6
push ebp
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [0x44d01c]
mov ecx, eax
dec eax
test ecx, ecx
mov dword [0x44d01c], eax
mov byte [esp + 0x411c], 1
lea ecx, [esp + 0x3c]
je 0x401891
call fcn.0040b28c
jmp 0x4014f0
mov eax, dword [esp + 0x4124]
add eax, 0xfffffff0
mov byte [esp + 0x411c], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x4018b5
push edi
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x34]
push edx
push 0x20000013
mov dword [esp + 0x30], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x2c], edi
mov edi, dword [sym.imp.WININET.dll_HttpQueryInfoW]
push esi
mov dword [esp + 0x4c], 4
call edi
mov eax, dword [esp + 0x2c]
cmp eax, 0x194
je 0x401879
cmp eax, 0x193
je 0x401879
mov eax, dword [esp + 0x4128]
xor ebx, ebx
push ebx
push 0x1001
push eax
lea ecx, [esp + 0x48]
call fcn.0040b5b2
test eax, eax
jne 0x40169d
lea ecx, [esp + 0x3c]
call fcn.0040b14b
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push ebp
call esi
lea ecx, [esp + 0x3c]
mov byte [esp + 0x411c], 1
call fcn.0040b28c
lea ecx, [esp + 0x4124]
call fcn.00401200
lea ecx, [esp + 0x4128]
call fcn.00401200
jmp 0x4018ef
push ebx
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x28]
push edx
push 0x20000005
push esi
call edi
test eax, eax
jne 0x4016b8
mov dword [esp + 0x20], ebx
lea ecx, [esp + 0x24]
call fcn.004011d0
lea ecx, [esp + 0x28]
call fcn.004011d0
lea ecx, [esp + 0x4c]
call fcn.004011d0
push 0x4000
lea eax, [esp + 0x74]
push ebx
push eax
mov byte [esp + 0x4128], 5
call fcn.00427580
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
push 0x1000
lea edx, [esp + 0x78]
push edx
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x401816
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40181a
mov ecx, dword [esp + 0x50]
add dword [esp + 0x1c], eax
test ecx, ecx
je 0x401787
mov eax, dword [esp + 0x1c]
fild dword [esp + 0x1c]
test eax, eax
jge 0x401736
fadd dword [0x43d6d8]
mov edx, dword [esp + 0x20]
fild dword [esp + 0x20]
test edx, edx
jge 0x401748
fadd dword [0x43d6d8]
fdivp st(1)
fmul qword [0x43d6d0]
fnstcw word [esp + 0x16]
movzx eax, word [esp + 0x16]
or eax, 0xc00
mov dword [esp + 0x30], eax
fldcw word [esp + 0x30]
fistp qword [esp + 0x30]
mov edi, dword [esp + 0x30]
fldcw word [esp + 0x16]
cmp edi, ebx
je 0x401785
push 0
push edi
push 0x464
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
mov ebx, edi
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0x28]
push 0x43d6c8
push ecx
call fcn.00401450
mov eax, dword [esp + 0x30]
mov ecx, dword [eax - 0xc]
add esp, 0xc
push ecx
push eax
lea ecx, [esp + 0x30]
call fcn.00401390
mov edx, dword [esp + 0x18]
push edx
lea eax, [esp + 0x74]
push eax
lea ecx, [esp + 0x44]
call fcn.0040aee7
push 1
push 0
push 0
push 0
lea ecx, [esp + 0x64]
push ecx
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x4017f0
lea edx, [esp + 0x54]
push edx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x54]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [esp + 0x18]
push ecx
push 0x1000
lea edx, [esp + 0x78]
push edx
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x40170c
xor bl, bl
jmp 0x40181c
mov bl, 1
lea ecx, [esp + 0x3c]
call fcn.0040b14b
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push ebp
call esi
lea ecx, [esp + 0x4c]
call fcn.00401200
lea ecx, [esp + 0x28]
call fcn.00401200
lea ecx, [esp + 0x24]
call fcn.00401200
lea ecx, [esp + 0x3c]
mov byte [esp + 0x411c], 1
call fcn.0040b28c
lea ecx, [esp + 0x4124]
call fcn.00401200
lea ecx, [esp + 0x4128]
call fcn.00401200
mov al, bl
jmp 0x4018f1
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push ebp
call esi
mov byte [esp + 0x411c], 1
lea ecx, [esp + 0x3c]
call fcn.0040b28c
mov eax, dword [esp + 0x4124]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x411c], 0
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4018c1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x4128]
add eax, 0xfffffff0
mov dword [esp + 0x411c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4018ef
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
mov ecx, dword [esp + 0x4114]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x40fc]
xor ecx, esp
call fcn.00427533
add esp, 0x410c
ret 0xc