Function at 0x140149310
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, [0x1401c6fc0]
lea r13, [0x1400bffb0]
jmp 0x140149380
test r14b, r14b
je 0x140149819
mov rax, rsi
mov rcx, qword [rbp + 0x28]
mov edx, 2
lock cmpxchg qword [rcx], rdx
je 0x1401496dc
mov rsi, rax
test rax, rax
je 0x140149369
cmp rsi, 1
je 0x140149360
cmp rsi, 3
je 0x140149708
mov eax, esi
and eax, 3
cmp eax, 2
je 0x1401493be
jmp 0x1401497ff
mov eax, esi
and eax, 3
cmp eax, 2
jne 0x1401496d0
mov eax, dword [0x140201edc]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
movzx eax, byte [rax + 0x68]
cmp eax, 1
je 0x14014940e
test eax, eax
jne 0x140149778
mov eax, dword [0x140201edc]
mov rcx, qword gs:[0x58]
mov rdi, qword [rcx + rax*8]
lea rcx, [rdi + 0x58]
mov rdx, r13
call fcn.1400bffe0
mov byte [rdi + 0x68], 1
mov eax, dword [0x140201edc]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
cmp qword [rax + 0x58], 0
jne 0x140149721
mov eax, dword [0x140201edc]
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 0x14014947a
xor ecx, ecx
call fcn.1400bfa10
mov ecx, dword [0x140201edc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
mov qword [rcx + 0x60], rax
lock inc qword [rax]
jle 0x14014971d
mov ecx, dword [0x140201edc]
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 0x1401496af
mov rsi, rax
mov rcx, qword [rbp - 0x38]
test rcx, rcx
je 0x1401493b0
lock dec qword [rcx]
jne 0x1401493b0
call fcn.1400c00a0
jmp 0x1401493b0
mov eax, dword [0x140201edc]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
movzx eax, byte [rax + 0x68]
cmp eax, 1
je 0x140149553
test eax, eax
jne 0x140149792
mov eax, dword [0x140201edc]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
lea rcx, [rax + 0x58]
mov rdx, r13
call fcn.1400bffe0
mov eax, dword [0x140201edc]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov byte [rax + 0x68], 1
mov eax, dword [0x140201edc]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
cmp qword [rax + 0x58], 0
jne 0x14014974b
mov eax, dword [0x140201edc]
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 0x1401495bf
xor ecx, ecx
call fcn.1400bfa10
mov edx, dword [0x140201edc]
mov rcx, qword gs:[0x58]
mov rcx, qword [rcx + rdx*8]
mov qword [rcx + 0x60], rax
lock inc qword [rax]
jle 0x14014971d
mov edx, dword [0x140201edc]
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 0x1401496a0
mov rax, qword [rbp + 0x20]
lea rsi, [rax + 0x28]
mov rdi, qword [0x140201e68]
test rdi, rdi
je 0x14014962f
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 0x140149610
jmp 0x1401496a0
mov rcx, qword [0x140201040]
cmp rcx, 0xffffffffffffffff
jne 0x140149686
mov qword [rbp + 0x10], 0xffffffffffffffff
mov rax, qword [0x140201060]
lea rcx, [rbp + 0x10]
mov edx, 0xc0000000
xor r8d, r8d
xor r9d, r9d
call rax
test eax, eax
jne 0x1401497ac
mov rcx, qword [rbp + 0x10]
mov rax, 0xffffffffffffffff
lock cmpxchg qword [0x140201040], rcx
je 0x140149686
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
mov rax, qword [0x140201070]
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 0x1401496af
call fcn.1400c00a0
movzx eax, byte [rbp - 0x28]
test al, al
je 0x1401494f0
mov rcx, qword [rbp - 0x38]
test rcx, rcx
je 0x1401496d0
lock dec qword [rcx]
jne 0x1401496d0
call fcn.1400c00a0
nop
mov rax, qword [rbp + 0x28]
mov rax, qword [rax]
jmp 0x140149380
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.1400c0170
nop
add rsp, 0xb8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
ud2
lea rax, [0x1401c5c90]
mov qword [rsp + 0x20], rax
lea rcx, [0x1401c964a]
lea r9, [0x1401c42c0]
lea r8, [rbp - 0x20]
mov edx, reloc.WS2_32.dll_recv
call fcn.1401478d0
ud2
lea rax, [0x1401c5c90]
mov qword [rsp + 0x20], rax
lea rcx, [0x1401c964a]
lea r9, [0x1401c42c0]
lea r8, [rbp - 0x20]
mov edx, reloc.WS2_32.dll_recv
call fcn.1401478d0
jmp 0x1401497fd
lea rcx, str.use_of_std::thread::current___is_not_possible_after_the_threads_local_data_has_been_destroyed
lea r8, [0x1401c4c08]
mov edx, 0x5e
call fcn.140147970
ud2
lea rcx, str.use_of_std::thread::current___is_not_possible_after_the_threads_local_data_has_been_destroyed
lea r8, [0x1401c4c08]
mov edx, 0x5e
call fcn.140147970
jmp 0x1401497fd
mov dword [rbp + 0x1c], eax
lea rax, [rbp + 0x1c]
mov qword [rbp - 0x58], rax
lea rax, [0x1400208c0]
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.140147410
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.1401475d0
ud2
lea rax, [0x1401c73f8]
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], 1
lea rax, str._rustc_8ede3aae28fe6e4d52b38157d7bfe0d3bceef225library_std_srciomod.rsfailed_to_fill_whole_buffer
mov qword [rbp - 0x10], rax
xorps xmm0, xmm0
movups xmmword [rbp - 8], xmm0
lea rcx, [rbp - 0x20]
mov rdx, qword [rbp + 0xa0]
call fcn.140147410
ud2