Function at 0x140201c10
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
mov qword [rsp + 0x78], r9
mov qword [rsp + 0x70], r8
mov ebp, edx
mov rsi, rcx
mov rax, qword [rcx]
lea rbx, [rsp + 0x2a]
mov r14d, 2
lea r15, [0x140284948]
jmp 0x140201c67
test bpl, bpl
je 0x140201f41
mov rax, r12
lock cmpxchg qword [rsi], r14
je 0x140201e88
mov r12, rax
test rax, rax
je 0x140201c59
cmp r12, 1
je 0x140201c50
cmp r12, 3
je 0x140201eb9
mov eax, r12d
and eax, 3
cmp eax, 2
je 0x140201c9f
jmp 0x140201f7e
mov eax, r12d
and eax, 3
cmp eax, 2
jne 0x140201e80
mov ecx, dword [0x140284960]
test ecx, ecx
je 0x140201e16
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x140201cd0
mov r13, rax
cmp qword [rax + 8], 0
je 0x140201cd0
add r13, 0x10
jmp 0x140201da0
mov ecx, dword [0x140284960]
test ecx, ecx
je 0x140201e25
dec ecx
call sub.kernel32.dll_TlsGetValue
test rax, rax
je 0x140201d00
mov rdi, rax
cmp rax, 1
jne 0x140201d67
jmp 0x140201f27
movzx eax, byte [0x14036c240]
mov rax, qword [0x14036c198]
test rax, rax
jne 0x140201d28
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x140201ed2
mov qword [0x14036c198], rax
mov r8d, 0x18
mov rcx, rax
xor edx, edx
call sub.kernel32.dll_HeapAlloc
test rax, rax
je 0x140201ed2
mov rdi, rax
mov qword [rax], r15
mov qword [rax + 8], 0
mov ecx, dword [0x140284960]
test ecx, ecx
je 0x140201e34
dec ecx
mov rdx, rdi
call sub.kernel32.dll_TlsSetValue
lea r13, [rdi + 0x10]
mov rcx, qword [rdi + 0x10]
cmp qword [rdi + 8], 0
mov qword [rdi + 8], 1
mov qword [rdi + 0x10], 0
je 0x140201da0
test rcx, rcx
je 0x140201da0
lock dec qword [rcx]
jne 0x140201da0
call fcn.1402021c0
nop word cs:[rax + rax]
mov rdi, qword [r13]
test rdi, rdi
jne 0x140201dc2
xor ecx, ecx
call fcn.140201690
mov rdi, rax
cmp qword [r13], 0
jne 0x140201ee3
mov qword [r13], rdi
lock inc qword [rdi]
jle 0x140201ece
mov rax, r12
add rax, 0xfffffffffffffffe
mov qword [rsp + 0x28], rdi
mov byte [rsp + 0x38], 0
mov qword [rsp + 0x30], rax
mov rax, r12
lock cmpxchg qword [rsi], rbx
je 0x140201e55
mov r12, rax
mov rax, qword [rsp + 0x28]
test rax, rax
je 0x140201c90
lock dec qword [rax]
jne 0x140201c90
mov rcx, qword [rsp + 0x28]
call fcn.1402021c0
jmp 0x140201c90
mov rcx, r15
call fcn.140202220
mov ecx, eax
jmp 0x140201caf
mov rcx, r15
call fcn.140202220
mov ecx, eax
jmp 0x140201ce0
mov rcx, r15
call fcn.140202220
mov ecx, eax
jmp 0x140201d5f
call fcn.1402023a0
movzx eax, byte [rsp + 0x38]
test al, al
je 0x140201e50
mov rax, qword [rsp + 0x28]
test rax, rax
je 0x140201e80
lock dec qword [rax]
jne 0x140201e80
mov rcx, qword [rsp + 0x28]
call fcn.1402021c0
nop dword [rax + rax]
mov rax, qword [rsi]
jmp 0x140201c67
cmp r12, 1
mov qword [rsp + 0x40], 3
sete byte [rsp + 0x48]
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x70]
mov rax, qword [rsp + 0x78]
call qword [rax + 0x20]
mov rdx, qword [rsp + 0x40]
mov rcx, rsi
call fcn.140201ff0
nop
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
ud2
mov ecx, 8
mov edx, 0x18
call fcn.140004360
ud2
mov qword [rsp + 0x80], rdi
lea rax, str.P_n0_
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 1
lea rax, str._at_line__column
mov qword [rsp + 0x50], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
lea rdx, str.p_n0_
lea rcx, [rsp + 0x40]
call fcn.14003d630
ud2
lea rcx, [0x140301430]
lea r8, [0x140301490]
mov edx, 0x5e
call fcn.140044220
ud2
lea rax, str._80_
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 1
lea rax, str._at_line__column
mov qword [rsp + 0x50], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
lea rcx, [rsp + 0x40]
mov rdx, qword [rsp + 0xf0]
call fcn.14003d630
ud2
lea rcx, str.assertion_failed:_state_and_queue.addr____STATE_MASK__RUNNINGlibrary_std_src_sys_commononcequeue.rs
mov edx, 0x40
mov r8, qword [rsp + 0xf0]
call fcn.14003e7d0
ud2