Function at 0x140024ee0
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 [0x14037d018], rax
test rax, rax
js 0x140024fbb
mov rsi, rcx
mov eax, dword [0x14037d0a0]
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 0x140024fce
mov rdi, rdx
lea r14, [0x14036fdc0]
mov qword [rbp - 0x28], r14
lea rax, [0x14036ea08]
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], r8
mov qword [rbp - 0x10], r9
mov byte [rbp - 8], bl
lea rcx, [0x14037cff8]
call qword [sym.imp.kernel32.dll_AcquireSRWLockShared]
movzx eax, byte [0x14037d000]
cmp qword [0x14037d008], 0
mov rax, qword [rdi + 0x20]
jne 0x140025130
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.140024130
jmp 0x14002515d
movabs rcx, 0x7fffffffffffffff
and rax, rcx
cmp rax, 2
jbe 0x140025048
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, [0x14036fdc0]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 0
lea rcx, [rbp - 0x28]
lea rdx, [rbp - 0x58]
call fcn.14001a920
test rax, rax
je 0x140025127
mov ecx, eax
and ecx, 3
cmp ecx, 1
jne 0x140025127
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 0x1400250e5
lea rax, [0x14036fdc0]
mov qword [rbp - 0x28], rax
lea rax, [0x14036ea08]
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, [0x14000b590]
mov qword [rbp + 8], rax
lea rax, [0x14036ea60]
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.14001a920
test rax, rax
je 0x140025127
mov ecx, eax
and ecx, 3
cmp ecx, 1
jne 0x140025127
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 0x140025115
mov r8, qword [rsi]
cmp qword [rax + 0x10], 0x11
jb 0x140025106
mov r8, qword [r8 - 8]
mov rcx, qword [0x14037d038]
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapFree]
mov rcx, qword [0x14037d038]
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 [0x14037d008]
mov rax, qword [0x14037d010]
mov rax, qword [rax + 0x28]
mov byte [rbp + 0x2f], 1
lea rdx, [rbp - 0x28]
call rax
lea rcx, [0x14037cff8]
call qword [sym.imp.kernel32.dll_ReleaseSRWLockShared]
cmp r15, 1
ja 0x14002517f
test bl, bl
je 0x14002517f
mov byte [rbp + 0x2f], 0
call fcn.140021b50
ud2
test bl, bl
je 0x1400251d3
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.14001a920
mov byte [rbp + 0x2f], 0
mov rcx, rax
call fcn.14001aa80
jmp 0x140025221
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.14001a920
mov byte [rbp + 0x2f], 0
mov rcx, rax
call fcn.14001aa80
mov ecx, 7
int 0x29
ud2