Function at 0x40efe0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4690a8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x48b270]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov edi, dword [esp + 0x34]
mov esi, dword [esp + 0x30]
xor eax, eax
mov word [edi + 0xe], ax
mov ecx, dword [esi]
mov eax, dword [ecx - 0xc]
xor ebx, ebx
cmp eax, 5
mov dword [esp + 0x18], ebx
jle 0x40f789
cmp eax, 3
jge 0x40f038
push 0x80070057
call fcn.00401090
mov cl, byte [ecx + 3]
cmp cl, 0x2c
jne 0x40f2d6
mov edx, dword [0x4894e4]
lea ecx, [esp + 0x14]
push ecx
push edx
lea eax, [esp + 0x3c]
push eax
mov ecx, esi
mov dword [esp + 0x20], ebx
call fcn.0040e150
or ebp, 0xffffffff
mov dword [esp + 0x28], ebx
cmp dword [esp + 0x14], ebp
jne 0x40f0a4
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
mov dword [esp + 0x28], ebp
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x40f08e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
mov edx, dword [esp + 0x34]
lea ecx, [edi + 4]
push ecx
push edx
call fcn.0040b7e0
mov ecx, dword [0x4894e4]
add esp, 8
mov ebx, eax
lea eax, [esp + 0x14]
push eax
push ecx
lea edx, [esp + 0x38]
push edx
mov ecx, esi
call fcn.0040e150
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x2c], 1
call fcn.004042c0
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
mov byte [esp + 0x28], 0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f102
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x14], ebp
jne 0x40f127
lea ecx, [esp + 0x34]
call fcn.004018a0
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
mov ecx, dword [esp + 0x34]
push ecx
call fcn.004535eb
add esp, 4
lea edx, [esp + 0x14]
mov word [edi + 6], ax
mov eax, dword [0x4894e4]
push edx
push eax
lea ecx, [esp + 0x38]
push ecx
mov ecx, esi
call fcn.0040e150
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x2c], 2
call fcn.004042c0
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 0
call fcn.004018a0
cmp dword [esp + 0x14], ebp
je 0x40f108
test ebx, ebx
je 0x40f193
mov eax, dword [esp + 0x34]
lea edx, [edi + 2]
push edx
push eax
call fcn.0040b990
add esp, 8
mov dword [esp + 0x18], 1
test eax, eax
jne 0x40f19b
mov dword [esp + 0x18], 0
mov edx, dword [0x4894e4]
lea ecx, [esp + 0x14]
push ecx
push edx
lea eax, [esp + 0x24]
push eax
mov ecx, esi
call fcn.0040e150
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x2c], 3
call fcn.004042c0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x28], 0
call fcn.004018a0
cmp dword [esp + 0x14], ebp
je 0x40f108
mov ecx, dword [esp + 0x34]
push ecx
call fcn.004535eb
add esp, 4
lea edx, [esp + 0x14]
mov word [edi], ax
mov eax, dword [0x4894e4]
push edx
push eax
lea ecx, [esp + 0x38]
push ecx
mov ecx, esi
call fcn.0040e150
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x2c], 4
call fcn.004042c0
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 0
call fcn.004018a0
cmp dword [esp + 0x14], ebp
je 0x40f108
mov edx, dword [esp + 0x34]
push edx
call fcn.004535eb
mov ecx, dword [0x4894e4]
add esp, 4
mov word [edi + 8], ax
lea eax, [esp + 0x14]
push eax
push ecx
lea edx, [esp + 0x38]
push edx
mov ecx, esi
call fcn.0040e150
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x2c], 5
call fcn.004042c0
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 0
call fcn.004018a0
cmp dword [esp + 0x14], ebp
je 0x40f108
mov eax, dword [esp + 0x34]
push eax
call fcn.004535eb
mov edx, dword [0x4894e4]
add esp, 4
lea ecx, [esp + 0x14]
push ecx
mov word [edi + 0xa], ax
push edx
lea eax, [esp + 0x38]
push eax
mov ecx, esi
call fcn.0040e150
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x2c], 6
call fcn.004042c0
lea ecx, [esp + 0x30]
call fcn.004018a0
cmp dword [esp + 0x14], ebp
je 0x40f108
mov ecx, dword [esp + 0x34]
push ecx
call fcn.004535eb
lea ecx, [esp + 0x38]
jmp 0x40f77d
cmp cl, 0x20
jne 0x40f51a
mov eax, dword [0x4894e0]
lea edx, [esp + 0x14]
push edx
push eax
lea ecx, [esp + 0x3c]
push ecx
mov ecx, esi
mov dword [esp + 0x20], ebx
call fcn.0040e150
or ebp, 0xffffffff
mov ebx, 7
mov dword [esp + 0x28], ebx
cmp dword [esp + 0x14], ebp
je 0x40f108
mov eax, dword [esp + 0x34]
lea edx, [edi + 4]
push edx
push eax
call fcn.0040b7e0
mov edx, dword [0x4894e0]
add esp, 8
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x1c], eax
push edx
lea eax, [esp + 0x38]
push eax
mov ecx, esi
call fcn.0040e150
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x2c], 8
call fcn.004042c0
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], bl
call fcn.004018a0
cmp dword [esp + 0x14], ebp
je 0x40f108
cmp dword [esp + 0x18], 0
je 0x40f387
mov edx, dword [esp + 0x34]
lea ecx, [edi + 2]
push ecx
push edx
call fcn.0040b990
add esp, 8
mov dword [esp + 0x18], 1
test eax, eax
jne 0x40f38f
mov dword [esp + 0x18], 0
mov ecx, dword [0x4894e0]
lea eax, [esp + 0x14]
push eax
push ecx
lea edx, [esp + 0x24]
push edx
mov ecx, esi
call fcn.0040e150
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x2c], 9
call fcn.004042c0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x28], bl
call fcn.004018a0
cmp dword [esp + 0x14], ebp
je 0x40f108
mov eax, dword [esp + 0x34]
push eax
call fcn.004535eb
mov edx, dword [0x4894e0]
add esp, 4
lea ecx, [esp + 0x14]
push ecx
mov word [edi + 6], ax
push edx
lea eax, [esp + 0x38]
push eax
mov ecx, esi
call fcn.0040e150
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x2c], 0xa
call fcn.004042c0
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], bl
call fcn.004018a0
cmp dword [esp + 0x14], ebp
je 0x40f108
mov ecx, dword [esp + 0x34]
push ecx
call fcn.004535eb
add esp, 4
lea edx, [esp + 0x14]
mov word [edi + 8], ax
mov eax, dword [0x4894e0]
push edx
push eax
lea ecx, [esp + 0x38]
push ecx
mov ecx, esi
call fcn.0040e150
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x2c], 0xb
call fcn.004042c0
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], bl
call fcn.004018a0
cmp dword [esp + 0x14], ebp
je 0x40f108
mov edx, dword [esp + 0x34]
push edx
call fcn.004535eb
mov ecx, dword [0x4894e0]
add esp, 4
mov word [edi + 0xa], ax
lea eax, [esp + 0x14]
push eax
push ecx
lea edx, [esp + 0x38]
push edx
mov ecx, esi
call fcn.0040e150
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x2c], 0xc
call fcn.004042c0
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], bl
call fcn.004018a0
cmp dword [esp + 0x14], ebp
je 0x40f108
mov eax, dword [esp + 0x34]
push eax
call fcn.004535eb
mov edx, dword [0x4894e0]
add esp, 4
lea ecx, [esp + 0x14]
push ecx
mov word [edi + 0xc], ax
push edx
lea eax, [esp + 0x38]
push eax
mov ecx, esi
call fcn.0040e150
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x2c], 0xd
call fcn.004042c0
lea ecx, [esp + 0x30]
call fcn.004018a0
cmp dword [esp + 0x14], ebp
je 0x40f108
mov ecx, dword [esp + 0x34]
push ecx
call fcn.004535eb
mov word [edi], ax
lea ecx, [esp + 0x38]
jmp 0x40f781
mov eax, dword [str.__:_]
lea edx, [esp + 0x34]
push edx
push eax
lea ecx, [esp + 0x38]
push ecx
mov ecx, esi
mov dword [esp + 0x40], ebx
call fcn.0040e150
or ebp, 0xffffffff
mov ebx, 0xe
mov dword [esp + 0x28], ebx
cmp dword [esp + 0x34], ebp
jne 0x40f566
lea ecx, [esp + 0x30]
call fcn.004018a0
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
mov eax, dword [esp + 0x30]
lea edx, [edi + 4]
push edx
push eax
call fcn.0040b7e0
mov edx, dword [str.__:_]
add esp, 8
lea ecx, [esp + 0x34]
push ecx
mov dword [esp + 0x1c], eax
push edx
lea eax, [esp + 0x24]
push eax
mov ecx, esi
call fcn.0040e150
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x2c], 0xf
call fcn.004042c0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x28], bl
call fcn.004018a0
cmp dword [esp + 0x34], ebp
je 0x40f547
mov ecx, dword [esp + 0x30]
push ecx
call fcn.004535eb
add esp, 4
lea edx, [esp + 0x34]
mov word [edi + 6], ax
mov eax, dword [str.__:_]
push edx
push eax
lea ecx, [esp + 0x24]
push ecx
mov ecx, esi
call fcn.0040e150
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x2c], 0x10
call fcn.004042c0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x28], bl
call fcn.004018a0
cmp dword [esp + 0x34], ebp
je 0x40f547
cmp dword [esp + 0x18], 0
je 0x40f627
mov eax, dword [esp + 0x30]
lea edx, [edi + 2]
push edx
push eax
call fcn.0040b990
add esp, 8
mov dword [esp + 0x18], 1
test eax, eax
jne 0x40f62f
mov dword [esp + 0x18], 0
mov edx, dword [str.__:_]
lea ecx, [esp + 0x34]
push ecx
push edx
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
call fcn.0040e150
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x2c], 0x11
call fcn.004042c0
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], bl
call fcn.004018a0
cmp dword [esp + 0x34], ebp
je 0x40f547
mov ecx, dword [esp + 0x30]
push ecx
call fcn.004535eb
add esp, 4
mov word [edi], ax
cmp ax, 0x32
jae 0x40f68a
add eax, 0x7d0
jmp 0x40f695
cmp ax, 0x64
jae 0x40f698
add eax, 0x76c
mov word [edi], ax
mov eax, dword [str.__:_]
lea edx, [esp + 0x34]
push edx
push eax
lea ecx, [esp + 0x24]
push ecx
mov ecx, esi
call fcn.0040e150
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x2c], 0x12
call fcn.004042c0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x28], bl
call fcn.004018a0
cmp dword [esp + 0x34], ebp
je 0x40f547
mov edx, dword [esp + 0x30]
push edx
call fcn.004535eb
mov ecx, dword [str.__:_]
add esp, 4
mov word [edi + 8], ax
lea eax, [esp + 0x34]
push eax
push ecx
lea edx, [esp + 0x24]
push edx
mov ecx, esi
call fcn.0040e150
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x2c], 0x13
call fcn.004042c0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x28], bl
call fcn.004018a0
cmp dword [esp + 0x34], ebp
je 0x40f547
mov eax, dword [esp + 0x30]
push eax
call fcn.004535eb
mov edx, dword [str.__:_]
add esp, 4
lea ecx, [esp + 0x34]
push ecx
mov word [edi + 0xa], ax
push edx
lea eax, [esp + 0x24]
push eax
mov ecx, esi
call fcn.0040e150
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x2c], 0x14
call fcn.004042c0
lea ecx, [esp + 0x1c]
call fcn.004018a0
cmp dword [esp + 0x34], ebp
je 0x40f547
mov ecx, dword [esp + 0x30]
push ecx
call fcn.004535eb
lea ecx, [esp + 0x34]
mov word [edi + 0xc], ax
add esp, 4
call fcn.004018a0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret