Function at 0x46c246
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 0x46c4cf
cmp ebx, 7
jae 0x46c4cf
push esi
push esi
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jns 0x46c27d
push 0xfffffffffffffffe
pop eax
jmp 0x46c4d2
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], esi
push eax
push 0x683ce8
push 1
push esi
push 0x683db8
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x46c2a3
call dword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x46c275
push ecx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 8], esi
call fcn.0046bc43
mov eax, dword [eax]
test eax, eax
je 0x46c2b9
mov edx, dword [eax]
jmp 0x46c2bb
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 0x46c2df
call fcn.0046bcc0
test esi, esi
jns 0x46c2ee
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
jmp 0x46c29b
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 0x46c30b
push 0xfffffffffffffffe
jmp 0x46c377
push dword [ebx*8 + 0x6916ac]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x10], esi
call fcn.0046bbde
mov eax, dword [eax]
test eax, eax
je 0x46c325
mov esi, dword [eax]
push 0x69b004
lea ecx, [ebp - 0x18]
call fcn.0046bbde
mov eax, dword [eax]
test eax, eax
je 0x46c33c
mov edx, dword [eax]
jmp 0x46c33e
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 0x46c365
call fcn.0046bcc0
and dword [ebp - 0x18], edi
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x46c371
call fcn.0046bcc0
test esi, esi
jns 0x46c397
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 0x46c4d2
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x46c4ad
mov esi, dword [ebp - 0x20]
and dword [ebp - 0x18], 0
and dword [ebp - 0x1c], 0
test esi, esi
je 0x46c3ba
cmp edi, dword [ebp + 8]
jge 0x46c4ad
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 0x46c4aa
test esi, esi
je 0x46c493
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 + 0x6916b0]
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.0046bfef
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 0x46c474
sub eax, 1
je 0x46c468
sub eax, 5
lea eax, [ebp - 0x24]
push eax
push esi
je 0x46c45f
mov dword [ebp - 0x24], 0x20
call fcn.005efad8
inc eax
pop ecx
mov ecx, esi
lea edx, [esi + eax*2]
call fcn.0046c4d9
jmp 0x46c481
mov dword [ebp - 0x24], 0x3a
jmp 0x46c44c
mov ecx, esi
call fcn.0046c13e
mov dword [ebp - 0x14], eax
jmp 0x46c482
push ecx
mov edx, esi
mov ecx, esi
call fcn.0046c036
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 0x46c494
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 0x46c3a5
jmp 0x46c4ad
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 0x46c4d2
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret