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

Disassembly:
mov eax, 0x1818
call fcn.100164d0
mov eax, dword [0x10027070]
xor eax, esp
mov dword [esp + 0x1814], eax
mov eax, dword [esp + 0x1820]
push ebx
push ebp
mov ebp, dword [esp + 0x1824]
push esi
mov ebx, ecx
push edi
lea esi, [ebx + 0x48]
mov dword [esp + 0x1c], eax
mov edi, edx
call fcn.10003cb0
mov ecx, ebp
call fcn.10006900
test eax, eax
jne 0x1000667f
mov eax, SysReAllocString
jmp 0x100068de
xor ebp, ebp
cmp dword [ebx + 0x44], ebp
je 0x1000668d
mov esi, ebx
call fcn.10006a40
mov ecx, ebx
call fcn.10006120
test eax, eax
je 0x100068db
cmp dword [ebx + 0x40], ebp
je 0x100066b2
mov esi, ebx
call fcn.10006a40
mov eax, 2
jmp 0x100068de
mov eax, dword [ebx + 0x24]
mov ecx, dword [ebx + 8]
push ebp
push 0x4400010
push 0x10028758
push ebp
push str.HTTP_1.0
push eax
push 0x10024da4
push ecx
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [ebx + 0xc], eax
cmp eax, ebp
je 0x100068cb
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 0x10006757
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, ebx
mov dword [ebx + 0x50], eax
call fcn.10006a40
mov ebx, dword [ebx + 0x50]
sub ebx, 0x2ee2
je 0x1000674d
sub ebx, 5
je 0x10006743
sub ebx, 0x16
jne 0x100068db
mov eax, reloc.OLEAUT32.dll_VariantClear
jmp 0x100068de
mov eax, VariantInit
jmp 0x100068de
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 0x100068cb
mov eax, dword [esp + 0x18]
cmp eax, 0xc8
je 0x10006808
cmp eax, 0x12c
jbe 0x100068d4
cmp eax, 0x12e
ja 0x100068d4
push 0x800
lea edx, [esp + 0x26]
xor ecx, ecx
push ebp
push edx
mov word [esp + 0x2c], cx
call fcn.10010490
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 0x100068cb
lea edx, [esp + 0x20]
lea edi, [ebx + 0x48]
call fcn.10003b70
mov eax, dword [ebx + 0xc]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebx + 0xc], ebp
mov eax, 1
jmp 0x100068de
cmp dword [ebx + 0x40], ebp
jne 0x100066a1
push 0x1000
lea ecx, [esp + 0x828]
push ebp
push ecx
call fcn.10010490
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 0x100066a1
mov ecx, dword [ebx + 0xc]
lea edx, [esp + 0x10]
push edx
push 0xfff
lea eax, [esp + 0x82c]
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x100068cb
mov eax, dword [esp + 0x10]
test eax, eax
jbe 0x100068ab
mov edx, dword [edi]
add edx, eax
cmp edx, ebp
ja 0x10006895
push eax
lea eax, [esp + 0x828]
push eax
push esi
call fcn.10010510
mov eax, dword [esp + 0x1c]
add dword [edi], eax
add esp, 0xc
add esi, eax
test eax, eax
ja 0x10006833
jmp 0x100068ab
sub ebp, dword [edi]
lea ecx, [esp + 0x824]
push ebp
push ecx
push esi
call fcn.10010510
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 0x100068de
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebx + 0x50], eax
mov esi, ebx
call fcn.10006a40
or eax, 0xffffffff
mov ecx, dword [esp + 0x1824]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100090c2
add esp, 0x1818
ret 8