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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40480a
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x407040]
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
push 0
push 0
or ebx, 0xffffffff
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
js 0x4016e6
push 0
push 0
push 0
push 3
push 0
push 0
push 0
push ebx
push 0
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
test eax, eax
js 0x4016e0
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
push eax
push 0x4052bc
push 1
push 0
push 0x4052cc
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x4016e0
push 0xc
mov dword [ebp - 0x28], 0
call fcn.00403931
mov esi, eax
add esp, 4
mov dword [ebp - 0x38], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x40143a
xorps xmm0, xmm0
movq qword [esi], xmm0
mov dword [esi + 8], 0
push str.ROOTWMI
mov dword [esi + 4], 0
mov dword [esi + 8], 1
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esi], eax
test eax, eax
je 0x401704
jmp 0x40143c
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x38], esi
test esi, esi
je 0x401704
lea edx, [ebp - 0x28]
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x2c]
push edx
push 0
push 0
mov ecx, dword [eax]
push 0
push 0
push 0
push 0
push dword [esi]
push eax
call dword [ecx + 0xc]
mov edi, eax
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
lock xadd dword [esi + 8], ecx
dec ecx
jne 0x4014b9
mov ecx, dword [esi]
test ecx, ecx
je 0x401497
push ecx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x4014ae
push eax
call fcn.00403961
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.00403900
add esp, 8
test edi, edi
js 0x4014e1
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push dword [ebp - 0x28]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jns 0x4014e9
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x2c]
jmp 0x4016da
push 0xc
mov dword [ebp - 0x30], 0
call fcn.00403931
mov esi, eax
add esp, 4
mov dword [ebp - 0x38], esi
mov dword [ebp - 4], 2
test esi, esi
je 0x401534
xorps xmm0, xmm0
movq qword [esi], xmm0
mov dword [esi + 8], 0
push str.SELECT__FROM_MSAcpi_ThermalZoneTemperature
mov dword [esi + 4], 0
mov dword [esi + 8], 1
call fcn.004034d0
mov dword [esi], eax
jmp 0x401536
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x38], esi
test esi, esi
je 0x401704
push 0xc
mov dword [ebp - 4], 3
call fcn.00403931
mov edi, eax
add esp, 4
mov dword [ebp - 0x3c], edi
mov byte [ebp - 4], 4
test edi, edi
je 0x401590
xorps xmm0, xmm0
movq qword [edi], xmm0
mov dword [edi + 8], 0
push 0x40539c
mov dword [edi + 4], 0
mov dword [edi + 8], 1
call fcn.004034d0
mov dword [edi], eax
jmp 0x401592
xor edi, edi
mov byte [ebp - 4], 3
mov dword [ebp - 0x3c], edi
test edi, edi
je 0x40170e
lea edx, [ebp - 0x30]
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x28]
push edx
push 0
push 0x30
push dword [esi]
mov ecx, dword [eax]
push dword [edi]
push eax
call dword [ecx + 0x50]
mov dword [ebp - 0x38], eax
or eax, 0xffffffff
mov ecx, eax
lock xadd dword [edi + 8], ecx
dec ecx
jne 0x401602
mov ecx, dword [edi]
test ecx, ecx
je 0x4015dd
push ecx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [edi], 0
mov eax, dword [edi + 4]
test eax, eax
je 0x4015f4
push eax
call fcn.00403961
add esp, 4
mov dword [edi + 4], 0
push 0xc
push edi
call fcn.00403900
add esp, 8
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
lock xadd dword [esi + 8], eax
dec eax
jne 0x401646
mov eax, dword [esi]
test eax, eax
je 0x401624
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x40163b
push eax
call fcn.00403961
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.00403900
add esp, 8
cmp dword [ebp - 0x38], 0
jl 0x4014d8
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x14], 0
test ecx, ecx
je 0x4016c5
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
nop dword [eax + eax]
mov eax, dword [ecx]
lea edx, [ebp - 0x14]
push edx
lea edx, [ebp - 0x34]
push edx
push 1
push 0xffffffffffffffff
push ecx
call dword [eax + 0x10]
cmp dword [ebp - 0x14], 0
je 0x4016ba
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x24]
push 0
push 0
push edx
mov ecx, dword [eax]
push 0
push 0x4053a0
push eax
call dword [ecx + 0x10]
lea eax, [ebp - 0x24]
xor ebx, ebx
push eax
call esi
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [ebp - 0x30]
test ecx, ecx
jne 0x401670
jmp 0x4016c5
cmp ebx, 0xffffffff
mov eax, 1
cmove ebx, eax
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, ebx
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.004038f2
mov esp, ebp
pop ebp
ret
push 0x8007000e
call fcn.004034b0
push 0x8007000e
call fcn.004034b0
int3