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

Disassembly:
mov eax, 0x4330
call fcn.0040b400
mov eax, dword [0x421e3c]
xor eax, esp
mov dword [esp + 0x432c], eax
push ebx
xor ebx, ebx
push ebx
push ebx
mov byte [esp + 0xf], bl
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ebx
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jge 0x4062ad
push str.CoInitializeEx_Failure_n
jmp 0x406548
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 0x4062cc
push str.CoInitializeSecurity_Failure_n
jmp 0x406548
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 0x4062f2
push str.CoCreateInstance_Failure_n
jmp 0x406548
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.ROOT_subscription
push eax
mov eax, dword [ecx + 0xc]
call eax
cmp eax, ebx
jge 0x406325
push eax
push str.ConnectServer_Failure_0x_x_n
call fcn.0040a0a0
add esp, 8
jmp 0x406550
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 0x406348
push str.CoSetProxyBlanket_Failure_n
jmp 0x406548
mov eax, dword [esp + 0xc]
mov edx, dword [eax]
mov edx, dword [edx + 0x50]
lea ecx, [esp + 0x10]
push ecx
push ebx
push 0x30
push str.SELECT__FROM_ActiveScriptEventConsumer
push 0x41b828
push eax
call edx
test eax, eax
jl 0x406550
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x406560
push ebp
mov ebp, dword [sym.imp.OLEAUT32.dll_VariantCopy]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea esp, [esp]
mov ecx, dword [eax]
lea edx, [esp + 0x28]
push edx
lea edx, [esp + 0x18]
push edx
push 1
push 0xffffffffffffffff
push eax
mov eax, dword [ecx + 0x10]
call eax
cmp dword [esp + 0x28], ebx
je 0x406535
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push ebx
push ebx
lea edx, [esp + 0x34]
push edx
push ebx
push str.Name
push eax
mov eax, dword [ecx + 0x10]
call eax
lea ecx, [esp + 0x2c]
push ecx
mov esi, eax
call ebp
cmp esi, ebx
jl 0x406529
inc dword [esp + 0x24]
push 0x100
lea edx, [esp + 0x40]
push ebx
push edx
call fcn.0040a180
mov ecx, dword [esp + 0x40]
add esp, 0xc
push ebx
push ebx
push 0x100
lea eax, [esp + 0x48]
push eax
push 0xffffffffffffffff
push ecx
push ebx
push ebx
call edi
test eax, eax
jle 0x40642b
cmp byte [esp + 0x4344], bl
jne 0x4065b0
lea edx, [esp + 0x3c]
push edx
push str.Script_Name_t__s_n
call fcn.0040a0a0
add esp, 8
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push ebx
push ebx
lea edx, [esp + 0x34]
push edx
push ebx
push str.ScriptingEngine
push eax
mov eax, dword [ecx + 0x10]
call eax
lea ecx, [esp + 0x2c]
push ecx
mov esi, eax
call ebp
cmp esi, ebx
jl 0x4064aa
push 0x1ff
lea edx, [esp + 0x141]
push ebx
push edx
mov byte [esp + 0x148], bl
call fcn.0040a180
mov ecx, dword [esp + 0x40]
add esp, 0xc
push ebx
push ebx
push 0x200
lea eax, [esp + 0x148]
push eax
push 0xffffffffffffffff
push ecx
push ebx
push ebx
call edi
test eax, eax
jle 0x4064aa
cmp byte [esp + 0x4344], bl
jne 0x4064aa
lea edx, [esp + 0x13c]
push edx
push str.Script_Engine_t__s_n
call fcn.0040a0a0
add esp, 8
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push ebx
push ebx
lea edx, [esp + 0x34]
push edx
push ebx
push str.ScriptText
push eax
mov eax, dword [ecx + 0x10]
call eax
lea ecx, [esp + 0x2c]
push ecx
mov esi, eax
call ebp
cmp esi, ebx
jl 0x406529
push 0x3fff
lea edx, [esp + 0x341]
push ebx
push edx
mov byte [esp + 0x348], bl
call fcn.0040a180
mov ecx, dword [esp + 0x40]
add esp, 0xc
push ebx
push ebx
push 0x4000
lea eax, [esp + 0x348]
push eax
push 0xffffffffffffffff
push ecx
push ebx
push ebx
call edi
test eax, eax
jle 0x406529
cmp byte [esp + 0x4344], bl
jne 0x406529
lea edx, [esp + 0x33c]
push edx
push str.Script_Content_t__s_n
call fcn.0040a0a0
add esp, 8
mov eax, dword [esp + 0x1c]
cmp eax, ebx
jne 0x406390
pop edi
pop esi
pop ebp
cmp dword [esp + 0x18], ebx
jbe 0x406550
mov byte [esp + 7], 1
push 0x41b2cc
call fcn.0040a0a0
add esp, 4
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x406560
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 8]
cmp eax, ebx
je 0x406570
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x406580
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x14]
cmp eax, ebx
pop ebx
je 0x406591
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [esp + 0x432c]
mov al, byte [esp + 3]
xor ecx, esp
call fcn.0040a165
add esp, 0x4330
ret
lea eax, [esp + 0x3c]
push eax
push str.Trying_To_Delete__s_n
call fcn.0040a0a0
mov edx, dword [esp + 0x20]
push 1
lea ecx, [esp + 0x48]
push ecx
push edx
call fcn.004060c0
add esp, 0x14
jmp 0x406529