Function at 0x408600
Capabilities:
Check http status code
Read data from internet
Receive data
Send data
Send http request

Disassembly:
mov eax, 0x1824
call fcn.00418590
mov eax, dword [0x427074]
xor eax, esp
mov dword [esp + 0x181c], eax
mov eax, dword [esp + 0x182c]
push ebx
push ebp
mov ebp, dword [esp + 0x1830]
push esi
mov ebx, ecx
push edi
lea esi, [ebx + 0x48]
mov dword [esp + 0x1c], eax
mov edi, edx
call fcn.00405e40
push ebx
mov ecx, ebp
call fcn.004088d0
test eax, eax
jne 0x408650
mov eax, SysReAllocStringLen
jmp 0x4088af
xor ebp, ebp
cmp dword [ebx + 0x44], ebp
je 0x40865e
mov esi, ebx
call fcn.00408a10
mov ecx, ebx
call fcn.004080e0
test eax, eax
je 0x4088ac
cmp dword [ebx + 0x40], ebp
je 0x408683
mov esi, ebx
call fcn.00408a10
mov eax, 2
jmp 0x4088af
mov eax, dword [ebx + 0x24]
mov ecx, dword [ebx + 8]
push ebp
push 0x4400010
push 0x428740
push ebp
push str.HTTP_1.0
push eax
push 0x423e3c
push ecx
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [ebx + 0xc], eax
cmp eax, ebp
je 0x40889c
mov esi, dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
push 0x20000000
push 0xffffffffffffffff
push str.Accept_Encoding:_deflate_r_n
push eax
call esi
mov edx, dword [ebx + 0xc]
push 0x20000000
push 0xffffffffffffffff
push str.Accept_Language:_zh_cn
push edx
call esi
mov eax, dword [ebx + 0xc]
push ebp
push ebp
push ebp
push ebp
push eax
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
jne 0x408728
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, ebx
mov dword [ebx + 0x50], eax
call fcn.00408a10
mov ebx, dword [ebx + 0x50]
sub ebx, 0x2ee2
je 0x40871e
sub ebx, 5
je 0x408714
sub ebx, 0x16
jne 0x4088ac
mov eax, reloc.OLEAUT32.dll_VariantClear
jmp 0x4088af
mov eax, VariantInit
jmp 0x4088af
mov eax, dword [ebx + 0xc]
mov esi, dword [sym.imp.WININET.dll_HttpQueryInfoW]
push ebp
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push edx
push 0x20000013
push eax
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x28], 4
call esi
test eax, eax
je 0x40889c
mov eax, dword [esp + 0x18]
cmp eax, 0xc8
je 0x4087d9
cmp eax, 0x12c
jbe 0x4088a5
cmp eax, 0x12e
ja 0x4088a5
push 0x800
lea edx, [esp + 0x26]
xor ecx, ecx
push ebp
push edx
mov word [esp + 0x2c], cx
call fcn.004120b0
mov edx, dword [ebx + 0xc]
add esp, 0xc
push ebp
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x28]
push ecx
push 0x21
push edx
mov dword [esp + 0x28], 0x400
call esi
test eax, eax
je 0x40889c
lea edx, [esp + 0x20]
lea edi, [ebx + 0x48]
call fcn.00405d20
mov eax, dword [ebx + 0xc]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebx + 0xc], ebp
mov eax, 1
jmp 0x4088af
cmp dword [ebx + 0x40], ebp
jne 0x408672
push 0x1000
lea ecx, [esp + 0x82c]
push ebp
push ecx
call fcn.004120b0
mov ebp, dword [edi]
mov esi, dword [esp + 0x28]
add esp, 0xc
mov dword [edi], 0
cmp dword [ebx + 0x40], 0
mov dword [esp + 0x10], 0
jne 0x408672
mov ecx, dword [ebx + 0xc]
lea edx, [esp + 0x10]
push edx
push 0xfff
lea eax, [esp + 0x830]
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x40889c
mov eax, dword [esp + 0x10]
test eax, eax
jbe 0x40887c
mov edx, dword [edi]
add edx, eax
cmp edx, ebp
ja 0x408866
push eax
lea eax, [esp + 0x82c]
push eax
push esi
call fcn.004125a0
mov eax, dword [esp + 0x1c]
add dword [edi], eax
add esp, 0xc
add esi, eax
test eax, eax
ja 0x408804
jmp 0x40887c
sub ebp, dword [edi]
lea ecx, [esp + 0x828]
push ebp
push ecx
push esi
call fcn.004125a0
add esp, 0xc
add dword [edi], ebp
mov edx, dword [ebx + 0xc]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor eax, eax
cmp eax, dword [esp + 0x10]
mov dword [ebx + 0xc], 0
sbb eax, eax
and eax, reloc.OLEAUT32.dll_SysStringLen
jmp 0x4088af
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x50], eax
mov esi, ebx
call fcn.00408a10
or eax, 0xffffffff
mov ecx, dword [esp + 0x182c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040b0a0
add esp, 0x1824
ret 8