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

Disassembly:
sub esp, 0x450
mov eax, dword [0x421e3c]
xor eax, esp
mov dword [esp + 0x44c], eax
push ebx
xor ebx, ebx
push esi
mov esi, dword [esp + 0x45c]
push 0x3fe
lea ecx, [esp + 0x5a]
xor eax, eax
push ebx
push ecx
mov byte [esp + 0x17], bl
mov dword [esp + 0x20], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x1c], ebx
mov word [esp + 0x60], ax
call fcn.0040a180
add esp, 0xc
cmp esi, ebx
je 0x4082a9
push 0x200
lea edx, [esp + 0x58]
push edx
push esi
call fcn.004031f0
add esp, 0xc
test al, al
jne 0x4082c2
push str.ANSIToUnicode_Failure_n
call fcn.0040a0a0
add esp, 4
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x44c]
xor ecx, esp
call fcn.0040a165
add esp, 0x450
ret
push ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jge 0x4082e0
push str.CoInitializeEx_Failure_n
call fcn.0040a0a0
add esp, 4
jmp 0x408590
push ebx
push ebx
push ebx
push 3
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push ebx
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
test eax, eax
jge 0x408307
push str.CoInitializeSecurity_Failure_n
call fcn.0040a0a0
add esp, 4
jmp 0x408590
lea eax, [esp + 0x14]
push eax
push 0x41db70
push 1
push ebx
push 0x41dc40
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x408335
push str.CoCreateInstance_Failure_n
call fcn.0040a0a0
add esp, 4
jmp 0x408590
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
lea edx, [esp + 0xc]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push str.ROOTMicrosoftWindowsDefender
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
jge 0x408367
push str.ConnectServer_Failure_n
call fcn.0040a0a0
add esp, 4
jmp 0x408590
mov ecx, dword [esp + 0xc]
push ebx
push ebx
push 3
push 3
push ebx
push ebx
push 0xa
push ecx
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jge 0x408392
push str.CoSetProxyBlanket_Failure_n
call fcn.0040a0a0
add esp, 4
jmp 0x408590
mov eax, dword [esp + 0xc]
mov edx, dword [eax]
mov edx, dword [edx + 0x18]
push ebx
lea ecx, [esp + 0x1c]
push ecx
push ebx
push ebx
push str.MSFT_MpPreference
push eax
call edx
test eax, eax
jge 0x4083c1
push str.GetObject_Failure_n
call fcn.0040a0a0
add esp, 4
jmp 0x408590
mov dword [esp + 0x20], 0x41c91c
cmp byte [esp + 0x460], bl
jne 0x4083da
mov dword [esp + 0x20], str.Remove
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
push ebx
lea edx, [esp + 0x20]
push edx
mov edx, dword [esp + 0x28]
push ebx
push edx
push eax
mov eax, dword [ecx + 0x4c]
call eax
test eax, eax
jge 0x408408
push str.GetMethod_Failure_n
call fcn.0040a0a0
add esp, 4
jmp 0x408590
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push edx
push ebx
push eax
mov eax, dword [ecx + 0x3c]
call eax
test eax, eax
jge 0x408430
push str.SpawnInstance_Failure_n
call fcn.0040a0a0
add esp, 4
jmp 0x408590
push edi
lea ecx, [esp + 0x50]
push ecx
push 1
push 8
mov dword [esp + 0x5c], 1
mov dword [esp + 0x60], ebx
call dword [sym.imp.OLEAUT32.dll_SafeArrayDestroy]
mov edi, eax
cmp edi, ebx
jne 0x408464
push str.SafeArrayCreate_Failure_n
call fcn.0040a0a0
add esp, 4
jmp 0x408584
push ebp
mov ebp, dword [sym.imp.OLEAUT32.dll_VariantClear]
lea edx, [esp + 0x34]
push edx
call ebp
lea ecx, [esp + 0x5c]
mov eax, 8
push ecx
lea ecx, [esp + 0x34]
mov word [esp + 0x38], ax
call fcn.004033c0
mov eax, dword [eax]
cmp eax, ebx
je 0x408498
mov edx, dword [eax]
mov dword [esp + 0x3c], edx
jmp 0x40849c
mov dword [esp + 0x3c], ebx
mov esi, dword [esp + 0x30]
cmp esi, ebx
je 0x4084dc
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x4084dc
cmp esi, ebx
je 0x4084dc
mov eax, dword [esi]
cmp eax, ebx
je 0x4084c3
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x4084d3
push eax
call fcn.00409fc5
add esp, 4
push esi
call fcn.00409fc5
add esp, 4
mov ecx, dword [esp + 0x3c]
push ecx
lea edx, [esp + 0x30]
push edx
push edi
mov dword [esp + 0x38], ebx
call dword [sym.imp.OLEAUT32.dll_SafeArrayCopy]
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [esp + 0x34]
push eax
call esi
lea ecx, [esp + 0x44]
push ecx
call ebp
mov eax, dword [esp + 0x18]
mov edx, 0x2008
push edx
mov word [esp + 0x48], dx
lea edx, [esp + 0x48]
push edx
push ebx
mov dword [esp + 0x58], edi
mov ecx, dword [eax]
push str.ExclusionPath
push eax
mov eax, dword [ecx + 0x14]
call eax
pop ebp
test eax, eax
jge 0x408546
push str.Put_Failure_n
call fcn.0040a0a0
add esp, 4
lea ecx, [esp + 0x40]
push ecx
call esi
jmp 0x408584
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
mov edx, dword [edx + 0x60]
push ebx
push ebx
push ecx
mov ecx, dword [esp + 0x30]
push ebx
push ebx
push ecx
push str.MSFT_MpPreference
push eax
call edx
test eax, eax
jge 0x40857f
push str.ExecMethod_Failure_n
call fcn.0040a0a0
add esp, 4
lea eax, [esp + 0x40]
push eax
call esi
jmp 0x408584
mov byte [esp + 0xf], 1
cmp edi, ebx
je 0x40858f
push edi
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetDim]
pop edi
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x4085a0
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x4085b0
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x4085c0
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x4085d0
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x4085e0
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [esp + 0x454]
mov al, byte [esp + 0xb]
pop esi
pop ebx
xor ecx, esp
call fcn.0040a165
add esp, 0x450
ret