Function at 0x46d422
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 0x46d6ab
cmp ebx, 7
jae 0x46d6ab
push esi
push esi
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jns 0x46d459
push 0xfffffffffffffffe
pop eax
jmp 0x46d6ae
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 0x46d47f
call dword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x46d451
push ecx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 8], esi
call fcn.0046ce1f
mov eax, dword [eax]
test eax, eax
je 0x46d495
mov edx, dword [eax]
jmp 0x46d497
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 0x46d4bb
call fcn.0046ce9c
test esi, esi
jns 0x46d4ca
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
jmp 0x46d477
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 0x46d4e7
push 0xfffffffffffffffe
jmp 0x46d553
push dword [ebx*8 + 0x6926ac]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x10], esi
call fcn.0046cdba
mov eax, dword [eax]
test eax, eax
je 0x46d501
mov esi, dword [eax]
push 0x69c374
lea ecx, [ebp - 0x18]
call fcn.0046cdba
mov eax, dword [eax]
test eax, eax
je 0x46d518
mov edx, dword [eax]
jmp 0x46d51a
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 0x46d541
call fcn.0046ce9c
and dword [ebp - 0x18], edi
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x46d54d
call fcn.0046ce9c
test esi, esi
jns 0x46d573
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 0x46d6ae
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x46d689
mov esi, dword [ebp - 0x20]
and dword [ebp - 0x18], 0
and dword [ebp - 0x1c], 0
test esi, esi
je 0x46d596
cmp edi, dword [ebp + 8]
jge 0x46d689
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 0x46d686
test esi, esi
je 0x46d66f
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.0046d1cb
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 0x46d650
sub eax, 1
je 0x46d644
sub eax, 5
lea eax, [ebp - 0x24]
push eax
push esi
je 0x46d63b
mov dword [ebp - 0x24], 0x20
call fcn.005f06f8
inc eax
pop ecx
mov ecx, esi
lea edx, [esi + eax*2]
call fcn.0046d6b5
jmp 0x46d65d
mov dword [ebp - 0x24], 0x3a
jmp 0x46d628
mov ecx, esi
call fcn.0046d31a
mov dword [ebp - 0x14], eax
jmp 0x46d65e
push ecx
mov edx, esi
mov ecx, esi
call fcn.0046d212
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 0x46d670
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 0x46d581
jmp 0x46d689
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 0x46d6ae
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret