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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10020116
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x1002b014]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], edx
mov edi, ecx
mov dword [ebp - 0x24], edi
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x34], edi
push str.ASSOCIATORS_OF_Win32_DiskDrive.DeviceID.PhysicalDrive_d_WHERE_ResultClassWin32_PnPEntity
mov dword [ebp - 0x3c], 0
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__1]
push str.ASSOCIATORS_OF_Win32_PnPEntity.DeviceID_s_WHERE_AssocClassWin32_SCSIControllerDevice
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 1
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__1]
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
mov ecx, edi
call dword [sym.imp.mfc140u.dll_Ordinal_296]
lea eax, [ebp - 0x30]
mov dword [ebp - 0x3c], 1
push eax
push 0x10021414
push 1
push 0
push 0x10021424
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov byte [ebp - 4], 4
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x1001d062
push str.._rootcimv2
lea ecx, [ebp - 0x20]
call fcn.100011f0
mov byte [ebp - 4], 5
mov eax, dword [eax]
test eax, eax
je 0x1001ceff
mov edx, dword [eax]
jmp 0x1001cf01
xor edx, edx
mov eax, dword [ebp - 0x30]
lea esi, [ebp - 0x2c]
push esi
push 0
push 0
mov ecx, dword [eax]
push 0x80
push 0
push 0
push 0
push edx
push eax
call dword [ecx + 0xc]
test eax, eax
mov byte [ebp - 4], 4
mov esi, dword [ebp - 0x20]
setns bl
test esi, esi
je 0x1001cf73
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
dec eax
jne 0x1001cf73
test esi, esi
je 0x1001cf73
mov eax, dword [esi]
test eax, eax
je 0x1001cf50
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x1001cf68
push eax
call dword [sym.imp.mfc140u.dll_operator_2]
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.1001ddbe
add esp, 8
test bl, bl
je 0x1001d062
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push dword [ebp - 0x2c]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
js 0x1001d062
push dword [ebp - 0x1c]
mov esi, dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__16]
lea eax, [ebp - 0x18]
push dword [ebp - 0x24]
push eax
call esi
add esp, 0xc
push ecx
mov ecx, esp
mov dword [ebp - 0x38], esp
push str.DeviceID
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__1]
push ecx
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 6
mov ecx, esp
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t_]
mov edx, dword [ebp - 0x2c]
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 4
call fcn.1001cbc0
add esp, 8
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x20]
cmp dword [eax - 0xc], 0
je 0x1001d04c
push eax
push dword [ebp - 0x28]
lea eax, [ebp - 0x18]
push eax
call esi
add esp, 0xc
push ecx
mov ecx, esp
mov dword [ebp - 0x38], esp
push str.DeviceID
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__1]
push ecx
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 8
mov ecx, esp
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t_]
mov edx, dword [ebp - 0x2c]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 7
call fcn.1001cbc0
add esp, 8
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 9
push eax
mov ecx, edi
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__2]
lea ecx, [ebp - 0x1c]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
jmp 0x1001d059
push 0x10021474
mov ecx, edi
call dword [0x100211e8]
lea ecx, [ebp - 0x20]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov dword [ebp - 4], 3
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x1001d07d
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 0x2c], 0
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x1001d091
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 0x30], 0
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x28]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x24]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1001d656
mov esp, ebp
pop ebp
ret