Function at 0x498000
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 0x72fcab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x100
cmp byte [0xa82632], 0
mov eax, dword [str.DesktopInstaller]
mov ecx, dword [0x8300d0]
push esi
push edi
mov dword [ebp - 0x2c], eax
je 0x498073
cmp byte [0x8e0c40], 0
je 0x498073
test cl, cl
je 0x4980f9
cmp cl, 6
jb 0x4980f9
shr ecx, 8
cmp cl, 5
jb 0x4980f9
jmp 0x49807b
test cl, cl
je 0x4980f9
mov eax, dword [ebx + 0xc]
mov esi, eax
mov dword [ebp - 0x18], 0xb5bd96
mov edx, dword [ebp - 0x18]
sub edx, 0x40f5d6
cmp dword [eax + 0x14], 0x10
jb 0x498098
mov esi, dword [eax]
mov eax, dword [str.DesktopInstaller]
mov ecx, edx
mov edi, dword [0x8300d0]
mov dword [ebp - 0x28], eax
lea eax, [ecx + 1]
mov dword [ebp - 0x18], eax
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4980b0
mov eax, dword [ebx + 0x14]
sub ecx, dword [ebp - 0x18]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x2c]
push 1
sub esp, 0x10
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x4c], eax
mov eax, esp
mov dword [ebp - 0x50], esi
lea esi, [ebp - 0x58]
push ecx
push edx
push 5
push dword [ebp - 0x28]
mov dword [eax], 0xc2
push edi
mov dword [eax + 4], 0
mov dword [eax + 8], esi
call fcn.00505470
add esp, 0x28
push dword [ebx + 0x14]
mov esi, dword [ebx + 0x10]
mov ecx, esi
call fcn.00499090
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
push 0
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 0
push eax
push dword [ebx + 8]
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
je 0x4982fd
nop
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x38], eax
test eax, eax
je 0x4985f0
mov edi, dword [esi + 0x10]
add eax, edi
mov edx, dword [esi + 0x14]
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x44], edx
cmp eax, edi
ja 0x498169
mov ecx, esi
cmp edx, 0x10
jb 0x49815d
mov ecx, dword [esi]
mov dword [esi + 0x10], eax
mov byte [ecx + eax], 0
jmp 0x4982a1
mov ecx, eax
mov eax, edx
sub ecx, edi
sub eax, edi
mov dword [ebp - 0x3c], ecx
cmp ecx, eax
ja 0x4981ac
mov eax, dword [ebp - 0x38]
add eax, edi
mov dword [ebp - 0x14], esi
mov dword [esi + 0x10], eax
mov eax, esi
cmp edx, 0x10
jb 0x49818f
mov eax, dword [esi]
mov dword [ebp - 0x14], eax
push ecx
add eax, edi
push 0
push eax
call fcn.006f4b50
mov eax, dword [ebp - 0x3c]
add esp, 0xc
add eax, dword [ebp - 0x14]
mov byte [eax + edi], 0
jmp 0x4982a1
mov eax, bind
sub eax, edi
cmp eax, ecx
jb 0x498797
mov ecx, dword [ebp - 0x38]
add ecx, edi
or ecx, 0xf
cmp ecx, 0x7fffffff
jbe 0x4981d2
mov ecx, bind
jmp 0x4981f6
mov eax, edx
shr eax, 1
mov dword [ebp - 0x14], eax
mov eax, bind
sub eax, dword [ebp - 0x14]
cmp edx, eax
jbe 0x4981ec
mov ecx, bind
jmp 0x4981f6
mov eax, dword [ebp - 0x14]
add eax, edx
cmp ecx, eax
cmovb ecx, eax
lea eax, [ecx + 1]
mov dword [ebp - 0x14], ecx
push eax
mov ecx, esi
call fcn.0047e6a0
mov ecx, dword [ebp - 0x14]
mov edx, eax
mov eax, dword [ebp - 0x38]
add eax, edi
mov dword [esi + 0x14], ecx
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x3c]
lea ecx, [edx + edi]
add eax, ecx
mov dword [ebp - 0x18], edx
cmp dword [ebp - 0x44], 0x10
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x28], eax
push edi
jb 0x49827f
mov eax, dword [esi]
push eax
push edx
mov dword [ebp - 0x14], eax
call fcn.006f45d0
push dword [ebp - 0x3c]
push 0
push dword [ebp - 0x38]
call fcn.006f4b50
mov eax, dword [ebp - 0x28]
add esp, 0x18
mov ecx, dword [ebp - 0x44]
inc ecx
mov byte [eax], 0
mov eax, dword [ebp - 0x14]
cmp ecx, 0x1000
jb 0x498273
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x498792
mov eax, edx
push ecx
push eax
call fcn.00503df0
add esp, 8
jmp 0x49829c
push esi
push edx
call fcn.006f45d0
push dword [ebp - 0x3c]
push 0
push dword [ebp - 0x38]
call fcn.006f4b50
mov eax, dword [ebp - 0x28]
add esp, 0x18
mov byte [eax], 0
mov eax, dword [ebp - 0x18]
mov dword [esi], eax
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x4982ab
mov eax, dword [esi]
lea ecx, [ebp - 0x40]
add eax, edi
push ecx
push dword [ebp - 0x34]
push eax
push dword [ebx + 8]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x498418
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x4985f0
push 0
add eax, edi
mov ecx, esi
push eax
call fcn.004991f0
push 0
push 0
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 0
push eax
push dword [ebx + 8]
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
jne 0x498130
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xf8]
push eax
call fcn.0055f380
add esp, 0xc
mov edx, dword [ebx + 0xc]
mov dword [ebp - 4], 0
cmp dword [edx + 0x14], 0x10
jb 0x498327
mov edx, dword [edx]
cmp dword [eax + 0x14], 0x10
mov edi, eax
jb 0x498331
mov edi, dword [eax]
mov ecx, dword [eax + 0x10]
sub esp, 0x10
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x74], eax
mov eax, esp
mov dword [ebp - 0x6c], ecx
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x78], edx
mov dword [ebp - 0x70], edi
push 0x2d
mov dword [eax], 0xdc
mov dword [eax + 4], 0
mov dword [eax + 8], ecx
lea eax, [ebp - 0xa8]
push str.failed_to_query_bytes_left_from___error:_
push eax
call fcn.00480f70
add esp, 0x1c
lea eax, [ebp - 0xa8]
mov ecx, esi
push eax
call fcn.0047cba0
mov edx, dword [ebp - 0x94]
cmp edx, 0x10
jb 0x4983b9
mov ecx, dword [ebp - 0xa8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4983af
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x49878d
push edx
push ecx
call fcn.00503df0
add esp, 8
mov edx, dword [ebp - 0xe4]
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x94], 0xf
mov byte [ebp - 0xa8], 0
mov dword [ebp - 4], 0xffffffff
cmp edx, 0x10
jb 0x4986ae
mov ecx, dword [ebp - 0xf8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4986a4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x49878d
jmp 0x4986a4
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xe0]
push eax
call fcn.0055f380
add esp, 0xc
mov edx, dword [ebx + 0xc]
mov dword [ebp - 4], 1
cmp dword [edx + 0x14], 0x10
jb 0x498442
mov edx, dword [edx]
cmp dword [eax + 0x14], 0x10
mov edi, eax
jb 0x49844c
mov edi, dword [eax]
mov ecx, dword [eax + 0x10]
sub esp, 0x10
mov eax, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x34]
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0xb4], eax
mov eax, esp
mov dword [ebp - 0xc0], edx
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0xac], ecx
lea ecx, [ebp - 0xc8]
mov dword [ebp - 0xc8], esi
mov dword [ebp - 0xb8], edx
mov dword [ebp - 0xb0], edi
push 0x3f
mov dword [eax], 0xd2c2
mov dword [eax + 4], 0
mov dword [eax + 8], ecx
lea eax, [ebp - 0x90]
push str.failed_to_read__bytes_left_from___bytes_read:___error:_
push eax
call fcn.00480f70
mov esi, dword [ebx + 0x10]
lea eax, [ebp - 0x90]
add esp, 0x1c
mov ecx, esi
push eax
call fcn.0047cba0
mov edx, dword [ebp - 0x7c]
cmp edx, 0x10
jb 0x498507
mov ecx, dword [ebp - 0x90]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4984fd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x498792
push edx
push ecx
call fcn.00503df0
add esp, 8
mov edx, dword [ebp - 0xcc]
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0xf
mov byte [ebp - 0x90], 0
mov dword [ebp - 4], 0xffffffff
cmp edx, 0x10
jb 0x49855d
mov ecx, dword [ebp - 0xe0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x498553
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x498792
push edx
push ecx
call fcn.00503df0
add esp, 8
cmp byte [0xa82632], 0
mov eax, dword [str.DesktopInstaller]
mov ecx, dword [0x8300d0]
mov dword [ebp - 0xd0], 0
mov dword [ebp - 0xcc], 0xf
mov byte [ebp - 0xe0], 0
mov dword [ebp - 0x18], eax
je 0x4985b7
cmp byte [0x8e0c40], 0
je 0x4985b7
test cl, cl
je 0x498778
cmp cl, 6
jb 0x498778
shr ecx, 8
cmp cl, 2
jb 0x498778
jmp 0x4985bf
test cl, cl
je 0x498778
mov dword [ebp - 0x18], 0xbbe88b
mov edx, dword [ebp - 0x18]
mov eax, dword [0x8300d0]
sub edx, 0x4728a7
mov ecx, edx
mov dword [ebp - 0x28], eax
mov eax, dword [str.DesktopInstaller]
mov dword [ebp - 0x18], eax
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4985e4
jmp 0x498737
mov ecx, dword [esi + 0x10]
mov edx, dword [ebx + 0x14]
cmp ecx, edx
je 0x49868f
mov eax, dword [ebp - 0x2c]
sub esp, 0x10
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x5c], eax
mov eax, esp
mov dword [ebp - 0x68], ecx
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x60], edx
push 0x4b
mov dword [eax], 0x22
mov dword [eax + 4], 0
mov dword [eax + 8], ecx
lea eax, [ebp - 0x110]
push str.failed_size_comparison._buf_size__not_equal_to_expected_content_length_
push eax
call fcn.00480f70
add esp, 0x1c
lea eax, [ebp - 0x110]
mov ecx, esi
push eax
call fcn.0047cba0
mov edx, dword [ebp - 0xfc]
cmp edx, 0x10
jb 0x498778
mov ecx, dword [ebp - 0x110]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x498680
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x49879c
push edx
push ecx
call fcn.00503df0
add esp, 8
jmp 0x498778
mov al, 1
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
push edx
push ecx
call fcn.00503df0
add esp, 8
cmp byte [0xa82632], 0
mov eax, dword [str.DesktopInstaller]
mov ecx, dword [0x8300d0]
mov dword [ebp - 0xe8], 0
mov dword [ebp - 0xe4], 0xf
mov byte [ebp - 0xf8], 0
mov dword [ebp - 0x18], eax
je 0x498704
cmp byte [0x8e0c40], 0
je 0x498704
test cl, cl
je 0x498778
cmp cl, 6
jb 0x498778
shr ecx, 8
cmp cl, 2
jb 0x498778
jmp 0x498708
test cl, cl
je 0x498778
mov dword [ebp - 0x18], 0xb86fed
mov edx, dword [ebp - 0x18]
mov eax, dword [0x8300d0]
sub edx, 0x43b009
mov ecx, edx
mov dword [ebp - 0x28], eax
mov eax, dword [str.DesktopInstaller]
mov dword [ebp - 0x18], eax
lea edi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x498730
sub ecx, edi
cmp dword [esi + 0x14], 0x10
mov edi, esi
jb 0x498743
mov edi, dword [esi]
mov eax, dword [esi + 0x10]
lea esi, [ebp - 0x30]
push 1
sub esp, 0x10
mov dword [ebp - 0x2c], eax
mov eax, esp
mov dword [ebp - 0x30], edi
push ecx
push edx
push 2
push dword [ebp - 0x18]
mov dword [eax], 0xd
push dword [ebp - 0x28]
mov dword [eax + 4], 0
mov dword [eax + 8], esi
call fcn.00505470
add esp, 0x28
mov ecx, dword [ebp - 0xc]
xor al, al
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.006fee64
call fcn.006fee64
call fcn.0047e500
call fcn.006fee64
int3