Function at 0x4a0bf0
Capabilities:
Query remote server for available data
Read data from internet
Receive data

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x74093c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x188
mov dword [ebp - 0x1c], 0
mov eax, dword [0x845084]
mov ecx, dword [0x8450d0]
push esi
mov esi, dword [0x84507c]
shl eax, 0xa
mov dword [ebp - 0x2c], eax
mov eax, dword [str.DesktopInstaller]
shl esi, 0xa
cmp byte [0xa968b0], 0
push edi
mov dword [ebp - 0x24], eax
je 0x4a0c7e
cmp byte [0x8f63f8], 0
je 0x4a0c7e
test cl, cl
je 0x4a0db8
cmp cl, 6
jb 0x4a0db8
shr ecx, 8
cmp cl, 5
jb 0x4a0db8
jmp 0x4a0c86
test cl, cl
je 0x4a0db8
mov dword [ebp - 0x1c], 0x10ccc95
mov edi, dword [ebp - 0x1c]
push 0
sub edi, 0x96cf55
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xe8]
push eax
call fcn.005707c0
add esp, 0xc
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebx + 0xc]
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], ecx
cmp dword [ecx + 0x14], 0x10
jb 0x4a0cc9
mov eax, dword [ecx]
mov dword [ebp - 0x20], eax
mov eax, dword [0x8450d0]
mov edx, edi
mov dword [ebp - 0x48], eax
mov eax, dword [str.DesktopInstaller]
mov dword [ebp - 0x54], eax
lea ecx, [edx + 1]
nop
mov al, byte [edx]
inc edx
test al, al
jne 0x4a0ce0
mov eax, dword [ebp - 0x1c]
sub edx, ecx
mov dword [ebp - 0x18], eax
cmp dword [eax + 0x14], 0x10
jb 0x4a0cfa
mov ecx, dword [eax]
mov dword [ebp - 0x18], ecx
mov ecx, dword [eax + 0x10]
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0x18]
push 1
sub esp, 0x10
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x9c], eax
mov eax, esp
mov dword [ebp - 0xa4], ecx
lea ecx, [ebp - 0xb0]
push edx
push edi
push 5
push dword [ebp - 0x54]
mov dword [ebp - 0xa0], esi
push dword [ebp - 0x48]
mov dword [eax], 0x2dc
mov dword [eax + 4], 0
mov dword [eax + 8], ecx
call fcn.00518420
mov edx, dword [ebp - 0xd4]
add esp, 0x28
mov dword [ebp - 4], 0xffffffff
cmp edx, 0x10
jb 0x4a0d9d
mov ecx, dword [ebp - 0xe8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4a0d93
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a156f
push edx
push ecx
call fcn.00516d60
add esp, 8
mov dword [ebp - 0xd8], 0
mov dword [ebp - 0xd4], 0xf
mov byte [ebp - 0xe8], 0
mov dword [ebp - 0x198], 0x75f8c0
mov dword [ebp - 0x140], 0
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0
push 0
lea eax, [ebp - 0x194]
mov dword [ebp - 4], 1
push eax
lea ecx, [ebp - 0x148]
mov dword [ebp - 0x1c], 1
mov dword [ebp - method.std::basic_ostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov dword [ebp - 0x14c], 0x48
call fcn.0049fb90
mov eax, dword [ebp - 0x198]
mov dword [ebp - 4], 3
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0x198]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0x19c], eax
lea ecx, [ebp - 0x194]
call fcn.0049c2a0
mov dword [ebp - method.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [ebp - 0x15c], 0
mov dword [ebp - 0x158], 4
xor eax, eax
mov dword [ebp - 4], 4
xor edi, edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
test esi, esi
je 0x4a0ef6
cmp esi, 0x7fffffff
ja 0x4a1574
cmp esi, 0x1000
jb 0x4a0ecd
lea eax, [esi + 0x23]
cmp eax, esi
jbe 0x4a1579
push eax
call fcn.00516cd0
add esp, 4
test eax, eax
je 0x4a1583
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x4a0ed8
push esi
call fcn.00516cd0
add esp, 4
mov edi, eax
push esi
lea eax, [edi + esi]
mov dword [ebp - 0x3c], edi
push 0
push edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x34], eax
call fcn.007051b0
mov eax, dword [ebp - 0x18]
add esp, 0xc
mov dword [ebp - 0x38], eax
push 0
mov byte [ebp - 4], 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
push 0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0
push eax
push dword [ebx + 8]
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
je 0x4a1268
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x4a12b2
cmp esi, eax
mov dword [ebp - 0x58], 0
lea ecx, [ebp - 0x58]
push ecx
cmovb eax, esi
push eax
push edi
push dword [ebx + 8]
mov dword [ebp - 0x60], eax
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x4a1232
cmp byte [0xa968b0], 0
mov eax, dword [str.DesktopInstaller]
mov ecx, dword [0x8450d0]
mov dword [ebp - 0x24], eax
je 0x4a0f92
cmp byte [0x8f63f8], 0
je 0x4a0f92
test cl, cl
je 0x4a10e2
cmp cl, 6
jb 0x4a10e2
shr ecx, 8
cmp cl, 2
jb 0x4a10e2
jmp 0x4a0f9a
test cl, cl
je 0x4a10e2
mov dword [ebp - 0x48], 0x1178a56
mov edi, dword [ebp - 0x48]
push 0
sub edi, 0xa18c76
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x100]
push eax
call fcn.005707c0
add esp, 0xc
mov edx, eax
mov eax, dword [ebx + 0xc]
mov byte [ebp - 4], 7
mov dword [ebp - 0x18], eax
cmp dword [eax + 0x14], 0x10
jb 0x4a0fd9
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
mov eax, dword [0x8450d0]
mov ecx, edi
mov dword [ebp - 0x28], eax
mov eax, dword [str.DesktopInstaller]
mov dword [ebp - 0x50], eax
lea eax, [ecx + 1]
mov dword [ebp - 0x48], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a0ff1
sub ecx, dword [ebp - 0x48]
cmp dword [edx + 0x14], 0x10
mov dword [ebp - 0x54], edx
jb 0x4a1009
mov eax, dword [edx]
mov dword [ebp - 0x54], eax
mov eax, dword [edx + 0x10]
mov edx, dword [ebp - 0x60]
mov dword [ebp - 0xd0], edx
mov edx, dword [ebp - 0x2c]
push 1
mov dword [ebp - 0xcc], edx
sub esp, 0x10
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0xc8], edx
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0xb4], eax
mov eax, esp
mov dword [ebp - 0xc4], edx
mov edx, dword [ebp - 0x58]
push ecx
mov dword [ebp - 0xc0], edx
mov edx, dword [ebp - 0x2c]
push edi
mov dword [ebp - 0xbc], edx
mov edx, dword [ebp - 0x54]
push 2
push dword [ebp - 0x50]
mov dword [ebp - 0xb8], edx
lea edx, [ebp - 0xd0]
push dword [ebp - 0x28]
mov dword [eax], 0xd2c2
mov dword [eax + 4], 0
mov dword [eax + 8], edx
call fcn.00518420
mov edx, dword [ebp - 0xec]
add esp, 0x28
mov byte [ebp - 4], 5
cmp edx, 0x10
jb 0x4a10be
mov ecx, dword [ebp - 0x100]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4a10b4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a156f
push edx
push ecx
call fcn.00516d60
add esp, 8
mov eax, dword [ebp - 0x38]
mov edi, dword [ebp - 0x3c]
mov dword [ebp - 0xf0], 0
mov dword [ebp - 0xec], 0xf
mov byte [ebp - 0x100], 0
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4a14a7
cmp esi, dword [ebp - 0x2c]
jae 0x4a14a7
mov ecx, dword [ebp - 0x18]
add esi, esi
mov edx, ecx
mov dword [ebp - 0x24], esi
sub edx, edi
cmp esi, edx
jae 0x4a1115
lea eax, [edi + esi]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x38], eax
jmp 0x4a1154
jbe 0x4a1154
mov eax, dword [ebp - 0x34]
sub eax, edi
cmp esi, eax
jbe 0x4a1138
lea eax, [ebp - 0x11]
push eax
push esi
lea ecx, [ebp - 0x3c]
call fcn.0049baa0
mov eax, dword [ebp - 0x38]
mov edi, dword [ebp - 0x3c]
mov dword [ebp - 0x18], eax
jmp 0x4a1154
sub esi, edx
push esi
push 0
push ecx
call fcn.007051b0
mov ecx, dword [ebp - 0x18]
add esp, 0xc
add ecx, esi
mov esi, dword [ebp - 0x24]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x38], ecx
cmp byte [0xa968b0], 0
mov eax, dword [str.DesktopInstaller]
mov ecx, dword [0x8450d0]
mov dword [ebp - 0x24], eax
je 0x4a1193
cmp byte [0x8f63f8], 0
je 0x4a1193
test cl, cl
je 0x4a1248
cmp cl, 6
jb 0x4a1248
shr ecx, 8
cmp cl, 3
jb 0x4a1248
jmp 0x4a119b
test cl, cl
je 0x4a1248
mov eax, dword [ebx + 0xc]
mov edi, eax
mov dword [ebp - 0x24], 0x11a57d4
mov edx, dword [ebp - 0x24]
sub edx, 0xa459a0
cmp dword [eax + 0x14], 0x10
jb 0x4a11b8
mov edi, dword [eax]
mov eax, dword [0x8450d0]
mov ecx, edx
mov dword [ebp - 0x60], eax
mov eax, dword [str.DesktopInstaller]
mov dword [ebp - 0x50], eax
lea eax, [ecx + 1]
mov dword [ebp - 0x24], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a11d0
mov eax, dword [ebp - 0x2c]
sub ecx, dword [ebp - 0x24]
push 1
sub esp, 0x10
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x8c], eax
mov eax, esp
mov dword [ebp - 0x98], edi
lea edi, [ebp - 0x98]
push ecx
push edx
push 3
push dword [ebp - 0x50]
mov dword [ebp - 0x90], esi
push dword [ebp - 0x60]
mov dword [eax], 0x2c
mov dword [eax + 4], 0
mov dword [eax + 8], edi
call fcn.00518420
mov eax, dword [ebp - 0x38]
add esp, 0x28
mov edi, dword [ebp - 0x3c]
mov dword [ebp - 0x18], eax
jmp 0x4a1248
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x4a12b2
push 0
push eax
push edi
lea ecx, [ebp - 0x198]
call fcn.004a1c50
push 0
push 0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0
push eax
push dword [ebx + 8]
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
jne 0x4a0f22
cmp byte [0xa968b0], 0
mov eax, dword [str.DesktopInstaller]
mov ecx, dword [0x8450d0]
mov dword [ebp - 0x24], eax
je 0x4a13b0
cmp byte [0x8f63f8], 0
je 0x4a13b0
test cl, cl
je 0x4a14a7
cmp cl, 6
jb 0x4a14a7
shr ecx, 8
cmp cl, 2
jb 0x4a14a7
jmp 0x4a13b8
mov edx, dword [ebp - 0x158]
xorps xmm0, xmm0
mov eax, edx
mov dword [ebp - 0x88], 0
and al, 0x22
mov byte [ebp - 4], 8
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0xf
mov byte [ebp - 0x88], 0
mov dword [ebp - 0x1c], 9
movq qword [ebp - 0x6c], xmm0
mov dword [ebp - 0x64], 0
cmp al, 2
je 0x4a131e
mov eax, dword [ebp - 0x174]
mov ecx, dword [eax]
test ecx, ecx
je 0x4a131e
mov eax, dword [ebp - 0x184]
cmp ecx, dword [ebp - 0x15c]
cmovb ecx, dword [ebp - 0x15c]
mov edx, dword [eax]
sub ecx, edx
jmp 0x4a1349
test dl, 4
jne 0x4a1343
mov eax, dword [ebp - 0x178]
mov ecx, dword [eax]
test ecx, ecx
je 0x4a1343
mov eax, dword [ebp - 0x188]
mov edx, dword [eax]
sub ecx, edx
mov eax, dword [ebp - 0x168]
add ecx, dword [eax]
jmp 0x4a1349
mov ecx, dword [ebp - 0x68]
mov edx, dword [ebp - 0x6c]
test edx, edx
je 0x4a135a
push ecx
push edx
lea ecx, [ebp - 0x88]
call fcn.00486af0
mov ecx, dword [ebx + 0x10]
lea eax, [ebp - 0x88]
push eax
mov dword [ebp - 4], 5
call fcn.00484f30
mov edx, dword [ebp - 0x74]
cmp edx, 0x10
jb 0x4a13a7
mov ecx, dword [ebp - 0x88]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4a139d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a1583
push edx
push ecx
call fcn.00516d60
add esp, 8
mov byte [ebp - 0x11], 1
jmp 0x4a14ab
test cl, cl
je 0x4a14a7
mov dword [ebp - 0x2c], 0x111efba
mov edi, dword [ebp - 0x2c]
push 0
sub edi, 0x9bf222
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.005707c0
add esp, 0xc
mov ecx, eax
mov esi, dword [ebx + 0xc]
mov byte [ebp - 4], 6
cmp dword [esi + 0x14], 0x10
jb 0x4a13f1
mov esi, dword [esi]
mov eax, dword [0x8450d0]
mov edx, edi
mov dword [ebp - 0x50], eax
mov eax, dword [str.DesktopInstaller]
mov dword [ebp - 0x24], eax
lea eax, [edx + 1]
mov dword [ebp - 0x2c], eax
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x4a1410
sub edx, dword [ebp - 0x2c]
cmp dword [ecx + 0x14], 0x10
mov dword [ebp - 0x1c], ecx
jb 0x4a1428
mov eax, dword [ecx]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x64]
mov ecx, dword [ecx + 0x10]
push 1
sub esp, 0x10
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x68], eax
mov eax, esp
mov dword [ebp - 0x64], ecx
lea ecx, [ebp - 0x70]
push edx
push edi
push 2
push dword [ebp - 0x24]
mov dword [ebp - 0x70], esi
push dword [ebp - 0x50]
mov dword [eax], 0xdc
mov dword [eax + 4], 0
mov dword [eax + 8], ecx
call fcn.00518420
mov edx, dword [ebp - 0x74]
add esp, 0x28
mov byte [ebp - 4], 5
cmp edx, 0x10
jb 0x4a14a4
mov ecx, dword [ebp - 0x88]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4a149a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a157e
push edx
push ecx
call fcn.00516d60
add esp, 8
mov edi, dword [ebp - 0x3c]
mov byte [ebp - 0x11], 0
mov byte [ebp - 4], 4
test edi, edi
je 0x4a14e0
mov ecx, dword [ebp - 0x34]
mov eax, edi
sub ecx, edi
cmp ecx, 0x1000
jb 0x4a14d6
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a1583
push ecx
push edi
call fcn.00516d60
add esp, 8
mov eax, dword [ebp - 0x198]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0x198]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0x19c], eax
lea ecx, [ebp - 0x194]
call fcn.0049cb50
mov eax, dword [ebp - 0x198]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x198]
mov edx, dword [eax + 4]
lea ecx, [edx - 8]
mov dword [ebp + edx - 0x19c], ecx
lea eax, [ebp - 0x148]
mov dword [ebp - 4], 9
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.006eeb35
mov al, byte [ebp - 0x11]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0070f5b4
call fcn.00495500
call fcn.00486850
call fcn.0070f5b4
call fcn.0070f5b4
int3