Function at 0x479879
Capabilities:
Get number of processor cores
Reference wmi statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00418f81
push eax
lea ecx, [ebp - 8]
call fcn.0041775d
lea eax, [ebp - 0x14]
xor ebx, ebx
push eax
push 0x6bf23c
push 0x17
push ebx
push 0x6d7e58
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
call dword [0x680720]
test eax, eax
jns 0x47990d
mov ecx, dword [ebp + 8]
push 0x6809b0
call fcn.004177e7
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x4798d3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 4]
test eax, eax
je 0x4798e0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4798ed
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x4798fa
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov ecx, dword [ebp - 8]
add ecx, 0xfffffff0
call fcn.00419521
mov eax, dword [ebp + 8]
jmp 0x479adb
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
push edx
push ebx
push ebx
mov ecx, dword [eax]
push ebx
push ebx
push ebx
push ebx
push str.ROOTCIMV2
push eax
call dword [ecx + 0xc]
test eax, eax
js 0x4798b9
push ebx
push ebx
push 3
push 3
push ebx
push ebx
push 0xa
push dword [ebp - 0x10]
call dword [0x68071c]
test eax, eax
js 0x4798b9
mov edi, dword [ebp - 0x10]
lea ecx, [ebp - 0x20]
push str.SELECT__FROM_Win32_Processor
call fcn.0044746f
mov eax, dword [eax]
test eax, eax
je 0x47995e
mov esi, dword [eax]
jmp 0x479960
mov esi, ebx
push 0x68c440
lea ecx, [ebp - 0x18]
call fcn.0044746f
mov ecx, dword [eax]
test ecx, ecx
je 0x479977
mov ecx, dword [ecx]
jmp 0x479979
mov ecx, ebx
mov eax, dword [edi]
lea edx, [ebp - 0xc]
push edx
push ebx
push 0x30
push esi
push ecx
push edi
call dword [eax + 0x50]
mov ecx, dword [ebp - 0x18]
mov esi, eax
test ecx, ecx
je 0x479999
call fcn.004e81e6
mov dword [ebp - 0x18], ebx
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x4799a5
call fcn.004e81e6
test esi, esi
js 0x4798b9
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x1c], ebx
test ecx, ecx
je 0x479a89
mov eax, dword [ebp - 4]
test eax, eax
je 0x4799ce
mov dword [ebp - 4], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx]
lea edx, [ebp - 0x1c]
push edx
lea edx, [ebp - 4]
push edx
push 1
push 0xffffffffffffffff
push ecx
call dword [eax + 0x10]
cmp dword [ebp - 0x1c], ebx
je 0x479a89
mov eax, dword [ebp - 4]
push 0x68c444
push ecx
mov ecx, esp
mov dword [ecx], eax
test eax, eax
je 0x479a00
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
lea eax, [ebp - 0x20]
push eax
call fcn.00511604
add esp, 0xc
lea ecx, [ebp - 8]
push eax
call fcn.00418bac
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.00419521
mov eax, dword [ebp - 4]
push str.NumberOfCores
push ecx
mov ecx, esp
mov dword [ecx], eax
test eax, eax
je 0x479a37
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
call fcn.005116af
pop ecx
mov esi, eax
pop ecx
add esi, 0xffffffff
mov ecx, edx
adc ecx, 0xffffffff
cmp ecx, ebx
ja 0x479a89
jb 0x479a53
cmp esi, 7
ja 0x479a89
cmp eax, 2
jne 0x479a63
cmp edx, ebx
jne 0x479a63
push 0x68c46c
jmp 0x479a81
cmp eax, 3
jne 0x479a73
cmp edx, ebx
jne 0x479a73
push 0x68c474
jmp 0x479a81
cmp eax, 4
jne 0x479a89
cmp edx, ebx
jne 0x479a89
push 0x68c47c
lea ecx, [ebp - 8]
call fcn.004228d4
mov edi, dword [ebp - 8]
add edi, 0xfffffff0
push edi
call fcn.00418dea
mov ebx, dword [ebp + 8]
add eax, 0x10
pop ecx
mov dword [ebx], eax
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x479aab
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 4]
test eax, eax
je 0x479ab8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x479ac5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edx, dword [ebp - 0x14]
test edx, edx
je 0x479ad2
mov esi, dword [edx]
push edx
call dword [esi + 8]
mov ecx, edi
call fcn.00419521
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret