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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x429b46
mov eax, dword fs:[0]
push eax
sub esp, 0x170
mov eax, dword [0x43b068]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x28], 0
mov edi, dword [ebp + 8]
mov dword [ebp - 0x144], edi
jne 0x4012e9
push 0x7800
mov dword [esi + 0x30], 0x7800
call fcn.0040eb7e
add esp, 4
mov dword [esi + 0x28], eax
mov dword [esi + 0x34], 0
mov dword [ebp - 0x148], 0
jmp 0x4012f2
mov eax, dword [esi + 0x34]
mov dword [ebp - 0x148], eax
push 0
push 0
push 0
push 0
push edi
mov dword [ebp - 0x124], 0
call dword [sym.imp.WININET.dll_InternetSetFilePointer]
nop dword [eax + eax]
lea eax, [ebp - 0x124]
push eax
mov eax, dword [esi + 0x34]
add eax, dword [esi + 0x28]
push 0x3e8
push eax
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
mov edx, dword [ebp - 0x124]
mov ebx, eax
mov eax, dword [esi + 0x30]
mov ecx, eax
add dword [esi + 0x34], edx
sub ecx, dword [esi + 0x34]
cmp ecx, 0x3e8
ja 0x40137d
add eax, 0x7800
push eax
mov dword [esi + 0x30], eax
call fcn.0040eb7e
mov ecx, dword [esi + 0x34]
mov edi, eax
inc ecx
push ecx
push dword [esi + 0x28]
push edi
call fcn.0040ff50
push dword [esi + 0x28]
call fcn.0040e940
mov edx, dword [ebp - 0x124]
add esp, 0x14
mov dword [esi + 0x28], edi
mov edi, dword [ebp - 0x144]
test ebx, ebx
je 0x401385
test edx, edx
jne 0x401310
push 0x104
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x124], 0x103
push 0
push eax
call fcn.00411aa0
add esp, 0xc
lea eax, [ebp - 0x124]
push 0
push eax
lea eax, [ebp - 0x11c]
push eax
push 0x1d
push edi
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x401705
lea eax, [ebp - 0x140]
mov dword [ebp - 0x140], 0
push eax
push 0x42b240
push 1
push 0
lea eax, [ebp - 0x138]
mov dword [ebp - 0x13c], 0
push eax
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x401705
cmp dword [ebp - 0x140], 0
je 0x401705
lea ecx, [ebp - 0x11c]
mov dword [ebp - 0x150], 0
mov dword [ebp - 0x14c], 0xf
lea edx, [ecx + 1]
mov byte [ebp - 0x160], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401430
sub ecx, edx
lea eax, [ebp - 0x11c]
push ecx
push eax
lea ecx, [ebp - 0x160]
call fcn.00401da0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x160]
mov ecx, dword [ebp - 0x150]
mov ebx, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
inc ecx
cmp dword [ebp - 0x14c], 0x10
push 0
cmovae eax, dword [ebp - 0x160]
push 0
push ecx
push eax
push 0
push 0
mov dword [ebp - 0x120], ecx
call ebx
xor ecx, ecx
mov edi, eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040eb7e
add esp, 4
mov dword [ebp - 0x144], eax
cmp dword [ebp - 0x14c], 0x10
lea ecx, [ebp - 0x160]
cmovae ecx, dword [ebp - 0x160]
push edi
mov edi, eax
push edi
push dword [ebp - 0x120]
push ecx
push 0
push 0
call ebx
mov ecx, edi
mov dword [ebp - 0x168], 0
xor eax, eax
mov dword [ebp - 0x164], 7
mov word [ebp - 0x178], ax
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4014f0
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x178]
call fcn.00401c50
push edi
call fcn.0040e940
add esp, 4
mov byte [ebp - 4], 1
lea edi, [ebp - 0x13c]
mov eax, dword [ebp - 0x140]
lea edx, [ebp - 0x178]
cmp dword [ebp - 0x164], 8
push edi
cmovae edx, dword [ebp - 0x178]
mov ecx, dword [eax]
push str.text
push edx
push eax
call dword [ecx + 0x10]
mov byte [ebp - 4], 0
mov edi, eax
mov edx, dword [ebp - 0x164]
cmp edx, 8
jb 0x40158c
mov ecx, dword [ebp - 0x178]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401582
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401736
push edx
push ecx
call fcn.0040eb70
add esp, 8
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14c]
mov dword [ebp - 0x168], 0
mov dword [ebp - 0x164], 7
mov word [ebp - 0x178], ax
cmp edx, 0x10
jb 0x4015ea
mov ecx, dword [ebp - 0x160]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4015e0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40173b
push edx
push ecx
call fcn.0040eb70
add esp, 8
test edi, edi
js 0x4016f9
cmp dword [ebp - 0x13c], 0
je 0x4016f9
mov eax, dword [esi + 0x34]
sub eax, dword [ebp - 0x148]
lea ebx, [eax*8]
sub ebx, eax
push ebx
call fcn.0040eb7e
mov edx, dword [ebp - 0x13c]
add esp, 4
mov ecx, dword [esi + 0x34]
sub ecx, dword [ebp - 0x148]
mov dword [ebp - 0x120], 0
push 0
mov dword [ebp - 0x128], 0
mov edi, dword [edx]
lea edx, [ebp - 0x120]
push edx
lea edx, [ebp - 0x128]
mov dword [ebp - 0x144], eax
push edx
mov edx, dword [ebp - 0x13c]
push ecx
push eax
mov eax, dword [esi + 0x28]
push ebx
mov ebx, dword [ebp - 0x148]
add eax, ebx
push eax
push ecx
push 0
push edx
call dword [edi + 0x10]
test eax, eax
js 0x4016df
mov eax, dword [ebp - 0x120]
mov edx, dword [esi + 0x30]
lea ecx, [ebx + eax]
cmp edx, ecx
ja 0x4016bd
lea eax, [ecx + 0x3e8]
push eax
mov dword [esi + 0x30], eax
call fcn.0040eb7e
mov edx, dword [esi + 0x30]
mov edi, eax
push ebx
push dword [esi + 0x28]
mov ecx, edi
call fcn.00401070
push dword [esi + 0x28]
call fcn.0040e940
mov edx, dword [esi + 0x30]
add esp, 0x10
mov eax, dword [ebp - 0x120]
mov dword [esi + 0x28], edi
jmp 0x4016c0
mov edi, dword [esi + 0x28]
push eax
push dword [ebp - 0x144]
sub edx, ebx
lea ecx, [ebx + edi]
call fcn.00401070
mov eax, dword [ebp - 0x120]
add esp, 8
add eax, ebx
mov dword [esi + 0x34], eax
push dword [ebp - 0x144]
call fcn.0040e940
mov eax, dword [ebp - 0x13c]
add esp, 4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x140]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x34]
mov byte [ecx + eax], 0
mov eax, dword [esi + 0x34]
sub eax, dword [ebp - 0x148]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040e92f
mov esp, ebp
pop ebp
ret 4
call fcn.00413612
call fcn.00413612
int3