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

Disassembly:
mov eax, 0x1824
call fcn.00417e10
mov eax, dword [0x425074]
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.004056c0
push ebx
mov ecx, ebp
call fcn.00408180
test eax, eax
jne 0x407f00
mov eax, SysReAllocStringLen
jmp 0x40815f
xor ebp, ebp
cmp dword [ebx + 0x44], ebp
je 0x407f0e
mov esi, ebx
call fcn.004082c0
mov ecx, ebx
call fcn.00407990
test eax, eax
je 0x40815c
cmp dword [ebx + 0x40], ebp
je 0x407f33
mov esi, ebx
call fcn.004082c0
mov eax, 2
jmp 0x40815f
mov eax, dword [ebx + 0x24]
mov ecx, dword [ebx + 8]
push ebp
push 0x4400010
push 0x426740
push ebp
push str.HTTP_1.0
push eax
push 0x422d8c
push ecx
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [ebx + 0xc], eax
cmp eax, ebp
je 0x40814c
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 0x407fd8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, ebx
mov dword [ebx + 0x50], eax
call fcn.004082c0
mov ebx, dword [ebx + 0x50]
sub ebx, 0x2ee2
je 0x407fce
sub ebx, 5
je 0x407fc4
sub ebx, 0x16
jne 0x40815c
mov eax, reloc.OLEAUT32.dll_VariantClear
jmp 0x40815f
mov eax, VariantInit
jmp 0x40815f
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 0x40814c
mov eax, dword [esp + 0x18]
cmp eax, 0xc8
je 0x408089
cmp eax, 0x12c
jbe 0x408155
cmp eax, 0x12e
ja 0x408155
push 0x800
lea edx, [esp + 0x26]
xor ecx, ecx
push ebp
push edx
mov word [esp + 0x2c], cx
call fcn.00411980
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 0x40814c
lea edx, [esp + 0x20]
lea edi, [ebx + 0x48]
call fcn.004055a0
mov eax, dword [ebx + 0xc]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebx + 0xc], ebp
mov eax, 1
jmp 0x40815f
cmp dword [ebx + 0x40], ebp
jne 0x407f22
push 0x1000
lea ecx, [esp + 0x82c]
push ebp
push ecx
call fcn.00411980
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 0x407f22
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 0x40814c
mov eax, dword [esp + 0x10]
test eax, eax
jbe 0x40812c
mov edx, dword [edi]
add edx, eax
cmp edx, ebp
ja 0x408116
push eax
lea eax, [esp + 0x82c]
push eax
push esi
call fcn.00411e70
mov eax, dword [esp + 0x1c]
add dword [edi], eax
add esp, 0xc
add esi, eax
test eax, eax
ja 0x4080b4
jmp 0x40812c
sub ebp, dword [edi]
lea ecx, [esp + 0x828]
push ebp
push ecx
push esi
call fcn.00411e70
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 0x40815f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x50], eax
mov esi, ebx
call fcn.004082c0
or eax, 0xffffffff
mov ecx, dword [esp + 0x182c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040a920
add esp, 0x1824
ret 8