Function at 0x4e7eb0
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 0x597ca1
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.0051adf0
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.004dccd0
mov edx, eax
cmp edx, 0xffffffff
je 0x4e7fcf
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 0x4e7faf
mov eax, dword [ebp - 0x18]
cmp eax, 0x10
jb 0x4e7f55
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.004b7bd0
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
cmp eax, 8
jb 0x4e7f7c
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 0x4e7fa5
inc eax
lea ecx, [ebp + 0x20]
push eax
push dword [ebp + 0x20]
call fcn.004a9d40
mov eax, 3
jmp 0x4e803d
cmp al, 0x33
je 0x4e8335
cmp al, 0x32
je 0x4e8396
lea ecx, [ebp - 0x2c]
cmp al, 0x31
jne 0x4e8441
jmp 0x4e83fa
cmp byte [esi], 1
jne 0x4e8499
lea eax, [ebp + 0x20]
mov edx, str._ScopedViewInline.aspx_updateid
push eax
lea ecx, [ebp - 0x8c]
call fcn.004c5100
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 0x4e8059
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.004b62c0
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.0053b206
mov esp, ebp
pop ebp
ret
push 4
lea eax, [ebp - 0xc4]
mov dword [ebp - 0xc4], 0xbb8
push eax
push 6
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 - 0xc0], ecx
push 0
test ecx, ecx
jne 0x4e80a9
mov byte [esi], al
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
jmp 0x4e800f
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], 0x5e2754
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 0x4e8110
mov byte [esi], al
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [ebp - 0xc0]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
jmp 0x4e800f
push 0
push 0
push 0
push ebx
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x4e8490
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.004bb740
push 0x5df834
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 5
call fcn.004a94b0
mov byte [ebp - 4], 6
nop
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 0x4e847a
cmp dword [ebp - 0xc8], 0
jbe 0x4e847a
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0xbc]
call fcn.0051a7e0
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 0x4e81c3
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 0x4e825e
add esi, eax
lea ecx, [ebp - 0x74]
push esi
push str.__span_
call fcn.004cf3b0
cmp eax, 0xffffffff
je 0x4e825e
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.004ccb20
test al, al
je 0x4e845e
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [ebp - 0xc0]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
lea ecx, [ebp - 0x5c]
call fcn.0051a310
mov edx, str.critical
lea ecx, [ebp - 0x5c]
call fcn.004b3a50
test al, al
je 0x4e82f6
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.004b62c0
lea ecx, [ebp - 0x8c]
call fcn.004a9470
lea ecx, [ebp - 0x2c]
call fcn.004b62c0
lea ecx, [ebp + 8]
call fcn.004a9470
lea ecx, [ebp + 0x20]
call fcn.004a9470
mov eax, 3
jmp 0x4e803d
mov edx, str.important
lea ecx, [ebp - 0x5c]
call fcn.004b3a50
test al, al
je 0x4e8357
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.004b62c0
lea ecx, [ebp - 0x8c]
call fcn.004a9470
lea ecx, [ebp - 0x2c]
call fcn.004b62c0
lea ecx, [ebp + 8]
call fcn.004a9470
lea ecx, [ebp + 0x20]
call fcn.004a9470
mov eax, 2
jmp 0x4e803d
mov edx, str.moderate
lea ecx, [ebp - 0x5c]
call fcn.004b3a50
test al, al
je 0x4e83b8
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.004b62c0
lea ecx, [ebp - 0x8c]
call fcn.004a9470
lea ecx, [ebp - 0x2c]
call fcn.004b62c0
lea ecx, [ebp + 8]
call fcn.004a9470
lea ecx, [ebp + 0x20]
call fcn.004a9470
mov eax, 1
jmp 0x4e803d
mov edx, 0x5e2fb0
lea ecx, [ebp - 0x5c]
call fcn.004b3a50
lea ecx, [ebp - 0xa4]
test al, al
je 0x4e8416
call fcn.004a9470
lea ecx, [ebp - 0x5c]
call fcn.004a9470
lea ecx, [ebp - 0x74]
call fcn.004a9470
lea ecx, [ebp - 0x44]
call fcn.004b62c0
lea ecx, [ebp - 0x8c]
call fcn.004a9470
lea ecx, [ebp - 0x2c]
call fcn.004b62c0
lea ecx, [ebp + 8]
call fcn.004a9470
lea ecx, [ebp + 0x20]
call fcn.004a9470
xor eax, eax
jmp 0x4e803d
call fcn.004a9470
lea ecx, [ebp - 0x5c]
call fcn.004a9470
lea ecx, [ebp - 0x74]
call fcn.004a9470
lea ecx, [ebp - 0x44]
call fcn.004b62c0
lea ecx, [ebp - 0x8c]
call fcn.004a9470
lea ecx, [ebp - 0x2c]
call fcn.004b62c0
lea ecx, [ebp + 8]
call fcn.004a9470
lea ecx, [ebp + 0x20]
call fcn.004a9470
or eax, 0xffffffff
jmp 0x4e803d
lea ecx, [ebp - 0xa4]
call fcn.004a9470
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 6
call fcn.004a9470
jmp 0x4e8160
lea ecx, [ebp - 0x74]
call fcn.004a9470
lea ecx, [ebp - 0x44]
call fcn.004b62c0
push ebx
jmp 0x4e80f8
mov byte [esi], 0
push ebx
jmp 0x4e80f8
mov eax, dword [ebp - 0x18]
cmp eax, 0x10
jb 0x4e84ae
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.004b7bd0
mov eax, dword [ebp + 0x1c]
cmp eax, 8
jb 0x4e84c3
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 0x4e803d
inc eax
lea ecx, [ebp + 0x20]
push eax
push dword [ebp + 0x20]
call fcn.004a9d40
jmp 0x4e803d