Function at 0x4a0440
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 0x7408ab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x100
cmp byte [0xa968b0], 0
mov eax, dword [str.DesktopInstaller]
mov ecx, dword [0x8450d0]
push esi
push edi
mov dword [ebp - 0x2c], eax
je 0x4a04b3
cmp byte [0x8f63f8], 0
je 0x4a04b3
test cl, cl
je 0x4a0539
cmp cl, 6
jb 0x4a0539
shr ecx, 8
cmp cl, 5
jb 0x4a0539
jmp 0x4a04bb
test cl, cl
je 0x4a0539
mov eax, dword [ebx + 0xc]
mov esi, eax
mov dword [ebp - 0x18], 0xf6d9d4
mov edx, dword [ebp - 0x18]
sub edx, 0x80dd8c
cmp dword [eax + 0x14], 0x10
jb 0x4a04d8
mov esi, dword [eax]
mov eax, dword [str.DesktopInstaller]
mov ecx, edx
mov edi, dword [0x8450d0]
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 0x4a04f0
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.00518420
add esp, 0x28
push dword [ebx + 0x14]
mov esi, dword [ebx + 0x10]
mov ecx, esi
call fcn.004a1590
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 0x4a073d
nop
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x38], eax
test eax, eax
je 0x4a0a30
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 0x4a05a9
mov ecx, esi
cmp edx, 0x10
jb 0x4a059d
mov ecx, dword [esi]
mov dword [esi + 0x10], eax
mov byte [ecx + eax], 0
jmp 0x4a06e1
mov ecx, eax
mov eax, edx
sub ecx, edi
sub eax, edi
mov dword [ebp - 0x3c], ecx
cmp ecx, eax
ja 0x4a05ec
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 0x4a05cf
mov eax, dword [esi]
mov dword [ebp - 0x14], eax
push ecx
add eax, edi
push 0
push eax
call fcn.007051b0
mov eax, dword [ebp - 0x3c]
add esp, 0xc
add eax, dword [ebp - 0x14]
mov byte [eax + edi], 0
jmp 0x4a06e1
mov eax, bind
sub eax, edi
cmp eax, ecx
jb 0x4a0bd7
mov ecx, dword [ebp - 0x38]
add ecx, edi
or ecx, 0xf
cmp ecx, 0x7fffffff
jbe 0x4a0612
mov ecx, bind
jmp 0x4a0636
mov eax, edx
shr eax, 1
mov dword [ebp - 0x14], eax
mov eax, bind
sub eax, dword [ebp - 0x14]
cmp edx, eax
jbe 0x4a062c
mov ecx, bind
jmp 0x4a0636
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.00486a30
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 0x4a06bf
mov eax, dword [esi]
push eax
push edx
mov dword [ebp - 0x14], eax
call fcn.00704c30
push dword [ebp - 0x3c]
push 0
push dword [ebp - 0x38]
call fcn.007051b0
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 0x4a06b3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a0bd2
mov eax, edx
push ecx
push eax
call fcn.00516d60
add esp, 8
jmp 0x4a06dc
push esi
push edx
call fcn.00704c30
push dword [ebp - 0x3c]
push 0
push dword [ebp - 0x38]
call fcn.007051b0
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 0x4a06eb
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 0x4a0858
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x4a0a30
push 0
add eax, edi
mov ecx, esi
push eax
call fcn.004a16f0
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 0x4a0570
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xf8]
push eax
call fcn.005707c0
add esp, 0xc
mov edx, dword [ebx + 0xc]
mov dword [ebp - 4], 0
cmp dword [edx + 0x14], 0x10
jb 0x4a0767
mov edx, dword [edx]
cmp dword [eax + 0x14], 0x10
mov edi, eax
jb 0x4a0771
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.004894e0
add esp, 0x1c
lea eax, [ebp - 0xa8]
mov ecx, esi
push eax
call fcn.00484f30
mov edx, dword [ebp - 0x94]
cmp edx, 0x10
jb 0x4a07f9
mov ecx, dword [ebp - 0xa8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4a07ef
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a0bcd
push edx
push ecx
call fcn.00516d60
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 0x4a0aee
mov ecx, dword [ebp - 0xf8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4a0ae4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a0bcd
jmp 0x4a0ae4
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xe0]
push eax
call fcn.005707c0
add esp, 0xc
mov edx, dword [ebx + 0xc]
mov dword [ebp - 4], 1
cmp dword [edx + 0x14], 0x10
jb 0x4a0882
mov edx, dword [edx]
cmp dword [eax + 0x14], 0x10
mov edi, eax
jb 0x4a088c
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.004894e0
mov esi, dword [ebx + 0x10]
lea eax, [ebp - 0x90]
add esp, 0x1c
mov ecx, esi
push eax
call fcn.00484f30
mov edx, dword [ebp - 0x7c]
cmp edx, 0x10
jb 0x4a0947
mov ecx, dword [ebp - 0x90]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4a093d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a0bd2
push edx
push ecx
call fcn.00516d60
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 0x4a099d
mov ecx, dword [ebp - 0xe0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4a0993
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a0bd2
push edx
push ecx
call fcn.00516d60
add esp, 8
cmp byte [0xa968b0], 0
mov eax, dword [str.DesktopInstaller]
mov ecx, dword [0x8450d0]
mov dword [ebp - 0xd0], 0
mov dword [ebp - 0xcc], 0xf
mov byte [ebp - 0xe0], 0
mov dword [ebp - 0x18], eax
je 0x4a09f7
cmp byte [0x8f63f8], 0
je 0x4a09f7
test cl, cl
je 0x4a0bb8
cmp cl, 6
jb 0x4a0bb8
shr ecx, 8
cmp cl, 2
jb 0x4a0bb8
jmp 0x4a09ff
test cl, cl
je 0x4a0bb8
mov dword [ebp - 0x18], 0x1027e07
mov edx, dword [ebp - 0x18]
mov eax, dword [0x8450d0]
sub edx, 0x8c89bb
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 0x4a0a24
jmp 0x4a0b77
mov ecx, dword [esi + 0x10]
mov edx, dword [ebx + 0x14]
cmp ecx, edx
je 0x4a0acf
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.004894e0
add esp, 0x1c
lea eax, [ebp - 0x110]
mov ecx, esi
push eax
call fcn.00484f30
mov edx, dword [ebp - 0xfc]
cmp edx, 0x10
jb 0x4a0bb8
mov ecx, dword [ebp - 0x110]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4a0ac0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a0bdc
push edx
push ecx
call fcn.00516d60
add esp, 8
jmp 0x4a0bb8
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.00516d60
add esp, 8
cmp byte [0xa968b0], 0
mov eax, dword [str.DesktopInstaller]
mov ecx, dword [0x8450d0]
mov dword [ebp - 0xe8], 0
mov dword [ebp - 0xe4], 0xf
mov byte [ebp - 0xf8], 0
mov dword [ebp - 0x18], eax
je 0x4a0b44
cmp byte [0x8f63f8], 0
je 0x4a0b44
test cl, cl
je 0x4a0bb8
cmp cl, 6
jb 0x4a0bb8
shr ecx, 8
cmp cl, 2
jb 0x4a0bb8
jmp 0x4a0b48
test cl, cl
je 0x4a0bb8
mov dword [ebp - 0x18], 0xfbf4a5
mov edx, dword [ebp - 0x18]
mov eax, dword [0x8450d0]
sub edx, 0x860059
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 0x4a0b70
sub ecx, edi
cmp dword [esi + 0x14], 0x10
mov edi, esi
jb 0x4a0b83
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.00518420
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.0070f5b4
call fcn.0070f5b4
call fcn.00486890
call fcn.0070f5b4
int3