Function at 0x180148580
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, [0x1801c6cc8]
lea r13, [0x1800c01e0]
jmp 0x1801485f0
test r14b, r14b
je 0x180148a89
mov rax, rsi
mov rcx, qword [rbp + 0x28]
mov edx, 2
lock cmpxchg qword [rcx], rdx
je 0x18014894c
mov rsi, rax
test rax, rax
je 0x1801485d9
cmp rsi, 1
je 0x1801485d0
cmp rsi, 3
je 0x180148978
mov eax, esi
and eax, 3
cmp eax, 2
je 0x18014862e
jmp 0x180148a6f
mov eax, esi
and eax, 3
cmp eax, 2
jne 0x180148940
mov eax, dword [0x180200ed4]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
movzx eax, byte [rax + 0x68]
cmp eax, 1
je 0x18014867e
test eax, eax
jne 0x1801489e8
mov eax, dword [0x180200ed4]
mov rcx, qword gs:[0x58]
mov rdi, qword [rcx + rax*8]
lea rcx, [rdi + 0x58]
mov rdx, r13
call fcn.1800c0210
mov byte [rdi + 0x68], 1
mov eax, dword [0x180200ed4]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
cmp qword [rax + 0x58], 0
jne 0x180148991
mov eax, dword [0x180200ed4]
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 0x1801486ea
xor ecx, ecx
call fcn.1800bfd00
mov ecx, dword [0x180200ed4]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
mov qword [rcx + 0x60], rax
lock inc qword [rax]
jle 0x18014898d
mov ecx, dword [0x180200ed4]
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 0x18014891f
mov rsi, rax
mov rcx, qword [rbp - 0x38]
test rcx, rcx
je 0x180148620
lock dec qword [rcx]
jne 0x180148620
call fcn.1800c02d0
jmp 0x180148620
mov eax, dword [0x180200ed4]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
movzx eax, byte [rax + 0x68]
cmp eax, 1
je 0x1801487c3
test eax, eax
jne 0x180148a02
mov eax, dword [0x180200ed4]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
lea rcx, [rax + 0x58]
mov rdx, r13
call fcn.1800c0210
mov eax, dword [0x180200ed4]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov byte [rax + 0x68], 1
mov eax, dword [0x180200ed4]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
cmp qword [rax + 0x58], 0
jne 0x1801489bb
mov eax, dword [0x180200ed4]
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 0x18014882f
xor ecx, ecx
call fcn.1800bfd00
mov edx, dword [0x180200ed4]
mov rcx, qword gs:[0x58]
mov rcx, qword [rcx + rdx*8]
mov qword [rcx + 0x60], rax
lock inc qword [rax]
jle 0x18014898d
mov edx, dword [0x180200ed4]
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 0x180148910
mov rax, qword [rbp + 0x20]
lea rsi, [rax + 0x28]
mov rdi, qword [0x180200e60]
test rdi, rdi
je 0x18014889f
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 0x180148880
jmp 0x180148910
mov rcx, qword [0x180200040]
cmp rcx, 0xffffffffffffffff
jne 0x1801488f6
mov qword [rbp + 0x10], 0xffffffffffffffff
mov rax, qword [0x180200060]
lea rcx, [rbp + 0x10]
mov edx, 0xc0000000
xor r8d, r8d
xor r9d, r9d
call rax
test eax, eax
jne 0x180148a1c
mov rcx, qword [rbp + 0x10]
mov rax, 0xffffffffffffffff
lock cmpxchg qword [0x180200040], rcx
je 0x1801488f6
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
mov rax, qword [0x180200070]
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 0x18014891f
call fcn.1800c02d0
movzx eax, byte [rbp - 0x28]
test al, al
je 0x180148760
mov rcx, qword [rbp - 0x38]
test rcx, rcx
je 0x180148940
lock dec qword [rcx]
jne 0x180148940
call fcn.1800c02d0
nop
mov rax, qword [rbp + 0x28]
mov rax, qword [rax]
jmp 0x1801485f0
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.1800c03a0
nop
add rsp, 0xb8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
ud2
lea rax, [0x1801c59b0]
mov qword [rsp + 0x20], rax
lea rcx, [0x1801c91ea]
lea r9, [0x1801c41e8]
lea r8, [rbp - 0x20]
mov edx, reloc.WS2_32.dll_recv
call fcn.180146c00
ud2
lea rax, [0x1801c59b0]
mov qword [rsp + 0x20], rax
lea rcx, [0x1801c91ea]
lea r9, [0x1801c41e8]
lea r8, [rbp - 0x20]
mov edx, reloc.WS2_32.dll_recv
call fcn.180146c00
jmp 0x180148a6d
lea rcx, str.use_of_std::thread::current___is_not_possible_after_the_threads_local_data_has_been_destroyed
lea r8, [0x1801c4a90]
mov edx, 0x5e
call fcn.180146ca0
ud2
lea rcx, str.use_of_std::thread::current___is_not_possible_after_the_threads_local_data_has_been_destroyed
lea r8, [0x1801c4a90]
mov edx, 0x5e
call fcn.180146ca0
jmp 0x180148a6d
mov dword [rbp + 0x1c], eax
lea rax, [rbp + 0x1c]
mov qword [rbp - 0x58], rax
lea rax, [0x180020cb0]
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.180146740
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.180146900
ud2
lea rax, [0x1801c7068]
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], 1
lea rax, str._rustc_8ede3aae28fe6e4d52b38157d7bfe0d3bceef225library_std_srcioimpls.rsdescription___is_deprecated__use_Display
mov qword [rbp - 0x10], rax
xorps xmm0, xmm0
movups xmmword [rbp - 8], xmm0
lea rcx, [rbp - 0x20]
mov rdx, qword [rbp + 0xa0]
call fcn.180146740
ud2