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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10145db8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x10189710]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor esi, esi
cmp eax, esi
je 0x10037792
push esi
push esi
mov byte [eax], 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
cmp eax, 0x80070057
je 0x100377a7
cmp eax, 0x8007000e
je 0x100377a7
cmp eax, 0x8000ffff
je 0x100377a7
cmp eax, 0x80010106
je 0x100377a7
cmp eax, esi
jge 0x100377a7
push eax
mov eax, dword [ebp + 0xc]
push str._PCI__Failed_to_initialize_COM_library._Error_code__0x_x
push eax
call fcn.10127dc0
add esp, 0xc
xor eax, eax
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
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]
cmp eax, esi
jge 0x100377f0
cmp eax, 0x80010119
je 0x100377f0
mov ecx, dword [ebp + 0xc]
push eax
push str._PCI__Failed_to_initialize_security._Error_code__0x_x
push ecx
call fcn.10127dc0
add esp, 0xc
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [esp + 0x18]
push edx
push 0x1014d1a4
push 1
push esi
push 0x1014d274
mov dword [esp + 0x2c], esi
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, esi
jge 0x1003781c
push eax
mov eax, dword [ebp + 0xc]
push str._PCI__CoCreateInstance_of_CLSID_WbemLocator_Failed._Error_code__0x_x
push eax
jmp 0x100377cd
lea ecx, [esp + 0x24]
push ecx
mov edi, str.ROOTCIMV2
mov dword [esp + 0x18], esi
call fcn.1000ad90
mov dword [esp + 0x48], esi
mov eax, dword [eax]
cmp eax, esi
je 0x1003783d
mov ecx, dword [eax]
jmp 0x1003783f
xor ecx, ecx
mov eax, dword [esp + 0x18]
mov edx, dword [eax]
lea edi, [esp + 0x14]
push edi
push esi
push esi
push esi
push esi
push esi
push esi
push ecx
push eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [esp + 0x24]
mov ebx, eax
mov dword [esp + 0x48], 0xffffffff
call fcn.1000ae30
cmp ebx, esi
jge 0x10037899
mov ecx, dword [ebp + 0xc]
push ebx
push str._PCI__Could_not_ConnectServer._Error_code__0x_x
push ecx
call fcn.10127dc0
mov eax, dword [esp + 0x24]
add esp, 0xc
cmp eax, esi
je 0x100377d5
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
jmp 0x100377d5
mov ecx, dword [esp + 0x14]
push esi
push esi
push 3
push 3
push esi
push esi
push 0xa
push ecx
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
cmp eax, esi
jge 0x100378ed
mov edx, dword [ebp + 0xc]
push eax
push str._PCI__Could_not_CoSetProxyBlanket._Error_code__0x_x
push edx
call fcn.10127dc0
mov eax, dword [esp + 0x20]
add esp, 0xc
cmp eax, esi
je 0x100378d4
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x18]
cmp eax, esi
je 0x100377d5
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x100377d5
push str.SELECT__FROM_win32_computersystemproduct
lea ebx, [esp + 0x2c]
mov dword [esp + 0x14], esi
call fcn.1000ad00
mov edi, eax
push 0x10156da8
lea ebx, [esp + 0x28]
mov dword [esp + 0x4c], 1
call fcn.1000ad00
mov byte [esp + 0x48], 2
mov ecx, dword [edi]
test ecx, ecx
je 0x10037926
mov ecx, dword [ecx]
jmp 0x10037928
xor ecx, ecx
mov eax, dword [eax]
test eax, eax
je 0x10037932
mov edx, dword [eax]
jmp 0x10037934
xor edx, edx
mov eax, dword [esp + 0x14]
mov esi, dword [eax]
lea edi, [esp + 0x10]
push edi
push 0
push 0x30
push ecx
push edx
push eax
mov eax, dword [esi + 0x50]
call eax
lea edi, [esp + 0x24]
mov ebx, eax
call fcn.1000ae30
lea edi, [esp + 0x28]
mov dword [esp + 0x48], 0xffffffff
call fcn.1000ae30
test ebx, ebx
jge 0x100379a6
mov ecx, dword [ebp + 0xc]
push ebx
push str._PCI__Query_for_Identification_Number_failed._Error_code__0x_x
push ecx
call fcn.10127dc0
mov eax, dword [esp + 0x20]
add esp, 0xc
test eax, eax
je 0x1003798d
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, dword [esp + 0x18]
test eax, eax
je 0x100377d5
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x100377d5
mov eax, dword [esp + 0x10]
mov dword [esp + 0x1c], 0
test eax, eax
je 0x10037a87
mov esi, dword [sym.imp.OLEAUT32.dll_VariantClear]
mov edi, 8
lea edx, [esp + 0x20]
push edx
lea edx, [esp + 0x20]
push edx
push 1
xor ebx, ebx
mov dword [esp + 0x2c], ebx
mov ecx, dword [eax]
push 0xffffffffffffffff
push eax
mov eax, dword [ecx + 0x10]
call eax
cmp dword [esp + 0x20], ebx
je 0x10037a83
cmp dword [esp + 0x1c], ebx
je 0x10037a83
lea ecx, [esp + 0x2c]
push ecx
call esi
mov eax, dword [esp + 0x1c]
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
push ebx
push ebx
lea ecx, [esp + 0x34]
push ecx
push ebx
push str.IdentifyingNumber
push eax
call edx
cmp word [esp + 0x2c], di
jne 0x10037a3d
mov eax, dword [esp + 0x34]
cmp eax, ebx
je 0x10037a3d
mov dword [esp + 0x24], ebx
push eax
lea ebx, [esp + 0x28]
call fcn.10073be0
mov ebx, dword [esp + 0x28]
add esp, 4
test ebx, ebx
jne 0x10037a56
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x100379c5
jmp 0x10037a87
mov esi, dword [ebp + 8]
mov edx, esi
mov eax, ebx
sub edx, ebx
nop
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x10037a60
call fcn.10037250
push ebx
call fcn.10128243
add esp, 4
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x10037a9b
mov edx, dword [ecx]
mov eax, dword [edx + 8]
push ecx
call eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x10037aaf
mov edx, dword [ecx]
mov eax, dword [edx + 8]
push ecx
call eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10037abb
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x10037acb
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 + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret