Function at 0x1000ca50
Capabilities:
Connect to wmi namespace via wbemlocator
Get cpu information
Query or enumerate registry value
Reference wmi statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000f380
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x10016034]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
xor edi, edi
call fcn.1000c8a0
cmp eax, 9
jg 0x1000cb59
lea eax, [ebp - 0x1c]
push eax
push 1
push edi
push str.HARDWAREDESCRIPTIONSystemCentralProcessor0
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x1c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000cb59
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x18]
push eax
push edi
lea eax, [ebp - 0x28]
push eax
push edi
push str.ProcessorNameString
push dword [ebp - 0x1c]
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x18], edi
call esi
test eax, eax
jne 0x1000cb48
cmp dword [ebp - 0x28], 1
jne 0x1000cb48
cmp dword [ebp - 0x18], edi
jbe 0x1000cb48
mov eax, dword [section..data]
mov ecx, section..data
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 4], edi
mov eax, dword [ebp - 0x18]
shr eax, 1
push eax
lea ecx, [ebp - 0x10]
call fcn.100096d0
push eax
push edi
push edi
push str.ProcessorNameString
push dword [ebp - 0x1c]
call esi
push ecx
lea ecx, [ebp - 0x10]
mov esi, eax
call fcn.10009530
test esi, esi
jne 0x1000cb39
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], esi
je 0x1000cb39
lea eax, [ebp - 0x10]
push eax
mov ecx, ebx
call fcn.10009580
lea edi, [esi + 1]
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.10009210
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x1000cd90
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x20]
push eax
push 0x10010338
push 1
push 0
push 0x10010408
mov dword [ebp - 0x20], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x1000cc89
push 0x10013408
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0
call fcn.1000b080
mov dword [ebp - 4], 1
mov eax, dword [eax]
test eax, eax
je 0x1000cbad
mov edx, dword [eax]
jmp 0x1000cbaf
xor edx, edx
mov eax, dword [ebp - 0x20]
lea esi, [ebp - 0x14]
mov ecx, dword [eax]
push esi
push 0
push 0
push 0
push 0
push 0
push 0
push edx
push eax
call dword [ecx + 0xc]
lea ecx, [ebp - 0x28]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
call fcn.1000b120
test esi, esi
js 0x1000cc89
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push dword [ebp - 0x14]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
js 0x1000cc89
push str.SELECT__FROM_Win32_Processor
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x24], 0
call fcn.1000aff0
mov esi, eax
push 0x10013444
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 2
call fcn.1000aff0
mov byte [ebp - 4], 3
mov esi, dword [esi]
test esi, esi
je 0x1000cc39
mov esi, dword [esi]
jmp 0x1000cc3b
xor esi, esi
mov eax, dword [eax]
test eax, eax
je 0x1000cc45
mov edx, dword [eax]
jmp 0x1000cc47
xor edx, edx
mov eax, dword [ebp - 0x14]
lea edi, [ebp - 0x24]
mov ecx, dword [eax]
push edi
push 0
push 0x30
push esi
push edx
push eax
call dword [ecx + 0x50]
lea ecx, [ebp - 0x28]
mov esi, eax
call fcn.1000b120
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
call fcn.1000b120
test esi, esi
jns 0x1000cca3
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x2c], 0
test ecx, ecx
je 0x1000cd6f
mov eax, dword [ecx]
lea edx, [ebp - 0x2c]
push edx
lea edx, [ebp - 0x30]
push edx
push 1
push 0xffffffffffffffff
push ecx
call dword [eax + 0x10]
cmp dword [ebp - 0x2c], 0
je 0x1000cd6f
mov dword [ebp - 0x1c], 0
push 0
push 0
lea edx, [ebp - 0x40]
push edx
mov dword [ebp - 4], 4
mov eax, dword [ebp - 0x30]
push 0
mov ecx, dword [eax]
push 0x10013448
push eax
call dword [ecx + 0x10]
lea ecx, [ebp - 0x1c]
test eax, eax
js 0x1000cd58
push dword [ebp - 0x38]
call fcn.1000b180
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1000cd11
mov eax, dword [eax]
jmp 0x1000cd13
xor eax, eax
push eax
lea ecx, [ebp - 0x10]
call fcn.10009160
lea eax, [ebp - 0x10]
push eax
mov ecx, ebx
mov byte [ebp - 4], 5
call fcn.10009580
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1000cd4c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
call fcn.1000b120
mov ecx, dword [ebp - 0x24]
test ecx, ecx
jne 0x1000ccb5
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x20]
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]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret