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

Disassembly:
sub esp, 0x130
mov eax, dword [0x421e3c]
xor eax, esp
mov dword [esp + 0x12c], eax
push ebx
push ebp
xor ebp, ebp
push esi
push edi
push ebp
push ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x2c], ebp
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jge 0x402fe6
push str.CoInitializeEx_Failure_n
call fcn.0040a0a0
add esp, 4
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x402f97
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x10]
cmp eax, ebp
je 0x402fa7
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x402fb7
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x1c]
pop edi
pop esi
cmp eax, ebp
pop ebp
pop ebx
je 0x402fcb
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [esp + 0x12c]
xor ecx, esp
call fcn.0040a165
add esp, 0x130
ret
push ebp
push ebp
push ebp
push 3
push ebp
push ebp
push ebp
push 0xffffffffffffffff
push ebp
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
test eax, eax
jge 0x403005
push str.CoInitializeSecurity_Failure_n
jmp 0x402f7f
lea eax, [esp + 0x1c]
push eax
push 0x41db70
push 1
push ebp
push 0x41dc40
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x40302b
push str.CoCreateInstance_Failure_n
jmp 0x402f7f
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
push ebp
push ebp
push ebp
push ebp
push ebp
push ebp
push str.._rootMicrosoftWindowsDefender
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
jge 0x403055
push str.ConnectServer_Failure_n
jmp 0x402f7f
mov ecx, dword [esp + 0x18]
push ebp
push ebp
push 3
push 3
push ebp
push ebp
push 0xa
push ecx
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jge 0x403078
push str.CoSetProxyBlanket_Failure_n
jmp 0x402f7f
mov eax, dword [esp + 0x18]
mov edx, dword [eax]
mov edx, dword [edx + 0x50]
lea ecx, [esp + 0x14]
push ecx
push ebp
push 0x30
push str.SELECT__FROM_MSFT_MpPreference
push 0x41b828
push eax
call edx
test eax, eax
jl 0x402f87
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x402f97
mov ebx, dword [sym.imp.OLEAUT32.dll_SafeArrayPutElement]
mov ecx, dword [eax]
lea edx, [esp + 0x24]
push edx
lea edx, [esp + 0x14]
push edx
push 1
push 0xffffffffffffffff
push eax
mov eax, dword [ecx + 0x10]
call eax
cmp dword [esp + 0x24], ebp
je 0x402f87
cmp eax, ebp
jl 0x402f87
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push ebp
push ebp
lea edx, [esp + 0x34]
push edx
push ebp
push str.ExclusionPath
push eax
mov eax, dword [ecx + 0x10]
call eax
test eax, eax
jl 0x4031c1
mov eax, dword [esp + 0x2c]
mov ecx, 1
cmp cx, ax
je 0x4031b4
xor edx, edx
cmp dx, ax
je 0x4031b4
test eax, 0x2000
je 0x40316e
test al, 8
je 0x40316e
mov edi, dword [esp + 0x34]
mov eax, dword [edi + 0x14]
cmp eax, dword [edi + 0x10]
lea esi, [edi + 0x10]
mov dword [esp + 0x20], eax
jge 0x4031c1
jmp 0x403140
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x24]
push ecx
push edi
call ebx
mov edx, dword [esp + 0x28]
push edx
push 0x41b95c
call fcn.0040a5a0
mov eax, dword [esp + 0x28]
inc eax
add esp, 8
cmp eax, dword [esi]
mov dword [esp + 0x20], eax
jl 0x403140
jmp 0x4031c1
push 0x100
lea eax, [esp + 0x40]
push ebp
push eax
call fcn.0040a180
mov edx, dword [esp + 0x40]
add esp, 0xc
push ebp
push ebp
push 0x100
lea ecx, [esp + 0x48]
push ecx
push 0xffffffffffffffff
push edx
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jle 0x4031c1
lea eax, [esp + 0x3c]
push eax
push 0x41b958
call fcn.0040a0a0
add esp, 8
jmp 0x4031c1
push str.Empty_Or_Null_Data_n
call fcn.0040a0a0
add esp, 4
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], ebp
cmp eax, ebp
jne 0x4030b0
jmp 0x402fa7