Function at 0x10005160
Capabilities:
Connect to wmi namespace via wbemlocator
Reference wmi statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10013eca
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x1001b00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x60], esi
push 0
push 0
mov dword [ebp - 0x60], esi
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
js 0x10005685
push 0
push 0
push 0
push 3
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
test eax, eax
js 0x1000543e
lea eax, [ebp - 0x64]
mov dword [ebp - 0x64], 0
push eax
push 0x10015490
push 1
push 0
push 0x100154a0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x1000543e
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x68], 0
push 0xc
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x5c], eax
call fcn.10012815
mov edi, eax
add esp, 4
mov dword [ebp - 0x60], edi
mov dword [ebp - 4], 0
test edi, edi
je 0x1000523f
push str.ROOTCIMV2
mov dword [edi + 4], 0
mov dword [edi + 8], 1
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [edi], eax
test eax, eax
je 0x10005690
jmp 0x10005241
xor edi, edi
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x60], edi
test edi, edi
je 0x10005690
lea eax, [ebp - 0x68]
mov dword [ebp - 4], 1
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push dword [edi]
push dword [ebp - 0x64]
call dword [ebp - 0x5c]
mov dword [ebp - 0x5c], eax
or ecx, 0xffffffff
mov dword [ebp - 4], 0xffffffff
lock xadd dword [edi + 8], ecx
dec ecx
jne 0x100052bf
mov ecx, dword [edi]
test ecx, ecx
je 0x1000529a
push ecx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [edi], 0
mov eax, dword [edi + 4]
test eax, eax
je 0x100052b1
push eax
call fcn.10012b90
add esp, 4
mov dword [edi + 4], 0
push 0xc
push edi
call fcn.10012b5f
mov eax, dword [ebp - 0x5c]
add esp, 8
test eax, eax
js 0x10005435
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x6c], 0
push 0xc
mov eax, dword [eax]
mov eax, dword [eax + 0x50]
mov dword [ebp - 0x60], eax
call fcn.10012815
mov edi, eax
add esp, 4
mov dword [ebp - 0x7c], edi
mov dword [ebp - 4], 2
test edi, edi
je 0x1000530f
push str.SELECT__FROM_Win32_OperatingSystem
mov dword [edi + 4], 0
mov dword [edi + 8], 1
call fcn.10013560
mov dword [edi], eax
jmp 0x10005311
xor edi, edi
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x80], edi
test edi, edi
je 0x10005690
mov dword [ebp - 4], 3
mov eax, dword [edi]
push 0xc
mov dword [ebp - 0x7c], eax
call fcn.10012815
add esp, 4
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x74], eax
mov byte [ebp - 4], 4
test eax, eax
je 0x10005368
push 0x10015b60
mov dword [eax + 4], 0
mov dword [eax + 8], 1
call fcn.10013560
mov ecx, dword [ebp - 0x5c]
mov dword [ecx], eax
mov eax, ecx
jmp 0x1000536d
xor eax, eax
mov dword [ebp - 0x5c], eax
mov byte [ebp - 4], 3
mov dword [ebp - 0x74], eax
test eax, eax
je 0x1000569a
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 5
push ecx
push 0
push 0x30
push dword [ebp - 0x7c]
push dword [eax]
push dword [ebp - 0x68]
call dword [ebp - 0x60]
mov dword [ebp - 0x60], eax
or ecx, 0xffffffff
mov eax, dword [ebp - 0x5c]
lock xadd dword [eax + 8], ecx
dec ecx
jne 0x100053df
mov ecx, dword [eax]
test ecx, ecx
je 0x100053ba
push ecx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x5c]
mov dword [eax], 0
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x100053d4
push ecx
call fcn.10012b90
mov eax, dword [ebp - 0x5c]
add esp, 4
mov dword [eax + 4], 0
push 0xc
push eax
call fcn.10012b5f
add esp, 8
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
lock xadd dword [edi + 8], eax
dec eax
jne 0x10005426
mov eax, dword [edi]
test eax, eax
je 0x10005404
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [edi], 0
mov eax, dword [edi + 4]
test eax, eax
je 0x1000541b
push eax
call fcn.10012b90
add esp, 4
mov dword [edi + 4], 0
push 0xc
push edi
call fcn.10012b5f
add esp, 8
cmp dword [ebp - 0x60], 0
jge 0x1000546e
mov eax, dword [ebp - 0x68]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x64]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov dword [esi], 0
mov ecx, esi
mov dword [esi + 0x10], 0
push 0
mov dword [esi + 0x14], 0xf
push 0x10015770
mov byte [esi], 0
call fcn.10002dc0
jmp 0x10005662
push 0
mov dword [ebp - 0x40], 0
lea ecx, [ebp - 0x40]
push 0x10015770
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
call fcn.10002dc0
mov dword [ebp - 4], 6
mov ecx, dword [ebp - 0x6c]
test ecx, ecx
je 0x1000561c
mov eax, dword [ecx]
lea edx, [ebp - 0x78]
push edx
lea edx, [ebp - 0x70]
push edx
push 1
push 0xffffffffffffffff
push ecx
call dword [eax + 0x10]
cmp dword [ebp - 0x78], 0
je 0x1000561c
mov ecx, dword [ebp - 0x70]
lea edx, [ebp - 0x90]
push 0
push 0
push edx
mov eax, dword [ecx]
push 0
push 0x10015b64
push ecx
call dword [eax + 0x10]
test eax, eax
js 0x100055fb
cmp word [ebp - 0x90], 8
jne 0x100055fb
push dword [ebp - 0x88]
call fcn.10013440
mov edx, eax
mov dword [ebp - 0x28], 0
mov ecx, edx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
lea edi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10005530
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.10002dc0
mov byte [ebp - 4], 7
lea eax, [ebp - 0x28]
mov ecx, 0xe
mov dword [ebp - 0x58], 0
cmp dword [ebp - 0x18], ecx
mov dword [ebp - 0x48], 0
cmovb ecx, dword [ebp - 0x18]
cmp dword [ebp - 0x14], 0x10
push ecx
cmovae eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x58]
push eax
mov dword [ebp - 0x44], 0xf
call fcn.10002dc0
mov edx, dword [ebp - 0x2c]
cmp edx, 0x10
jb 0x100055b1
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100055a7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000567f
push edx
push ecx
call fcn.10012b5f
add esp, 8
movups xmm0, xmmword [ebp - 0x58]
movups xmmword [ebp - 0x40], xmm0
movq xmm0, qword [ebp - 0x48]
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x14]
movq qword [ebp - 0x30], xmm0
cmp edx, 0x10
jb 0x100055fb
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100055f1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000567f
push edx
push ecx
call fcn.10012b5f
add esp, 8
lea eax, [ebp - 0x90]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [ebp - 0x70]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [ebp - 0x6c]
test ecx, ecx
jne 0x100054b6
mov eax, dword [ebp - 0x68]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x64]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x6c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
movups xmm0, xmmword [ebp - 0x40]
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x30]
movq qword [esi + 0x10], xmm0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10012545
mov esp, ebp
pop ebp
ret
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
call dword [sym.imp.KERNEL32.dll_GetLastError]
call fcn.10005130
push 0x8007000e
call fcn.10013420
push 0x8007000e
call fcn.10013420
int3