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

Disassembly:
mov eax, 0x4130
call fcn.0040b400
mov eax, dword [0x421e3c]
xor eax, esp
mov dword [esp + 0x412c], eax
push ebx
xor ebx, ebx
push ebx
push ebx
mov byte [esp + 0xf], bl
mov dword [esp + 0x20], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], ebx
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jge 0x406632
push str.CoInitializeEx_Failure_n
call fcn.0040a0a0
jmp 0x4068dd
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 0x406656
push str.CoInitializeSecurity_Failure_n
call fcn.0040a0a0
jmp 0x4068dd
lea eax, [esp + 0x18]
push eax
push 0x41db70
push 1
push ebx
push 0x41dc40
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x406681
push str.CoCreateInstance_Failure_n
call fcn.0040a0a0
jmp 0x4068dd
mov eax, dword [esp + 0x18]
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
test eax, eax
jge 0x4066b0
push str.ConnectServer_Failure_n
call fcn.0040a0a0
jmp 0x4068dd
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 0x4066d8
push str.CoSetProxyBlanket_Failure_n
call fcn.0040a0a0
jmp 0x4068dd
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_CommandLineEventConsumer
push 0x41b828
push eax
call edx
test eax, eax
jl 0x4068e0
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x4068f0
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 0x4068c5
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 0x4068b9
inc dword [esp + 0x20]
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 0x4067bb
cmp byte [esp + 0x4144], bl
jne 0x406940
lea edx, [esp + 0x3c]
push edx
push str.Consumer_Name_t_t__s_n
call fcn.0040a0a0
add esp, 8
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
push ebx
push ebx
lea ecx, [esp + 0x34]
push ecx
push ebx
push str.CommandLineTemplate
push eax
call edx
mov esi, eax
lea eax, [esp + 0x2c]
push eax
call ebp
cmp esi, ebx
jl 0x40683a
push 0x3fff
lea ecx, [esp + 0x141]
push ebx
push ecx
mov byte [esp + 0x148], bl
call fcn.0040a180
mov eax, dword [esp + 0x40]
add esp, 0xc
push ebx
push ebx
push 0x4000
lea edx, [esp + 0x148]
push edx
push 0xffffffffffffffff
push eax
push ebx
push ebx
call edi
test eax, eax
jle 0x40683a
cmp byte [esp + 0x4144], bl
jne 0x40683a
lea ecx, [esp + 0x13c]
push ecx
push str.CommandLineTemplate_t__s_n
call fcn.0040a0a0
add esp, 8
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
push ebx
push ebx
lea ecx, [esp + 0x34]
push ecx
push ebx
push str.ExecutablePath
push eax
call edx
mov esi, eax
lea eax, [esp + 0x2c]
push eax
call ebp
cmp esi, ebx
jl 0x4068b9
push 0x1fff
lea ecx, [esp + 0x141]
push ebx
push ecx
mov byte [esp + 0x148], bl
call fcn.0040a180
mov eax, dword [esp + 0x40]
add esp, 0xc
push ebx
push ebx
push 0x2000
lea edx, [esp + 0x148]
push edx
push 0xffffffffffffffff
push eax
push ebx
push ebx
call edi
test eax, eax
jle 0x4068b9
cmp byte [esp + 0x4144], bl
jne 0x4068b9
lea ecx, [esp + 0x13c]
push ecx
push str.ExecutablePath_t_t__s_n
call fcn.0040a0a0
add esp, 8
mov eax, dword [esp + 0x1c]
cmp eax, ebx
jne 0x406720
pop edi
pop esi
pop ebp
cmp dword [esp + 0x14], ebx
jbe 0x4068e0
push 0x41b2cc
call fcn.0040a0a0
mov byte [esp + 0xb], 1
add esp, 4
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x4068f0
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, dword [esp + 8]
cmp eax, ebx
je 0x406900
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x406910
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x18]
cmp eax, ebx
pop ebx
je 0x406921
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [esp + 0x412c]
mov al, byte [esp + 3]
xor ecx, esp
call fcn.0040a165
add esp, 0x4130
ret
mov ecx, dword [esp + 0x18]
push 2
lea eax, [esp + 0x40]
push eax
push ecx
call fcn.004060c0
add esp, 0xc
jmp 0x4068b9