Function at 0x46e020
Capabilities:
Create http request
Query remote server for available data
Read data from internet
Receive data

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4aea8a
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x118
mov eax, dword [0x4cfa1c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov dword [ebp - 0xe0], edi
mov dword [ebp - 0xc4], edi
mov dword [ebp - 0xe4], edi
mov dword [ebp - 0xdc], 0
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x4d222c]
cmp eax, dword [ecx + 4]
jle 0x46e34f
push 0x4d222c
call fcn.00497ee3
add esp, 4
cmp dword [0x4d222c], 0xffffffff
jne 0x46e34f
mov dword [ebp - 4], 1
mov dword [ebp - 0xd8], 0x269983a
mov dword [ebp - 0xd4], 0x136682c2
mov eax, dword [ebp - 0xd8]
mov ecx, dword [ebp - 0xd4]
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0xd8], 0x6b1ff2c8
mov dword [ebp - 0xd4], 0xd4be5dc0
mov eax, dword [ebp - 0xd8]
mov ecx, dword [ebp - 0xd4]
mov dword [ebp - 0x118], eax
mov dword [ebp - 0x114], ecx
mov dword [ebp - 0xd8], 0x62affc19
mov dword [ebp - 0xd4], 0x1c4612c1
mov eax, dword [ebp - 0xd8]
mov ecx, dword [ebp - 0xd4]
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x10c], ecx
mov dword [ebp - 0xd8], 0x67def1f6
mov dword [ebp - 0xd4], 0x4e8195b7
mov eax, dword [ebp - 0xd8]
mov ecx, dword [ebp - 0xd4]
mov dword [ebp - 0x108], eax
mov dword [ebp - 0x104], ecx
mov dword [ebp - 0xd8], 0x46c15a30
mov dword [ebp - 0xd4], 0x1fba0cd6
mov eax, dword [ebp - 0xd8]
mov ecx, dword [ebp - 0xd4]
mov dword [ebp - 0x100], eax
mov dword [ebp - 0xfc], ecx
mov dword [ebp - 0xd8], 0x20fa5510
mov dword [ebp - 0xd4], 0x57a51cc3
mov eax, dword [ebp - 0xd8]
mov ecx, dword [ebp - 0xd4]
mov dword [ebp - 0xf8], eax
mov dword [ebp - 0xf4], ecx
mov dword [ebp - 0xd8], 0x670afb7b
mov dword [ebp - 0xd4], 0x335cf6b2
mov eax, dword [ebp - 0xd8]
mov ecx, dword [ebp - 0xd4]
mov dword [ebp - 0xd8], 0x1f6797bc
mov dword [ebp - 0xd4], 0xb9ca35ef
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0xd8]
mov dword [ebp - 0x8c], ecx
mov ecx, dword [ebp - 0xd4]
mov dword [ebp - 0xd8], 0x168fc775
mov dword [ebp - 0xd4], 0x33326aa4
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0xd8]
mov dword [ebp - 0x84], ecx
mov ecx, dword [ebp - 0xd4]
mov dword [ebp - 0xd8], 0xebf9d86
mov dword [ebp - 0xd4], 0x64a1aed9
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0xd8]
mov dword [ebp - 0x7c], ecx
mov ecx, dword [ebp - 0xd4]
mov dword [ebp - 0xd8], 0x46c1701f
mov dword [ebp - 0xd4], 0x1fba0cd6
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0xd8]
mov dword [ebp - 0x74], ecx
mov ecx, dword [ebp - 0xd4]
mov dword [ebp - 0xd8], 0x20fa5510
mov dword [ebp - 0xd4], 0x57a51cc3
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0xd8]
mov dword [ebp - 0x6c], ecx
mov ecx, dword [ebp - 0xd4]
movaps xmm1, xmmword [ebp - 0x120]
pxor xmm1, xmmword [ebp - 0x90]
movaps xmmword [ebp - 0x120], xmm1
movaps xmm1, xmmword [ebp - 0x110]
pxor xmm1, xmmword [ebp - 0x80]
movaps xmmword [ebp - 0x110], xmm1
movaps xmm1, xmmword [ebp - 0x100]
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], ecx
pxor xmm1, xmmword [ebp - 0x70]
lea ecx, [ebp - 0x120]
xorps xmm0, xmm0
movaps xmmword [ebp - 0x100], xmm1
movups xmmword [0x4d21d8], xmm0
mov dword [0x4d21e8], 0
lea edx, [ecx + 1]
mov dword [0x4d21ec], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x46e316
sub ecx, edx
lea eax, [ebp - 0x120]
push ecx
push eax
mov ecx, 0x4d21d8
call fcn.00438600
push 0x4b02e0
call fcn.0049833a
add esp, 4
mov byte [ebp - 4], 0
push 0x4d222c
call fcn.00497e99
add esp, 4
push 0
push 0
push 0
push 0
push 0
mov dword [ebp - 0x98], 0
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x98], eax
mov dword [ebp - 4], 2
test eax, eax
jne 0x46e3a4
xorps xmm0, xmm0
movups xmmword [edi], xmm0
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], 0xf
mov byte [edi], al
mov dword [ebp - 0xdc], 1
mov byte [ebp - 4], al
jmp 0x46e71e
cmp dword [0x4d21ec], 0x10
mov ecx, 0x4d21d8
mov dword [ebp - 0x94], 0
cmovae ecx, dword [0x4d21d8]
cmp dword [esi + 0x14], 0x10
jb 0x46e3c9
mov esi, dword [esi]
push 0
push 0x84880100
push dword [0x4d21e8]
push ecx
push esi
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov esi, eax
mov dword [ebp - 0x94], esi
mov byte [ebp - 4], 3
xorps xmm0, xmm0
test esi, esi
jne 0x46e416
movups xmmword [edi], xmm0
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], 0xf
mov byte [edi], al
mov dword [ebp - 0xdc], 1
jmp 0x46e70e
push 0
lea eax, [ebp - 0xc8]
movlpd qword [ebp - 0x1c], xmm0
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0xc8], 8
push eax
push 0x13
push esi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
xorps xmm0, xmm0
test eax, eax
jne 0x46e466
movups xmmword [edi], xmm0
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], 0xf
mov byte [edi], al
mov dword [ebp - 0xdc], 1
jmp 0x46e703
xor ecx, ecx
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0xb0], ecx
mov dword [ebp - 0xac], 0
movups xmmword [ebp - 0xc0], xmm0
mov dword [ebp - 0xac], 0xf
mov dword [ebp - 0xd4], ecx
mov byte [ebp - 0xc0], cl
mov byte [ebp - 4], 4
lea eax, [ebp - 0x60]
push 0x40
push ecx
push eax
call fcn.00499a10
add esp, 0xc
mov dword [ebp - 0xcc], 0x40
lea eax, [ebp - 0xcc]
push 0
push eax
lea eax, [ebp - 0x60]
push eax
push 5
push esi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x46e50b
push 0xa
lea eax, [ebp - 0x60]
push 0
push eax
call fcn.004815e3
add esp, 0xc
cmp eax, 0xf
jbe 0x46e50b
push dword [ebp - 0xe4]
lea ecx, [ebp - 0xc0]
push eax
call fcn.0044a090
xor ecx, ecx
mov dword [ebp - 0xd4], ecx
mov dword [ebp - 0xb0], ecx
push 0
push 0
lea eax, [ebp - 0xa8]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
je 0x46e6a4
nop word [eax + eax]
mov edi, dword [ebp - 0xa8]
test edi, edi
je 0x46e69e
xorps xmm0, xmm0
mov dword [ebp - 0x9c], 0
movq qword [ebp - 0xa4], xmm0
lea ecx, [ebp - 0xa4]
push edi
mov dword [ebp - 0xa4], 0
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0x9c], 0
call fcn.0044faf0
lea eax, [ebp - 0xa4]
mov dword [ebp - 0xe8], eax
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0xa4]
push edi
push 0
push eax
lea esi, [edi + eax]
call fcn.00499a10
add esp, 0xc
mov dword [ebp - 0xa0], esi
mov dword [ebp - 0xe8], 0
mov byte [ebp - 4], 6
lea eax, [ebp - 0xc4]
mov esi, dword [ebp - 0x94]
push eax
push dword [ebp - 0xa8]
push dword [ebp - 0xa4]
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x46e68f
mov esi, dword [ebp - 0xc4]
test esi, esi
je 0x46e689
mov edx, dword [ebp - 0xac]
mov eax, edx
mov ecx, dword [ebp - 0xd4]
sub eax, ecx
push esi
push dword [ebp - 0xa4]
cmp esi, eax
ja 0x46e63b
cmp edx, 0x10
lea edi, [ebp - 0xc0]
lea eax, [ecx + esi]
cmovae edi, dword [ebp - 0xc0]
mov dword [ebp - 0xb0], eax
lea eax, [edi + ecx]
push eax
call fcn.00499b70
mov ecx, dword [ebp - 0xd4]
lea eax, [edi + esi]
add esp, 0xc
mov byte [eax + ecx], 0
jmp 0x46e64d
push dword [ebp - 0xe4]
lea ecx, [ebp - 0xc0]
push esi
call fcn.0044a7f0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xa4]
call fcn.0044bfd0
mov esi, dword [ebp - 0x94]
lea eax, [ebp - 0xa8]
push 0
push 0
push eax
push esi
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
je 0x46e69e
mov ecx, dword [ebp - 0xb0]
mov dword [ebp - 0xd4], ecx
jmp 0x46e530
mov esi, dword [ebp - 0x94]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xa4]
call fcn.0044bfd0
mov edi, dword [ebp - 0xe0]
xorps xmm0, xmm0
mov dword [ebp - 0xdc], 1
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
movups xmm0, xmmword [ebp - 0xc0]
mov dword [edi + 0x14], 0
mov byte [ebp - 0xc0], 0
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0xb0]
movq qword [edi + 0x10], xmm0
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0xac], 0xf
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xc0]
call fcn.00446fc0
mov byte [ebp - 4], 2
push esi
call dword [0x4bf4c8]
mov byte [ebp - 4], 0
push dword [ebp - 0x98]
call dword [0x4bf4c8]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00497d9d
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret