Function at 0x407460
Capabilities:
Connect to wmi namespace via wbemlocator
Get system firmware table
Reference wmi statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47a918
mov eax, dword fs:[0]
push eax
sub esp, 0x15c
mov eax, dword [0x4a90d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x164]
mov dword [ebp - 0x128], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x134], eax
mov byte [ebp - 0x115], 0
mov byte [ebp - 0x116], 1
mov dword [eax], 0
mov word [ebp - 0x168], 0
call fcn.0040ebb0
push 0
push 0
push 0
push 0x52534d42
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetSystemFirmwareTable]
mov edi, eax
push edi
call fcn.0041a7a0
mov esi, eax
add esp, 4
test esi, esi
je 0x4076ff
push edi
push esi
push 0
push 0x52534d42
call dword [sym.imp.KERNEL32.dll_GetSystemFirmwareTable]
mov al, byte [esi + 1]
lea ecx, [ebp - 0x164]
mov byte [ebp - 0x168], al
mov al, byte [esi + 2]
push 1
mov byte [ebp - 0x167], al
lea eax, [esi + 8]
push dword [esi + 4]
push eax
call fcn.0040ed70
push esi
call fcn.0041a960
add esp, 4
lea ecx, [ebp - 0x168]
push 1
call fcn.004081b0
mov esi, eax
lea eax, [esi + 4]
test eax, eax
je 0x40758d
movzx edi, byte [esi + 1]
xorps xmm0, xmm0
add edi, esi
movq qword [ebp - 0x144], xmm0
cmp byte [ebp - 0x168], 2
movups xmmword [ebp - 0x154], xmm0
jb 0x40758d
cmp byte [ebp - 0x167], 0
jbe 0x40758d
movzx eax, byte [eax]
push eax
push edi
call fcn.00408350
mov edx, eax
movzx eax, byte [esi + 7]
push eax
push edi
call fcn.00408350
mov edi, eax
jmp 0x407599
mov edi, dword [ebp - 0x148]
mov edx, dword [ebp - 0x154]
test esi, esi
je 0x4076ff
test edx, edx
je 0x4076ff
mov ecx, edx
lea esi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4075b0
sub ecx, esi
je 0x4076ff
push 4
push str.Dell
push edx
call fcn.00437456
add esp, 0xc
test eax, eax
jne 0x4076ff
mov eax, dword [ebp - 0x134]
lea ecx, [ebp - 0x11c]
push edi
mov dword [eax], 1
call fcn.0046a2f0
lea ecx, [ebp - 0x11c]
mov byte [ebp - 4], 1
call fcn.0046a430
lea ecx, [ebp - 0x11c]
call fcn.0046a490
mov eax, dword [ebp - 0x11c]
cmp dword [eax - 8], 0
jbe 0x40762b
mov edi, dword [ebp - 0x128]
push eax
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.00437d26
add esp, 0xc
jmp 0x4076a3
lea eax, [ebp - 0x154]
push eax
lea ecx, [ebp - 0x168]
call fcn.00408220
test eax, eax
je 0x40769d
push dword [ebp - 0x144]
lea ecx, [ebp - 0x120]
call fcn.0046a2f0
lea ecx, [ebp - 0x120]
mov byte [ebp - 4], 2
call fcn.0046a430
lea ecx, [ebp - 0x120]
call fcn.0046a490
mov eax, dword [ebp - 0x120]
mov edi, dword [ebp - 0x128]
cmp dword [eax - 8], 0
jbe 0x40768c
push eax
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.00437d26
add esp, 0xc
lea ecx, [ebp - 0x120]
mov byte [ebp - 4], 1
call fcn.0046a310
jmp 0x4076a3
mov edi, dword [ebp - 0x128]
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4076a8
sub ecx, edx
je 0x4076e1
mov eax, dword [0x4aa574]
push edi
push str.GetAssetTag__:_Found_asset_Tag_using_Raw_SM_Bios__hs_n
push 0x4aa574
mov esi, dword [eax + 0x24]
mov ecx, esi
call dword [0x47d42c]
call esi
add esp, 0xc
mov byte [ebp - 0x115], 1
mov byte [ebp - 0x116], 0
lea ecx, [ebp - 0x11c]
mov byte [ebp - 4], 0
call fcn.0046a310
cmp byte [ebp - 0x115], 0
jne 0x407ccd
jmp 0x407705
mov edi, dword [ebp - 0x128]
push 0
push 0
mov byte [ebp - 0x121], 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
js 0x407723
mov byte [ebp - 0x121], 1
jmp 0x40774d
cmp eax, 0x80010106
jne 0x407c74
mov eax, dword [0x4aa574]
push str.GetAssetTag__:_CoInitializeEx___returned_RPC_E_CHANGED_MODE_n
push 0x4aa574
mov esi, dword [eax + 0x1c]
mov ecx, esi
call dword [0x47d42c]
call esi
add esp, 8
cmp byte [ebp - 0x116], 0
je 0x407c5a
mov dword [ebp - 0x13c], 0
lea eax, [ebp - 0x13c]
mov byte [ebp - 4], 3
push eax
push 0x4a28ac
push 1
push 0
push 0x499cc4
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x407c1c
mov dword [ebp - 0x130], 0
lea ecx, [ebp - 0x130]
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x13c]
push ecx
push 0
push 0
mov esi, dword [eax]
push 0
push 0
push 0
mov esi, dword [esi + 0xc]
mov ecx, esi
push 0
push str.ROOTCIMV2
push eax
call dword [0x47d42c]
call esi
test eax, eax
js 0x407bdc
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push dword [ebp - 0x130]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
js 0x407bd4
mov dword [ebp - 0x120], 0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x120]
mov eax, dword [ebp - 0x130]
push ecx
push 0
push 0x30
mov esi, dword [eax]
push str.SELECT__FROM_Win32_SystemEnclosure
push 0x4a1d1c
push eax
mov esi, dword [esi + 0x50]
mov ecx, esi
call dword [0x47d42c]
call esi
test eax, eax
js 0x407b94
mov eax, dword [ebp - 0x120]
test eax, eax
je 0x407bba
mov dword [ebp - 0x11c], 0
lea ecx, [ebp - 0x138]
mov byte [ebp - 4], 6
push ecx
lea ecx, [ebp - 0x11c]
mov dword [ebp - 0x138], 0
mov esi, dword [eax]
push ecx
push 1
push 0xffffffffffffffff
mov esi, dword [esi + 0x10]
mov ecx, esi
push eax
call dword [0x47d42c]
call esi
test eax, eax
js 0x407887
cmp dword [ebp - 0x138], 0
jne 0x4078a7
push eax
mov eax, dword [0x4aa574]
push str.GetAssetTag__:_wbemEnumerator.Next___failed_or_returned_count_of_zero__hresult__0x_08x_n
push 0x4aa574
mov esi, dword [eax + 0x14]
mov ecx, esi
call dword [0x47d42c]
call esi
add esp, 0xc
mov eax, dword [ebp - 0x11c]
test eax, eax
je 0x407b0b
lea eax, [ebp - 0x14c]
xorps xmm0, xmm0
push eax
movups xmmword [ebp - 0x14c], xmm0
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x14c]
mov eax, dword [ebp - 0x11c]
push 0
push 0
push ecx
mov esi, dword [eax]
push 0
push str.Manufacturer
push eax
mov esi, dword [esi + 0x10]
mov ecx, esi
call dword [0x47d42c]
call esi
test eax, eax
js 0x407993
cmp word [ebp - 0x14c], 8
jne 0x407993
push 0x104
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.0042e960
mov edx, dword [ebp - 0x144]
add esp, 0xc
mov ecx, edx
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407930
sub ecx, esi
lea eax, [ebp - 0x114]
sar ecx, 1
push ecx
push edx
push 0x104
push eax
push 0
call fcn.00437be4
lea ecx, [ebp - 0x114]
add esp, 0x14
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x407960
sub ecx, edx
je 0x4079b3
push 4
lea eax, [ebp - 0x114]
push str.Dell
push eax
call fcn.00437456
add esp, 0xc
test eax, eax
jne 0x4079b3
mov eax, dword [ebp - 0x134]
mov dword [eax], 1
jmp 0x4079c2
push eax
mov eax, dword [0x4aa574]
push str.GetAssetTag__:__failed_to_get_the_manufacturer_name__hresult__0x_08x_n
push 0x4aa574
mov esi, dword [eax + 0x14]
mov ecx, esi
call dword [0x47d42c]
call esi
add esp, 0xc
mov eax, dword [ebp - 0x134]
cmp dword [eax], 0
je 0x407b67
mov eax, dword [ebp - 0x11c]
lea ecx, [ebp - 0x14c]
push 0
push 0
push ecx
mov esi, dword [eax]
push 0
push str.SerialNumber
push eax
mov esi, dword [esi + 0x10]
mov ecx, esi
mov byte [ebp - 0x116], 0
call dword [0x47d42c]
call esi
test eax, eax
js 0x407a79
cmp word [ebp - 0x14c], 8
jne 0x407a79
push dword [ebp - 0x144]
lea ecx, [ebp - 0x12c]
call fcn.004228b0
lea ecx, [ebp - 0x12c]
mov byte [ebp - 4], 8
call fcn.00422a30
lea ecx, [ebp - 0x12c]
call fcn.00422aa0
mov eax, dword [ebp - 0x12c]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x407a4d
push ecx
push eax
push dword [ebp + 0xc]
push edi
push 0
call fcn.00437be4
add esp, 0x14
jmp 0x407a54
mov byte [ebp - 0x116], 1
lea ecx, [ebp - 0x12c]
mov byte [ebp - 0x115], 1
mov byte [ebp - 4], 7
call fcn.00422930
cmp byte [ebp - 0x116], 0
je 0x407b67
jmp 0x407a99
push eax
mov eax, dword [0x4aa574]
push str.GetAssetTag__:_failed_to_get_the_SMBios_serial_number_name__hresult__0x_08x_n
push 0x4aa574
mov esi, dword [eax + 0x14]
mov ecx, esi
call dword [0x47d42c]
call esi
add esp, 0xc
mov eax, dword [ebp - 0x11c]
lea ecx, [ebp - 0x14c]
push 0
push 0
push ecx
mov esi, dword [eax]
push 0
push str.SMBIOSAssetTag
push eax
mov esi, dword [esi + 0x10]
mov ecx, esi
call dword [0x47d42c]
call esi
test eax, eax
js 0x407acf
cmp word [ebp - 0x14c], 8
je 0x407b36
push eax
mov eax, dword [0x4aa574]
push str.GetAssetTag__:_failed_to_get_the_SMBios_Asset_Tag__hresult__0x_08x_n
push 0x4aa574
mov esi, dword [eax + 0x14]
mov ecx, esi
call dword [0x47d42c]
call esi
add esp, 0xc
cmp byte [ebp - 0x115], 0
jne 0x407b67
lea eax, [ebp - 0x14c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [ebp - 0x11c]
mov byte [ebp - 4], 5
test eax, eax
je 0x407b23
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x47d42c]
call esi
mov eax, dword [ebp - 0x120]
test eax, eax
jne 0x407840
jmp 0x407bba
mov edx, dword [ebp - 0x144]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407b41
sub ecx, esi
sar ecx, 1
push ecx
push edx
push dword [ebp + 0xc]
push edi
push 0
call fcn.00437be4
add esp, 0x14
mov byte [ebp - 0x115], 1
lea eax, [ebp - 0x14c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x11c]
test eax, eax
je 0x407bb4
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x47d42c]
call esi
jmp 0x407bb4
push eax
mov eax, dword [0x4aa574]
push str.GetAssetTag__:_service.ExecQuery___failed__hresult__0x_08x_n
push 0x4aa574
mov esi, dword [eax + 0x14]
mov ecx, esi
call dword [0x47d42c]
call esi
add esp, 0xc
mov eax, dword [ebp - 0x120]
mov byte [ebp - 4], 4
test eax, eax
je 0x407bfc
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x47d42c]
call esi
jmp 0x407bfc
push eax
push str.GetAssetTag__:_CoSetProxyBlanket___failed__hresult__0x_08x_n
jmp 0x407be2
push eax
push str.GetAssetTag__:_locator.ConnectServer___failed__hresult__0x_08x_n
mov eax, dword [0x4aa574]
push 0x4aa574
mov esi, dword [eax + 0x14]
mov ecx, esi
call dword [0x47d42c]
call esi
add esp, 0xc
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x130]
test eax, eax
je 0x407c3c
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x47d42c]
call esi
jmp 0x407c3c
push eax
mov eax, dword [0x4aa574]
push str.GetAssetTag__:_CoCreateInstance_CLSID_WbemLocator__failed__hresult__0x_08x_n
push 0x4aa574
mov esi, dword [eax + 0x14]
mov ecx, esi
call dword [0x47d42c]
call esi
add esp, 0xc
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x13c]
test eax, eax
je 0x407c5a
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x47d42c]
call esi
cmp byte [ebp - 0x121], 0
je 0x407c69
call dword [sym.imp.ole32.dll_CoUninitialize]
cmp byte [ebp - 0x115], 0
jne 0x407ccd
jmp 0x407c94
push eax
mov eax, dword [0x4aa574]
push str.GetAssetTag__:_CoInitializeEx___failed__hresult__0x_08x_n
push 0x4aa574
mov esi, dword [eax + 0x14]
mov ecx, esi
call dword [0x47d42c]
call esi
add esp, 0xc
mov eax, dword [ebp - 0x134]
cmp dword [eax], 0
jne 0x407cbb
mov eax, dword [0x4aa574]
push str.Using_SerialNumber_from_Win32_BIOS_instead_of_asset_tag_for_non_Dell_machine
mov esi, dword [eax + 0x28]
mov ecx, esi
call dword [0x47d42c]
mov ecx, 0x4aa574
call esi
push dword [ebp + 0xc]
push edi
call fcn.00407000
add esp, 8
mov byte [ebp - 0x115], al
lea ecx, [ebp - 0x164]
call fcn.0040ebd0
mov al, byte [ebp - 0x115]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00428a63
mov esp, ebp
pop ebp
ret