Function at 0x4f1cc0
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 0x59e611
mov eax, dword fs:[0]
push eax
sub esp, 0xcc
mov eax, dword [0x6121d4]
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.00520840
mov byte [ebp - 4], 3
lea eax, [ebp - 0x2c]
push dword [ebp - 0x1c]
cmp dword [ebp - 0x18], 0x10
mov edi, 0x61d224
push 0
cmovae eax, dword [ebp - 0x2c]
mov ecx, edi
push eax
call fcn.004e6bd0
mov edx, eax
cmp edx, 0xffffffff
je 0x4f1ddf
cmp dword [0x61d238], 0x10
mov eax, dword [ebp - 0x1c]
cmovae edi, dword [0x61d224]
add eax, edi
mov al, byte [eax + edx + 1]
cmp al, 0x34
jne 0x4f1dbf
mov eax, dword [ebp - 0x18]
cmp eax, 0x10
jb 0x4f1d65
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.004b3ec0
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
cmp eax, 8
jb 0x4f1d8c
inc eax
lea ecx, [ebp + 8]
push eax
push dword [ebp + 8]
call fcn.004abec0
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 0x4f1db5
inc eax
lea ecx, [ebp + 0x20]
push eax
push dword [ebp + 0x20]
call fcn.004abec0
mov eax, 3
jmp 0x4f1e4d
cmp al, 0x33
je 0x4f2167
cmp al, 0x32
je 0x4f21c8
lea ecx, [ebp - 0x2c]
cmp al, 0x31
jne 0x4f2273
jmp 0x4f222c
cmp byte [esi], 1
jne 0x4f22cb
lea eax, [ebp + 0x20]
mov edx, str._ScopedViewInline.aspx_updateid
push eax
lea ecx, [ebp - 0x8c]
call fcn.004c9510
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 0x4f1e69
mov byte [esi], al
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
lea ecx, [ebp - 0x8c]
call fcn.004ab5f0
lea ecx, [ebp - 0x2c]
call fcn.004b2290
lea ecx, [ebp + 8]
call fcn.004ab5f0
lea ecx, [ebp + 0x20]
call fcn.004ab5f0
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.00540c56
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 0x4f1edd
mov byte [esi], al
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
jmp 0x4f1e1f
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], 0x5ecb64
cmovae eax, dword [ebp - 0x8c]
push eax
push 0x5f0040
push ecx
mov dword [ebp - 0xcc], 0
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov ebx, eax
push 0
test ebx, ebx
jne 0x4f1f44
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 0x4f1e1f
push 0
push 0
push 0
push ebx
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x4f22c2
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.004bfb40
push 0x5e91b4
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 5
call fcn.004ab630
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 0x4f22ac
cmp dword [ebp - 0xc8], 0
jbe 0x4f22ac
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0xbc]
call fcn.00520230
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 7
call fcn.004b4030
lea ecx, [ebp - 0x74]
cmp ecx, eax
je 0x4f1ff5
push 0xffffffffffffffff
push 0
push eax
call fcn.004abb60
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], 6
call fcn.004ab5f0
push 0x5e91b4
lea ecx, [ebp - 0x5c]
call fcn.004ab630
push str._span_id_ScopedViewHandler_msrcSeverity__
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 8
call fcn.004ab630
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.004ab700
cmp eax, 0xffffffff
je 0x4f2090
add esi, eax
lea ecx, [ebp - 0x74]
push esi
push str.__span_
call fcn.004d9500
cmp eax, 0xffffffff
je 0x4f2090
sub eax, esi
lea ecx, [ebp - 0x74]
push eax
push esi
lea eax, [ebp - 0xbc]
push eax
call fcn.004b9450
push eax
lea ecx, [ebp - 0x5c]
call fcn.004b21e0
lea ecx, [ebp - 0xbc]
call fcn.004ab5f0
mov edx, 0x5e91b4
lea ecx, [ebp - 0x5c]
call fcn.004d6c70
test al, al
je 0x4f2290
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.0051fd60
mov edx, str.critical
lea ecx, [ebp - 0x5c]
call fcn.004b9490
test al, al
je 0x4f2128
lea ecx, [ebp - 0xa4]
call fcn.004ab5f0
lea ecx, [ebp - 0x5c]
call fcn.004ab5f0
lea ecx, [ebp - 0x74]
call fcn.004ab5f0
lea ecx, [ebp - 0x44]
call fcn.004b2290
lea ecx, [ebp - 0x8c]
call fcn.004ab5f0
lea ecx, [ebp - 0x2c]
call fcn.004b2290
lea ecx, [ebp + 8]
call fcn.004ab5f0
lea ecx, [ebp + 0x20]
call fcn.004ab5f0
mov eax, 3
jmp 0x4f1e4d
mov edx, str.important
lea ecx, [ebp - 0x5c]
call fcn.004b9490
test al, al
je 0x4f2189
lea ecx, [ebp - 0xa4]
call fcn.004ab5f0
lea ecx, [ebp - 0x5c]
call fcn.004ab5f0
lea ecx, [ebp - 0x74]
call fcn.004ab5f0
lea ecx, [ebp - 0x44]
call fcn.004b2290
lea ecx, [ebp - 0x8c]
call fcn.004ab5f0
lea ecx, [ebp - 0x2c]
call fcn.004b2290
lea ecx, [ebp + 8]
call fcn.004ab5f0
lea ecx, [ebp + 0x20]
call fcn.004ab5f0
mov eax, 2
jmp 0x4f1e4d
mov edx, str.moderate
lea ecx, [ebp - 0x5c]
call fcn.004b9490
test al, al
je 0x4f21ea
lea ecx, [ebp - 0xa4]
call fcn.004ab5f0
lea ecx, [ebp - 0x5c]
call fcn.004ab5f0
lea ecx, [ebp - 0x74]
call fcn.004ab5f0
lea ecx, [ebp - 0x44]
call fcn.004b2290
lea ecx, [ebp - 0x8c]
call fcn.004ab5f0
lea ecx, [ebp - 0x2c]
call fcn.004b2290
lea ecx, [ebp + 8]
call fcn.004ab5f0
lea ecx, [ebp + 0x20]
call fcn.004ab5f0
mov eax, 1
jmp 0x4f1e4d
mov edx, 0x5ed3e0
lea ecx, [ebp - 0x5c]
call fcn.004b9490
lea ecx, [ebp - 0xa4]
test al, al
je 0x4f2248
call fcn.004ab5f0
lea ecx, [ebp - 0x5c]
call fcn.004ab5f0
lea ecx, [ebp - 0x74]
call fcn.004ab5f0
lea ecx, [ebp - 0x44]
call fcn.004b2290
lea ecx, [ebp - 0x8c]
call fcn.004ab5f0
lea ecx, [ebp - 0x2c]
call fcn.004b2290
lea ecx, [ebp + 8]
call fcn.004ab5f0
lea ecx, [ebp + 0x20]
call fcn.004ab5f0
xor eax, eax
jmp 0x4f1e4d
call fcn.004ab5f0
lea ecx, [ebp - 0x5c]
call fcn.004ab5f0
lea ecx, [ebp - 0x74]
call fcn.004ab5f0
lea ecx, [ebp - 0x44]
call fcn.004b2290
lea ecx, [ebp - 0x8c]
call fcn.004ab5f0
lea ecx, [ebp - 0x2c]
call fcn.004b2290
lea ecx, [ebp + 8]
call fcn.004ab5f0
lea ecx, [ebp + 0x20]
call fcn.004ab5f0
or eax, 0xffffffff
jmp 0x4f1e4d
lea ecx, [ebp - 0xa4]
call fcn.004ab5f0
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 6
call fcn.004ab5f0
jmp 0x4f1f92
lea ecx, [ebp - 0x74]
call fcn.004ab5f0
lea ecx, [ebp - 0x44]
call fcn.004b2290
push ebx
jmp 0x4f1f2c
mov byte [esi], 0
push ebx
jmp 0x4f1f2c
mov eax, dword [ebp - 0x18]
cmp eax, 0x10
jb 0x4f22e0
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.004b3ec0
mov eax, dword [ebp + 0x1c]
cmp eax, 8
jb 0x4f22f5
inc eax
lea ecx, [ebp + 8]
push eax
push dword [ebp + 8]
call fcn.004abec0
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 0x4f1e4d
inc eax
lea ecx, [ebp + 0x20]
push eax
push dword [ebp + 0x20]
call fcn.004abec0
jmp 0x4f1e4d