Function at 0x480893
Capabilities:
Connect to wmi namespace via wbemlocator
Get number of processor cores
Reference wmi statements

Disassembly:
push 0x24
mov eax, 0x5cf7f5
call fcn.00506dc7
xor ebx, ebx
mov dword [ebp - 0x30], ebx
call fcn.0041279d
push eax
lea ecx, [ebp - 0x14]
call fcn.00411d94
mov dword [ebp - 4], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x18], ebx
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 4
push eax
push 0x620018
push 0x17
push ebx
push 0x62ae6c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x480943
push 0x6039a8
mov ecx, dword [ebp + 8]
call fcn.00413f09
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 3
test eax, eax
je 0x4808fe
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 2
test eax, eax
je 0x48090f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 4], 1
test eax, eax
je 0x480920
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0x20]
mov byte [ebp - 4], bl
test ecx, ecx
je 0x480930
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00412ac4
mov eax, dword [ebp + 8]
jmp 0x480b4e
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x1c]
push edx
push ebx
push ebx
mov ecx, dword [eax]
push ebx
push ebx
push ebx
push ebx
push 0x6039b4
push eax
call dword [ecx + 0xc]
test eax, eax
jns 0x480969
push 0x6039ec
jmp 0x4808e5
push ebx
push ebx
push 3
push 3
push ebx
push ebx
push 0xa
push dword [ebp - 0x1c]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jns 0x48098a
push 0x603a5c
jmp 0x4808e5
mov edi, dword [ebp - 0x1c]
lea ecx, [ebp - 0x2c]
push str.SELECT__FROM_Win32_Processor
call fcn.00452fd3
mov esi, eax
push 0x603a64
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 5
call fcn.00452fd3
mov edx, dword [esi]
mov byte [ebp - 4], 6
test edx, edx
je 0x4809bb
mov edx, dword [edx]
jmp 0x4809bd
mov edx, ebx
mov eax, dword [eax]
test eax, eax
je 0x4809c7
mov ecx, dword [eax]
jmp 0x4809c9
mov ecx, ebx
mov eax, dword [edi]
lea esi, [ebp - 0x18]
push esi
push ebx
push 0x30
push edx
push ecx
push edi
call dword [eax + 0x50]
mov ecx, dword [ebp - 0x24]
mov esi, eax
test ecx, ecx
je 0x4809e9
call fcn.004cbdcf
mov dword [ebp - 0x24], ebx
mov ecx, dword [ebp - 0x2c]
mov byte [ebp - 4], 4
test ecx, ecx
je 0x4809f9
call fcn.004cbdcf
test esi, esi
jns 0x480a07
push 0x603b3c
jmp 0x4808e5
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x28], ebx
test ecx, ecx
je 0x480aec
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x480a28
mov dword [ebp - 0x10], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx]
lea edx, [ebp - 0x28]
push edx
lea edx, [ebp - 0x10]
push edx
push 1
push 0xffffffffffffffff
push ecx
call dword [eax + 0x10]
cmp dword [ebp - 0x28], 0
je 0x480aec
mov eax, dword [ebp - 0x10]
push str.Name
push ecx
mov ecx, esp
mov dword [ecx], eax
test eax, eax
je 0x480a5b
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
lea eax, [ebp - 0x2c]
push eax
call fcn.004fe972
add esp, 0xc
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 7
call fcn.00411f3a
mov ecx, dword [ebp - 0x2c]
add ecx, 0xfffffff0
mov byte [ebp - 4], 4
call fcn.00412ac4
mov eax, dword [ebp - 0x10]
push str.NumberOfCores
push ecx
mov ecx, esp
mov dword [ecx], eax
test eax, eax
je 0x480a9a
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
call fcn.004fea32
pop ecx
mov esi, eax
pop ecx
add esi, 0xffffffff
mov ecx, edx
adc ecx, 0xffffffff
cmp ecx, ebx
ja 0x480aec
jb 0x480ab6
cmp esi, 7
ja 0x480aec
cmp eax, 2
jne 0x480ac6
cmp edx, ebx
jne 0x480ac6
push 0x603bf8
jmp 0x480ae4
cmp eax, 3
jne 0x480ad6
cmp edx, ebx
jne 0x480ad6
push 0x603c2c
jmp 0x480ae4
cmp eax, 4
jne 0x480aec
cmp edx, ebx
jne 0x480aec
push 0x603cb0
lea ecx, [ebp - 0x14]
call fcn.0042e473
mov edi, dword [ebp - 0x14]
add edi, 0xfffffff0
push edi
call fcn.00412393
mov ebx, dword [ebp + 8]
add eax, 0x10
pop ecx
mov byte [ebp - 4], 3
mov dword [ebx], eax
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x480b12
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 2
test eax, eax
je 0x480b23
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 4], 1
test eax, eax
je 0x480b34
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edx, dword [ebp - 0x20]
mov byte [ebp - 4], 0
test edx, edx
je 0x480b45
mov esi, dword [edx]
push edx
call dword [esi + 8]
mov ecx, edi
call fcn.00412ac4
mov eax, ebx
call fcn.00506d90
ret