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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41d61b
mov eax, dword fs:[0]
push eax
sub esp, 0x178
mov eax, dword [0x42c014]
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 edi, ecx
mov dword [ebp - 0x150], edi
cmp dword [edi + 0x28], 0
lea esi, [edi + 0x30]
mov eax, dword [ebp + 8]
lea ebx, [edi + 0x34]
mov dword [ebp - 0x13c], eax
mov dword [ebp - 0x148], esi
jne 0x4019df
push 0x7800
mov dword [esi], 0x7800
call fcn.00409bba
add esp, 4
mov dword [edi + 0x28], eax
mov dword [ebx], 0
jmp 0x4019e5
mov dword [ebp - 0x148], esi
mov eax, dword [ebx]
push 0
push 0
push 0
push 0
push dword [ebp - 0x13c]
mov dword [ebp - 0x144], eax
mov dword [ebp - 0x120], 0
call dword [sym.imp.WININET.dll_InternetSetFilePointer]
nop dword [eax + eax]
lea eax, [ebp - 0x120]
push eax
mov eax, dword [ebx]
add eax, dword [edi + 0x28]
push 0x3e8
push eax
push dword [ebp - 0x13c]
call dword [sym.imp.WININET.dll_InternetReadFile]
mov edx, dword [ebp - 0x120]
add dword [ebx], edx
mov dword [ebp - 0x14c], eax
mov eax, dword [esi]
mov ecx, eax
sub ecx, dword [ebx]
cmp ecx, 0x3e8
ja 0x401a80
add eax, 0x7800
push eax
mov dword [esi], eax
call fcn.00409bba
mov ecx, dword [ebx]
mov esi, eax
inc ecx
push ecx
push dword [edi + 0x28]
push esi
call fcn.0040b020
push dword [edi + 0x28]
call fcn.00409a55
mov edx, dword [ebp - 0x120]
add esp, 0x14
mov dword [edi + 0x28], esi
mov esi, dword [ebp - 0x148]
cmp dword [ebp - 0x14c], 0
je 0x401a8d
test edx, edx
jne 0x401a10
push 0x104
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x120], 0x103
push 0
push eax
call fcn.0040b5a0
add esp, 0xc
lea eax, [ebp - 0x120]
push 0
push eax
lea eax, [ebp - 0x11c]
push eax
push 0x1d
push dword [ebp - 0x13c]
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x401e1a
lea eax, [ebp - 0x13c]
mov dword [ebp - 0x13c], 0
push eax
push 0x41f270
push 1
push 0
lea eax, [ebp - 0x138]
mov dword [ebp - 0x140], 0
push eax
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x401e1a
cmp dword [ebp - 0x13c], 0
je 0x401e1a
lea ecx, [ebp - 0x11c]
mov dword [ebp - 0x16c], 0
mov dword [ebp - 0x15c], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x158], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401b40
sub ecx, edx
lea eax, [ebp - 0x11c]
push ecx
push eax
lea ecx, [ebp - 0x16c]
call fcn.00402760
lea edx, [ebp - 0x16c]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x184]
call fcn.00401610
mov edx, eax
mov byte [ebp - 4], 1
cmp dword [edx + 0x14], 8
jb 0x401b82
mov edx, dword [edx]
mov eax, dword [ebp - 0x13c]
lea esi, [ebp - 0x140]
push esi
push str.text
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
mov byte [ebp - 4], 0
mov esi, eax
mov ecx, dword [ebp - 0x170]
cmp ecx, 8
jb 0x401be1
mov edx, dword [ebp - 0x184]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x401bd7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401e49
push ecx
push edx
call fcn.00409bac
add esp, 8
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x158]
mov dword [ebp - 0x174], 0
mov dword [ebp - 0x170], 7
mov word [ebp - 0x184], ax
cmp ecx, 0x10
jb 0x401c3f
mov edx, dword [ebp - 0x16c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x401c35
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401e49
push ecx
push edx
call fcn.00409bac
add esp, 8
test esi, esi
js 0x401e0e
cmp dword [ebp - 0x140], 0
je 0x401e0e
mov eax, dword [ebx]
sub eax, dword [ebp - 0x144]
lea edi, [eax*8]
sub edi, eax
push edi
call fcn.00409bba
mov edx, dword [ebp - 0x140]
add esp, 4
mov ecx, dword [ebx]
sub ecx, dword [ebp - 0x144]
mov dword [ebp - 0x124], 0
push 0
mov dword [ebp - 0x128], 0
mov esi, dword [edx]
lea edx, [ebp - 0x124]
push edx
lea edx, [ebp - 0x128]
mov dword [ebp - 0x14c], eax
push edx
mov edx, dword [ebp - 0x140]
push ecx
push eax
push edi
mov edi, dword [ebp - 0x150]
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 0x401df4
mov esi, dword [ebp - 0x148]
mov eax, dword [ebp - 0x124]
add eax, dword [ebp - 0x144]
cmp dword [esi], eax
ja 0x401d8e
add eax, 0x3e8
push eax
mov dword [esi], eax
call fcn.00409bba
mov ecx, dword [edi + 0x28]
add esp, 4
mov edx, dword [esi]
mov dword [ebp - 0x148], eax
mov eax, dword [ebp - 0x144]
mov dword [ebp - 0x150], ecx
mov dword [ebp - 0x154], edx
test eax, eax
je 0x401d7a
test ecx, ecx
je 0x401d35
cmp edx, eax
jb 0x401d35
push eax
push ecx
push dword [ebp - 0x148]
call fcn.0040b020
add esp, 0xc
jmp 0x401d7a
push edx
push 0
push dword [ebp - 0x148]
call fcn.0040b5a0
add esp, 0xc
cmp dword [ebp - 0x150], 0
jne 0x401d5c
call fcn.0040d10d
mov dword [eax], 0x16
jmp 0x401d75
mov eax, dword [ebp - 0x154]
cmp eax, dword [ebp - 0x144]
jae 0x401d7a
call fcn.0040d10d
mov dword [eax], 0x22
call fcn.0040d00f
push dword [edi + 0x28]
call fcn.00409a55
mov eax, dword [ebp - 0x148]
add esp, 4
mov dword [edi + 0x28], eax
mov ecx, dword [esi]
mov esi, dword [ebp - 0x144]
sub ecx, esi
mov eax, dword [edi + 0x28]
mov edx, dword [ebp - 0x124]
add eax, esi
test edx, edx
je 0x401dea
test eax, eax
jne 0x401db8
call fcn.0040d10d
mov dword [eax], 0x16
jmp 0x401de5
cmp ecx, edx
jb 0x401dce
push edx
push dword [ebp - 0x14c]
push eax
call fcn.0040b020
add esp, 0xc
jmp 0x401dea
push ecx
push 0
push eax
call fcn.0040b5a0
add esp, 0xc
call fcn.0040d10d
mov dword [eax], 0x22
call fcn.0040d00f
mov eax, dword [ebp - 0x124]
add eax, esi
mov dword [ebx], eax
push dword [ebp - 0x14c]
call fcn.00409a55
mov eax, dword [ebp - 0x140]
add esp, 4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x13c]
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]
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.00409a47
mov esp, ebp
pop ebp
ret 4
call fcn.0040d01f
int3