Function at 0x401550
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40fd40
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x417168]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push ecx
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x38], 0
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push 0
mov ebx, eax
mov dword [ebp - 0x14], 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
push 0
push 0
push 0
push 3
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
lea eax, [ebp - 0x30]
push eax
push 0x4103a8
push 1
push 0
push 0x410348
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
jns 0x401617
push esi
push str.Failed_to_create_IWbemLocator_object._Error_code:_0x_08x_n
call fcn.00401170
add esp, 8
jmp 0x401832
push str.ROOTMicrosoftWindowsDefender
lea ecx, [ebp - 0x4c]
call fcn.00401440
mov dword [ebp - 4], 0
mov eax, dword [eax]
test eax, eax
je 0x401635
mov edx, dword [eax]
jmp 0x401637
xor edx, edx
mov eax, dword [ebp - 0x30]
lea esi, [ebp - 0x20]
mov ecx, dword [eax]
push esi
push 0
push 0
push 0
push 0
push 0
push 0
push edx
push eax
call dword [ecx + 0xc]
lea ecx, [ebp - 0x4c]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
call fcn.004014f0
test esi, esi
jns 0x401679
push esi
push str.Could_not_connect._Error_code:_0x_08x_n
call fcn.00401170
add esp, 8
jmp 0x401832
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push dword [ebp - 0x20]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov esi, eax
test esi, esi
jns 0x4016a9
push esi
push str.Could_not_set_proxy_blanket._Error_code:_0x_08x_n
call fcn.00401170
add esp, 8
jmp 0x401832
push str.MSFT_MpPreference
lea ecx, [ebp - 0x4c]
call fcn.00401440
mov dword [ebp - 4], 1
mov eax, dword [eax]
test eax, eax
je 0x4016c7
mov edx, dword [eax]
jmp 0x4016c9
xor edx, edx
mov eax, dword [ebp - 0x20]
push 0
mov ecx, dword [eax]
lea esi, [ebp - 0x28]
push esi
push 0
push 0
push edx
push eax
call dword [ecx + 0x18]
lea ecx, [ebp - 0x4c]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
call fcn.004014f0
test esi, esi
jns 0x401705
push esi
push str.Could_not_get_pClass._Error_code:_0x_08x_n
call fcn.00401170
add esp, 8
jmp 0x401832
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x34]
mov ecx, dword [eax]
push edx
lea edx, [ebp - 0x2c]
push edx
push 0
push 0x41585c
push eax
call dword [ecx + 0x4c]
mov esi, eax
test esi, esi
jns 0x401736
push esi
push str.Could_not_get_pInParamsDefinition._Error_code:_0x_08x_n
call fcn.00401170
add esp, 8
jmp 0x401832
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x24]
mov ecx, dword [eax]
push edx
push 0
push eax
call dword [ecx + 0x3c]
mov esi, eax
test esi, esi
jns 0x40175e
push esi
push str.Could_not_create_an_instance_of_the_input_parameters._Error_code:_0x_08x_n
call fcn.00401170
add esp, 8
jmp 0x401832
lea eax, [ebp - 0x1c]
push eax
push 1
push 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 1
call dword [sym.imp.OLEAUT32.dll_SafeArrayDestroy]
mov edi, eax
test edi, edi
je 0x401832
push ebx
lea eax, [ebp - 0x14]
push eax
push edi
call dword [sym.imp.OLEAUT32.dll_SafeArrayCopy]
mov esi, eax
test esi, esi
js 0x401832
push 0
lea edx, [ebp - 0x48]
push edx
mov eax, 0x2008
mov word [ebp - 0x48], ax
mov eax, dword [ebp - 0x24]
push 0
mov dword [ebp - 0x40], edi
mov ecx, dword [eax]
push str.ControlledFolderAccessAllowedApplications
push eax
call dword [ecx + 0x14]
mov esi, eax
test esi, esi
js 0x401832
push 0x41585c
lea ecx, [ebp - 0x50]
call fcn.00401440
mov esi, eax
push str.MSFT_MpPreference
lea ecx, [ebp - 0x54]
mov dword [ebp - 4], 2
call fcn.00401440
mov byte [ebp - 4], 3
mov ecx, dword [esi]
test ecx, ecx
je 0x4017f3
mov esi, dword [ecx]
jmp 0x4017f5
xor esi, esi
mov eax, dword [eax]
test eax, eax
je 0x4017ff
mov edx, dword [eax]
jmp 0x401801
xor edx, edx
mov eax, dword [ebp - 0x20]
push 0
mov ecx, dword [eax]
lea edi, [ebp - 0x38]
push edi
push dword [ebp - 0x24]
push 0
push 0
push esi
push edx
push eax
call dword [ecx + 0x60]
lea ecx, [ebp - 0x54]
mov esi, eax
call fcn.004014f0
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], 0xffffffff
call fcn.004014f0
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
test ebx, ebx
je 0x401847
push ebx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x401854
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0x38]
test ecx, ecx
je 0x401861
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x40186e
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0x34]
test ecx, ecx
je 0x40187b
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x401888
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x401895
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x4018a2
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
test esi, esi
setns al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00402649
mov esp, ebp
pop ebp
ret