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

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
xor ebx, ebx
push edi
push ebx
push ebx
push ebx
push 3
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push ebx
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
test eax, eax
jge 0x40feb8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x24
ret
lea eax, [esp + 0x14]
mov ebp, 1
push eax
push 0x419bfc
push ebp
push ebx
push 0x419ccc
mov dword [esp + 0x28], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x40fee6
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x24
ret
push 0xc
mov dword [esp + 0x14], ebx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x40ff2a
push str.ROOTCIMV2
mov dword [esi + 4], ebx
mov dword [esi + 8], ebp
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
cmp eax, ebx
mov dword [esi], eax
jne 0x40ff24
mov ecx, str.ROOTCIMV2
test ecx, ecx
je 0x40ff24
push 0x8007000e
call fcn.004122ef
mov edi, esi
mov esi, dword [esi]
jmp 0x40ff38
push 0x8007000e
xor edi, edi
call fcn.004122ef
xor esi, esi
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push ecx
push ebx
mov edx, dword [eax]
push ebx
push ebx
push ebx
push ebx
push ebx
push esi
push eax
call dword [edx + 0xc]
cmp edi, ebx
mov esi, eax
je 0x40ff6a
lea edx, [edi + 8]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x40ff6a
push ebp
mov ecx, edi
call fcn.004117d0
cmp esi, ebx
jge 0x40ff88
mov eax, dword [esp + 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x24
ret
mov edx, dword [esp + 0x10]
push ebx
push ebx
push 3
push 3
push ebx
push ebx
push 0xa
push edx
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jge 0x40ffbf
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x14]
push eax
mov edx, dword [eax]
call dword [edx + 8]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x24
ret
push 0xc
mov dword [esp + 0x1c], ebx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x410045
push str.SELECT__FROM_Win32_PhysicalMedia
mov dword [esi + 4], ebx
mov dword [esi + 8], ebp
call fcn.0041221e
cmp eax, ebx
mov dword [esi], eax
jne 0x40fffc
mov eax, str.SELECT__FROM_Win32_PhysicalMedia
test eax, eax
je 0x40fffc
push 0x8007000e
call fcn.004122ef
mov ebx, dword [esi]
mov ebp, esi
push 0xc
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
xor edi, edi
add esp, 4
cmp esi, edi
je 0x410053
push 0x41ca10
mov dword [esi + 4], edi
mov dword [esi + 8], 1
call fcn.0041221e
cmp eax, edi
mov dword [esi], eax
jne 0x41003f
mov ecx, 0x41ca10
test ecx, ecx
je 0x41003f
push 0x8007000e
call fcn.004122ef
mov edi, esi
mov esi, dword [esi]
jmp 0x41005f
push 0x8007000e
xor ebp, ebp
call fcn.004122ef
jmp 0x410000
push 0x8007000e
call fcn.004122ef
xor esi, esi
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push ecx
push 0
mov edx, dword [eax]
push 0x30
push ebx
push esi
push eax
call dword [edx + 0x50]
mov ebx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov esi, eax
test edi, edi
je 0x4100b0
lea edx, [edi + 8]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x4100b0
mov eax, dword [edi]
test eax, eax
je 0x410097
push eax
call ebx
mov eax, dword [edi + 4]
test eax, eax
je 0x4100a7
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
test ebp, ebp
je 0x4100e5
lea eax, [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x4100e5
mov eax, dword [ebp]
test eax, eax
je 0x4100cc
push eax
call ebx
mov eax, dword [ebp + 4]
test eax, eax
je 0x4100dc
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
push ebp
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
test esi, esi
jge 0x410107
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x14]
push eax
mov edx, dword [eax]
call dword [edx + 8]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x24
ret
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], 0
test eax, eax
je 0x4101b5
mov esi, dword [sym.imp.SHLWAPI.dll_StrCpyW]
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov ecx, dword [eax]
lea edx, [esp + 0x1c]
push edx
lea edx, [esp + 0x24]
push edx
push 1
push 0xffffffffffffffff
push eax
call dword [ecx + 0x10]
test eax, eax
jl 0x4101b5
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4101b5
mov eax, dword [esp + 0x20]
push 0
lea edx, [esp + 0x28]
push 0
mov ecx, dword [eax]
push edx
push 0
push 0x41ca14
push eax
call dword [ecx + 0x10]
test eax, eax
jl 0x4101b5
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x4101b5
cmp word [eax], 0x20
jne 0x41017c
add eax, 2
cmp word [eax], 0x20
je 0x410173
push eax
push 0x41e060
call esi
lea eax, [esp + 0x24]
push eax
call edi
mov ax, word [0x41e060]
cmp ax, 0x41
jb 0x41019d
cmp ax, 0x5a
jbe 0x4101b5
cmp ax, 0x30
jb 0x4101a9
cmp ax, 0x39
jbe 0x4101b5
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x410127
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x14]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [esp + 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x20]
push eax
mov edx, dword [eax]
call dword [edx + 8]
pop edi
pop esi
pop ebp
mov eax, 0x41e060
pop ebx
add esp, 0x24
ret