Function at 0x46d31e
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 0x46d5a7
cmp ebx, 7
jae 0x46d5a7
push esi
push esi
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jns 0x46d355
push 0xfffffffffffffffe
pop eax
jmp 0x46d5aa
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], esi
push eax
push 0x685ce8
push 1
push esi
push 0x685db8
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x46d37b
call dword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x46d34d
push ecx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 8], esi
call fcn.0046cd1b
mov eax, dword [eax]
test eax, eax
je 0x46d391
mov edx, dword [eax]
jmp 0x46d393
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 0x46d3b7
call fcn.0046cd98
test esi, esi
jns 0x46d3c6
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
jmp 0x46d373
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 0x46d3e3
push 0xfffffffffffffffe
jmp 0x46d44f
push dword [ebx*8 + 0x6936ac]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x10], esi
call fcn.0046ccb6
mov eax, dword [eax]
test eax, eax
je 0x46d3fd
mov esi, dword [eax]
push 0x69d39c
lea ecx, [ebp - 0x18]
call fcn.0046ccb6
mov eax, dword [eax]
test eax, eax
je 0x46d414
mov edx, dword [eax]
jmp 0x46d416
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 0x46d43d
call fcn.0046cd98
and dword [ebp - 0x18], edi
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x46d449
call fcn.0046cd98
test esi, esi
jns 0x46d46f
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 0x46d5aa
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x46d585
mov esi, dword [ebp - 0x20]
and dword [ebp - 0x18], 0
and dword [ebp - 0x1c], 0
test esi, esi
je 0x46d492
cmp edi, dword [ebp + 8]
jge 0x46d585
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 0x46d582
test esi, esi
je 0x46d56b
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 + 0x6936b0]
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.0046d0c7
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 0x46d54c
sub eax, 1
je 0x46d540
sub eax, 5
lea eax, [ebp - 0x24]
push eax
push esi
je 0x46d537
mov dword [ebp - 0x24], 0x20
call fcn.005f0fb8
inc eax
pop ecx
mov ecx, esi
lea edx, [esi + eax*2]
call fcn.0046d5b1
jmp 0x46d559
mov dword [ebp - 0x24], 0x3a
jmp 0x46d524
mov ecx, esi
call fcn.0046d216
mov dword [ebp - 0x14], eax
jmp 0x46d55a
push ecx
mov edx, esi
mov ecx, esi
call fcn.0046d10e
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 0x46d56c
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 0x46d47d
jmp 0x46d585
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 0x46d5aa
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret