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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10145b51
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x10189710]
xor eax, esp
mov dword [esp + 0x250], eax
push ebx
push esi
push edi
mov eax, dword [0x10189710]
xor eax, esp
push eax
lea eax, [esp + 0x268]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [esp + 0x2c], eax
mov esi, ecx
cmp eax, ebx
je 0x10121018
push ebx
push ebx
mov dword [eax], ebx
call dword [sym.imp.ole32.dll_CoInitializeEx]
cmp eax, 0x80070057
je 0x1012101f
cmp eax, 0x8007000e
je 0x1012101f
cmp eax, 0x8000ffff
je 0x1012101f
cmp eax, 0x80010106
je 0x1012101f
cmp eax, ebx
jge 0x1012101f
push eax
push str._GEN__Failed_to_initialize_COM_library._Error_code__0x_x
push esi
call fcn.10127dc0
add esp, 0xc
xor eax, eax
jmp 0x10121365
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]
cmp eax, ebx
jge 0x10121057
cmp eax, 0x80010119
je 0x10121057
push eax
push str._GEN__Failed_to_initialize_security._Error_code__0x_x
push esi
call fcn.10127dc0
add esp, 0xc
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
jmp 0x10121365
lea eax, [esp + 0x18]
push eax
push 0x1014d1a4
push 1
push ebx
push 0x1014d274
mov dword [esp + 0x2c], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jge 0x1012107f
push eax
push str._GEN__CoCreateInstance_of_CLSID_WbemLocator_Failed._Error_code__0x_x
jmp 0x10121041
lea ecx, [esp + 0x28]
push ecx
mov edi, str.ROOTCIMV2
mov dword [esp + 0x20], ebx
call fcn.1000ad90
mov dword [esp + 0x270], ebx
mov eax, dword [eax]
cmp eax, ebx
je 0x101210a3
mov ecx, dword [eax]
jmp 0x101210a5
xor ecx, ecx
mov eax, dword [esp + 0x18]
mov edx, dword [eax]
lea edi, [esp + 0x1c]
push edi
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ecx
push eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [esp + 0x28]
mov ebx, eax
mov dword [esp + 0x270], 0xffffffff
call fcn.1000ae30
test ebx, ebx
jge 0x10121107
push ebx
push str._GEN__Could_not_ConnectServer._Error_code__0x_x
push esi
call fcn.10127dc0
add esp, 0xc
mov eax, dword [esp + 0x18]
test eax, eax
je 0x1012104a
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
jmp 0x10121365
mov eax, dword [esp + 0x1c]
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push eax
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jge 0x10121145
push eax
push str._GEN__Could_not_CoSetProxyBlanket._Error_code__0x_x
push esi
call fcn.10127dc0
add esp, 0xc
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x101210e6
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x101210e6
push str.Win32_SystemEnclosure
lea eax, [esp + 0x58]
push str.SELECT__FROM__s
push eax
mov dword [esp + 0x20], 0
call fcn.10127dc0
add esp, 0xc
lea ecx, [esp + 0x54]
push ecx
lea ebx, [esp + 0x44]
call fcn.1000ad00
mov edi, eax
push 0x10156da8
lea ebx, [esp + 0x2c]
mov dword [esp + 0x274], 1
call fcn.1000ad00
mov byte [esp + 0x270], 2
mov ecx, dword [edi]
test ecx, ecx
je 0x1012119f
mov ecx, dword [ecx]
jmp 0x101211a1
xor ecx, ecx
mov eax, dword [eax]
test eax, eax
je 0x101211ab
mov edx, dword [eax]
jmp 0x101211ad
xor edx, edx
mov eax, dword [esp + 0x1c]
mov edi, dword [eax]
lea ebx, [esp + 0x14]
push ebx
push 0
push 0x30
push ecx
push edx
mov edx, dword [edi + 0x50]
push eax
call edx
lea edi, [esp + 0x28]
mov ebx, eax
call fcn.1000ae30
lea edi, [esp + 0x40]
mov dword [esp + 0x270], 0xffffffff
call fcn.1000ae30
test ebx, ebx
jge 0x10121205
push ebx
push str.Win32_SystemEnclosure
push str.chassistypes
push str._GEN__Query_for__S_from__s_failed._Error_code__0x_x
push esi
call fcn.10127dc0
add esp, 0x14
jmp 0x10121133
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], 0
test eax, eax
je 0x10121316
mov edi, dword [sym.imp.OLEAUT32.dll_VariantClear]
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea edx, [esp + 0x30]
push edx
lea edx, [esp + 0x24]
push edx
push 1
xor esi, esi
mov dword [esp + 0x3c], esi
mov ecx, dword [eax]
push 0xffffffffffffffff
push eax
mov eax, dword [ecx + 0x10]
call eax
cmp dword [esp + 0x30], esi
je 0x10121312
cmp dword [esp + 0x20], esi
je 0x10121312
lea ecx, [esp + 0x44]
push ecx
call edi
mov eax, dword [esp + 0x20]
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
push esi
push esi
lea ecx, [esp + 0x4c]
push ecx
push esi
push str.chassistypes
push eax
call edx
test eax, eax
jge 0x1012128d
lea eax, [esp + 0x44]
push eax
call ebx
mov eax, dword [esp + 0x14]
cmp eax, esi
jne 0x10121225
jmp 0x10121316
mov eax, dword [esp + 0x44]
cmp ax, 1
je 0x1012130b
cmp ax, si
je 0x1012130b
test eax, 0x2000
jne 0x101212af
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x2c]
mov dword [edx], ecx
jmp 0x1012130b
mov edi, dword [esp + 0x4c]
lea eax, [esp + 0x3c]
push eax
push 1
push edi
mov dword [esp + 0x30], esi
call dword [sym.imp.OLEAUT32.dll_SafeArrayLock]
lea ecx, [esp + 0x34]
push ecx
push 1
push edi
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetLBound]
mov eax, dword [esp + 0x3c]
cmp eax, dword [esp + 0x34]
mov dword [esp + 0x38], eax
jg 0x10121304
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x3c]
push eax
push edi
mov dword [esp + 0x30], esi
call dword [sym.imp.OLEAUT32.dll_SafeArrayPutElement]
test eax, eax
jne 0x10121304
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
mov dword [edx], ecx
push edi
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetDim]
lea eax, [esp + 0x44]
push eax
call ebx
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x1012132a
mov edx, dword [ecx]
mov eax, dword [edx + 8]
push ecx
call eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x1012133e
mov edx, dword [ecx]
mov eax, dword [edx + 8]
push ecx
call eax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1012134a
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x20]
test eax, eax
je 0x1012135a
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, 1
mov ecx, dword [esp + 0x268]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x250]
xor ecx, esp
call fcn.10127db1
mov esp, ebp
pop ebp
ret