Function at 0x4058e0
Capabilities:
Get number of processors

Disassembly:
lea r12, [rsp - 0x40]
cmp r12, qword [r14 + 0x10]
jbe 0x405bbc
push rbp
mov rbp, rsp
sub rsp, 0xb8
movups xmmword [rsp + 0xa0], xmm15
movups xmmword [rsp + 0xa8], xmm15
mov qword [rsp + 0xc8], rax
mov qword [rsp + 0xd8], rcx
mov qword [rsp + 0x70], rbx
mov byte [rsp + 0x47], 0
mov qword [rsp + 0x60], r14
lea rdx, fcn.004456a0
mov qword [rsp + 0xb0], rdx
mov byte [rsp + 0x47], 1
mov rdx, qword [r14 + 0x30]
cmp byte [rdx + 0xf8], 0
jne 0x40595c
lea rax, [0x005d3a58]
call fcn.00403460
test eax, eax
jbe 0x40598e
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 0x30]
mov byte [rcx + 0xf8], 0
lea rcx, fcn.004401a0
mov qword [rsp], rcx
call fcn.004646c0
xorps xmm15, xmm15
mov r14, qword [0x005d3c50]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rdx, qword [rsp + 0xd8]
test rdx, rdx
je 0x405a7e
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 0x150]
mov rbx, qword [rax + 0x148]
inc rbx
mov r8, qword [rax + 0x140]
nop dword [rax]
cmp rcx, rbx
jae 0x4059e9
mov rax, r8
mov edi, 1
lea rsi, [0x004bfa20]
call fcn.0044cea0
mov rdx, qword [rsp + 0xd8]
mov r8, rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rcx
mov qword [r8 + rbx*8 - 8], rdx
lea rdx, [rax + 0x140]
mov rax, rdx
mov rbx, r8
call fcn.00405620
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x60]
mov qword [rdx + 0x150], rcx
mov rcx, qword [rsp + 0x48]
mov qword [rdx + 0x148], rcx
movups xmmword [rsp + 0x88], xmm15
mov qword [rsp + 0x98], 0
lea rcx, [0x00405c60]
mov qword [rsp + 0x88], rcx
lea rcx, [0x004e9070]
mov qword [rsp + 0x90], rcx
mov qword [rsp + 0x98], rdx
lea rcx, [rsp + 0x88]
mov qword [rsp + 0xa8], rcx
mov byte [rsp + 0x47], 3
mov eax, 3
jmp 0x405a88
mov rdx, qword [rsp + 0x60]
mov eax, 1
mov byte [rsp + 0x46], al
mov rcx, qword [rdx + 0x30]
cmp dword [rcx + 0x108], 0
jne 0x405ab1
mov rax, qword [0x0057dfe8]
xor ebx, ebx
call fcn.004069c0
movzx eax, byte [rsp + 0x46]
mov rdx, qword [rsp + 0x60]
mov ecx, dword [0x0057f7e0]
mov rdx, qword [rdx + 0x30]
nop dword [rax + rax]
cmp dword [rdx + 0xe0], ecx
je 0x405ad4
mov eax, ecx
call fcn.00438440
movzx eax, byte [rsp + 0x46]
mov byte [rsp + 0x45], 1
or eax, 4
mov byte [rsp + 0x46], al
movups xmmword [rsp + 0x78], xmm15
lea rcx, [0x00405c00]
mov qword [rsp + 0x78], rcx
lea rcx, [rsp + 0x45]
mov qword [rsp + 0x80], rcx
lea rcx, [rsp + 0x78]
mov qword [rsp + 0xa0], rcx
mov byte [rsp + 0x47], al
mov qword [rsp + 0x68], 0
mov rcx, qword [rsp + 0xc8]
mov qword [rsp + 0x58], rcx
lea rax, [rsp + 0x58]
call fcn.00451bc0
mov qword [rsp + 0x68], rax
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rdx]
mov rax, qword [rsp + 0x70]
call rcx
mov byte [rsp + 0x45], 0
movzx ecx, byte [rsp + 0x46]
test cl, 4
je 0x405b70
and ecx, 0xfffffffb
mov byte [rsp + 0x46], cl
mov byte [rsp + 0x47], cl
mov rdx, qword [rsp + 0xa0]
mov rax, qword [rdx]
call rax
movzx ecx, byte [rsp + 0x46]
test cl, 2
je 0x405b92
and ecx, 0xfffffffd
mov byte [rsp + 0x46], cl
mov byte [rsp + 0x47], cl
mov rdx, qword [rsp + 0xa8]
mov rax, qword [rdx]
call rax
movzx ecx, byte [rsp + 0x46]
test cl, 1
je 0x405ba5
and ecx, 0xfffffffe
mov byte [rsp + 0x47], cl
nop
call fcn.004456a0
add rsp, 0xb8
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
call fcn.00464800
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
nop
jmp fcn.004058e0