Function at 0x4987b0
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 0x72fd0f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x180
mov dword [ebp - 0x34], 0
mov eax, dword [0x830084]
mov ecx, dword [0x8300d0]
push esi
mov esi, dword [0x83007c]
shl eax, 0xa
mov dword [ebp - 0x54], eax
mov eax, dword [str.DesktopInstaller]
shl esi, 0xa
cmp byte [0xa82632], 0
push edi
mov dword [ebp - 0x2c], eax
je 0x49883e
cmp byte [0x8e0c40], 0
je 0x49883e
test cl, cl
je 0x498978
cmp cl, 6
jb 0x498978
shr ecx, 8
cmp cl, 5
jb 0x498978
jmp 0x498846
test cl, cl
je 0x498978
mov dword [ebp - 0x1c], 0xc165c5
mov edi, dword [ebp - 0x1c]
push 0
sub edi, 0x4c9d0d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xe0]
push eax
call fcn.0055f380
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 0x498889
mov eax, dword [ecx]
mov dword [ebp - 0x20], eax
mov eax, dword [0x8300d0]
mov edx, edi
mov dword [ebp - 0x28], eax
mov eax, dword [str.DesktopInstaller]
mov dword [ebp - 0x4c], eax
lea ecx, [edx + 1]
nop
mov al, byte [edx]
inc edx
test al, al
jne 0x4988a0
mov eax, dword [ebp - 0x1c]
sub edx, ecx
mov dword [ebp - 0x18], eax
cmp dword [eax + 0x14], 0x10
jb 0x4988ba
mov ecx, dword [eax]
mov dword [ebp - 0x18], ecx
mov ecx, dword [eax + 0x10]
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0x18]
push 1
sub esp, 0x10
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x94], eax
mov eax, esp
mov dword [ebp - 0x9c], ecx
lea ecx, [ebp - 0xa8]
push edx
push edi
push 5
push dword [ebp - 0x4c]
mov dword [ebp - 0x98], esi
push dword [ebp - 0x28]
mov dword [eax], 0x2dc
mov dword [eax + 4], 0
mov dword [eax + 8], ecx
call fcn.00505470
mov edx, dword [ebp - 0xcc]
add esp, 0x28
mov dword [ebp - 4], 0xffffffff
cmp edx, 0x10
jb 0x49895d
mov ecx, dword [ebp - 0xe0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x498953
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x49906c
push edx
push ecx
call fcn.00503df0
add esp, 8
mov dword [ebp - 0xd0], 0
mov dword [ebp - 0xcc], 0xf
mov byte [ebp - 0xe0], 0
push 1
lea ecx, [ebp - 0x190]
call fcn.00493db0
xor eax, eax
mov dword [ebp - 4], 1
xor edi, edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
test esi, esi
je 0x498a04
cmp esi, 0x7fffffff
ja 0x499071
cmp esi, 0x1000
jb 0x4989db
lea eax, [esi + 0x23]
cmp eax, esi
jbe 0x499076
push eax
call fcn.00503d60
add esp, 4
test eax, eax
je 0x499080
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x4989e6
push esi
call fcn.00503d60
add esp, 4
mov edi, eax
push esi
lea eax, [esi + edi]
mov dword [ebp - 0x44], edi
push 0
push edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x3c], eax
call fcn.006f4b50
mov eax, dword [ebp - 0x18]
add esp, 0xc
mov dword [ebp - 0x40], eax
push 0
mov byte [ebp - 4], 2
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 0x498d78
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x498dc2
cmp esi, eax
mov dword [ebp - 0x48], 0
lea ecx, [ebp - 0x48]
push ecx
cmovb eax, esi
push eax
push edi
push dword [ebx + 8]
mov dword [ebp - 0x4c], eax
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x498d42
cmp byte [0xa82632], 0
mov eax, dword [str.DesktopInstaller]
mov ecx, dword [0x8300d0]
mov dword [ebp - 0x2c], eax
je 0x498aa0
cmp byte [0x8e0c40], 0
je 0x498aa0
test cl, cl
je 0x498bf1
cmp cl, 6
jb 0x498bf1
shr ecx, 8
cmp cl, 2
jb 0x498bf1
jmp 0x498aa8
test cl, cl
je 0x498bf1
mov dword [ebp - 0x28], 0xc71a44
mov edi, dword [ebp - 0x28]
push 0
sub edi, 0x5250ec
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xf8]
push eax
call fcn.0055f380
add esp, 0xc
mov edx, eax
mov eax, dword [ebx + 0xc]
mov byte [ebp - 4], 4
mov dword [ebp - 0x18], eax
cmp dword [eax + 0x14], 0x10
jb 0x498ae7
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
mov eax, dword [0x8300d0]
mov ecx, edi
mov dword [ebp - 0x30], eax
mov eax, dword [str.DesktopInstaller]
mov dword [ebp - 0x50], eax
lea eax, [ecx + 1]
mov dword [ebp - 0x28], eax
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x498b00
sub ecx, dword [ebp - 0x28]
cmp dword [edx + 0x14], 0x10
mov dword [ebp - 0x1c], edx
jb 0x498b18
mov eax, dword [edx]
mov dword [ebp - 0x1c], eax
mov eax, dword [edx + 0x10]
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 0xc8], edx
mov edx, dword [ebp - 0x34]
push 1
mov dword [ebp - 0xc4], edx
sub esp, 0x10
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0xc0], edx
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0xac], eax
mov eax, esp
mov dword [ebp - 0xbc], edx
mov edx, dword [ebp - 0x48]
push ecx
mov dword [ebp - 0xb8], edx
mov edx, dword [ebp - 0x34]
push edi
mov dword [ebp - 0xb4], edx
mov edx, dword [ebp - 0x1c]
push 2
push dword [ebp - 0x50]
mov dword [ebp - 0xb0], edx
lea edx, [ebp - 0xc8]
push dword [ebp - 0x30]
mov dword [eax], 0xd2c2
mov dword [eax + 4], 0
mov dword [eax + 8], edx
call fcn.00505470
mov edx, dword [ebp - 0xe4]
add esp, 0x28
mov byte [ebp - 4], 2
cmp edx, 0x10
jb 0x498bcd
mov ecx, dword [ebp - 0xf8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x498bc3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x49906c
push edx
push ecx
call fcn.00503df0
add esp, 8
mov eax, dword [ebp - 0x40]
mov edi, dword [ebp - 0x44]
mov dword [ebp - 0xe8], 0
mov dword [ebp - 0xe4], 0xf
mov byte [ebp - 0xf8], 0
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x498fa4
cmp esi, dword [ebp - 0x54]
jae 0x498fa4
mov ecx, dword [ebp - 0x18]
add esi, esi
mov edx, ecx
mov dword [ebp - 0x2c], esi
sub edx, edi
cmp esi, edx
jae 0x498c24
lea eax, [edi + esi]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x40], eax
jmp 0x498c63
jbe 0x498c63
mov eax, dword [ebp - 0x3c]
sub eax, edi
cmp esi, eax
jbe 0x498c47
lea eax, [ebp - 0x11]
push eax
push esi
lea ecx, [ebp - 0x44]
call fcn.004934c0
mov eax, dword [ebp - 0x40]
mov edi, dword [ebp - 0x44]
mov dword [ebp - 0x18], eax
jmp 0x498c63
sub esi, edx
push esi
push 0
push ecx
call fcn.006f4b50
mov ecx, dword [ebp - 0x18]
add esp, 0xc
add ecx, esi
mov esi, dword [ebp - 0x2c]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x40], ecx
cmp byte [0xa82632], 0
mov eax, dword [str.DesktopInstaller]
mov ecx, dword [0x8300d0]
mov dword [ebp - 0x2c], eax
je 0x498ca2
cmp byte [0x8e0c40], 0
je 0x498ca2
test cl, cl
je 0x498d58
cmp cl, 6
jb 0x498d58
shr ecx, 8
cmp cl, 3
jb 0x498d58
jmp 0x498caa
test cl, cl
je 0x498d58
mov eax, dword [ebx + 0xc]
mov edi, eax
mov dword [ebp - 0x2c], 0xc8976e
mov edx, dword [ebp - 0x2c]
sub edx, 0x53cdc2
cmp dword [eax + 0x14], 0x10
jb 0x498cc7
mov edi, dword [eax]
mov eax, dword [0x8300d0]
mov ecx, edx
mov dword [ebp - 0x28], eax
mov eax, dword [str.DesktopInstaller]
mov dword [ebp - 0x50], eax
lea eax, [ecx + 1]
mov dword [ebp - 0x2c], eax
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x498ce0
mov eax, dword [ebp - 0x34]
sub ecx, dword [ebp - 0x2c]
push 1
sub esp, 0x10
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x84], eax
mov eax, esp
mov dword [ebp - 0x90], edi
lea edi, [ebp - 0x90]
push ecx
push edx
push 3
push dword [ebp - 0x50]
mov dword [ebp - 0x88], esi
push dword [ebp - 0x28]
mov dword [eax], 0x2c
mov dword [eax + 4], 0
mov dword [eax + 8], edi
call fcn.00505470
mov eax, dword [ebp - 0x40]
add esp, 0x28
mov edi, dword [ebp - 0x44]
mov dword [ebp - 0x18], eax
jmp 0x498d58
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x498dc2
push 0
push eax
push edi
lea ecx, [ebp - 0x190]
call fcn.004998f0
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 0x498a30
cmp byte [0xa82632], 0
mov eax, dword [str.DesktopInstaller]
mov ecx, dword [0x8300d0]
mov dword [ebp - 0x54], eax
je 0x498eb3
cmp byte [0x8e0c40], 0
je 0x498eb3
test cl, cl
je 0x498fa4
cmp cl, 6
jb 0x498fa4
shr ecx, 8
cmp cl, 2
jb 0x498fa4
jmp 0x498ebb
mov edx, dword [ebp - 0x150]
xorps xmm0, xmm0
mov eax, edx
mov dword [ebp - 0x80], 0
and al, 0x22
mov byte [ebp - 4], 5
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0xf
mov byte [ebp - 0x80], 0
mov dword [ebp - 0x34], 2
movq qword [ebp - 0x64], xmm0
mov dword [ebp - 0x5c], 0
cmp al, 2
je 0x498e28
mov eax, dword [ebp - 0x16c]
mov ecx, dword [eax]
test ecx, ecx
je 0x498e28
mov eax, dword [ebp - 0x17c]
cmp ecx, dword [ebp - 0x154]
cmovb ecx, dword [ebp - 0x154]
mov edx, dword [eax]
sub ecx, edx
jmp 0x498e55
test dl, 4
jne 0x498e4f
mov eax, dword [ebp - 0x170]
mov esi, dword [eax]
test esi, esi
je 0x498e4f
mov eax, dword [ebp - 0x180]
mov edx, dword [eax]
mov eax, dword [ebp - 0x160]
mov ecx, dword [eax]
sub ecx, edx
add ecx, esi
jmp 0x498e55
mov ecx, dword [ebp - 0x60]
mov edx, dword [ebp - 0x64]
test edx, edx
je 0x498e63
push ecx
push edx
lea ecx, [ebp - 0x80]
call fcn.0047e790
mov ecx, dword [ebx + 0x10]
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 4], 2
call fcn.0047cba0
mov edx, dword [ebp - 0x6c]
cmp edx, 0x10
jb 0x498eaa
mov ecx, dword [ebp - 0x80]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x498ea0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x499080
push edx
push ecx
call fcn.00503df0
add esp, 8
mov byte [ebp - 0x11], 1
jmp 0x498fa8
test cl, cl
je 0x498fa4
mov dword [ebp - 0x34], 0xc42050
mov edi, dword [ebp - 0x34]
push 0
sub edi, 0x4f5740
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.0055f380
add esp, 0xc
mov ecx, eax
mov esi, dword [ebx + 0xc]
mov byte [ebp - 4], 3
cmp dword [esi + 0x14], 0x10
jb 0x498ef1
mov esi, dword [esi]
mov eax, dword [0x8300d0]
mov edx, edi
mov dword [ebp - 0x30], eax
mov eax, dword [str.DesktopInstaller]
mov dword [ebp - 0x54], eax
lea eax, [edx + 1]
mov dword [ebp - 0x34], eax
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x498f10
sub edx, dword [ebp - 0x34]
cmp dword [ecx + 0x14], 0x10
mov dword [ebp - 0x1c], ecx
jb 0x498f28
mov eax, dword [ecx]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ecx + 0x10]
push 1
sub esp, 0x10
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x60], eax
mov eax, esp
mov dword [ebp - 0x5c], ecx
lea ecx, [ebp - 0x68]
push edx
push edi
push 2
push dword [ebp - 0x54]
mov dword [ebp - 0x68], esi
push dword [ebp - 0x30]
mov dword [eax], 0xdc
mov dword [eax + 4], 0
mov dword [eax + 8], ecx
call fcn.00505470
mov edx, dword [ebp - 0x6c]
add esp, 0x28
mov byte [ebp - 4], 2
cmp edx, 0x10
jb 0x498fa1
mov ecx, dword [ebp - 0x80]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x498f97
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x49907b
push edx
push ecx
call fcn.00503df0
add esp, 8
mov edi, dword [ebp - 0x44]
mov byte [ebp - 0x11], 0
mov byte [ebp - 4], 1
test edi, edi
je 0x498fdd
mov ecx, dword [ebp - 0x3c]
mov eax, edi
sub ecx, edi
cmp ecx, 0x1000
jb 0x498fd3
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x499080
push ecx
push edi
call fcn.00503df0
add esp, 8
mov eax, dword [ebp - 0x190]
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 - 0x190]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0x194], eax
lea ecx, [ebp - 0x18c]
call fcn.00494970
mov eax, dword [ebp - 0x190]
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 - 0x190]
mov edx, dword [eax + 4]
lea ecx, [edx - 8]
mov dword [ebp + edx - 0x194], ecx
lea eax, [ebp - 0x140]
mov dword [ebp - 4], 6
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.006de4d5
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.006fee64
call fcn.0048d130
call fcn.0047e4c0
call fcn.006fee64
call fcn.006fee64
int3