Function at 0x49db80
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 0x73c23b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x100
cmp byte [0xa902b2], 0
mov eax, dword [str.DesktopInstaller]
mov ecx, dword [0x83f0d0]
push esi
push edi
mov dword [ebp - 0x2c], eax
je 0x49dbf3
cmp byte [0x8f028c], 0
je 0x49dbf3
test cl, cl
je 0x49dc79
cmp cl, 6
jb 0x49dc79
shr ecx, 8
cmp cl, 5
jb 0x49dc79
jmp 0x49dbfb
test cl, cl
je 0x49dc79
mov eax, dword [ebx + 0xc]
mov esi, eax
mov dword [ebp - 0x18], 0xe518c6
mov edx, dword [ebp - 0x18]
sub edx, 0x6f6e46
cmp dword [eax + 0x14], 0x10
jb 0x49dc18
mov esi, dword [eax]
mov eax, dword [str.DesktopInstaller]
mov ecx, edx
mov edi, dword [0x83f0d0]
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 0x49dc30
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.00513f20
add esp, 0x28
push dword [ebx + 0x14]
mov esi, dword [ebx + 0x10]
mov ecx, esi
call fcn.0049ec10
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 0x49de7d
nop
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x38], eax
test eax, eax
je 0x49e170
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 0x49dce9
mov ecx, esi
cmp edx, 0x10
jb 0x49dcdd
mov ecx, dword [esi]
mov dword [esi + 0x10], eax
mov byte [ecx + eax], 0
jmp 0x49de21
mov ecx, eax
mov eax, edx
sub ecx, edi
sub eax, edi
mov dword [ebp - 0x3c], ecx
cmp ecx, eax
ja 0x49dd2c
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 0x49dd0f
mov eax, dword [esi]
mov dword [ebp - 0x14], eax
push ecx
add eax, edi
push 0
push eax
call fcn.007012e0
mov eax, dword [ebp - 0x3c]
add esp, 0xc
add eax, dword [ebp - 0x14]
mov byte [eax + edi], 0
jmp 0x49de21
mov eax, bind
sub eax, edi
cmp eax, ecx
jb 0x49e317
mov ecx, dword [ebp - 0x38]
add ecx, edi
or ecx, 0xf
cmp ecx, 0x7fffffff
jbe 0x49dd52
mov ecx, bind
jmp 0x49dd76
mov eax, edx
shr eax, 1
mov dword [ebp - 0x14], eax
mov eax, bind
sub eax, dword [ebp - 0x14]
cmp edx, eax
jbe 0x49dd6c
mov ecx, bind
jmp 0x49dd76
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.00483da0
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 0x49ddff
mov eax, dword [esi]
push eax
push edx
mov dword [ebp - 0x14], eax
call fcn.00700d60
push dword [ebp - 0x3c]
push 0
push dword [ebp - 0x38]
call fcn.007012e0
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 0x49ddf3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x49e312
mov eax, edx
push ecx
push eax
call fcn.00512900
add esp, 8
jmp 0x49de1c
push esi
push edx
call fcn.00700d60
push dword [ebp - 0x3c]
push 0
push dword [ebp - 0x38]
call fcn.007012e0
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 0x49de2b
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 0x49df98
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x49e170
push 0
add eax, edi
mov ecx, esi
push eax
call fcn.0049ed70
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 0x49dcb0
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xf8]
push eax
call fcn.0056bc00
add esp, 0xc
mov edx, dword [ebx + 0xc]
mov dword [ebp - 4], 0
cmp dword [edx + 0x14], 0x10
jb 0x49dea7
mov edx, dword [edx]
cmp dword [eax + 0x14], 0x10
mov edi, eax
jb 0x49deb1
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.00486680
add esp, 0x1c
lea eax, [ebp - 0xa8]
mov ecx, esi
push eax
call fcn.004822a0
mov edx, dword [ebp - 0x94]
cmp edx, 0x10
jb 0x49df39
mov ecx, dword [ebp - 0xa8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x49df2f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x49e30d
push edx
push ecx
call fcn.00512900
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 0x49e22e
mov ecx, dword [ebp - 0xf8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x49e224
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x49e30d
jmp 0x49e224
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xe0]
push eax
call fcn.0056bc00
add esp, 0xc
mov edx, dword [ebx + 0xc]
mov dword [ebp - 4], 1
cmp dword [edx + 0x14], 0x10
jb 0x49dfc2
mov edx, dword [edx]
cmp dword [eax + 0x14], 0x10
mov edi, eax
jb 0x49dfcc
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.00486680
mov esi, dword [ebx + 0x10]
lea eax, [ebp - 0x90]
add esp, 0x1c
mov ecx, esi
push eax
call fcn.004822a0
mov edx, dword [ebp - 0x7c]
cmp edx, 0x10
jb 0x49e087
mov ecx, dword [ebp - 0x90]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x49e07d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x49e312
push edx
push ecx
call fcn.00512900
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 0x49e0dd
mov ecx, dword [ebp - 0xe0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x49e0d3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x49e312
push edx
push ecx
call fcn.00512900
add esp, 8
cmp byte [0xa902b2], 0
mov eax, dword [str.DesktopInstaller]
mov ecx, dword [0x83f0d0]
mov dword [ebp - 0xd0], 0
mov dword [ebp - 0xcc], 0xf
mov byte [ebp - 0xe0], 0
mov dword [ebp - 0x18], eax
je 0x49e137
cmp byte [0x8f028c], 0
je 0x49e137
test cl, cl
je 0x49e2f8
cmp cl, 6
jb 0x49e2f8
shr ecx, 8
cmp cl, 2
jb 0x49e2f8
jmp 0x49e13f
test cl, cl
je 0x49e2f8
mov dword [ebp - 0x18], 0xefb2e3
mov edx, dword [ebp - 0x18]
mov eax, dword [0x83f0d0]
sub edx, 0x7a103f
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 0x49e164
jmp 0x49e2b7
mov ecx, dword [esi + 0x10]
mov edx, dword [ebx + 0x14]
cmp ecx, edx
je 0x49e20f
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.00486680
add esp, 0x1c
lea eax, [ebp - 0x110]
mov ecx, esi
push eax
call fcn.004822a0
mov edx, dword [ebp - 0xfc]
cmp edx, 0x10
jb 0x49e2f8
mov ecx, dword [ebp - 0x110]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x49e200
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x49e31c
push edx
push ecx
call fcn.00512900
add esp, 8
jmp 0x49e2f8
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.00512900
add esp, 8
cmp byte [0xa902b2], 0
mov eax, dword [str.DesktopInstaller]
mov ecx, dword [0x83f0d0]
mov dword [ebp - 0xe8], 0
mov dword [ebp - 0xe4], 0xf
mov byte [ebp - 0xf8], 0
mov dword [ebp - 0x18], eax
je 0x49e284
cmp byte [0x8f028c], 0
je 0x49e284
test cl, cl
je 0x49e2f8
cmp cl, 6
jb 0x49e2f8
shr ecx, 8
cmp cl, 2
jb 0x49e2f8
jmp 0x49e288
test cl, cl
je 0x49e2f8
mov dword [ebp - 0x18], 0xe9be95
mov edx, dword [ebp - 0x18]
mov eax, dword [0x83f0d0]
sub edx, 0x741bf1
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 0x49e2b0
sub ecx, edi
cmp dword [esi + 0x14], 0x10
mov edi, esi
jb 0x49e2c3
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.00513f20
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.0070b6e4
call fcn.0070b6e4
call fcn.00483c00
call fcn.0070b6e4
int3