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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42875b
mov eax, dword fs:[0]
push eax
sub esp, 0x170
mov eax, dword [0x439018]
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 0x4018b9
push 0x7800
mov dword [esi + 0x30], 0x7800
call fcn.0040e7e1
add esp, 4
mov dword [esi + 0x28], eax
mov dword [esi + 0x34], 0
mov dword [ebp - 0x148], 0
jmp 0x4018c2
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 0x40194d
add eax, 0x7800
push eax
mov dword [esi + 0x30], eax
call fcn.0040e7e1
mov ecx, dword [esi + 0x34]
mov edi, eax
inc ecx
push ecx
push dword [esi + 0x28]
push edi
call fcn.0040fd40
push dword [esi + 0x28]
call fcn.0040e5a1
mov edx, dword [ebp - 0x124]
add esp, 0x14
mov dword [esi + 0x28], edi
mov edi, dword [ebp - 0x144]
test ebx, ebx
je 0x401955
test edx, edx
jne 0x4018e0
push 0x104
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x124], 0x103
push 0
push eax
call fcn.00410380
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 0x401cf5
lea eax, [ebp - 0x140]
mov dword [ebp - 0x140], 0
push eax
push 0x42a2a0
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 0x401cf5
cmp dword [ebp - 0x140], 0
je 0x401cf5
lea ecx, [ebp - 0x11c]
mov dword [ebp - 0x160], 0
mov dword [ebp - 0x150], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x14c], 0xf
mov byte [ebp - 0x160], 0
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401a10
sub ecx, edx
lea eax, [ebp - 0x11c]
push ecx
push eax
lea ecx, [ebp - 0x160]
call fcn.00402400
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.0040e7e1
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 - 0x178], 0
xor eax, eax
mov dword [ebp - 0x168], 0
mov dword [ebp - 0x164], 7
mov word [ebp - 0x178], ax
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401ae0
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x178]
call fcn.004022a0
push edi
call fcn.0040e5a1
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 0x401b7c
mov ecx, dword [ebp - 0x178]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401b72
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401d26
push edx
push ecx
call fcn.0040e7d3
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 0x401bda
mov ecx, dword [ebp - 0x160]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x401bd0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401d26
push edx
push ecx
call fcn.0040e7d3
add esp, 8
test edi, edi
js 0x401ce9
cmp dword [ebp - 0x13c], 0
je 0x401ce9
mov eax, dword [esi + 0x34]
sub eax, dword [ebp - 0x148]
lea ebx, [eax*8]
sub ebx, eax
push ebx
call fcn.0040e7e1
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 0x401ccf
mov eax, dword [ebp - 0x120]
mov edx, dword [esi + 0x30]
lea ecx, [eax + ebx]
cmp edx, ecx
ja 0x401cad
lea eax, [ecx + 0x3e8]
push eax
mov dword [esi + 0x30], eax
call fcn.0040e7e1
mov edx, dword [esi + 0x30]
mov edi, eax
push ebx
push dword [esi + 0x28]
mov ecx, edi
call fcn.00401480
push dword [esi + 0x28]
call fcn.0040e5a1
mov edx, dword [esi + 0x30]
add esp, 0x10
mov eax, dword [ebp - 0x120]
mov dword [esi + 0x28], edi
jmp 0x401cb0
mov edi, dword [esi + 0x28]
push eax
push dword [ebp - 0x144]
sub edx, ebx
lea ecx, [edi + ebx]
call fcn.00401480
mov eax, dword [ebp - 0x120]
add esp, 8
add eax, ebx
mov dword [esi + 0x34], eax
push dword [ebp - 0x144]
call fcn.0040e5a1
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.0040e593
mov esp, ebp
pop ebp
ret 4
call fcn.00412da7
int3