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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6c36b0
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x7ca00c]
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 - 0x4c], ecx
xorps xmm0, xmm0
movlpd qword [ebp - 0x1c], xmm0
push 0x40
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
call fcn.0063de82
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [ebp - 0x1c], eax
push 0
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
xor bl, bl
test eax, eax
js 0x604857
mov bl, 1
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]
test eax, eax
jns 0x60495d
cmp eax, 0x80010119
je 0x60495d
test edi, edi
je 0x6048ed
mov esi, dword [edi]
push eax
push str.In_HardwareUtils::GetSystemInfo._Failed_to_initialize_security.__x
push str.HardwareUtils
push 0x701e7c
push 0x32
push edi
jmp 0x604948
cmp eax, 0x80010106
je 0x60480a
test edi, edi
je 0x604879
mov esi, dword [edi]
push eax
push str.In_HardwareUtils::GetSystemInfo_CoInitialize_failed_with_hres:__ld
push str.HardwareUtils
push 0x701e7c
push 0x32
push edi
jmp 0x6048d6
mov esi, dword [0x7eb9f0]
test esi, esi
je 0x6048b3
push eax
push str.In_HardwareUtils::GetSystemInfo_CoInitialize_failed_with_hres:__ld
push 0x701e7c
push 0x701e7c
push str.HardwareUtils
push 0x7721a4
push 0x32
mov ecx, esi
call dword [0x6ef350]
call esi
add esp, 0x1c
xor bl, bl
jmp 0x604f1e
mov ecx, dword [0x7eb9f4]
test ecx, ecx
je 0x604d1a
mov esi, dword [ecx]
push eax
push str.In_HardwareUtils::GetSystemInfo_CoInitialize_failed_with_hres:__ld
push str.HardwareUtils
push 0x701e7c
push 0x32
push ecx
mov esi, dword [esi + 0x34]
mov ecx, esi
call dword [0x6ef350]
call esi
add esp, 0x18
xor bl, bl
jmp 0x604f1e
mov esi, dword [0x7eb9f0]
test esi, esi
je 0x604925
push eax
push str.In_HardwareUtils::GetSystemInfo._Failed_to_initialize_security.__x
push 0x701e7c
push 0x701e7c
push str.HardwareUtils
push 0x7721a4
push 0x32
mov ecx, esi
call dword [0x6ef350]
call esi
add esp, 0x1c
jmp 0x604d10
mov ecx, dword [0x7eb9f4]
test ecx, ecx
je 0x604d10
mov esi, dword [ecx]
push eax
push str.In_HardwareUtils::GetSystemInfo._Failed_to_initialize_security.__x
push str.HardwareUtils
push 0x701e7c
push 0x32
push ecx
mov esi, dword [esi + 0x34]
mov ecx, esi
call dword [0x6ef350]
call esi
add esp, 0x18
jmp 0x604d10
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0
push eax
push 0x6f346c
push 1
push 0
push 0x6f345c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x604a0b
test edi, edi
je 0x60499e
mov esi, dword [edi]
push str.In_HardwareUtils::GetSystemInfo._Failed_to_create_IWbemLocator_object.
push str.HardwareUtils
push 0x701e7c
push 0x32
push edi
jmp 0x6049f6
mov esi, dword [0x7eb9f0]
test esi, esi
je 0x6049d5
push str.In_HardwareUtils::GetSystemInfo._Failed_to_create_IWbemLocator_object.
push 0x701e7c
push 0x701e7c
push str.HardwareUtils
push 0x7721a4
push 0x32
mov ecx, esi
call dword [0x6ef350]
call esi
add esp, 0x18
jmp 0x604d10
mov eax, dword [0x7eb9f4]
test eax, eax
je 0x604d10
mov esi, dword [eax]
push str.In_HardwareUtils::GetSystemInfo._Failed_to_create_IWbemLocator_object.
push str.HardwareUtils
push 0x701e7c
push 0x32
push eax
mov esi, dword [esi + 0x34]
mov ecx, esi
call dword [0x6ef350]
call esi
add esp, 0x14
jmp 0x604d10
push str.ROOTCIMV2
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x24], 0
call fcn.005d95d0
mov byte [ebp - 4], 1
mov eax, dword [eax]
test eax, eax
je 0x604a2d
mov ecx, dword [eax]
jmp 0x604a2f
xor ecx, ecx
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x24]
push edx
push 0
push 0
mov esi, dword [eax]
push 0
push 0
push 0
mov esi, dword [esi + 0xc]
push 0
push ecx
push eax
mov ecx, esi
call dword [0x6ef350]
call esi
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0
mov esi, eax
call fcn.005d9760
test esi, esi
jns 0x604af0
test edi, edi
je 0x604a83
mov esi, dword [edi]
push str.In_HardwareUtils::GetSystemInfo._Could_not_connect.
push str.HardwareUtils
push 0x701e7c
push 0x32
push edi
jmp 0x604adb
mov esi, dword [0x7eb9f0]
test esi, esi
je 0x604aba
push str.In_HardwareUtils::GetSystemInfo._Could_not_connect.
push 0x701e7c
push 0x701e7c
push str.HardwareUtils
push 0x7721a4
push 0x32
mov ecx, esi
call dword [0x6ef350]
call esi
add esp, 0x18
jmp 0x604cfd
mov eax, dword [0x7eb9f4]
test eax, eax
je 0x604cfd
mov esi, dword [eax]
push str.In_HardwareUtils::GetSystemInfo._Could_not_connect.
push str.HardwareUtils
push 0x701e7c
push 0x32
push eax
mov esi, dword [esi + 0x34]
mov ecx, esi
call dword [0x6ef350]
call esi
add esp, 0x14
jmp 0x604cfd
test edi, edi
je 0x604b0a
mov esi, dword [edi]
push str.Connected_to_ROOTCIMV2_WMI_namespace
push str.HardwareUtils
push 0x701e7c
push 0x1e
push edi
jmp 0x604b5b
mov esi, dword [0x7eb9f0]
test esi, esi
je 0x604b3e
push str.Connected_to_ROOTCIMV2_WMI_namespace
push 0x701e7c
push 0x701e7c
push str.HardwareUtils
push 0x7721a4
push 0x1e
mov ecx, esi
call dword [0x6ef350]
call esi
add esp, 0x18
jmp 0x604b6b
mov eax, dword [0x7eb9f4]
test eax, eax
je 0x604b6b
mov esi, dword [eax]
push str.Connected_to_ROOTCIMV2_WMI_namespace
push str.HardwareUtils
push 0x701e7c
push 0x1e
push eax
mov esi, dword [esi + 0x34]
mov ecx, esi
call dword [0x6ef350]
call esi
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 0x604bf1
test edi, edi
je 0x604ba3
mov esi, dword [edi]
push str.In_HardwareUtils::GetSystemInfo._Could_not_set_proxy_blanket.
push str.HardwareUtils
push 0x701e7c
push 0x32
push edi
jmp 0x604cda
mov esi, dword [0x7eb9f0]
test esi, esi
je 0x604bda
push str.In_HardwareUtils::GetSystemInfo._Could_not_set_proxy_blanket.
push 0x701e7c
push 0x701e7c
push str.HardwareUtils
push 0x7721a4
push 0x32
mov ecx, esi
call dword [0x6ef350]
call esi
add esp, 0x18
jmp 0x604cea
mov eax, dword [0x7eb9f4]
test eax, eax
je 0x604cea
push str.In_HardwareUtils::GetSystemInfo._Could_not_set_proxy_blanket.
jmp 0x604ccb
push str.SELECT__FROM_Win32_ComputerSystem
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x2c], 0
call fcn.005d9530
mov esi, eax
push 0x773c94
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 2
call fcn.005d9530
mov byte [ebp - 4], 3
mov ecx, dword [esi]
test ecx, ecx
je 0x604c26
mov edx, dword [ecx]
jmp 0x604c28
xor edx, edx
mov eax, dword [eax]
test eax, eax
je 0x604c32
mov ecx, dword [eax]
jmp 0x604c34
xor ecx, ecx
mov eax, dword [ebp - 0x24]
lea esi, [ebp - 0x2c]
push esi
push 0
push 0x30
mov esi, dword [eax]
push edx
push ecx
push eax
mov esi, dword [esi + 0x50]
mov ecx, esi
call dword [0x6ef350]
call esi
lea ecx, [ebp - 0x44]
mov esi, eax
call fcn.005d9760
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0
call fcn.005d9760
test esi, esi
jns 0x604d21
test edi, edi
je 0x604c89
mov esi, dword [edi]
push str.In_HardwareUtils::GetSystemInfo._Query_for_operating_system_name_failed.
push str.HardwareUtils
push 0x701e7c
push 0x32
push edi
jmp 0x604cda
mov esi, dword [0x7eb9f0]
test esi, esi
je 0x604cbd
push str.In_HardwareUtils::GetSystemInfo._Query_for_operating_system_name_failed.
push 0x701e7c
push 0x701e7c
push str.HardwareUtils
push 0x7721a4
push 0x32
mov ecx, esi
call dword [0x6ef350]
call esi
add esp, 0x18
jmp 0x604cea
mov eax, dword [0x7eb9f4]
test eax, eax
je 0x604cea
push str.In_HardwareUtils::GetSystemInfo._Query_for_operating_system_name_failed.
mov esi, dword [eax]
push str.HardwareUtils
push 0x701e7c
push 0x32
push eax
mov esi, dword [esi + 0x34]
mov ecx, esi
call dword [0x6ef350]
call esi
add esp, 0x14
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x6ef350]
call esi
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x6ef350]
call esi
test bl, bl
je 0x604d1a
call dword [sym.imp.ole32.dll_CoUninitialize]
xor bl, bl
jmp 0x604f1e
xor eax, eax
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 4
nop word [eax + eax]
test eax, eax
je 0x604d44
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x6ef350]
call esi
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push ecx
mov esi, dword [eax]
push 1
push 0xffffffffffffffff
push eax
mov esi, dword [esi + 0x10]
mov ecx, esi
call dword [0x6ef350]
call esi
test eax, eax
jne 0x604eb0
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 0x604f5a
mov esi, dword [eax]
lea ecx, [ebp - 0x40]
push 0
push 0
push ecx
mov esi, dword [esi + 0x10]
mov ecx, esi
push 0
push str.Manufacturer
push eax
call dword [0x6ef350]
call esi
push 0x10
xor eax, eax
mov dword [ebp - 0x54], 0
push str.manufacturerName
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x50], 7
mov word [ebp - 0x64], ax
call fcn.00428800
lea eax, [ebp - 0x64]
mov byte [ebp - 4], 6
mov esi, dword [ebp - 0x38]
lea ecx, [ebp - 0x1c]
push eax
call fcn.004390d0
mov edx, esi
lea edi, [edx + 2]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x604de5
sub edx, edi
mov ecx, eax
sar edx, 1
push edx
push esi
call fcn.00428800
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 5
call fcn.00428770
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x604f5a
mov esi, dword [eax]
lea ecx, [ebp - 0x40]
push 0
push 0
push ecx
mov esi, dword [esi + 0x10]
mov ecx, esi
push 0
push str.Model
push eax
call dword [0x6ef350]
call esi
push 9
xor eax, eax
mov dword [ebp - 0x54], 0
push str.modelName
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x50], 7
mov word [ebp - 0x64], ax
call fcn.00428800
lea eax, [ebp - 0x64]
mov byte [ebp - 4], 7
mov esi, dword [ebp - 0x38]
lea ecx, [ebp - 0x1c]
push eax
call fcn.004390d0
mov edx, esi
lea edi, [edx + 2]
nop
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x604e70
sub edx, edi
mov ecx, eax
sar edx, 1
push edx
push esi
call fcn.00428800
lea ecx, [ebp - 0x64]
call fcn.00428770
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 4
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [ebp - 0x14]
jmp 0x604d30
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x6ef350]
call esi
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x6ef350]
call esi
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x6ef350]
call esi
test bl, bl
je 0x604ef3
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x4c]
push eax
push dword [eax]
call fcn.00455da0
mov byte [ebp - 4], 0
mov bl, 1
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x604f1e
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x6ef350]
call esi
mov eax, dword [ebp - 0x1c]
push dword [eax + 4]
lea eax, [ebp - 0x1c]
push eax
mov ecx, eax
call fcn.0043a420
push 0x40
push dword [ebp - 0x1c]
call fcn.0063e103
add esp, 8
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.0063de71
mov esp, ebp
pop ebp
ret
push 0x80004003
call fcn.0064f290
int3