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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x658645
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x6cd05c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, 0x6a8a00
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x1c]
call fcn.00405650
mov dword [ebp - 4], 0
mov ebx, dword [eax]
test ebx, ebx
je 0x647eff
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x647ec1
sub ecx, edx
lea edi, [ecx + 1]
cmp edi, 0x3fffffff
jg 0x647eff
lea eax, [edi + edi]
call fcn.00584fd0
mov esi, esp
test esi, esi
je 0x647eff
push edi
push esi
push 0xffffffffffffffff
xor eax, eax
push ebx
push eax
push 3
mov word [esi], ax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor ecx, ecx
test eax, eax
cmove esi, ecx
jmp 0x647f01
xor esi, esi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 0x6912a4
push 1
push 0
push 0x691374
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x647f2e
call dword [sym.imp.ole32.dll_CoUninitialize]
xor ebx, ebx
jmp 0x647f68
push esi
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov ecx, dword [ebp - 0x14]
mov esi, eax
lea eax, [ebp - 0x18]
push eax
push 0
mov edx, dword [ecx]
push 0
push 0
push 0
push 0
push 0
push esi
push ecx
call dword [edx + 0xc]
xor ebx, ebx
test eax, eax
push esi
setns bl
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov dword [ebp - 4], 0xffffffff
xor bl, 1
mov ecx, dword [ebp - 0x1c]
or eax, 0xffffffff
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x647fb4
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x647fb0
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x647fb0
push 0
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x647fb4
mov ecx, edx
call esi
test bl, bl
je 0x647fbf
xor eax, eax
jmp 0x648134
mov edx, 0x6a8a20
lea ecx, [ebp - 0x20]
call fcn.00405650
mov dword [ebp - 4], 1
mov ebx, dword [eax]
test ebx, ebx
je 0x64801e
mov ecx, ebx
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x647fe0
sub ecx, edx
lea esi, [ecx + 1]
cmp esi, 0x3fffffff
jg 0x64801e
lea eax, [esi + esi]
call fcn.00584fd0
mov edi, esp
test edi, edi
je 0x64801e
push esi
push edi
push 0xffffffffffffffff
xor eax, eax
push ebx
push eax
push 3
mov word [edi], ax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor ecx, ecx
test eax, eax
cmove edi, ecx
jmp 0x648020
xor edi, edi
mov edx, 0x6a8238
lea ecx, [ebp - 0x14]
call fcn.00405650
mov byte [ebp - 4], 2
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x648080
mov ecx, eax
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x648040
sub ecx, edx
lea ebx, [ecx + 1]
cmp ebx, 0x3fffffff
jg 0x648080
lea eax, [ebx + ebx]
call fcn.00584fd0
mov esi, esp
test esi, esi
je 0x648080
push ebx
push esi
push 0xffffffffffffffff
push dword [ebp - 0x1c]
xor eax, eax
push eax
push 3
mov word [esi], ax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor ecx, ecx
test eax, eax
cmove esi, ecx
jmp 0x648082
xor esi, esi
push ecx
mov ecx, dword [ebp - 0x18]
mov edx, esi
push edi
call fcn.00647d10
mov byte [ebp - 4], 1
or ebx, 0xffffffff
mov edx, dword [ebp - 0x14]
add esp, 8
mov edi, eax
add edx, 0xfffffff0
mov ecx, ebx
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x6480d9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x6480d7
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x6480d7
push 0
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x6480d9
call esi
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x64811f
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x64811b
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x64811b
push 0
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x64811f
mov ecx, edx
call esi
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x64812c
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, edi
lea esp, [ebp - 0x30]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00583e60
mov esp, ebp
pop ebp
ret