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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002a4b8
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x1003e01c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 0
push 0
push 3
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push eax
push 0x1002c7ec
push 1
push 0
push 0x1002c7dc
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x1001de49
push 0x1001e230
push eax
push 0x10019250
push ecx
mov ecx, dword [sym.imp.MSVCP120.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.Failed_to_create_IWbemLocator_object.
call fcn.1001ca00
mov edx, str._Err_code__0x
mov ecx, eax
call fcn.1001ca00
add esp, 4
mov ecx, eax
call dword [sym.imp.MSVCP120.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::ios_base_____cdecl___class_std::ios_base___]
mov ecx, eax
call dword [sym.imp.MSVCP120.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___long_int_]
mov ecx, eax
call dword [sym.imp.MSVCP120.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, 1
jmp 0x1001e20d
push str.ROOTCIMV2
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x18], 0
call fcn.1001d230
mov dword [ebp - 4], 0
mov eax, dword [eax]
test eax, eax
je 0x1001de6e
mov edx, dword [eax]
jmp 0x1001de70
xor edx, edx
mov eax, dword [ebp - 0x1c]
lea esi, [ebp - 0x18]
push esi
push 0
push 0
mov ecx, dword [eax]
push 0
push 0
push 0
push 0
push edx
push eax
call dword [ecx + 0xc]
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 0xffffffff
mov esi, eax
call fcn.1001d2e0
push 0x1001e230
test esi, esi
jns 0x1001deef
push esi
push 0x10019250
push ecx
mov ecx, dword [sym.imp.MSVCP120.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.Could_not_connect._Error_code__0x
call fcn.1001ca00
add esp, 4
mov ecx, eax
call dword [sym.imp.MSVCP120.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::ios_base_____cdecl___class_std::ios_base___]
mov ecx, eax
call dword [sym.imp.MSVCP120.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___long_int_]
mov ecx, eax
call dword [sym.imp.MSVCP120.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, 1
jmp 0x1001e20d
push ecx
mov ecx, dword [sym.imp.MSVCP120.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.Connected_to_ROOTCIMV2_WMI_namespace
call fcn.1001ca00
add esp, 4
mov ecx, eax
call dword [sym.imp.MSVCP120.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push dword [ebp - 0x18]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jns 0x1001df7f
push 0x1001e230
push eax
push 0x10019250
push ecx
mov ecx, dword [sym.imp.MSVCP120.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.Could_not_set_proxy_blanket._Error_code__0x
call fcn.1001ca00
add esp, 4
mov ecx, eax
call dword [sym.imp.MSVCP120.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::ios_base_____cdecl___class_std::ios_base___]
mov ecx, eax
call dword [sym.imp.MSVCP120.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___long_int_]
mov ecx, eax
call dword [sym.imp.MSVCP120.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, 1
jmp 0x1001e20d
push str.SELECT__FROM_Win32_BIOS
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x24], 0
call fcn.1001d190
mov esi, eax
push 0x10033e74
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 1
call fcn.1001d190
mov byte [ebp - 4], 2
mov esi, dword [esi]
test esi, esi
je 0x1001dfb7
mov esi, dword [esi]
jmp 0x1001dfb9
xor esi, esi
mov eax, dword [eax]
test eax, eax
je 0x1001dfc3
mov edx, dword [eax]
jmp 0x1001dfc5
xor edx, edx
mov eax, dword [ebp - 0x18]
lea edi, [ebp - 0x24]
push edi
push 0
push 0x30
mov ecx, dword [eax]
push esi
push edx
push eax
call dword [ecx + 0x50]
lea ecx, [ebp - 0x3c]
mov esi, eax
call fcn.1001d2e0
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0xffffffff
call fcn.1001d2e0
test esi, esi
jns 0x1001e01d
push 0x1001e230
push esi
push 0x10019250
push ecx
mov ecx, dword [sym.imp.MSVCP120.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.Query_for_operating_system_name_failed.
call fcn.1001ca00
mov edx, str._Error_code__0x
mov ecx, eax
jmp 0x1001df3d
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x14], 0
test ecx, ecx
je 0x1001e1f0
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea esp, [esp]
mov eax, dword [ecx]
lea edx, [ebp - 0x14]
push edx
lea edx, [ebp - 0x20]
push edx
push 1
push 0xffffffffffffffff
push ecx
call dword [eax + 0x10]
cmp dword [ebp - 0x14], 0
je 0x1001e1f0
mov eax, 0x10044868
dec eax
mov cl, byte [eax + 1]
lea eax, [eax + 1]
test cl, cl
jne 0x1001e062
mov ecx, dword [str._XMotherboard:]
lea edx, [ebp - 0x38]
mov dword [eax], ecx
mov ecx, dword [0x10033e68]
mov dword [eax + 4], ecx
mov ecx, dword [0x10033e6c]
mov dword [eax + 8], ecx
mov ecx, dword [0x10033e70]
push 0
push 0
mov dword [eax + 0xc], ecx
mov eax, dword [ebp - 0x20]
push edx
push 0
push str.Model
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
cmp word [ebp - 0x38], 8
jne 0x1001e0e6
push dword [ebp - 0x30]
call fcn.10027300
mov edx, eax
mov esi, edx
lea ebx, [ebx]
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x1001e0c0
mov edi, 0x10044868
sub edx, esi
dec edi
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1001e0d0
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x38]
push 0
push 0
push edx
mov ecx, dword [eax]
push 0
push str.Manufacturer
push eax
call dword [ecx + 0x10]
cmp word [ebp - 0x38], 8
jne 0x1001e136
push dword [ebp - 0x30]
call fcn.10027300
mov edx, eax
mov esi, edx
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x1001e111
mov edi, 0x10044868
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1001e120
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x38]
push 0
push 0
push edx
mov ecx, dword [eax]
push 0
push str.Name
push eax
call dword [ecx + 0x10]
cmp word [ebp - 0x38], 8
jne 0x1001e186
push dword [ebp - 0x30]
call fcn.10027300
mov edx, eax
mov esi, edx
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x1001e161
mov edi, 0x10044868
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1001e170
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x38]
push 0
push 0
push edx
mov ecx, dword [eax]
push 0
push str.SerialNumber
push eax
call dword [ecx + 0x10]
cmp word [ebp - 0x38], 8
jne 0x1001e1d6
push dword [ebp - 0x30]
call fcn.10027300
mov edx, eax
mov esi, edx
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x1001e1b1
mov edi, 0x10044868
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1001e1c0
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x38]
push eax
call ebx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [ebp - 0x24]
test ecx, ecx
jne 0x1001e040
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002769f
mov esp, ebp
pop ebp
ret