Function at 0x4e7f90
Capabilities:
Connect to http server
Create http request
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x597fd1
mov eax, dword fs:[0]
push eax
sub esp, 0xcc
mov eax, dword [0x6071d4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 4], 0
lea edx, [ebp + 8]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
call fcn.0051b0f0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x2c]
push dword [ebp - 0x1c]
cmp dword [ebp - 0x18], 0x10
mov edi, 0x6118e4
push 0
cmovae eax, dword [ebp - 0x2c]
mov ecx, edi
push eax
call fcn.004dcd90
mov edx, eax
cmp edx, 0xffffffff
je 0x4e80af
cmp dword [0x6118f8], 0x10
mov eax, dword [ebp - 0x1c]
cmovae edi, dword [0x6118e4]
add eax, edi
mov al, byte [eax + edx + 1]
cmp al, 0x34
jne 0x4e808f
mov eax, dword [ebp - 0x18]
cmp eax, 0x10
jb 0x4e8035
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.004b7c60
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
cmp eax, 8
jb 0x4e805c
inc eax
lea ecx, [ebp + 8]
push eax
push dword [ebp + 8]
call fcn.004a9d40
xor eax, eax
mov dword [ebp + 0x1c], 7
mov word [ebp + 8], ax
mov eax, dword [ebp + 0x34]
mov dword [ebp + 0x18], 0
cmp eax, 8
jb 0x4e8085
inc eax
lea ecx, [ebp + 0x20]
push eax
push dword [ebp + 0x20]
call fcn.004a9d40
mov eax, 3
jmp 0x4e811d
cmp al, 0x33
je 0x4e8437
cmp al, 0x32
je 0x4e8498
lea ecx, [ebp - 0x2c]
cmp al, 0x31
jne 0x4e8543
jmp 0x4e84fc
cmp byte [esi], 1
jne 0x4e859b
lea eax, [ebp + 0x20]
mov edx, str._ScopedViewInline.aspx_updateid
push eax
lea ecx, [ebp - 0x8c]
call fcn.004c51d0
add esp, 4
push 0
push 0
push 0
push 0
push str.HTTPGET_agent
mov byte [ebp - 4], 4
call dword [sym.imp.WININET.dll_InternetOpenW]
mov edi, eax
test edi, edi
jne 0x4e8139
mov byte [esi], al
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
lea ecx, [ebp - 0x8c]
call fcn.004a9470
lea ecx, [ebp - 0x2c]
call fcn.004b62f0
lea ecx, [ebp + 8]
call fcn.004a9470
lea ecx, [ebp + 0x20]
call fcn.004a9470
mov eax, 0xfffffffe
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0053b526
mov esp, ebp
pop ebp
ret
push 4
lea eax, [ebp - 0xc0]
mov dword [ebp - 0xc0], 0xbb8
push eax
push 6
push edi
call dword [sym.imp.WININET.dll_InternetSetOptionW]
push 4
lea eax, [ebp - 0xc0]
push eax
push 5
push edi
call dword [sym.imp.WININET.dll_InternetSetOptionW]
push 4
lea eax, [ebp - 0xc0]
push eax
push 2
push edi
call dword [sym.imp.WININET.dll_InternetSetOptionW]
push 0
push 0
push 3
push 0
push 0
push 0x50
push str.www.catalog.update.microsoft.com
push edi
call dword [sym.imp.WININET.dll_InternetConnectW]
mov ecx, eax
mov dword [ebp - 0xc4], ecx
push 0
test ecx, ecx
jne 0x4e81ad
mov byte [esi], al
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
jmp 0x4e80ef
cmp dword [ebp - 0x78], 8
lea edx, [ebp - 0xd0]
push 0x4400000
push edx
push 0
push str.HTTP_1.1
lea eax, [ebp - 0x8c]
mov dword [ebp - 0xd0], 0x5e274c
cmovae eax, dword [ebp - 0x8c]
push eax
push 0x5e5c3c
push ecx
mov dword [ebp - 0xcc], 0
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov ebx, eax
push 0
test ebx, ebx
jne 0x4e8214
mov byte [esi], al
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [ebp - 0xc4]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
jmp 0x4e80ef
push 0
push 0
push 0
push ebx
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x4e8592
push 0
push 0x2000
lea ecx, [ebp - 0x44]
mov byte [esi], 1
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x44], 0
call fcn.004bb800
push 0x5df834
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 5
call fcn.004a94b0
mov byte [ebp - 4], 6
cmp dword [ebp - 0x30], 0x10
lea ecx, [ebp - 0xc8]
push ecx
push dword [ebp - 0x34]
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push eax
push ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
cmp eax, 1
jne 0x4e857c
cmp dword [ebp - 0xc8], 0
jbe 0x4e857c
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0xbc]
call fcn.0051aae0
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 7
call fcn.004af740
lea ecx, [ebp - 0x74]
cmp ecx, eax
je 0x4e82c5
push 0xffffffffffffffff
push 0
push eax
call fcn.004a99e0
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], 6
call fcn.004a9470
push 0x5df834
lea ecx, [ebp - 0x5c]
call fcn.004a94b0
push 0x5e5cc0
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 8
call fcn.004a94b0
mov byte [ebp - 4], 9
lea eax, [ebp - 0xa4]
cmp dword [ebp - 0x90], 8
lea ecx, [ebp - 0x74]
mov esi, dword [ebp - 0x94]
cmovae eax, dword [ebp - 0xa4]
push esi
push 0
push eax
call fcn.004a9580
cmp eax, 0xffffffff
je 0x4e8360
add esi, eax
lea ecx, [ebp - 0x74]
push esi
push str.__span_
call fcn.004cf470
cmp eax, 0xffffffff
je 0x4e8360
sub eax, esi
lea ecx, [ebp - 0x74]
push eax
push esi
lea eax, [ebp - 0xbc]
push eax
call fcn.004b3a10
push eax
lea ecx, [ebp - 0x5c]
call fcn.004af000
lea ecx, [ebp - 0xbc]
call fcn.004a9470
mov edx, 0x5df834
lea ecx, [ebp - 0x5c]
call fcn.004ccbf0
test al, al
je 0x4e8560
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [ebp - 0xc4]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
lea ecx, [ebp - 0x5c]
call fcn.0051a610
mov edx, str.critical
lea ecx, [ebp - 0x5c]
call fcn.004b3a50
test al, al
je 0x4e83f8
lea ecx, [ebp - 0xa4]
call fcn.004a9470
lea ecx, [ebp - 0x5c]
call fcn.004a9470
lea ecx, [ebp - 0x74]
call fcn.004a9470
lea ecx, [ebp - 0x44]
call fcn.004b62f0
lea ecx, [ebp - 0x8c]
call fcn.004a9470
lea ecx, [ebp - 0x2c]
call fcn.004b62f0
lea ecx, [ebp + 8]
call fcn.004a9470
lea ecx, [ebp + 0x20]
call fcn.004a9470
mov eax, 3
jmp 0x4e811d
mov edx, str.important
lea ecx, [ebp - 0x5c]
call fcn.004b3a50
test al, al
je 0x4e8459
lea ecx, [ebp - 0xa4]
call fcn.004a9470
lea ecx, [ebp - 0x5c]
call fcn.004a9470
lea ecx, [ebp - 0x74]
call fcn.004a9470
lea ecx, [ebp - 0x44]
call fcn.004b62f0
lea ecx, [ebp - 0x8c]
call fcn.004a9470
lea ecx, [ebp - 0x2c]
call fcn.004b62f0
lea ecx, [ebp + 8]
call fcn.004a9470
lea ecx, [ebp + 0x20]
call fcn.004a9470
mov eax, 2
jmp 0x4e811d
mov edx, str.moderate
lea ecx, [ebp - 0x5c]
call fcn.004b3a50
test al, al
je 0x4e84ba
lea ecx, [ebp - 0xa4]
call fcn.004a9470
lea ecx, [ebp - 0x5c]
call fcn.004a9470
lea ecx, [ebp - 0x74]
call fcn.004a9470
lea ecx, [ebp - 0x44]
call fcn.004b62f0
lea ecx, [ebp - 0x8c]
call fcn.004a9470
lea ecx, [ebp - 0x2c]
call fcn.004b62f0
lea ecx, [ebp + 8]
call fcn.004a9470
lea ecx, [ebp + 0x20]
call fcn.004a9470
mov eax, 1
jmp 0x4e811d
mov edx, 0x5e2fa8
lea ecx, [ebp - 0x5c]
call fcn.004b3a50
lea ecx, [ebp - 0xa4]
test al, al
je 0x4e8518
call fcn.004a9470
lea ecx, [ebp - 0x5c]
call fcn.004a9470
lea ecx, [ebp - 0x74]
call fcn.004a9470
lea ecx, [ebp - 0x44]
call fcn.004b62f0
lea ecx, [ebp - 0x8c]
call fcn.004a9470
lea ecx, [ebp - 0x2c]
call fcn.004b62f0
lea ecx, [ebp + 8]
call fcn.004a9470
lea ecx, [ebp + 0x20]
call fcn.004a9470
xor eax, eax
jmp 0x4e811d
call fcn.004a9470
lea ecx, [ebp - 0x5c]
call fcn.004a9470
lea ecx, [ebp - 0x74]
call fcn.004a9470
lea ecx, [ebp - 0x44]
call fcn.004b62f0
lea ecx, [ebp - 0x8c]
call fcn.004a9470
lea ecx, [ebp - 0x2c]
call fcn.004b62f0
lea ecx, [ebp + 8]
call fcn.004a9470
lea ecx, [ebp + 0x20]
call fcn.004a9470
or eax, 0xffffffff
jmp 0x4e811d
lea ecx, [ebp - 0xa4]
call fcn.004a9470
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 6
call fcn.004a9470
jmp 0x4e8262
lea ecx, [ebp - 0x74]
call fcn.004a9470
lea ecx, [ebp - 0x44]
call fcn.004b62f0
push ebx
jmp 0x4e81fc
mov byte [esi], 0
push ebx
jmp 0x4e81fc
mov eax, dword [ebp - 0x18]
cmp eax, 0x10
jb 0x4e85b0
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.004b7c60
mov eax, dword [ebp + 0x1c]
cmp eax, 8
jb 0x4e85c5
inc eax
lea ecx, [ebp + 8]
push eax
push dword [ebp + 8]
call fcn.004a9d40
xor eax, eax
mov dword [ebp + 0x1c], 7
mov word [ebp + 8], ax
mov eax, dword [ebp + 0x34]
mov dword [ebp + 0x18], 0
cmp eax, 8
jb 0x4e811d
inc eax
lea ecx, [ebp + 0x20]
push eax
push dword [ebp + 0x20]
call fcn.004a9d40
jmp 0x4e811d