Function at 0x1400e30a0
Capabilities:
Get number of processors

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0xb8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x30], 0xfffffffffffffffe
mov rsi, rcx
mov eax, dword [0x14018d2f8]
mov rcx, qword gs:[0x58]
mov rcx, qword [rcx + rax*8]
mov al, 1
cmp qword [rcx + 0x38], 1
ja 0x1400e30e2
call fcn.1400dfe80
mov byte [rbp + 0x2c], al
mov rcx, rsi
call fcn.1400f03d0
test rax, rax
je 0x1400e336c
mov qword [rbp - 0x10], rax
mov rcx, rsi
call fcn.1400f03b0
mov rdi, rax
mov rcx, rax
call qword [rdx + 0x18]
test rdi, rdi
je 0x1400e3128
movabs rcx, 0xc1a2c89ccd1e7bc1
cmp rax, rcx
jne 0x1400e3128
mov rax, rdi
add rax, 8
jmp 0x1400e3160
mov rcx, rsi
call fcn.1400f03b0
mov rdi, rax
mov rcx, rax
call qword [rdx + 0x18]
mov ecx, 0xc
lea rdx, [0x140168d34]
test rdi, rdi
je 0x1400e3166
movabs r8, 0x5ba3662cd1b3e1e8
cmp rax, r8
jne 0x1400e3166
mov rax, rdi
add rax, 0x10
mov rdx, qword [rdi]
mov rcx, qword [rax]
mov qword [rbp - 0x20], rdx
mov qword [rbp - 0x18], rcx
call fcn.1400e2430
mov r8d, 9
lea rcx, [0x140168d40]
test rax, rax
je 0x1400e3198
mov rdx, qword [rax + 0x18]
test rdx, rdx
je 0x1400e3198
mov r8, qword [rax + 0x20]
dec r8
mov rcx, rdx
mov qword [rbp - 0x30], rcx
mov qword [rbp - 0x28], r8
lea rcx, [rbp - 0x30]
mov qword [rbp - 0x50], rcx
lea rcx, [rbp - 0x20]
mov qword [rbp - 0x48], rcx
lea rcx, [rbp - 0x10]
mov qword [rbp - 0x40], rcx
lea rcx, [rbp + 0x2c]
mov qword [rbp - 0x38], rcx
movzx ecx, byte [0x14018d180]
test cl, cl
mov qword [rbp + 8], rax
je 0x1400e32c0
mov byte [0x14018d180], 1
mov eax, dword [0x14018d2f8]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
cmp qword [rax + 0x60], 0
je 0x1400e3200
lea rax, [rax + 0x68]
jmp 0x1400e3210
xor ecx, ecx
call fcn.1400e4930
test rax, rax
je 0x1400e3386
mov rsi, qword [rax]
mov qword [rax], 0
test rsi, rsi
je 0x1400e32c0
lea rdi, [rsi + 0x10]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov rax, qword [0x14018d238]
shl rax, 1
test rax, rax
mov qword [rbp - 8], rdi
jne 0x1400e3343
mov dword [rbp + 0x14], 0
movzx eax, byte [rsi + 0x18]
mov qword [rbp + 0x20], rsi
lea rdx, [rsi + 0x20]
lea r8, fcn.1400da7c0
lea rcx, [rbp - 0x50]
call fcn.1400e3570
cmp byte [rbp + 0x14], 0
jne 0x1400e3285
mov rax, qword [0x14018d238]
shl rax, 1
test rax, rax
jne 0x1400e3352
mov rcx, qword [rbp - 8]
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov byte [0x14018d180], 1
mov eax, dword [0x14018d2f8]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
cmp qword [rax + 0x60], 0
mov rsi, qword [rbp + 8]
je 0x1400e3313
lea rax, [rax + 0x68]
jmp 0x1400e3327
mov byte [rbp + 0x1c], 0
mov dword [rbp + 0x18], 0
mov byte [rbp + 0x2f], 1
mov qword [rbp], 0
mov byte [rbp + 0x2e], 0
lea r8, [0x140168d50]
lea rcx, [rbp - 0x50]
lea rdx, [rbp + 0x18]
call fcn.1400e3570
mov rsi, qword [rbp + 8]
test rsi, rsi
je 0x1400e3306
lock dec qword [rsi]
jne 0x1400e3306
mov rcx, rsi
call fcn.1400dbad0
nop
add rsp, 0xb8
pop rbx
pop rdi
pop rsi
pop rbp
ret
xor ecx, ecx
call fcn.1400e4930
test rax, rax
mov rsi, qword [rbp + 8]
je 0x1400e33b0
mov rcx, qword [rax]
mov rdx, qword [rbp + 0x20]
mov qword [rax], rdx
test rcx, rcx
je 0x1400e32f3
lock dec qword [rcx]
jne 0x1400e32f3
call fcn.1400dbb50
jmp 0x1400e32f3
call fcn.1400fb910
xor al, 1
mov dword [rbp + 0x14], eax
jmp 0x1400e324f
call fcn.1400fb910
test al, al
jne 0x1400e3285
mov rax, qword [rbp + 0x20]
mov byte [rax + 0x18], 1
jmp 0x1400e3285
lea rcx, [0x140167758]
lea r8, str.library_std_srcpanicking.rsBox_dyn_Any__unnamed_
mov edx, 0x2b
call fcn.1400fc740
ud2
lea rax, [0x140168470]
mov qword [rsp + 0x20], rax
lea rcx, str.cannot_access_a_Thread_Local_Storage_value_during_or_after_destructionlibrary_std_src_threadlocal.rs
lea r9, [0x140167a60]
lea r8, [rbp + 0x18]
mov edx, 0x46
call fcn.1400fcae0
jmp 0x1400e33ef
mov rax, qword [rbp + 0x20]
lock dec qword [rax]
jne 0x1400e33c3
mov rcx, qword [rbp + 0x20]
call fcn.1400dbb50
mov byte [rbp + 0x2d], 0
lea rax, [0x140168470]
mov qword [rsp + 0x20], rax
lea rcx, str.cannot_access_a_Thread_Local_Storage_value_during_or_after_destructionlibrary_std_src_threadlocal.rs
lea r9, [0x140167a60]
lea r8, [rbp + 0x18]
mov edx, 0x46
call fcn.1400fcae0
ud2