Function at 0x140105f70
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov rbx, r8
mov r14, rdx
mov rdi, rcx
mov rax, qword [0x140287028]
xor rax, rsp
mov qword [rsp + 0x40], rax
lea rsi, [rcx + 0x18]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x14010657d
mov r12, qword [rdi + 0x50]
mov rax, qword [rdi + 0x58]
mov r8, rax
mov r9, rax
mov rdx, rax
sub r8, r12
je 0x14010600f
sar r8, 4
mov rcx, r12
mov rdx, r8
shr rdx, 1
mov r9, rdx
shl r9, 4
cmp qword [rcx + r9], r14
jae 0x140105fea
not rdx
add rdx, r8
add rcx, r9
add rcx, 0x10
mov r8, rdx
test rdx, rdx
jne 0x140105fcd
mov r9, rax
mov rdx, rax
cmp rcx, rax
je 0x14010600f
xor edx, edx
cmp qword [rcx], r14
setbe dl
shl rdx, 4
add rdx, rcx
mov r9, rcx
mov r13, rax
cmp r9, rdx
je 0x14010601a
mov r13, r9
cmp r13, rax
je 0x1401063db
sub r13, r12
sar r13, 4
shl r13, 4
mov r15, qword [r12 + r13 + 8]
movzx ebp, byte [rdi + 0x20]
mov r14, qword [0x1402983b8]
cmp r14, 1
jbe 0x14010658a
mov ecx, dword [0x140288f70]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x1401065fe
mov rcx, qword [r14]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [r14 + 8]
jne 0x1401065fe
mov rcx, qword [rax + rcx]
add r12, r13
add r12, 8
mov eax, dword [r15 + 0x20]
mov edx, dword [r15 + 0x24]
mov r8d, dword [rbx]
and r8d, eax
je 0x140106093
cmp edx, 1
je 0x1401060d9
cmp r8d, eax
je 0x14010609c
test edx, edx
je 0x1401060d9
cmp edx, 1
jne 0x1401065d1
xor edx, edx
and eax, dword [rbx + 4]
setne dl
lea r13d, [rdx*8 + 9]
test bpl, bpl
je 0x140106169
test eax, eax
jne 0x140106169
cmp dword [r15 + 0x28], 9
je 0x1401066ca
mov r13d, 9
jmp 0x1401060f2
xor eax, eax
test bpl, bpl
je 0x1401066cf
cmp dword [r15 + 0x28], 0
je 0x1401066cf
xor r13d, r13d
test r15, r15
je 0x1401060fb
lock inc dword [r15]
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x30], r13d
mov rax, qword [rbx]
mov qword [rsp + 0x34], rax
mov rax, qword [rcx + 0xe0]
cmp rax, qword [rcx + 0xe8]
jae 0x140106567
test rax, rax
je 0x140106672
lea rdx, [rsp + 0x30]
mov qword [rax], r15
test r15, r15
je 0x14010613b
lock inc dword [r15]
mov r8d, dword [rdx + 8]
mov dword [rax + 0x10], r8d
mov rdx, qword [rdx]
mov qword [rax + 8], rdx
add rax, 0x18
mov qword [rcx + 0xe0], rax
mov r14, qword [rsp + 0x28]
test r14, r14
je 0x140106169
lock dec dword [r14]
je 0x14010665d
mov rax, qword [rbx]
mov qword [r15 + 0x2c], rax
mov dword [r15 + 0x28], r13d
lea rbx, [rdi + 0x68]
mov r15, qword [r12]
lea r14, [rdi + 0x70]
mov rax, qword [rdi + 0x70]
cmp r13d, 9
je 0x140106193
test r13d, r13d
jne 0x1401062ab
mov r13, r14
mov r12, r14
test rax, rax
jne 0x140106703
mov ecx, 0x28
call fcn.140172a4c
mov qword [rax + 0x20], r15
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], r12
mov qword [r13], rax
mov rcx, qword [rbx]
mov rcx, qword [rcx]
test rcx, rcx
je 0x1401061d0
mov qword [rbx], rcx
mov rax, qword [r13]
mov r8, qword [r14]
test r8, r8
je 0x140106605
test rax, rax
je 0x140106631
cmp rax, r8
sete byte [rax + 0x18]
je 0x1401063d3
mov r9b, 1
mov rdx, qword [rax + 0x10]
cmp byte [rdx + 0x18], 0
jne 0x1401063d3
mov rcx, qword [rdx + 0x10]
mov r10, qword [rcx]
cmp r10, rdx
je 0x14010623f
test r10, r10
je 0x140106378
cmp byte [r10 + 0x18], 0
jne 0x140106378
add r10, 0x18
mov byte [rdx + 0x18], r9b
mov rax, rcx
cmp rcx, r8
sete byte [rcx + 0x18]
mov byte [r10], r9b
jne 0x1401061f5
jmp 0x1401063d3
mov r10, qword [rcx + 8]
test r10, r10
je 0x14010624f
cmp byte [r10 + 0x18], 0
je 0x140106223
cmp qword [rdx], rax
jne 0x14010646e
mov rax, rdx
mov byte [rax + 0x18], 1
mov byte [rcx + 0x18], 0
test rcx, rcx
je 0x140106ad7
mov rax, qword [rcx]
test rax, rax
je 0x140106b03
mov rdx, qword [rax + 8]
mov qword [rcx], rdx
test rdx, rdx
jne 0x1401064be
mov rdx, qword [rcx + 0x10]
mov qword [rax + 0x10], rdx
mov rdx, qword [rcx + 0x10]
xor r8d, r8d
cmp qword [rdx], rcx
setne r8b
mov qword [rdx + r8*8], rax
mov qword [rax + 8], rcx
jmp 0x1401063cf
test rax, rax
je 0x1401063db
mov rdx, rax
mov rcx, r14
lea r8, [rdx + 8]
cmp qword [rdx + 0x20], r15
cmovae r8, rdx
cmovae rcx, rdx
mov rdx, qword [r8]
test rdx, rdx
jne 0x1401062ba
cmp rcx, r14
je 0x1401063db
cmp r15, qword [rcx + 0x20]
jb 0x1401063db
test rcx, rcx
je 0x14010669e
mov r8, qword [rcx + 8]
test r8, r8
jne 0x140106556
mov r8, rcx
mov rdx, qword [r8 + 0x10]
cmp qword [rdx], r8
mov r8, rdx
jne 0x1401062fe
cmp qword [rbx], rcx
jne 0x140106312
mov qword [rbx], rdx
dec qword [rdi + 0x78]
mov r8, qword [rcx]
mov r9, rcx
test r8, r8
jne 0x1401064d4
mov r8, qword [r9 + 8]
test r8, r8
jne 0x1401064e0
mov r10b, 1
xor r8d, r8d
mov rdx, qword [r9 + 0x10]
cmp qword [rdx], r9
jne 0x1401064f0
mov qword [rdx], r8
cmp r9, rax
jne 0x140106415
xor edx, edx
mov rax, r8
mov r11b, byte [r9 + 0x18]
cmp r9, rcx
jne 0x14010650e
test r11b, r11b
je 0x140106371
test rax, rax
jne 0x140106402
call fcn.140172a44
jmp 0x1401063db
cmp qword [rdx], rax
je 0x140106425
mov rax, rdx
mov byte [rax + 0x18], 1
mov byte [rcx + 0x18], 0
test rcx, rcx
je 0x140106a7f
mov rax, qword [rcx + 8]
test rax, rax
je 0x140106aab
mov rdx, qword [rax]
mov qword [rcx + 8], rdx
test rdx, rdx
je 0x1401063b2
mov qword [rdx + 0x10], rcx
mov rdx, qword [rcx + 0x10]
mov qword [rax + 0x10], rdx
mov rdx, qword [rcx + 0x10]
xor r8d, r8d
cmp qword [rdx], rcx
setne r8b
mov qword [rdx + r8*8], rax
mov qword [rax], rcx
mov qword [rcx + 0x10], rax
inc qword [rdi + 0x78]
mov byte [rdi + 0x20], 0
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1401756e0
mov rcx, rsi
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
test r10b, r10b
jne 0x140106734
mov byte [r8 + 0x18], 1
jmp 0x140106371
mov rdx, qword [r9 + 0x10]
add rdx, 8
mov rdx, qword [rdx]
jmp 0x140106356
test rdx, rdx
je 0x140106ad7
test rax, rax
je 0x140106b03
mov r8, qword [rax + 8]
mov qword [rdx], r8
test r8, r8
jne 0x1401064c7
mov qword [rax + 0x10], rcx
mov rcx, qword [rdx + 0x10]
xor r8d, r8d
cmp qword [rcx], rdx
setne r8b
mov qword [rcx + r8*8], rax
mov qword [rax + 8], rdx
mov qword [rdx + 0x10], rax
mov rcx, qword [rax + 0x10]
jmp 0x140106384
test rdx, rdx
je 0x140106a7f
mov rax, qword [rdx + 8]
test rax, rax
je 0x140106aab
mov r8, qword [rax]
mov qword [rdx + 8], r8
test r8, r8
je 0x140106498
mov qword [r8 + 0x10], rdx
mov rcx, qword [rdx + 0x10]
mov qword [rax + 0x10], rcx
mov rcx, qword [rdx + 0x10]
xor r8d, r8d
cmp qword [rcx], rdx
setne r8b
mov qword [rcx + r8*8], rax
mov qword [rax], rdx
mov qword [rdx + 0x10], rax
mov rcx, qword [rax + 0x10]
jmp 0x14010625b
mov qword [rdx + 0x10], rcx
jmp 0x140106288
mov qword [r8 + 0x10], rdx
mov rcx, qword [rdx + 0x10]
jmp 0x140106447
mov rdx, qword [rcx + 8]
mov r9, rcx
test rdx, rdx
jne 0x1401064fd
mov rdx, qword [r9 + 0x10]
mov qword [r8 + 0x10], rdx
xor r10d, r10d
jmp 0x140106338
mov qword [rdx + 8], r8
mov rdx, qword [r9 + 0x10]
jmp 0x14010641d
mov r9, rdx
mov rdx, qword [rdx]
test rdx, rdx
je 0x140106325
jmp 0x1401064fd
mov rdi, qword [rcx + 0x10]
mov qword [r9 + 0x10], rdi
mov rbx, qword [rcx + 0x10]
xor r14d, r14d
cmp qword [rbx], rcx
setne r14b
mov qword [rdi + r14*8], r9
mov rdi, qword [rcx]
mov qword [r9], rdi
mov qword [rdi + 0x10], r9
mov rdi, qword [rcx + 8]
mov qword [r9 + 8], rdi
test rdi, rdi
je 0x140106543
mov qword [rdi + 0x10], r9
mov bl, byte [rcx + 0x18]
mov byte [r9 + 0x18], bl
cmp rax, rcx
cmove rax, r9
jmp 0x140106363
mov rdx, r8
mov r8, qword [r8]
test r8, r8
je 0x14010630a
jmp 0x140106556
add rcx, 0xd8
lea rdx, [rsp + 0x28]
call fcn.14004e880
jmp 0x140106155
mov rcx, rsi
call fcn.1400ec2e0
jmp 0x140105fad
lea rcx, [0x1402983b8]
call fcn.140007880
test al, al
je 0x1401066ef
mov qword [0x1402983c8], 0
lea r14, [0x1402983c0]
mov qword [0x1402983c0], 0xffffffffffffffff
mov rcx, r14
xor edx, edx
call fcn.140002400
mov qword [0x1402983b8], r14
jmp 0x140106048
mov rax, qword [rbx]
mov qword [r15 + 0x2c], rax
mov dword [r15 + 0x28], 0x11
mov rax, qword [rdi + 0x70]
test rax, rax
je 0x1401063db
lea rbx, [rdi + 0x68]
mov r15, qword [r12]
lea r14, [rdi + 0x70]
jmp 0x1401062b4
xor ecx, ecx
jmp 0x140106077
lea rax, str.Root_of_the_tree_shouldnt_be_null
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude__tree
lea r9, str.__root___nullptr
mov r8d, 0x126
call fcn.1401b2820
lea rax, str.Cant_attach_null_node_to_a_leaf
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude__tree
lea r9, str.__x___nullptr
mov r8d, 0x127
call fcn.1401b2820
mov rcx, r14
call fcn.14011ef20
mov rcx, r14
call fcn.140172a44
jmp 0x140106169
lea rax, str.null_pointer_given_to_construct_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude__memoryconstruct_at.h
lea r9, str.__location___nullptr
mov r8d, 0x23
call fcn.1401b2820
lea rax, str.node_shouldnt_be_null
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude__tree
lea r9, str.__x___nullptr
mov r8d, 0xc2
call fcn.1401b2820
mov eax, 9
mov rcx, qword [rbx]
mov qword [r15 + 0x2c], rcx
mov dword [r15 + 0x28], eax
lea rbx, [rdi + 0x68]
mov r15, qword [r12]
lea r14, [rdi + 0x70]
mov rax, qword [rdi + 0x70]
jmp 0x140106193
mov r14, qword [0x1402983b8]
jmp 0x140106048
jbe 0x1401063d7
jmp 0x140106720
mov r12, rax
mov rax, qword [rax + 0x20]
cmp r15, rax
jae 0x1401066fb
mov rax, qword [r12]
test rax, rax
jne 0x140106703
mov r13, r12
jmp 0x1401061a2
mov rax, qword [r12 + 8]
test rax, rax
jne 0x140106703
lea r13, [r12 + 8]
jmp 0x1401061a2
mov r8, qword [rdx + 0x10]
mov r9b, byte [rdx + 0x18]
cmp qword [r8], rdx
je 0x1401068e8
test r9b, r9b
je 0x14010679e
mov r8, qword [rdx]
test r8, r8
jne 0x140106795
mov r8, qword [rdx + 8]
test r8, r8
je 0x140106766
cmp byte [r8 + 0x18], 0
je 0x140106814
mov byte [rdx + 0x18], 0
mov rdx, qword [rdx + 0x10]
cmp rdx, rax
je 0x1401068dc
cmp byte [rdx + 0x18], 0
je 0x1401068df
mov r8, qword [rdx + 0x10]
xor r9d, r9d
cmp qword [r8], rdx
sete r9b
mov rdx, qword [r8 + r9*8]
jmp 0x140106734
cmp byte [r8 + 0x18], 0
jne 0x140106752
jmp 0x140106805
mov byte [rdx + 0x18], 1
mov byte [r8 + 0x18], 0
mov r8, qword [rdx + 0x10]
test r8, r8
je 0x140106a7f
mov r9, qword [r8 + 8]
test r9, r9
je 0x140106aab
mov r10, qword [r9]
mov qword [r8 + 8], r10
test r10, r10
jne 0x1401068d3
mov r10, qword [r8 + 0x10]
mov qword [r9 + 0x10], r10
mov r10, qword [r8 + 0x10]
xor r11d, r11d
cmp qword [r10], r8
setne r11b
mov qword [r10 + r11*8], r9
mov qword [r9], r8
mov qword [r8 + 0x10], r9
mov r8, qword [rdx]
cmp rax, r8
cmove rax, rdx
mov rdx, qword [r8 + 8]
jmp 0x14010674a
mov rax, qword [rdx + 8]
test rax, rax
je 0x140106882
cmp byte [rax + 0x18], 0
jne 0x140106882
mov rax, rdx
mov rdx, qword [rax + 0x10]
mov r8b, byte [rdx + 0x18]
mov byte [rax + 0x18], r8b
mov r8b, 1
mov byte [rdx + 0x18], r8b
mov rdx, qword [rax + 8]
mov byte [rdx + 0x18], r8b
mov rax, qword [rax + 0x10]
test rax, rax
je 0x140106a7f
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x140106aab
mov r8, qword [rdx]
mov qword [rax + 8], r8
test r8, r8
je 0x14010685c
mov qword [r8 + 0x10], rax
mov r8, qword [rax + 0x10]
mov qword [rdx + 0x10], r8
mov r8, qword [rax + 0x10]
xor r9d, r9d
cmp qword [r8], rax
setne r9b
mov qword [r8 + r9*8], rdx
mov qword [rdx], rax
mov qword [rax + 0x10], rdx
jmp 0x140106371
mov byte [r8 + 0x18], 1
mov byte [rdx + 0x18], 0
test rdx, rdx
je 0x140106ad7
mov rax, qword [rdx]
test rax, rax
je 0x140106b03
mov r8, qword [rax + 8]
mov qword [rdx], r8
test r8, r8
jne 0x14010691e
mov r8, qword [rdx + 0x10]
mov qword [rax + 0x10], r8
mov r8, qword [rdx + 0x10]
xor r9d, r9d
cmp qword [r8], rdx
setne r9b
mov qword [r8 + r9*8], rax
mov qword [rax + 8], rdx
mov qword [rdx + 0x10], rax
jmp 0x140106817
mov qword [r10 + 0x10], r8
jmp 0x1401067d1
mov rdx, rax
mov byte [rdx + 0x18], 1
jmp 0x140106371
test r9b, r9b
je 0x1401069fd
mov r8, qword [rdx]
test r8, r8
jne 0x140106924
mov r9, qword [rdx + 8]
test r9, r9
jne 0x140106994
mov byte [rdx + 0x18], 0
mov rdx, qword [rdx + 0x10]
cmp byte [rdx + 0x18], 0
je 0x1401068df
cmp rdx, rax
je 0x1401068df
jmp 0x140106781
mov qword [r8 + 0x10], rdx
jmp 0x1401068ac
cmp byte [r8 + 0x18], 0
jne 0x1401068f9
mov rax, rdx
mov rdx, qword [rax + 0x10]
mov r8b, byte [rdx + 0x18]
mov byte [rax + 0x18], r8b
mov r8b, 1
mov byte [rdx + 0x18], r8b
mov rdx, qword [rax]
mov byte [rdx + 0x18], r8b
mov rax, qword [rax + 0x10]
test rax, rax
je 0x140106ad7
mov rdx, qword [rax]
test rdx, rdx
je 0x140106b03
mov r8, qword [rdx + 8]
mov qword [rax], r8
test r8, r8
jne 0x140106a60
mov r8, qword [rax + 0x10]
mov qword [rdx + 0x10], r8
mov r8, qword [rax + 0x10]
xor r9d, r9d
cmp qword [r8], rax
setne r9b
mov qword [r8 + r9*8], rdx
mov qword [rdx + 8], rax
jmp 0x140106879
cmp byte [r9 + 0x18], 0
jne 0x140106906
test r8, r8
jne 0x140106a6f
mov byte [r9 + 0x18], 1
mov byte [rdx + 0x18], 0
test rdx, rdx
je 0x140106a7f
mov rax, qword [rdx + 8]
test rax, rax
je 0x140106aab
mov r8, qword [rax]
mov qword [rdx + 8], r8
test r8, r8
je 0x1401069d7
mov qword [r8 + 0x10], rdx
mov r8, qword [rdx + 0x10]
mov qword [rax + 0x10], r8
mov r8, qword [rdx + 0x10]
xor r9d, r9d
cmp qword [r8], rdx
setne r9b
mov qword [r8 + r9*8], rax
mov qword [rax], rdx
mov qword [rdx + 0x10], rax
jmp 0x14010692e
mov byte [rdx + 0x18], 1
mov byte [r8 + 0x18], 0
mov r8, qword [rdx + 0x10]
test r8, r8
je 0x140106ad7
mov r9, qword [r8]
test r9, r9
je 0x140106b03
mov r10, qword [r9 + 8]
mov qword [r8], r10
test r10, r10
jne 0x140106a69
mov r10, qword [r8 + 0x10]
mov qword [r9 + 0x10], r10
mov r10, qword [r8 + 0x10]
xor r11d, r11d
cmp qword [r10], r8
setne r11b
mov qword [r10 + r11*8], r9
mov qword [r9 + 8], r8
mov qword [r8 + 0x10], r9
mov r8, qword [rdx + 8]
cmp rax, r8
cmove rax, rdx
mov rdx, qword [r8]
jmp 0x1401068f1
mov qword [r8 + 0x10], rax
jmp 0x140106971
mov qword [r10 + 0x10], r8
jmp 0x140106a2b
cmp byte [r8 + 0x18], 0
jne 0x1401069a8
jmp 0x14010692b
lea rax, str.node_shouldnt_be_null
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude__tree
lea r9, str.__x___nullptr
mov r8d, 0xf7
call fcn.1401b2820
lea rax, str.node_should_have_a_right_child
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude__tree
lea r9, str.__x____right____nullptr
mov r8d, 0xf8
call fcn.1401b2820
lea rax, str.node_shouldnt_be_null
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude__tree
lea r9, str.__x___nullptr
mov r8d, 0x10c
call fcn.1401b2820
lea rax, str.node_should_have_a_left_child
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude__tree
lea r9, str.__x____left____nullptr
mov r8d, 0x10d
call fcn.1401b2820
int3