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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10029e28
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x1003d01c]
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 0x1002b7ec
push 1
push 0
push 0x1002b7dc
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x1001dd39
push 0x1001e120
push eax
push 0x10019160
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.1001c8f0
mov edx, str._Err_code__0x
mov ecx, eax
call fcn.1001c8f0
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 0x1001e0fd
push str.ROOTCIMV2
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x18], 0
call fcn.1001d120
mov dword [ebp - 4], 0
mov eax, dword [eax]
test eax, eax
je 0x1001dd5e
mov edx, dword [eax]
jmp 0x1001dd60
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.1001d1d0
push 0x1001e120
test esi, esi
jns 0x1001dddf
push esi
push 0x10019160
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.1001c8f0
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 0x1001e0fd
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.1001c8f0
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 0x1001de6f
push 0x1001e120
push eax
push 0x10019160
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.1001c8f0
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 0x1001e0fd
push str.SELECT__FROM_Win32_BIOS
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x24], 0
call fcn.1001d080
mov esi, eax
push 0x10032df4
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 1
call fcn.1001d080
mov byte [ebp - 4], 2
mov esi, dword [esi]
test esi, esi
je 0x1001dea7
mov esi, dword [esi]
jmp 0x1001dea9
xor esi, esi
mov eax, dword [eax]
test eax, eax
je 0x1001deb3
mov edx, dword [eax]
jmp 0x1001deb5
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.1001d1d0
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0xffffffff
call fcn.1001d1d0
test esi, esi
jns 0x1001df0d
push 0x1001e120
push esi
push 0x10019160
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.1001c8f0
mov edx, str._Error_code__0x
mov ecx, eax
jmp 0x1001de2d
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x14], 0
test ecx, ecx
je 0x1001e0e0
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 0x1001e0e0
mov eax, 0x10043878
dec eax
mov cl, byte [eax + 1]
lea eax, [eax + 1]
test cl, cl
jne 0x1001df52
mov ecx, dword [str._XMotherboard:]
lea edx, [ebp - 0x38]
mov dword [eax], ecx
mov ecx, dword [0x10032de8]
mov dword [eax + 4], ecx
mov ecx, dword [0x10032dec]
mov dword [eax + 8], ecx
mov ecx, dword [0x10032df0]
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 0x1001dfd6
push dword [ebp - 0x30]
call fcn.10026d80
mov edx, eax
mov esi, edx
lea ebx, [ebx]
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x1001dfb0
mov edi, 0x10043878
sub edx, esi
dec edi
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1001dfc0
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 0x1001e026
push dword [ebp - 0x30]
call fcn.10026d80
mov edx, eax
mov esi, edx
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x1001e001
mov edi, 0x10043878
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1001e010
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 0x1001e076
push dword [ebp - 0x30]
call fcn.10026d80
mov edx, eax
mov esi, edx
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x1001e051
mov edi, 0x10043878
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1001e060
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 0x1001e0c6
push dword [ebp - 0x30]
call fcn.10026d80
mov edx, eax
mov esi, edx
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x1001e0a1
mov edi, 0x10043878
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1001e0b0
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 0x1001df30
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.1002711f
mov esp, ebp
pop ebp
ret