Function at 0x405160
Capabilities:
Get number of processors

Disassembly:
lea r12, [rsp - 0x40]
cmp r12, qword [r14 + 0x10]
jbe 0x40543c
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.00444e40
mov qword [rsp + 0xb0], rdx
mov byte [rsp + 0x47], 1
mov rdx, qword [r14 + 0x30]
cmp byte [rdx + 0xf8], 0
jne 0x4051dc
lea rax, [0x0060a220]
call fcn.00403480
test eax, eax
jbe 0x40520e
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 0x30]
mov byte [rcx + 0xf8], 0
lea rcx, fcn.0043f940
mov qword [rsp], rcx
call fcn.00463d40
xorps xmm15, xmm15
mov r14, qword [0x0060a418]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rdx, qword [rsp + 0xd8]
test rdx, rdx
je 0x4052fe
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 0x405269
mov rax, r8
mov edi, 1
lea rsi, [0x004d9840]
call fcn.0044c640
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.00404ea0
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, [0x004054e0]
mov qword [rsp + 0x88], rcx
lea rcx, [0x00518b88]
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 0x405308
mov rdx, qword [rsp + 0x60]
mov eax, 1
mov byte [rsp + 0x46], al
mov rcx, qword [rdx + 0x30]
cmp dword [rcx + 0x108], 0
jne 0x405331
mov rax, qword [0x005b3d18]
xor ebx, ebx
call fcn.00406240
movzx eax, byte [rsp + 0x46]
mov rdx, qword [rsp + 0x60]
mov ecx, dword [0x005b5580]
mov rdx, qword [rdx + 0x30]
nop dword [rax + rax]
cmp dword [rdx + 0xe0], ecx
je 0x405354
mov eax, ecx
call fcn.00437be0
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, [0x00405480]
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.004515c0
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 0x4053f0
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 0x405412
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 0x405425
and ecx, 0xfffffffe
mov byte [rsp + 0x47], cl
nop
call fcn.00444e40
add rsp, 0xb8
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
call fcn.00463e80
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
nop
jmp fcn.00405160