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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xdc
mov eax, dword [0x4f5470]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
mov ebx, esi
mov dword [ebp - 0xdc], edi
push esi
mov dword [ebp - 0xc8], ebx
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jns 0x47239d
or eax, 0xffffffff
jmp 0x4726af
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]
test eax, eax
jns 0x4723c0
cmp eax, 0x80010119
je 0x4723c0
push 0xfffffffffffffffe
jmp 0x4726a6
lea eax, [ebp - 0xc0]
mov dword [ebp - 0xc0], esi
push eax
push 0x4df024
push 1
push esi
push 0x4df014
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ecx, dword [ebp - 0xc0]
test eax, eax
js 0x47269a
test ecx, ecx
je 0x4726a4
lea edx, [ebp - 0xb8]
mov dword [ebp - 0xb8], esi
mov eax, dword [ecx]
push edx
push esi
push esi
push esi
push esi
push esi
push esi
push 0x4d6fb0
push ecx
call dword [eax + 0xc]
test eax, eax
js 0x47267a
cmp dword [ebp - 0xb8], ebx
je 0x47268a
push esi
push esi
push 3
push 3
push esi
push esi
push 0xa
push dword [ebp - 0xb8]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jns 0x472465
mov ecx, dword [ebp - 0xb8]
test ecx, ecx
je 0x472452
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [ebp - 0xc0]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push 0xfffffffffffffffb
jmp 0x4726a6
mov eax, dword [ebp - 0xb8]
lea edx, [ebp - 0xbc]
push edx
push esi
push 0x30
push str.SELECT__FROM_Win32_BaseBoard
mov dword [ebp - 0xbc], esi
mov ecx, dword [eax]
push 0x4d7004
push eax
call dword [ecx + 0x50]
test eax, eax
mov eax, dword [ebp - 0xbc]
js 0x47266b
test eax, eax
je 0x47266b
mov dword [ebp - 0xc4], esi
mov dword [ebp - 0xc8], esi
mov ecx, dword [eax]
lea edx, [ebp - 0xc8]
push edx
lea edx, [ebp - 0xc4]
push edx
push 1
push 0xffffffffffffffff
push eax
call dword [ecx + 0x10]
cmp dword [ebp - 0xc8], esi
je 0x472663
cmp dword [ebp - 0xc4], esi
je 0x472663
xor eax, eax
lea edi, [ebp - 0xd8]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0xd8]
mov edi, dword [sym.imp.OLEAUT32.dll_VariantClear]
push eax
call edi
lea eax, [ebp - 0xd8]
push eax
call edi
mov eax, dword [ebp - 0xc4]
lea edx, [ebp - 0xd8]
push esi
push esi
push edx
mov ecx, dword [eax]
push esi
push str.SerialNumber
push eax
call dword [ecx + 0x10]
test eax, eax
jne 0x4725ee
cmp word [ebp - 0xd8], 8
jne 0x47260e
cmp dword [ebp - 0xd0], esi
je 0x47260e
push 0xfde9
push dword [ebp - 0xd0]
lea eax, [ebp - 0x84]
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x88], eax
call fcn.00471f77
push dword [ebp - 0x88]
call fcn.00404800
mov edi, dword [ebp - 0xdc]
pop ecx
push eax
push dword [ebp - 0x88]
mov ecx, edi
call fcn.00408460
lea eax, [ebp - 0x84]
cmp dword [ebp - 0x88], eax
je 0x47259a
push dword [ebp - 0x88]
call fcn.004a7dd8
pop ecx
push 0x53
push str.d:webapps_b_build_slave_repo_build_srcwow_basewinwow_machine_info_utils_win.cc
call fcn.0040a010
pop ecx
pop ecx
test eax, eax
js 0x4725db
push esi
push 0x68
push str.d:webapps_b_build_slave_repo_build_srcwow_basewinwow_machine_info_utils_win.cc
lea ecx, [ebp - 0xb4]
or ebx, 1
call fcn.0040a070
push edi
add eax, 8
push str.mainboard_sn:
push eax
call fcn.00408da0
pop ecx
pop ecx
push eax
call fcn.0040c320
pop ecx
pop ecx
test bl, 1
je 0x4725ee
lea ecx, [ebp - 0xb4]
and ebx, 0xfffffffe
call fcn.0040a0c0
lea eax, [ebp - 0xd8]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [ebp - 0xbc]
test eax, eax
jne 0x4724ad
jmp 0x4726a7
push 0x53
mov edi, str.d:webapps_b_build_slave_repo_build_srcwow_basewinwow_machine_info_utils_win.cc
push edi
call fcn.0040a010
pop ecx
pop ecx
test eax, eax
js 0x472643
push esi
push 0x6a
push edi
lea ecx, [ebp - 0xb4]
or ebx, 2
call fcn.0040a070
add eax, 8
push str.mainboard_query_failed.
push eax
call fcn.00408da0
pop ecx
pop ecx
test bl, 2
je 0x472653
lea ecx, [ebp - 0xb4]
call fcn.0040a0c0
push 0xfffffffffffffff9
pop esi
lea eax, [ebp - 0xd8]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [ebp - 0xbc]
jmp 0x47266e
push 0xfffffffffffffffa
pop esi
test eax, eax
je 0x4726a7
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x4726a7
mov ecx, dword [ebp - 0xb8]
test ecx, ecx
je 0x47268a
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [ebp - 0xc0]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push 0xfffffffffffffffc
jmp 0x4726a6
test ecx, ecx
je 0x4726a4
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
push 0xfffffffffffffffd
pop esi
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a7e44
mov esp, ebp
pop ebp
ret