Function at 0x4285c0
Capabilities:
Check http status code
Create http request
Get http content length
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43706b
mov eax, dword fs:[0]
push eax
sub esp, 0x52c
mov eax, dword [0x44500c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
push 0
push 0x43a7e9
mov dword [ebp - 0x51c], eax
call fcn.00408050
call dword [sym.imp.WINMM.dll_timeGetTime]
push eax
lea eax, [ebp - 0x50]
push str.Agent_ld
push eax
call fcn.0041d500
add esp, 0xc
mov dword [ebp - 0x500], 0
xor eax, eax
mov dword [ebp - 0x4fc], 7
lea ecx, [ebp - 0x510]
mov word [ebp - 0x510], ax
push eax
push 0x43b0d8
call fcn.00415360
lea ecx, [ebp - 0x510]
mov dword [ebp - 4], 0
call fcn.00430680
push 0
push 0
test eax, eax
lea eax, [ebp - 0x50]
push 0
jne 0x428680
push 4
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov edi, eax
mov dword [ebp - 0x514], edi
jmp 0x428691
push 0
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov edi, eax
mov dword [ebp - 0x514], eax
test edi, edi
jne 0x4286aa
push str.Internet_Open_Fail__n_r
call fcn.0041f7f0
add esp, 4
or ebx, 0xffffffff
jmp 0x4288f1
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionW]
lea eax, [ebp - 0x520]
push 4
push eax
push 2
push edi
mov dword [ebp - 0x520], 0x2ee0
call esi
push 4
lea eax, [ebp - 0x520]
push eax
push 6
push edi
call esi
push 4
lea eax, [ebp - 0x52c]
mov dword [ebp - 0x52c], 1
push eax
push 0x41
push edi
call esi
mov ecx, 0x27
lea edi, [ebp - 0xf0]
mov esi, str.Accept:___r_nAccept_Language:_zh_cn_r_nAccept_Encoding:_gzip__deflate_r_nUser_Agent:_Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0__MyIE2__.NET_CLR_1.1.4322_
lea eax, [ebp - 0xf0]
rep movsd dword es:[edi], dword [esi]
push 0
push 0x84000100
push eax
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, dword [ebp - 0x514]
push eax
lea eax, [ebp - 0xf0]
push eax
push dword [ebp - 0x51c]
push edi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov esi, eax
mov dword [ebp - 0x534], esi
test esi, esi
jne 0x42875f
push str.can_not_open_the_URL_
call fcn.0041f7f0
add esp, 4
call dword [0x4380e4]
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
or ebx, 0xffffffff
jmp 0x4288f1
push 0
lea eax, [ebp - 0x524]
mov dword [ebp - 0x518], 0
push eax
lea eax, [ebp - 0x530]
mov dword [ebp - 0x524], 4
push eax
push 0x20000013
push esi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x4288d8
cmp dword [ebp - 0x530], 0xc8
jne 0x4288d8
push 0
lea eax, [ebp - 0x524]
push eax
lea eax, [ebp - 0x518]
push eax
push 0x20000005
push esi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
neg eax
push 0x401
sbb eax, eax
and dword [ebp - 0x518], eax
lea eax, [ebp - 0x4f8]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x528]
push eax
push 0x400
lea eax, [ebp - 0x4f8]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x4288c7
nop word [eax + eax]
cmp dword [ebp - 0x528], 0
je 0x4288dd
lea esi, [ebp - 0x4f8]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x428826
mov edx, dword [ebx + 0x14]
sub esi, ecx
mov ecx, dword [ebx + 0x10]
mov eax, edx
sub eax, ecx
cmp esi, eax
ja 0x428866
lea eax, [ecx + esi]
mov dword [ebx + 0x10], eax
mov eax, ebx
cmp edx, 0x10
jb 0x42884c
mov eax, dword [ebx]
lea edi, [eax + ecx]
push esi
lea eax, [ebp - 0x4f8]
push eax
push edi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov byte [edi + esi], 0
jmp 0x428883
push esi
lea eax, [ebp - 0x4f8]
mov byte [ebp - 0x51c], 0
push eax
push dword [ebp - 0x51c]
mov ecx, ebx
push esi
call fcn.004086f0
push 0x401
lea eax, [ebp - 0x4f8]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov esi, dword [ebp - 0x534]
lea eax, [ebp - 0x528]
add esp, 0xc
push eax
push 0x400
lea eax, [ebp - 0x4f8]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x428810
mov edi, dword [ebp - 0x514]
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push edi
call esi
or ebx, 0xffffffff
jmp 0x4288f1
or ebx, 0xffffffff
jmp 0x4288e5
mov edi, dword [ebp - 0x514]
xor ebx, ebx
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push edi
call esi
mov edx, dword [ebp - 0x4fc]
cmp edx, 8
jb 0x428933
mov ecx, dword [ebp - 0x510]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x428929
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x428929
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00432a88
add esp, 8
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043284c
mov esp, ebp
pop ebp
ret 8