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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f7810
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x67d070]
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
mov edi, edx
mov dword [ebp - 0x50], ecx
xorps xmm0, xmm0
lea ecx, [ebp - 0x1c]
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
call fcn.00435b20
mov dword [ebp - 0x1c], eax
push 0
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov ecx, eax
xor bl, bl
mov byte [ebp - 0x41], bl
test ecx, ecx
js 0x4ca508
mov bl, 1
mov byte [ebp - 0x41], bl
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]
mov ecx, eax
test ecx, ecx
jns 0x4ca5f4
cmp ecx, 0x80010119
je 0x4ca5f4
test edi, edi
je 0x4ca597
mov eax, dword [edi]
push ecx
push str.In_HardwareUtils::GetSystemInfo._Failed_to_initialize_security.__x
push str.HardwareUtils
push 0x622628
push 0x32
push edi
call dword [eax + 0x34]
add esp, 0x18
jmp 0x4ca93c
cmp ecx, 0x80010106
je 0x4ca4b2
test edi, edi
je 0x4ca536
mov eax, dword [edi]
push ecx
push str.In_HardwareUtils::GetSystemInfo_CoInitialize_failed_with_hres:__ld
push str.HardwareUtils
push 0x622628
push 0x32
push edi
call dword [eax + 0x34]
add esp, 0x18
xor bl, bl
jmp 0x4cab18
mov eax, dword [0x689958]
test eax, eax
je 0x4ca567
push ecx
push str.In_HardwareUtils::GetSystemInfo_CoInitialize_failed_with_hres:__ld
push 0x622628
push 0x622628
push str.HardwareUtils
push str.OOBEUtils
push 0x32
call eax
add esp, 0x1c
xor bl, bl
jmp 0x4cab18
mov edx, dword [0x68995c]
test edx, edx
je 0x4ca946
mov eax, dword [edx]
push ecx
push str.In_HardwareUtils::GetSystemInfo_CoInitialize_failed_with_hres:__ld
push str.HardwareUtils
push 0x622628
push 0x32
push edx
call dword [eax + 0x34]
add esp, 0x18
xor bl, bl
jmp 0x4cab18
mov eax, dword [0x689958]
test eax, eax
je 0x4ca5c6
push ecx
push str.In_HardwareUtils::GetSystemInfo._Failed_to_initialize_security.__x
push 0x622628
push 0x622628
push str.HardwareUtils
push str.OOBEUtils
push 0x32
call eax
add esp, 0x1c
jmp 0x4ca93c
mov edx, dword [0x68995c]
test edx, edx
je 0x4ca93c
mov eax, dword [edx]
push ecx
push str.In_HardwareUtils::GetSystemInfo._Failed_to_initialize_security.__x
push str.HardwareUtils
push 0x622628
push 0x32
push edx
call dword [eax + 0x34]
add esp, 0x18
jmp 0x4ca93c
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0
push eax
push 0x60d54c
push 1
push 0
push 0x60d53c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x4ca695
test edi, edi
je 0x4ca63a
mov eax, dword [edi]
push str.In_HardwareUtils::GetSystemInfo._Failed_to_create_IWbemLocator_object.
push str.HardwareUtils
push 0x622628
push 0x32
push edi
call dword [eax + 0x34]
add esp, 0x14
jmp 0x4ca93c
mov eax, dword [0x689958]
test eax, eax
je 0x4ca668
push str.In_HardwareUtils::GetSystemInfo._Failed_to_create_IWbemLocator_object.
push 0x622628
push 0x622628
push str.HardwareUtils
push str.OOBEUtils
push 0x32
call eax
add esp, 0x18
jmp 0x4ca93c
mov ecx, dword [0x68995c]
test ecx, ecx
je 0x4ca93c
mov eax, dword [ecx]
push str.In_HardwareUtils::GetSystemInfo._Failed_to_create_IWbemLocator_object.
push str.HardwareUtils
push 0x622628
push 0x32
push ecx
call dword [eax + 0x34]
add esp, 0x14
jmp 0x4ca93c
push str.ROOTCIMV2
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x24], 0
call fcn.0049b720
mov byte [ebp - 4], 1
mov eax, dword [eax]
test eax, eax
je 0x4ca6b7
mov edx, dword [eax]
jmp 0x4ca6b9
xor edx, edx
mov eax, dword [ebp - 0x28]
lea esi, [ebp - 0x24]
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 - 0x48]
mov byte [ebp - 4], 0
mov esi, eax
call fcn.0049b9c0
test esi, esi
jns 0x4ca763
test edi, edi
je 0x4ca708
mov eax, dword [edi]
push str.In_HardwareUtils::GetSystemInfo._Could_not_connect.
push str.HardwareUtils
push 0x622628
push 0x32
push edi
call dword [eax + 0x34]
add esp, 0x14
jmp 0x4ca933
mov eax, dword [0x689958]
test eax, eax
je 0x4ca736
push str.In_HardwareUtils::GetSystemInfo._Could_not_connect.
push 0x622628
push 0x622628
push str.HardwareUtils
push str.OOBEUtils
push 0x32
call eax
add esp, 0x18
jmp 0x4ca933
mov ecx, dword [0x68995c]
test ecx, ecx
je 0x4ca933
mov eax, dword [ecx]
push str.In_HardwareUtils::GetSystemInfo._Could_not_connect.
push str.HardwareUtils
push 0x622628
push 0x32
push ecx
call dword [eax + 0x34]
add esp, 0x14
jmp 0x4ca933
test edi, edi
je 0x4ca77d
mov eax, dword [edi]
push str.Connected_to_ROOTCIMV2_WMI_namespace
push str.HardwareUtils
push 0x622628
push 0x1e
push edi
jmp 0x4ca7c6
mov eax, dword [0x689958]
test eax, eax
je 0x4ca7a8
push str.Connected_to_ROOTCIMV2_WMI_namespace
push 0x622628
push 0x622628
push str.HardwareUtils
push str.OOBEUtils
push 0x1e
call eax
add esp, 0x18
jmp 0x4ca7cc
mov ecx, dword [0x68995c]
test ecx, ecx
je 0x4ca7cc
mov eax, dword [ecx]
push str.Connected_to_ROOTCIMV2_WMI_namespace
push str.HardwareUtils
push 0x622628
push 0x1e
push ecx
call dword [eax + 0x34]
add esp, 0x14
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push dword [ebp - 0x24]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jns 0x4ca84a
test edi, edi
je 0x4ca804
mov eax, dword [edi]
push str.In_HardwareUtils::GetSystemInfo._Could_not_set_proxy_blanket.
push str.HardwareUtils
push 0x622628
push 0x32
push edi
jmp 0x4ca924
mov eax, dword [0x689958]
test eax, eax
je 0x4ca832
push str.In_HardwareUtils::GetSystemInfo._Could_not_set_proxy_blanket.
push 0x622628
push 0x622628
push str.HardwareUtils
push str.OOBEUtils
push 0x32
call eax
add esp, 0x18
jmp 0x4ca92a
mov ecx, dword [0x68995c]
test ecx, ecx
je 0x4ca92a
push str.In_HardwareUtils::GetSystemInfo._Could_not_set_proxy_blanket.
jmp 0x4ca915
push str.SELECT__FROM_Win32_ComputerSystem
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x2c], 0
call fcn.0049b680
mov esi, eax
push 0x63e064
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 2
call fcn.0049b680
mov byte [ebp - 4], 3
mov ecx, dword [esi]
test ecx, ecx
je 0x4ca87f
mov esi, dword [ecx]
jmp 0x4ca881
xor esi, esi
mov eax, dword [eax]
test eax, eax
je 0x4ca88b
mov edx, dword [eax]
jmp 0x4ca88d
xor edx, edx
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x24]
push 0
push 0x30
push esi
push edx
push eax
call dword [ecx + 0x50]
lea ecx, [ebp - 0x48]
mov esi, eax
call fcn.0049b9c0
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 0
call fcn.0049b9c0
test esi, esi
jns 0x4ca94d
test edi, edi
je 0x4ca8db
mov eax, dword [edi]
push str.In_HardwareUtils::GetSystemInfo._Query_for_operating_system_name_failed.
push str.HardwareUtils
push 0x622628
push 0x32
push edi
jmp 0x4ca924
mov eax, dword [0x689958]
test eax, eax
je 0x4ca906
push str.In_HardwareUtils::GetSystemInfo._Query_for_operating_system_name_failed.
push 0x622628
push 0x622628
push str.HardwareUtils
push str.OOBEUtils
push 0x32
call eax
add esp, 0x18
jmp 0x4ca92a
mov ecx, dword [0x68995c]
test ecx, ecx
je 0x4ca92a
push str.In_HardwareUtils::GetSystemInfo._Query_for_operating_system_name_failed.
mov eax, dword [ecx]
push str.HardwareUtils
push 0x622628
push 0x32
push ecx
call dword [eax + 0x34]
add esp, 0x14
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
test bl, bl
je 0x4ca946
call dword [sym.imp.ole32.dll_CoUninitialize]
xor bl, bl
jmp 0x4cab18
xor eax, eax
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 4
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantCopy]
nop dword [eax]
test eax, eax
je 0x4ca96a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x20]
push edx
lea edx, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push edx
mov ecx, dword [eax]
push 1
push 0xffffffffffffffff
push eax
call dword [ecx + 0x10]
test eax, eax
jne 0x4caad0
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4caac6
mov ecx, dword [eax]
lea edx, [ebp - 0x40]
push 0
push 0
push edx
push 0
push str.Manufacturer
push eax
call dword [ecx + 0x10]
push str.manufacturerName
lea ecx, [ebp - 0x70]
call fcn.00406e60
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004310b0
mov edx, dword [ebp - 0x38]
mov edi, dword [ebp - 0x58]
cmp word [edx], 0
jne 0x4ca9ed
xor ecx, ecx
jmp 0x4caa01
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4ca9f2
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [edi + 0x28]
call fcn.00407060
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x5c]
cmp eax, 8
jb 0x4caa24
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.00407b40
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4caac6
mov ecx, dword [eax]
lea edx, [ebp - 0x40]
push 0
push 0
push edx
push 0
push str.Model
push eax
call dword [ecx + 0x10]
push str.modelName
lea ecx, [ebp - 0x70]
call fcn.00406e60
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004310b0
mov edx, dword [ebp - 0x38]
mov edi, dword [ebp - 0x4c]
cmp word [edx], 0
jne 0x4caa75
xor ecx, ecx
jmp 0x4caa8f
mov ecx, edx
lea esi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4caa80
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [edi + 0x28]
call fcn.00407060
mov eax, dword [ebp - 0x5c]
cmp eax, 8
jb 0x4caaae
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.00407b40
lea eax, [ebp - 0x40]
push eax
call ebx
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 4
push eax
call ebx
mov eax, dword [ebp - 0x14]
jmp 0x4ca960
push 0x80004003
call fcn.0059b880
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
cmp byte [ebp - 0x41], 0
je 0x4caaf7
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x50]
push eax
push dword [eax]
call fcn.0045d250
mov byte [ebp - 4], 0
mov bl, 1
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4cab18
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x50]
push ecx
push dword [ecx]
lea ecx, [ebp - 0x1c]
push eax
call fcn.004309e0
push dword [ebp - 0x1c]
call fcn.00505e00
add esp, 4
mov al, bl
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.00599c70
mov esp, ebp
pop ebp
ret