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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x421506
mov eax, dword fs:[0]
push eax
sub esp, 0x164
mov eax, dword [0x42c00c]
xor eax, ebp
mov dword [ebp - 0x10], 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 - 0x13c], edi
jne 0x402199
push 0x7800
mov dword [esi + 0x30], 0x7800
call fcn.0040c20b
add esp, 4
mov dword [esi + 0x28], eax
mov dword [esi + 0x34], 0
mov dword [ebp - 0x140], 0
jmp 0x4021a2
mov eax, dword [esi + 0x34]
mov dword [ebp - 0x140], eax
push 0
push 0
push 0
push 0
push edi
mov dword [ebp - 0x11c], 0
call dword [sym.imp.WININET.dll_InternetSetFilePointer]
nop dword [eax + eax]
lea eax, [ebp - 0x11c]
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 - 0x11c]
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 0x40222d
add eax, 0x7800
push eax
mov dword [esi + 0x30], eax
call fcn.0040c20b
mov ecx, dword [esi + 0x34]
mov edi, eax
inc ecx
push ecx
push dword [esi + 0x28]
push edi
call fcn.0040f7b0
push dword [esi + 0x28]
call fcn.0040c0a7
mov edx, dword [ebp - 0x11c]
add esp, 0x14
mov dword [esi + 0x28], edi
mov edi, dword [ebp - 0x13c]
test ebx, ebx
je 0x402235
test edx, edx
jne 0x4021c0
push 0x104
lea eax, [ebp - 0x114]
mov dword [ebp - 0x11c], 0x103
push 0
push eax
call fcn.0040da90
add esp, 0xc
lea eax, [ebp - 0x11c]
push 0
push eax
lea eax, [ebp - 0x114]
push eax
push 0x1d
push edi
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x4025b5
lea eax, [ebp - 0x138]
mov dword [ebp - 0x138], 0
push eax
push 0x423280
push 1
push 0
lea eax, [ebp - 0x130]
mov dword [ebp - 0x134], 0
push eax
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x4025b5
cmp dword [ebp - 0x138], 0
je 0x4025b5
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x148], 0
mov dword [ebp - 0x144], 0xf
lea edx, [ecx + 1]
mov byte [ebp - 0x158], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4022e0
sub ecx, edx
lea eax, [ebp - 0x114]
push ecx
push eax
lea ecx, [ebp - 0x158]
call fcn.00402bb0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x158]
mov ecx, dword [ebp - 0x148]
mov ebx, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
inc ecx
cmp dword [ebp - 0x144], 0x10
push 0
cmovae eax, dword [ebp - 0x158]
push 0
push ecx
push eax
push 0
push 0
mov dword [ebp - 0x118], 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.0040c20b
add esp, 4
mov dword [ebp - 0x13c], eax
cmp dword [ebp - 0x144], 0x10
lea ecx, [ebp - 0x158]
cmovae ecx, dword [ebp - 0x158]
push edi
mov edi, eax
push edi
push dword [ebp - 0x118]
push ecx
push 0
push 0
call ebx
mov ecx, edi
mov dword [ebp - 0x160], 0
xor eax, eax
mov dword [ebp - 0x15c], 7
mov word [ebp - 0x170], ax
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4023a0
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x170]
call fcn.00402a60
push edi
call fcn.0040c0a7
add esp, 4
mov byte [ebp - 4], 1
lea edi, [ebp - 0x134]
mov eax, dword [ebp - 0x138]
lea edx, [ebp - 0x170]
cmp dword [ebp - 0x15c], 8
push edi
cmovae edx, dword [ebp - 0x170]
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 - 0x15c]
cmp edx, 8
jb 0x40243c
mov ecx, dword [ebp - 0x170]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402432
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4025e6
push edx
push ecx
call fcn.0040c1fd
add esp, 8
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x144]
mov dword [ebp - 0x160], 0
mov dword [ebp - 0x15c], 7
mov word [ebp - 0x170], ax
cmp edx, 0x10
jb 0x40249a
mov ecx, dword [ebp - 0x158]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x402490
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4025eb
push edx
push ecx
call fcn.0040c1fd
add esp, 8
test edi, edi
js 0x4025a9
cmp dword [ebp - 0x134], 0
je 0x4025a9
mov eax, dword [esi + 0x34]
sub eax, dword [ebp - 0x140]
lea ebx, [eax*8]
sub ebx, eax
push ebx
call fcn.0040c20b
mov edx, dword [ebp - 0x134]
add esp, 4
mov ecx, dword [esi + 0x34]
sub ecx, dword [ebp - 0x140]
mov dword [ebp - 0x118], 0
push 0
mov dword [ebp - 0x120], 0
mov edi, dword [edx]
lea edx, [ebp - 0x118]
push edx
lea edx, [ebp - 0x120]
mov dword [ebp - 0x13c], eax
push edx
mov edx, dword [ebp - 0x134]
push ecx
push eax
mov eax, dword [esi + 0x28]
push ebx
mov ebx, dword [ebp - 0x140]
add eax, ebx
push eax
push ecx
push 0
push edx
call dword [edi + 0x10]
test eax, eax
js 0x40258f
mov eax, dword [ebp - 0x118]
mov edx, dword [esi + 0x30]
lea ecx, [ebx + eax]
cmp edx, ecx
ja 0x40256d
lea eax, [ecx + 0x3e8]
push eax
mov dword [esi + 0x30], eax
call fcn.0040c20b
mov edx, dword [esi + 0x30]
mov edi, eax
push ebx
push dword [esi + 0x28]
mov ecx, edi
call fcn.00401f20
push dword [esi + 0x28]
call fcn.0040c0a7
mov edx, dword [esi + 0x30]
add esp, 0x10
mov eax, dword [ebp - 0x118]
mov dword [esi + 0x28], edi
jmp 0x402570
mov edi, dword [esi + 0x28]
push eax
push dword [ebp - 0x13c]
sub edx, ebx
lea ecx, [ebx + edi]
call fcn.00401f20
mov eax, dword [ebp - 0x118]
add esp, 8
add eax, ebx
mov dword [esi + 0x34], eax
push dword [ebp - 0x13c]
call fcn.0040c0a7
mov eax, dword [ebp - 0x134]
add esp, 4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x138]
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 - 0x140]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040c096
mov esp, ebp
pop ebp
ret 4
call fcn.0040fee0
call fcn.0040fee0
int3