Function at 0x1800d8e50
Capabilities:
Get number of processors

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0xb8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x30], 0xfffffffffffffffe
mov qword [rbp - 0x48], r9
mov qword [rbp - 0x40], r8
mov r14d, edx
mov qword [rbp + 0x28], rcx
mov rax, qword [rcx]
lea rbx, [rbp - 0x36]
xor r15d, r15d
lea r12, [0x180136480]
lea r13, [0x1800a9ab0]
jmp 0x1800d8ec0
test r14b, r14b
je 0x1800d9359
mov rax, rsi
mov rcx, qword [rbp + 0x28]
mov edx, 2
lock cmpxchg qword [rcx], rdx
je 0x1800d921c
mov rsi, rax
test rax, rax
je 0x1800d8ea9
cmp rsi, 1
je 0x1800d8ea0
cmp rsi, 3
je 0x1800d9248
mov eax, esi
and eax, 3
cmp eax, 2
je 0x1800d8efe
jmp 0x1800d933f
mov eax, esi
and eax, 3
cmp eax, 2
jne 0x1800d9210
mov eax, dword [0x1801672dc]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
movzx eax, byte [rax + 0x68]
cmp eax, 1
je 0x1800d8f4e
test eax, eax
jne 0x1800d92b8
mov eax, dword [0x1801672dc]
mov rcx, qword gs:[0x58]
mov rdi, qword [rcx + rax*8]
lea rcx, [rdi + 0x58]
mov rdx, r13
call fcn.1800a9ae0
mov byte [rdi + 0x68], 1
mov eax, dword [0x1801672dc]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
cmp qword [rax + 0x58], 0
jne 0x1800d9261
mov eax, dword [0x1801672dc]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov qword [rax + 0x58], 0xffffffffffffffff
mov rax, qword [rax + 0x60]
test rax, rax
jne 0x1800d8fba
xor ecx, ecx
call fcn.1800a95d0
mov ecx, dword [0x1801672dc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
mov qword [rcx + 0x60], rax
lock inc qword [rax]
jle 0x1800d925d
mov ecx, dword [0x1801672dc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
inc qword [rcx + 0x58]
mov rcx, rsi
add rcx, 0xfffffffffffffffe
mov qword [rbp - 0x38], rax
mov byte [rbp - 0x28], 0
mov qword [rbp - 0x30], rcx
mov rax, rsi
mov rcx, qword [rbp + 0x28]
lock cmpxchg qword [rcx], rbx
je 0x1800d91ef
mov rsi, rax
mov rcx, qword [rbp - 0x38]
test rcx, rcx
je 0x1800d8ef0
lock dec qword [rcx]
jne 0x1800d8ef0
call fcn.1800a9ba0
jmp 0x1800d8ef0
mov eax, dword [0x1801672dc]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
movzx eax, byte [rax + 0x68]
cmp eax, 1
je 0x1800d9093
test eax, eax
jne 0x1800d92d2
mov eax, dword [0x1801672dc]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
lea rcx, [rax + 0x58]
mov rdx, r13
call fcn.1800a9ae0
mov eax, dword [0x1801672dc]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov byte [rax + 0x68], 1
mov eax, dword [0x1801672dc]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
cmp qword [rax + 0x58], 0
jne 0x1800d928b
mov eax, dword [0x1801672dc]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov qword [rax + 0x58], 0xffffffffffffffff
mov rax, qword [rax + 0x60]
test rax, rax
jne 0x1800d90ff
xor ecx, ecx
call fcn.1800a95d0
mov edx, dword [0x1801672dc]
mov rcx, qword gs:[0x58]
mov rcx, qword [rcx + rdx*8]
mov qword [rcx + 0x60], rax
lock inc qword [rax]
jle 0x1800d925d
mov edx, dword [0x1801672dc]
mov rcx, qword gs:[0x58]
mov rcx, qword [rcx + rdx*8]
inc qword [rcx + 0x58]
mov qword [rbp + 0x20], rax
lock dec byte [rax + 0x28]
je 0x1800d91e0
mov rax, qword [rbp + 0x20]
lea rsi, [rax + 0x28]
mov rdi, qword [0x180167268]
test rdi, rdi
je 0x1800d916f
nop word cs:[rax + rax]
mov r8d, 1
mov rcx, rsi
mov rdx, r12
mov r9d, 0xffffffff
call rdi
mov al, 1
lock cmpxchg byte [rsi], r15b
jne 0x1800d9150
jmp 0x1800d91e0
mov rcx, qword [0x1801670c0]
cmp rcx, 0xffffffffffffffff
jne 0x1800d91c6
mov qword [rbp + 0x10], 0xffffffffffffffff
mov rax, qword [0x1801670d8]
lea rcx, [rbp + 0x10]
mov edx, 0xc0000000
xor r8d, r8d
xor r9d, r9d
call rax
test eax, eax
jne 0x1800d92ec
mov rcx, qword [rbp + 0x10]
mov rax, 0xffffffffffffffff
lock cmpxchg qword [0x1801670c0], rcx
je 0x1800d91c6
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
mov rax, qword [0x1801670e8]
mov rdx, rsi
xor r8d, r8d
xor r9d, r9d
call rax
xor eax, eax
xchg byte [rsi], al
nop dword [rax]
mov rcx, qword [rbp + 0x20]
lock dec qword [rcx]
jne 0x1800d91ef
call fcn.1800a9ba0
movzx eax, byte [rbp - 0x28]
test al, al
je 0x1800d9030
mov rcx, qword [rbp - 0x38]
test rcx, rcx
je 0x1800d9210
lock dec qword [rcx]
jne 0x1800d9210
call fcn.1800a9ba0
nop
mov rax, qword [rbp + 0x28]
mov rax, qword [rax]
jmp 0x1800d8ec0
cmp rsi, 1
mov qword [rbp - 0x20], 3
sete byte [rbp - 0x18]
lea rdx, [rbp - 0x20]
mov rcx, qword [rbp - 0x40]
mov rax, qword [rbp - 0x48]
call qword [rax + 0x20]
mov rdx, qword [rbp - 0x20]
mov rcx, qword [rbp + 0x28]
call fcn.1800a9c70
nop
add rsp, 0xb8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
ud2
lea rax, [0x1801351a8]
mov qword [rsp + 0x20], rax
lea rcx, [0x18013715a]
lea r9, [0x180133b18]
lea r8, [rbp - 0x20]
mov edx, reloc.WS2_32.dll_recv
call fcn.1800d7aa0
ud2
lea rax, [0x1801351a8]
mov qword [rsp + 0x20], rax
lea rcx, [0x18013715a]
lea r9, [0x180133b18]
lea r8, [rbp - 0x20]
mov edx, reloc.WS2_32.dll_recv
call fcn.1800d7aa0
jmp 0x1800d933d
lea rcx, str.use_of_std::thread::current___is_not_possible_after_the_threads_local_data_has_been_destroyed
lea r8, [0x1801343a0]
mov edx, 0x5e
call fcn.1800d7b40
ud2
lea rcx, str.use_of_std::thread::current___is_not_possible_after_the_threads_local_data_has_been_destroyed
lea r8, [0x1801343a0]
mov edx, 0x5e
call fcn.1800d7b40
jmp 0x1800d933d
mov dword [rbp + 0x1c], eax
lea rax, [rbp + 0x1c]
mov qword [rbp - 0x58], rax
lea rax, [0x18001faa0]
mov qword [rbp - 0x50], rax
lea rax, str.Unable_to_create_keyed_event_handle:_error
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], 1
mov qword [rbp], 0
lea rax, [rbp - 0x58]
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], 1
lea rdx, str.library_std_src_syswindows_thread_parking.rs
lea rcx, [rbp - 0x20]
call fcn.1800d7650
ud2
lea rcx, str.assertion_failed:_state_and_queue.addr____STATE_MASK__RUNNINGOnce_instance_has_previously_been_poisoned
mov edx, 0x40
mov r8, qword [rbp + 0xa0]
call fcn.1800d7810
ud2
lea rax, [0x180136800]
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], 1
lea rax, str._rustc_8ede3aae28fe6e4d52b38157d7bfe0d3bceef225librarycore_src_sync_atomic.rsthere_is_no_such_thing_as_an_acquire_release_store
mov qword [rbp - 0x10], rax
xorps xmm0, xmm0
movups xmmword [rbp - 8], xmm0
lea rcx, [rbp - 0x20]
mov rdx, qword [rbp + 0xa0]
call fcn.1800d7650
ud2