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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 0x20], edx
xor esi, esi
push edi
mov edi, esi
test ebx, ebx
js 0x46c56a
cmp ebx, 7
jae 0x46c56a
push esi
push esi
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jns 0x46c318
push 0xfffffffffffffffe
pop eax
jmp 0x46c56d
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], esi
push eax
push 0x684ce8
push 1
push esi
push 0x684db8
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x46c33e
call dword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x46c310
push ecx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 8], esi
call fcn.0046bcde
mov eax, dword [eax]
test eax, eax
je 0x46c354
mov edx, dword [eax]
jmp 0x46c356
mov edx, esi
mov eax, dword [ebp - 0xc]
lea esi, [ebp - 8]
push esi
xor esi, esi
push esi
mov ecx, dword [eax]
push esi
push esi
push esi
push esi
push esi
push edx
push eax
call dword [ecx + 0xc]
mov ecx, dword [ebp - 0x1c]
mov esi, eax
test ecx, ecx
je 0x46c37a
call fcn.0046bd5b
test esi, esi
jns 0x46c389
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
jmp 0x46c336
xor esi, esi
push esi
push esi
push 3
push 3
push esi
push esi
push 0xa
push dword [ebp - 8]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jns 0x46c3a6
push 0xfffffffffffffffe
jmp 0x46c412
push dword [ebx*8 + 0x6926ac]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x10], esi
call fcn.0046bc79
mov eax, dword [eax]
test eax, eax
je 0x46c3c0
mov esi, dword [eax]
push 0x69c014
lea ecx, [ebp - 0x18]
call fcn.0046bc79
mov eax, dword [eax]
test eax, eax
je 0x46c3d7
mov edx, dword [eax]
jmp 0x46c3d9
xor edx, edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push 0
push 0x30
push esi
push edx
push eax
call dword [ecx + 0x50]
mov ecx, dword [ebp - 0x18]
mov esi, eax
test ecx, ecx
je 0x46c400
call fcn.0046bd5b
and dword [ebp - 0x18], edi
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x46c40c
call fcn.0046bd5b
test esi, esi
jns 0x46c432
push 0xfffffffffffffffd
mov ecx, dword [ebp - 8]
pop esi
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, esi
jmp 0x46c56d
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x46c548
mov esi, dword [ebp - 0x20]
and dword [ebp - 0x18], 0
and dword [ebp - 0x1c], 0
test esi, esi
je 0x46c455
cmp edi, dword [ebp + 8]
jge 0x46c548
mov eax, dword [ecx]
lea edx, [ebp - 0x1c]
push edx
lea edx, [ebp - 0x18]
push edx
push 1
push 0xffffffffffffffff
push ecx
call dword [eax + 0x10]
cmp dword [ebp - 0x1c], 0
je 0x46c545
test esi, esi
je 0x46c52e
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x34]
push 0
push 0
push edx
mov ecx, dword [eax]
push 0
push dword [ebx*8 + 0x6926b0]
push eax
call dword [ecx + 0x10]
push SysReAllocString
push dword [ebp - 0x2c]
mov eax, edi
mov edx, 0x80
shl eax, 8
add esi, eax
push ecx
mov ecx, esi
call fcn.0046c08a
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, ebx
mov dword [ebp - 0x14], 1
sub eax, 0
je 0x46c50f
sub eax, 1
je 0x46c503
sub eax, 5
lea eax, [ebp - 0x24]
push eax
push esi
je 0x46c4fa
mov dword [ebp - 0x24], 0x20
call fcn.005f0038
inc eax
pop ecx
mov ecx, esi
lea edx, [esi + eax*2]
call fcn.0046c574
jmp 0x46c51c
mov dword [ebp - 0x24], 0x3a
jmp 0x46c4e7
mov ecx, esi
call fcn.0046c1d9
mov dword [ebp - 0x14], eax
jmp 0x46c51d
push ecx
mov edx, esi
mov ecx, esi
call fcn.0046c0d1
mov dword [ebp - 0x14], eax
pop ecx
cmp dword [ebp - 0x14], 0
lea eax, [edi + 1]
mov esi, dword [ebp - 0x20]
cmove eax, edi
mov edi, eax
jmp 0x46c52f
inc edi
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
jne 0x46c440
jmp 0x46c548
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, edi
jmp 0x46c56d
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret