Function at 0x14010ad70
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 [0x14029a038]
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 0x14010b37d
mov r12, qword [rdi + 0x50]
mov rax, qword [rdi + 0x58]
mov r8, rax
mov r9, rax
mov rdx, rax
sub r8, r12
je 0x14010ae0f
sar r8, 4
mov rcx, r12
mov rdx, r8
shr rdx, 1
mov r9, rdx
shl r9, 4
cmp qword [rcx + r9], r14
jae 0x14010adea
not rdx
add rdx, r8
add rcx, r9
add rcx, 0x10
mov r8, rdx
test rdx, rdx
jne 0x14010adcd
mov r9, rax
mov rdx, rax
cmp rcx, rax
je 0x14010ae0f
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 0x14010ae1a
mov r13, r9
cmp r13, rax
je 0x14010b1db
sub r13, r12
sar r13, 4
shl r13, 4
mov r15, qword [r12 + r13 + 8]
movzx ebp, byte [rdi + 0x20]
mov r14, qword [0x14029f558]
cmp r14, 1
jbe 0x14010b38a
mov ecx, dword [0x14029bf80]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14010b3fe
mov rcx, qword [r14]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [r14 + 8]
jne 0x14010b3fe
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 0x14010ae93
cmp edx, 1
je 0x14010aed9
cmp r8d, eax
je 0x14010ae9c
test edx, edx
je 0x14010aed9
cmp edx, 1
jne 0x14010b3d1
xor edx, edx
and eax, dword [rbx + 4]
setne dl
lea r13d, [rdx*8 + 9]
test bpl, bpl
je 0x14010af69
test eax, eax
jne 0x14010af69
cmp dword [r15 + 0x28], 9
je 0x14010b4ca
mov r13d, 9
jmp 0x14010aef2
xor eax, eax
test bpl, bpl
je 0x14010b4cf
cmp dword [r15 + 0x28], 0
je 0x14010b4cf
xor r13d, r13d
test r15, r15
je 0x14010aefb
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 0x14010b367
test rax, rax
je 0x14010b472
lea rdx, [rsp + 0x30]
mov qword [rax], r15
test r15, r15
je 0x14010af3b
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 0x14010af69
lock dec dword [r14]
je 0x14010b45d
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 0x14010af93
test r13d, r13d
jne 0x14010b0ab
mov r13, r14
mov r12, r14
test rax, rax
jne 0x14010b503
mov ecx, 0x28
call fcn.14017b1d8
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 0x14010afd0
mov qword [rbx], rcx
mov rax, qword [r13]
mov r8, qword [r14]
test r8, r8
je 0x14010b405
test rax, rax
je 0x14010b431
cmp rax, r8
sete byte [rax + 0x18]
je 0x14010b1d3
mov r9b, 1
mov rdx, qword [rax + 0x10]
cmp byte [rdx + 0x18], 0
jne 0x14010b1d3
mov rcx, qword [rdx + 0x10]
mov r10, qword [rcx]
cmp r10, rdx
je 0x14010b03f
test r10, r10
je 0x14010b178
cmp byte [r10 + 0x18], 0
jne 0x14010b178
add r10, 0x18
mov byte [rdx + 0x18], r9b
mov rax, rcx
cmp rcx, r8
sete byte [rcx + 0x18]
mov byte [r10], r9b
jne 0x14010aff5
jmp 0x14010b1d3
mov r10, qword [rcx + 8]
test r10, r10
je 0x14010b04f
cmp byte [r10 + 0x18], 0
je 0x14010b023
cmp qword [rdx], rax
jne 0x14010b26e
mov rax, rdx
mov byte [rax + 0x18], 1
mov byte [rcx + 0x18], 0
test rcx, rcx
je 0x14010b8d7
mov rax, qword [rcx]
test rax, rax
je 0x14010b903
mov rdx, qword [rax + 8]
mov qword [rcx], rdx
test rdx, rdx
jne 0x14010b2be
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 0x14010b1cf
test rax, rax
je 0x14010b1db
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 0x14010b0ba
cmp rcx, r14
je 0x14010b1db
cmp r15, qword [rcx + 0x20]
jb 0x14010b1db
test rcx, rcx
je 0x14010b49e
mov r8, qword [rcx + 8]
test r8, r8
jne 0x14010b356
mov r8, rcx
mov rdx, qword [r8 + 0x10]
cmp qword [rdx], r8
mov r8, rdx
jne 0x14010b0fe
cmp qword [rbx], rcx
jne 0x14010b112
mov qword [rbx], rdx
dec qword [rdi + 0x78]
mov r8, qword [rcx]
mov r9, rcx
test r8, r8
jne 0x14010b2d4
mov r8, qword [r9 + 8]
test r8, r8
jne 0x14010b2e0
mov r10b, 1
xor r8d, r8d
mov rdx, qword [r9 + 0x10]
cmp qword [rdx], r9
jne 0x14010b2f0
mov qword [rdx], r8
cmp r9, rax
jne 0x14010b215
xor edx, edx
mov rax, r8
mov r11b, byte [r9 + 0x18]
cmp r9, rcx
jne 0x14010b30e
test r11b, r11b
je 0x14010b171
test rax, rax
jne 0x14010b202
call fcn.14017b254
jmp 0x14010b1db
cmp qword [rdx], rax
je 0x14010b225
mov rax, rdx
mov byte [rax + 0x18], 1
mov byte [rcx + 0x18], 0
test rcx, rcx
je 0x14010b87f
mov rax, qword [rcx + 8]
test rax, rax
je 0x14010b8ab
mov rdx, qword [rax]
mov qword [rcx + 8], rdx
test rdx, rdx
je 0x14010b1b2
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.14017e7b0
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 0x14010b534
mov byte [r8 + 0x18], 1
jmp 0x14010b171
mov rdx, qword [r9 + 0x10]
add rdx, 8
mov rdx, qword [rdx]
jmp 0x14010b156
test rdx, rdx
je 0x14010b8d7
test rax, rax
je 0x14010b903
mov r8, qword [rax + 8]
mov qword [rdx], r8
test r8, r8
jne 0x14010b2c7
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 0x14010b184
test rdx, rdx
je 0x14010b87f
mov rax, qword [rdx + 8]
test rax, rax
je 0x14010b8ab
mov r8, qword [rax]
mov qword [rdx + 8], r8
test r8, r8
je 0x14010b298
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 0x14010b05b
mov qword [rdx + 0x10], rcx
jmp 0x14010b088
mov qword [r8 + 0x10], rdx
mov rcx, qword [rdx + 0x10]
jmp 0x14010b247
mov rdx, qword [rcx + 8]
mov r9, rcx
test rdx, rdx
jne 0x14010b2fd
mov rdx, qword [r9 + 0x10]
mov qword [r8 + 0x10], rdx
xor r10d, r10d
jmp 0x14010b138
mov qword [rdx + 8], r8
mov rdx, qword [r9 + 0x10]
jmp 0x14010b21d
mov r9, rdx
mov rdx, qword [rdx]
test rdx, rdx
je 0x14010b125
jmp 0x14010b2fd
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 0x14010b343
mov qword [rdi + 0x10], r9
mov bl, byte [rcx + 0x18]
mov byte [r9 + 0x18], bl
cmp rax, rcx
cmove rax, r9
jmp 0x14010b163
mov rdx, r8
mov r8, qword [r8]
test r8, r8
je 0x14010b10a
jmp 0x14010b356
add rcx, 0xd8
lea rdx, [rsp + 0x28]
call fcn.1400482a0
jmp 0x14010af55
mov rcx, rsi
call fcn.1400fdfc0
jmp 0x14010adad
lea rcx, [0x14029f558]
call fcn.140008ab0
test al, al
je 0x14010b4ef
mov qword [0x14029f568], 0
lea r14, [0x14029f560]
mov qword [0x14029f560], 0xffffffffffffffff
mov rcx, r14
xor edx, edx
call fcn.140002850
mov qword [0x14029f558], r14
jmp 0x14010ae48
mov rax, qword [rbx]
mov qword [r15 + 0x2c], rax
mov dword [r15 + 0x28], 0x11
mov rax, qword [rdi + 0x70]
test rax, rax
je 0x14010b1db
lea rbx, [rdi + 0x68]
mov r15, qword [r12]
lea r14, [rdi + 0x70]
jmp 0x14010b0b4
xor ecx, ecx
jmp 0x14010ae77
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.1401bdbc0
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.1401bdbc0
mov rcx, r14
call fcn.140127500
mov rcx, r14
call fcn.14017b254
jmp 0x14010af69
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.1401bdbc0
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.1401bdbc0
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 0x14010af93
mov r14, qword [0x14029f558]
jmp 0x14010ae48
jbe 0x14010b1d7
jmp 0x14010b520
mov r12, rax
mov rax, qword [rax + 0x20]
cmp r15, rax
jae 0x14010b4fb
mov rax, qword [r12]
test rax, rax
jne 0x14010b503
mov r13, r12
jmp 0x14010afa2
mov rax, qword [r12 + 8]
test rax, rax
jne 0x14010b503
lea r13, [r12 + 8]
jmp 0x14010afa2
mov r8, qword [rdx + 0x10]
mov r9b, byte [rdx + 0x18]
cmp qword [r8], rdx
je 0x14010b6e8
test r9b, r9b
je 0x14010b59e
mov r8, qword [rdx]
test r8, r8
jne 0x14010b595
mov r8, qword [rdx + 8]
test r8, r8
je 0x14010b566
cmp byte [r8 + 0x18], 0
je 0x14010b614
mov byte [rdx + 0x18], 0
mov rdx, qword [rdx + 0x10]
cmp rdx, rax
je 0x14010b6dc
cmp byte [rdx + 0x18], 0
je 0x14010b6df
mov r8, qword [rdx + 0x10]
xor r9d, r9d
cmp qword [r8], rdx
sete r9b
mov rdx, qword [r8 + r9*8]
jmp 0x14010b534
cmp byte [r8 + 0x18], 0
jne 0x14010b552
jmp 0x14010b605
mov byte [rdx + 0x18], 1
mov byte [r8 + 0x18], 0
mov r8, qword [rdx + 0x10]
test r8, r8
je 0x14010b87f
mov r9, qword [r8 + 8]
test r9, r9
je 0x14010b8ab
mov r10, qword [r9]
mov qword [r8 + 8], r10
test r10, r10
jne 0x14010b6d3
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 0x14010b54a
mov rax, qword [rdx + 8]
test rax, rax
je 0x14010b682
cmp byte [rax + 0x18], 0
jne 0x14010b682
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 0x14010b87f
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x14010b8ab
mov r8, qword [rdx]
mov qword [rax + 8], r8
test r8, r8
je 0x14010b65c
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 0x14010b171
mov byte [r8 + 0x18], 1
mov byte [rdx + 0x18], 0
test rdx, rdx
je 0x14010b8d7
mov rax, qword [rdx]
test rax, rax
je 0x14010b903
mov r8, qword [rax + 8]
mov qword [rdx], r8
test r8, r8
jne 0x14010b71e
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 0x14010b617
mov qword [r10 + 0x10], r8
jmp 0x14010b5d1
mov rdx, rax
mov byte [rdx + 0x18], 1
jmp 0x14010b171
test r9b, r9b
je 0x14010b7fd
mov r8, qword [rdx]
test r8, r8
jne 0x14010b724
mov r9, qword [rdx + 8]
test r9, r9
jne 0x14010b794
mov byte [rdx + 0x18], 0
mov rdx, qword [rdx + 0x10]
cmp byte [rdx + 0x18], 0
je 0x14010b6df
cmp rdx, rax
je 0x14010b6df
jmp 0x14010b581
mov qword [r8 + 0x10], rdx
jmp 0x14010b6ac
cmp byte [r8 + 0x18], 0
jne 0x14010b6f9
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 0x14010b8d7
mov rdx, qword [rax]
test rdx, rdx
je 0x14010b903
mov r8, qword [rdx + 8]
mov qword [rax], r8
test r8, r8
jne 0x14010b860
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 0x14010b679
cmp byte [r9 + 0x18], 0
jne 0x14010b706
test r8, r8
jne 0x14010b86f
mov byte [r9 + 0x18], 1
mov byte [rdx + 0x18], 0
test rdx, rdx
je 0x14010b87f
mov rax, qword [rdx + 8]
test rax, rax
je 0x14010b8ab
mov r8, qword [rax]
mov qword [rdx + 8], r8
test r8, r8
je 0x14010b7d7
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 0x14010b72e
mov byte [rdx + 0x18], 1
mov byte [r8 + 0x18], 0
mov r8, qword [rdx + 0x10]
test r8, r8
je 0x14010b8d7
mov r9, qword [r8]
test r9, r9
je 0x14010b903
mov r10, qword [r9 + 8]
mov qword [r8], r10
test r10, r10
jne 0x14010b869
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 0x14010b6f1
mov qword [r8 + 0x10], rax
jmp 0x14010b771
mov qword [r10 + 0x10], r8
jmp 0x14010b82b
cmp byte [r8 + 0x18], 0
jne 0x14010b7a8
jmp 0x14010b72b
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.1401bdbc0
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.1401bdbc0
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.1401bdbc0
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.1401bdbc0
int3