Function at 0x140024da0
Capabilities:
Get number of processors

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0xb8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x30], 0xfffffffffffffffe
movzx ebx, byte [rbp + 0x90]
mov eax, 1
lock xadd qword [0x1400b4008], rax
test rax, rax
js 0x140024e7b
mov rsi, rcx
mov eax, dword [0x1400b4090]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov r15, qword [rax + 0x60]
inc r15
mov qword [rax + 0x60], r15
cmp r15, 2
ja 0x140024e8e
mov rdi, rdx
lea r14, [0x1400a63d0]
mov qword [rbp - 0x28], r14
lea rax, [0x1400a5018]
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], r8
mov qword [rbp - 0x10], r9
mov byte [rbp - 8], bl
lea rcx, [0x1400b3fe8]
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockShared]
movzx eax, byte [0x1400b3ff0]
cmp qword [0x1400b3ff8], 0
mov rax, qword [rdi + 0x20]
jne 0x140024ff0
mov byte [rbp + 0x2f], 1
mov rcx, rsi
call rax
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x20], rdx
mov byte [rbp + 0x2f], 1
lea rcx, [rbp - 0x28]
call fcn.140023ff0
jmp 0x14002501d
movabs rcx, 0x7fffffffffffffff
and rax, rcx
cmp rax, 2
jbe 0x140024f08
mov byte [rbp - 0x24], 0
mov dword [rbp - 0x28], 0
lea rax, str.thread_panicked_while_processing_panic._aborting._n
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], 1
mov qword [rbp - 0x58], 0
lea rax, [0x1400a63d0]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 0
lea rcx, [rbp - 0x28]
lea rdx, [rbp - 0x58]
call fcn.14001a7e0
test rax, rax
je 0x140024fe7
mov ecx, eax
and ecx, 3
cmp ecx, 1
jne 0x140024fe7
mov rcx, rax
dec rcx
mov qword [rbp + 0x20], rcx
mov rcx, qword [rax - 1]
mov qword [rbp + 0x18], rax
mov rax, qword [rax + 7]
call qword [rax]
jmp 0x140024fa5
lea rax, [0x1400a63d0]
mov qword [rbp - 0x28], rax
lea rax, [0x1400a5018]
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], r8
mov qword [rbp - 0x10], r9
mov byte [rbp - 8], bl
mov byte [rbp + 0x14], 0
mov dword [rbp + 0x10], 0
lea rax, [rbp - 0x28]
mov qword [rbp], rax
lea rax, [0x14000b450]
mov qword [rbp + 8], rax
lea rax, [0x1400a5070]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], 2
mov qword [rbp - 0x58], 0
mov rax, rbp
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
lea rcx, [rbp + 0x10]
lea rdx, [rbp - 0x58]
call fcn.14001a7e0
test rax, rax
je 0x140024fe7
mov ecx, eax
and ecx, 3
cmp ecx, 1
jne 0x140024fe7
mov rcx, rax
dec rcx
mov qword [rbp + 0x20], rcx
mov rcx, qword [rax - 1]
mov qword [rbp + 0x18], rax
mov rax, qword [rax + 7]
call qword [rax]
mov rsi, qword [rbp + 0x20]
mov rax, qword [rbp + 0x18]
mov rax, qword [rax + 7]
cmp qword [rax + 8], 0
je 0x140024fd5
mov r8, qword [rsi]
cmp qword [rax + 0x10], 0x11
jb 0x140024fc6
mov r8, qword [r8 - 8]
mov rcx, qword [0x1400b4028]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x1400b4028]
xor edx, edx
mov r8, rsi
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, 7
int 0x29
ud2
mov byte [rbp + 0x2f], 1
mov rcx, rsi
call rax
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x20], rdx
mov rcx, qword [0x1400b3ff8]
mov rax, qword [0x1400b4000]
mov rax, qword [rax + 0x28]
mov byte [rbp + 0x2f], 1
lea rdx, [rbp - 0x28]
call rax
lea rcx, [0x1400b3fe8]
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockShared]
cmp r15, 1
ja 0x14002503f
test bl, bl
je 0x14002503f
mov byte [rbp + 0x2f], 0
call fcn.140021a10
ud2
test bl, bl
je 0x140025093
mov byte [rbp + 4], 0
mov dword [rbp], 0
lea rax, str.thread_panicked_while_panicking._aborting._n
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], 1
mov qword [rbp - 0x58], 0
mov qword [rbp - 0x38], r14
mov qword [rbp - 0x30], 0
mov byte [rbp + 0x2f], 0
mov rcx, rbp
lea rdx, [rbp - 0x58]
call fcn.14001a7e0
mov byte [rbp + 0x2f], 0
mov rcx, rax
call fcn.14001a940
jmp 0x1400250e1
mov byte [rbp + 4], 0
mov dword [rbp], 0
lea rax, str.thread_caused_non_unwinding_panic._aborting._n
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], 1
mov qword [rbp - 0x58], 0
mov qword [rbp - 0x38], r14
mov qword [rbp - 0x30], 0
mov byte [rbp + 0x2f], 0
mov rcx, rbp
lea rdx, [rbp - 0x58]
call fcn.14001a7e0
mov byte [rbp + 0x2f], 0
mov rcx, rax
call fcn.14001a940
mov ecx, 7
int 0x29
ud2