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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x16c4
call fcn.1006f8b0
mov eax, dword [0x10138e70]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov dword [ebp - 0x16c4], edi
mov dword [ebp - 0x16c0], eax
test edi, edi
jne 0x1002ef15
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006f41a
mov esp, ebp
pop ebp
ret 8
cmp dword [eax + 0x14], 0x10
mov dword [eax + 0x10], 0
jb 0x1002ef24
mov eax, dword [eax]
mov byte [eax], 0
xor eax, eax
push ebx
push 0xffe
push eax
mov word [ebp - 0x16a8], ax
xor ebx, ebx
lea eax, [ebp - 0x16a6]
mov dword [ebp - 0x16b8], 0
push eax
mov dword [ebp - 0x16b0], 0
mov dword [ebp - 0x16ac], ebx
call fcn.1006ff30
push edi
lea eax, [ebp - 0x16a8]
push 0x800
push eax
call fcn.1006e6e1
xor eax, eax
push 0xc6
push eax
mov word [ebp - 0xcc], ax
lea eax, [ebp - 0xca]
push eax
call fcn.1006ff30
lea eax, [esi + 0x88a4]
add esp, 0x24
cmp dword [eax + 0x14], 8
jb 0x1002ef9d
mov eax, dword [eax]
push eax
push dword [esi + 0x88a0]
lea eax, [ebp - 0xcc]
push str._d__s
push eax
call fcn.1000fa30
add esp, 0x10
lea eax, [ebp - 0xcc]
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov edi, eax
mov dword [ebp - 0x16b4], edi
test edi, edi
je 0x1002f1b2
lea ecx, [ecx]
push 4
lea eax, [ebp - 0x16bc]
mov dword [ebp - 0x16bc], 0xbb8
push eax
push 2
push edi
call dword [sym.imp.WININET.dll_InternetSetOptionW]
push 0
push SysReAllocString
push 0
push 0
lea eax, [ebp - 0x16a8]
push eax
push edi
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov esi, eax
test esi, esi
je 0x1002f1a5
push 0
lea eax, [ebp - 0x16ac]
mov dword [ebp - 0x16ac], 4
push eax
lea eax, [ebp - 0x16b8]
push eax
push 0x20000013
push esi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x1002f19a
mov eax, dword [ebp - 0x16b8]
cmp eax, 0xc8
je 0x1002f105
cmp eax, 0x12d
je 0x1002f070
cmp eax, 0x12e
jne 0x1002f19a
push 0x1000
lea eax, [ebp - 0x16a8]
push 0
push eax
call fcn.1006ff30
add esp, 0xc
mov dword [ebp - 0x16ac], 0x800
lea eax, [ebp - 0x16ac]
push 0
push eax
lea eax, [ebp - 0x16a8]
push eax
push 0x21
push esi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x1002f19a
push dword [ebp - 0x16c4]
lea eax, [ebp - 0x16a8]
push 0x800
push eax
call fcn.1006e6e1
add esp, 0xc
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xcc]
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov edi, eax
mov dword [ebp - 0x16b4], eax
test edi, edi
jne 0x1002efe0
mov ebx, dword [sym.imp.WININET.dll_InternetCloseHandle]
push esi
call ebx
jmp 0x1002f1ab
push 0
lea eax, [ebp - 0x16ac]
mov dword [ebp - 0x16ac], 4
push eax
lea eax, [ebp - 0x16b0]
push eax
push 0x20000005
push esi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x1002f19a
lea eax, [ebp - 0x16ac]
push eax
push 0x5dc
lea eax, [ebp - 0x6a8]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x1002f19a
mov edi, dword [ebp - 0x16c0]
mov eax, dword [ebp - 0x16ac]
test eax, eax
je 0x1002f194
cmp ebx, dword [ebp - 0x16b0]
je 0x1002f194
push eax
add ebx, eax
mov ecx, edi
lea eax, [ebp - 0x6a8]
push eax
call fcn.10006760
lea eax, [ebp - 0x16ac]
push eax
push 0x5dc
lea eax, [ebp - 0x6a8]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x1002f153
mov edi, dword [ebp - 0x16b4]
mov ebx, dword [sym.imp.WININET.dll_InternetCloseHandle]
push esi
call ebx
jmp 0x1002f1ab
mov ebx, dword [sym.imp.WININET.dll_InternetCloseHandle]
test edi, edi
je 0x1002f1b2
push edi
call ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x16b0]
xor ecx, ebp
pop ebx
pop edi
pop esi
call fcn.1006f41a
mov esp, ebp
pop ebp
ret 8