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

Disassembly:
mov eax, 0x1824
call fcn.004186a0
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.00405f50
push ebx
mov ecx, ebp
call fcn.00408a20
test eax, eax
jne 0x4087a0
mov eax, SysReAllocStringLen
jmp 0x4089ff
xor ebp, ebp
cmp dword [ebx + 0x44], ebp
je 0x4087ae
mov esi, ebx
call fcn.00408b60
mov ecx, ebx
call fcn.00408230
test eax, eax
je 0x4089fc
cmp dword [ebx + 0x40], ebp
je 0x4087d3
mov esi, ebx
call fcn.00408b60
mov eax, 2
jmp 0x4089ff
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 0x4089ec
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 0x408878
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, ebx
mov dword [ebx + 0x50], eax
call fcn.00408b60
mov ebx, dword [ebx + 0x50]
sub ebx, 0x2ee2
je 0x40886e
sub ebx, 5
je 0x408864
sub ebx, 0x16
jne 0x4089fc
mov eax, reloc.OLEAUT32.dll_VariantClear
jmp 0x4089ff
mov eax, VariantInit
jmp 0x4089ff
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 0x4089ec
mov eax, dword [esp + 0x18]
cmp eax, 0xc8
je 0x408929
cmp eax, 0x12c
jbe 0x4089f5
cmp eax, 0x12e
ja 0x4089f5
push 0x800
lea edx, [esp + 0x26]
xor ecx, ecx
push ebp
push edx
mov word [esp + 0x2c], cx
call fcn.00412210
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 0x4089ec
lea edx, [esp + 0x20]
lea edi, [ebx + 0x48]
call fcn.00405e10
mov eax, dword [ebx + 0xc]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebx + 0xc], ebp
mov eax, 1
jmp 0x4089ff
cmp dword [ebx + 0x40], ebp
jne 0x4087c2
push 0x1000
lea ecx, [esp + 0x82c]
push ebp
push ecx
call fcn.00412210
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 0x4087c2
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 0x4089ec
mov eax, dword [esp + 0x10]
test eax, eax
jbe 0x4089cc
mov edx, dword [edi]
add edx, eax
cmp edx, ebp
ja 0x4089b6
push eax
lea eax, [esp + 0x82c]
push eax
push esi
call fcn.00412700
mov eax, dword [esp + 0x1c]
add dword [edi], eax
add esp, 0xc
add esi, eax
test eax, eax
ja 0x408954
jmp 0x4089cc
sub ebp, dword [edi]
lea ecx, [esp + 0x828]
push ebp
push ecx
push esi
call fcn.00412700
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 0x4089ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x50], eax
mov esi, ebx
call fcn.00408b60
or eax, 0xffffffff
mov ecx, dword [esp + 0x182c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040b1b0
add esp, 0x1824
ret 8