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

Disassembly:
push 0x94
mov eax, 0x410131
call fcn.00405ce1
xor esi, esi
push 2
mov ebx, esi
push esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x80], ebx
call dword [sym.imp.ole32.dll_CoInitializeEx]
push esi
push esi
push esi
push 3
push esi
push esi
push esi
push 0xffffffffffffffff
push esi
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
lea eax, [ebp - 0x60]
push eax
push 0x4162ec
push 1
push esi
push 0x4163bc
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x5c], esi
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x401fdd
mov eax, dword [ebp - 0x60]
lea edx, [ebp - 0x5c]
mov ecx, dword [eax]
push edx
push esi
push esi
push esi
push esi
push esi
push esi
push str.ROOTcimv2
push eax
call dword [ecx + 0xc]
test eax, eax
js 0x401fdd
push esi
push esi
push 3
push 3
push esi
push esi
push 0xa
push dword [ebp - 0x5c]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
js 0x401fdd
push 0x41651e
lea ecx, [ebp - 0x30]
call fcn.00401158
lea edx, [ebp - 0x64]
push edx
push esi
push 0x30
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x5c]
push str.SELECT__FROM_Win32_Process
mov ecx, dword [eax]
push 0x416674
push eax
call dword [ecx + 0x50]
test eax, eax
js 0x401fcb
mov byte [ebp - 4], 2
mov dword [ebp - 0x18], esi
mov ecx, dword [ebp - 0x64]
test ecx, ecx
je 0x401f91
mov eax, dword [ecx]
lea edx, [ebp - 0x18]
push edx
lea edx, [ebp - 0x68]
push edx
push 1
push 0xffffffffffffffff
push ecx
call dword [eax + 0x10]
cmp dword [ebp - 0x18], 0
je 0x401f8e
mov eax, dword [ebp - 0x68]
push esi
mov ecx, dword [eax]
push esi
lea edx, [ebp - 0x78]
push edx
push esi
push str.Name
push eax
call dword [ecx + 0x10]
mov eax, dword [ebp - 0x70]
push 0xc
mov dword [ebp - 0x7c], eax
call fcn.00403c9f
pop ecx
mov edi, eax
test edi, edi
je 0x401e90
mov eax, dword [ebp - 0x7c]
mov dword [edi + 4], esi
mov dword [edi + 8], 1
mov dword [edi], eax
jmp 0x401e92
mov edi, esi
mov byte [ebp - 4], 2
mov dword [ebp - 0x84], edi
test edi, edi
jne 0x401eaa
push 0x8007000e
call fcn.0040c9c0
mov byte [ebp - 4], 4
cmp dword [edi + 4], esi
jne 0x401ebd
push dword [edi]
call fcn.0040c8a0
mov dword [edi + 4], eax
mov eax, dword [edi + 4]
push eax
mov dword [ebp - 0x7c], eax
call fcn.00401000
pop ecx
push eax
push dword [ebp - 0x7c]
lea ecx, [ebp - 0x30]
call fcn.004011e8
cmp dword [ebp - 0x1c], 0x10
mov eax, dword [ebp - 0x20]
push dword [ebp - 0x84]
lea ecx, [ebp - 0x30]
cmovae ecx, dword [ebp - 0x30]
add eax, ecx
cmp dword [ebp - 0x1c], 0x10
lea ecx, [ebp - 0x30]
cmovae ecx, dword [ebp - 0x30]
push eax
xor edx, edx
push ecx
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], esi
mov word [ebp - 0x48], dx
call fcn.00402b0f
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 5
call fcn.004016f6
mov byte [ebp - 4], 6
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
jb 0x401f2f
mov eax, dword [eax]
push ecx
push ecx
push eax
lea ecx, [ebp - 0x30]
call fcn.0040232a
lea ecx, [ebp - 0x9c]
mov dword [ebp - 0x7c], eax
mov byte [ebp - 4], 5
call fcn.00401185
cmp dword [ebp - 0x7c], 0xffffffff
je 0x401f56
inc ebx
mov dword [ebp - 0x80], ebx
mov eax, dword [ebp - 0x68]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0x34], 8
jb 0x401f6e
push dword [ebp - 0x48]
call fcn.00403c4f
pop ecx
xor eax, eax
mov ecx, edi
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], esi
mov word [ebp - 0x48], ax
mov byte [ebp - 4], 2
call fcn.004016b1
jmp 0x401e2f
mov ecx, dword [ebp - 0x64]
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
jmp 0x401faa
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x5c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x60]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov esi, ebx
lea ecx, [ebp - 0x30]
call fcn.00401185
mov eax, esi
jmp 0x401fdf
xor eax, eax
call fcn.00405c69
ret