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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10145df8
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [0x10189710]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
xor esi, esi
cmp ecx, esi
je 0x10037bbd
mov eax, dword [ebp + 0xc]
cmp eax, esi
je 0x10037bbd
push esi
mov byte [ecx], 0
push esi
mov byte [eax], 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
cmp eax, 0x80070057
je 0x10037b89
cmp eax, 0x8007000e
je 0x10037b89
cmp eax, 0x8000ffff
je 0x10037b89
cmp eax, 0x80010106
je 0x10037b89
cmp eax, esi
jge 0x10037b89
push eax
mov eax, dword [ebp + 0x10]
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 + 0x50]
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 0x10037bd2
cmp eax, 0x80010119
je 0x10037bd2
mov ecx, dword [ebp + 0x10]
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 + 0x50]
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 0x10037bfe
push eax
mov eax, dword [ebp + 0x10]
push str._PCI__CoCreateInstance_of_CLSID_WbemLocator_Failed._Error_code__0x_x
push eax
jmp 0x10037baf
lea ecx, [esp + 0x24]
push ecx
mov edi, str.ROOTCIMV2
mov dword [esp + 0x18], esi
call fcn.1000ad90
mov dword [esp + 0x58], esi
mov eax, dword [eax]
cmp eax, esi
je 0x10037c1f
mov ecx, dword [eax]
jmp 0x10037c21
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 + 0x58], 0xffffffff
call fcn.1000ae30
cmp ebx, esi
jge 0x10037c7b
mov ecx, dword [ebp + 0x10]
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 0x10037bb7
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
jmp 0x10037bb7
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 0x10037ccf
mov edx, dword [ebp + 0x10]
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 0x10037cb6
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x18]
cmp eax, esi
je 0x10037bb7
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x10037bb7
push str.SELECT__FROM_Win32_ComputerSystem
lea ebx, [esp + 0x2c]
mov dword [esp + 0x14], esi
call fcn.1000ad00
mov edi, eax
push 0x10156da8
lea ebx, [esp + 0x28]
mov dword [esp + 0x5c], 1
call fcn.1000ad00
mov byte [esp + 0x58], 2
mov ecx, dword [edi]
test ecx, ecx
je 0x10037d08
mov ecx, dword [ecx]
jmp 0x10037d0a
xor ecx, ecx
mov eax, dword [eax]
test eax, eax
je 0x10037d14
mov edx, dword [eax]
jmp 0x10037d16
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 + 0x58], 0xffffffff
call fcn.1000ae30
test ebx, ebx
jge 0x10037d88
mov ecx, dword [ebp + 0x10]
push ebx
push str._PCI__Query_for_Win32_ComputerSystem_failed._Error_code__0x_x
push ecx
call fcn.10127dc0
mov eax, dword [esp + 0x20]
add esp, 0xc
test eax, eax
je 0x10037d6f
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, dword [esp + 0x18]
test eax, eax
je 0x10037bb7
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x10037bb7
mov eax, dword [esp + 0x10]
mov dword [esp + 0x1c], 0
test eax, eax
je 0x10037ef4
lea edx, [esp + 0x20]
push edx
lea edx, [esp + 0x20]
push edx
push 1
xor esi, esi
mov dword [esp + 0x2c], esi
mov ecx, dword [eax]
push 0xffffffffffffffff
push eax
mov eax, dword [ecx + 0x10]
call eax
cmp dword [esp + 0x20], esi
je 0x10037ef0
cmp dword [esp + 0x1c], esi
je 0x10037ef0
mov edi, dword [ebp + 8]
cmp byte [edi], 0
jne 0x10037e4c
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [esp + 0x1c]
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
push esi
push esi
lea ecx, [esp + 0x34]
push ecx
push esi
push str.Manufacturer
push eax
call edx
cmp word [esp + 0x2c], 8
jne 0x10037e41
mov eax, dword [esp + 0x34]
cmp eax, esi
je 0x10037e41
push eax
lea ebx, [esp + 0x28]
mov dword [esp + 0x28], esi
call fcn.10073be0
mov ebx, dword [esp + 0x28]
add esp, 4
test ebx, ebx
je 0x10037e41
mov edx, edi
mov eax, ebx
sub edx, ebx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x10037e27
mov esi, edi
call fcn.10037250
push ebx
call fcn.10128243
add esp, 4
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov esi, dword [ebp + 0xc]
cmp byte [esi], 0
jne 0x10037edd
lea ecx, [esp + 0x3c]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [esp + 0x1c]
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
push 0
push 0
lea ecx, [esp + 0x44]
push ecx
push 0
push str.Model
push eax
call edx
cmp word [esp + 0x3c], 8
jne 0x10037ecd
mov eax, dword [esp + 0x44]
test eax, eax
je 0x10037ecd
push eax
lea ebx, [esp + 0x28]
mov dword [esp + 0x28], 0
call fcn.10073be0
mov ebx, dword [esp + 0x28]
add esp, 4
test ebx, ebx
je 0x10037ecd
mov edx, esi
mov eax, ebx
sub edx, ebx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x10037eb2
call fcn.10037250
push ebx
call fcn.10128243
mov edi, dword [ebp + 8]
add esp, 4
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp byte [esi], 0
je 0x10037ee2
cmp byte [edi], 0
jne 0x10037ef0
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x10037d9c
jmp 0x10037ef4
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x10037f08
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 0x10037f1c
mov edx, dword [ecx]
mov eax, dword [edx + 8]
push ecx
call eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10037f28
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x10037f38
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 + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret