Function at 0x10001175
Capabilities:
Get http response content encoding
Read data from internet
Receive data

Disassembly:
push 0x178
mov eax, 0x1001039c
call fcn.1000e8e7
mov edi, ecx
mov dword [ebp - 0x14c], edi
mov eax, dword [ebp + 8]
lea esi, [edi + 0x30]
xor ecx, ecx
mov dword [ebp - 0x138], eax
lea ebx, [edi + 0x34]
mov dword [ebp - 0x140], esi
cmp dword [edi + 0x28], ecx
jne 0x100011bf
mov eax, 0x7800
push eax
mov dword [esi], eax
call fcn.1000270d
pop ecx
xor ecx, ecx
mov dword [edi + 0x28], eax
mov dword [ebx], ecx
jmp 0x100011c5
mov dword [ebp - 0x140], esi
mov eax, dword [ebx]
push ecx
push ecx
push ecx
push ecx
push dword [ebp - 0x138]
mov dword [ebp - 0x144], eax
mov dword [ebp - 0x11c], ecx
call dword [sym.imp.WININET.dll_InternetSetFilePointer]
lea eax, [ebp - 0x11c]
push eax
mov eax, dword [edi + 0x28]
add eax, dword [ebx]
push 0x3e8
push eax
push dword [ebp - 0x138]
call dword [sym.imp.WININET.dll_InternetReadFile]
mov edx, dword [ebp - 0x11c]
add dword [ebx], edx
mov dword [ebp - 0x148], eax
mov eax, dword [esi]
mov ecx, eax
sub ecx, dword [ebx]
cmp ecx, 0x3e8
ja 0x10001253
add eax, 0x7800
push eax
mov dword [esi], eax
call fcn.1000270d
mov ecx, dword [ebx]
mov esi, eax
inc ecx
push ecx
push dword [edi + 0x28]
push esi
call fcn.100050e0
push dword [edi + 0x28]
call fcn.10002724
mov edx, dword [ebp - 0x11c]
add esp, 0x14
mov dword [edi + 0x28], esi
mov esi, dword [ebp - 0x140]
cmp dword [ebp - 0x148], 0
je 0x10001260
test edx, edx
jne 0x100011e3
push 0x104
lea eax, [ebp - 0x118]
mov dword [ebp - 0x11c], 0x103
push 0
push eax
call fcn.10003c40
add esp, 0xc
lea eax, [ebp - 0x11c]
push 0
push eax
lea eax, [ebp - 0x118]
push eax
push 0x1d
push dword [ebp - 0x138]
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x1000150a
lea eax, [ebp - 0x138]
xor ecx, ecx
push eax
push 0x100111b0
push 1
push ecx
lea eax, [ebp - 0x134]
mov dword [ebp - 0x138], ecx
push eax
mov dword [ebp - 0x13c], ecx
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x1000150a
cmp dword [ebp - 0x138], 0
je 0x1000150a
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x16c]
call fcn.1000184b
and dword [ebp - 4], 0
lea edx, [ebp - 0x16c]
lea ecx, [ebp - 0x184]
call fcn.10001006
mov edx, eax
mov byte [ebp - 4], 1
cmp dword [edx + 0x14], 8
jb 0x1000131a
mov edx, dword [edx]
mov eax, dword [ebp - 0x138]
lea esi, [ebp - 0x13c]
push esi
push str.text
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
lea ecx, [ebp - 0x184]
mov esi, eax
call fcn.10001c08
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x16c]
call fcn.10001bb9
test esi, esi
js 0x100014fe
cmp dword [ebp - 0x13c], 0
je 0x100014fe
mov eax, dword [ebx]
sub eax, dword [ebp - 0x144]
imul edi, eax, 7
push edi
call fcn.1000270d
mov edx, dword [ebp - 0x13c]
and dword [ebp - 0x120], 0
and dword [ebp - 0x124], 0
pop ecx
mov esi, dword [edx]
lea edx, [ebp - 0x120]
mov ecx, dword [ebx]
sub ecx, dword [ebp - 0x144]
push 0
push edx
lea edx, [ebp - 0x124]
mov dword [ebp - 0x148], eax
push edx
mov edx, dword [ebp - 0x13c]
push ecx
push eax
push edi
mov edi, dword [ebp - 0x14c]
mov eax, dword [edi + 0x28]
add eax, dword [ebp - 0x144]
push eax
push ecx
push 0
push edx
call dword [esi + 0x10]
test eax, eax
js 0x100014e6
mov ecx, dword [ebp - 0x140]
mov eax, dword [ebp - 0x120]
mov esi, dword [ebp - 0x144]
add eax, esi
cmp dword [ecx], eax
ja 0x10001486
add eax, 0x3e8
push eax
mov dword [ecx], eax
call fcn.1000270d
mov edx, eax
mov eax, dword [edi + 0x28]
mov dword [ebp - 0x154], edx
mov dword [ebp - 0x14c], eax
pop ecx
mov ecx, dword [ebp - 0x140]
mov ecx, dword [ecx]
mov dword [ebp - 0x150], ecx
test esi, esi
je 0x1000146e
test eax, eax
je 0x10001434
cmp ecx, esi
jb 0x10001434
push esi
push eax
push edx
call fcn.100050e0
add esp, 0xc
jmp 0x1000146e
push ecx
push 0
push edx
call fcn.10003c40
add esp, 0xc
cmp dword [ebp - 0x14c], 0
jne 0x10001456
call fcn.10005926
mov dword [eax], 0x16
jmp 0x10001469
cmp dword [ebp - 0x150], esi
jae 0x1000146e
call fcn.10005926
mov dword [eax], 0x22
call fcn.1000584c
push dword [edi + 0x28]
call fcn.10002724
mov eax, dword [ebp - 0x154]
pop ecx
mov ecx, dword [ebp - 0x140]
mov dword [edi + 0x28], eax
mov ecx, dword [ecx]
mov eax, dword [edi + 0x28]
sub ecx, esi
mov edx, dword [ebp - 0x120]
add eax, esi
test edx, edx
je 0x100014dc
test eax, eax
jne 0x100014aa
call fcn.10005926
mov dword [eax], 0x16
jmp 0x100014d7
cmp ecx, edx
jb 0x100014c0
push edx
push dword [ebp - 0x148]
push eax
call fcn.100050e0
add esp, 0xc
jmp 0x100014dc
push ecx
push 0
push eax
call fcn.10003c40
add esp, 0xc
call fcn.10005926
mov dword [eax], 0x22
call fcn.1000584c
mov eax, dword [ebp - 0x120]
add eax, esi
mov dword [ebx], eax
push dword [ebp - 0x148]
call fcn.10002724
mov eax, dword [ebp - 0x13c]
pop ecx
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x138]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [edi + 0x28]
mov ecx, dword [ebx]
mov byte [ecx + eax], 0
mov eax, dword [ebx]
sub eax, dword [ebp - 0x144]
call fcn.1000e8a5
ret 4