Function at 0x14000dae0
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, 0x98
mov ebp, dword [rsp + 0x108]
mov rax, qword [0x14016c028]
xor rax, rsp
mov qword [rsp + 0x90], rax
cmp byte [r8], 0
je 0x14000db4d
mov r15, r9
mov rdi, r8
mov ebx, edx
mov rsi, rcx
mov ecx, dword [0x14016f428]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14000db75
movsxd rcx, dword [rsi + 0x308]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [rsi + 0x30c]
jne 0x14000db75
cmp qword [rax + rcx], 0
je 0x14000db75
xor esi, esi
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.14010e4a0
mov eax, esi
add rsp, 0x98
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, ebp
jne 0x14000dbfa
call fcn.14000ad10
mov rcx, rax
call fcn.14001c000
mov r14, rax
mov eax, dword [0x140173f20]
mov ecx, dword [0x14016f824]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14000de12
mov rbp, qword [0x140173f18]
mov ecx, dword [0x14016f428]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14000ddf4
movsxd rcx, dword [rbp]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [rbp + 4]
jne 0x14000ddf4
mov rax, qword [rax + rcx]
test r14, r14
je 0x14000dbfa
cmp r14, rax
je 0x14000dbfa
cmp byte [r14], 0
jne 0x14000dc2d
mov sil, 1
test byte [rdi], 8
je 0x14000db4f
mov rax, qword [rsp + 0x110]
mov r9, qword [rsp + 0x100]
mov qword [rsp + 0x20], rax
mov ecx, ebx
mov rdx, rdi
mov r8, r15
call fcn.1400ae3a0
jmp 0x14000db4f
mov rbp, qword [0x140173f18]
mov ecx, dword [0x14016f428]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14000de08
movsxd rcx, dword [rbp]
shl rcx, 4
mov qword [rax + rcx], r14
mov ecx, dword [rbp + 4]
movsxd rdx, dword [rbp]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
lea rbp, [rsi + 0x10]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x14000ddfb
add rsi, 0x108
lea r12, [rsp + 0x60]
lea r13, [rsp + 0x108]
mov rcx, rsi
mov rdx, r12
mov r8, r13
call fcn.140101c20
mov rax, qword [r12]
test rax, rax
je 0x14000dd95
mov qword [rsp + 0x38], rbp
movabs rcx, 0xaaaaaaaaaaaaaaaa
lea rbp, [rsp + 0x60]
mov qword [rbp + 0x10], rcx
movaps xmm0, xmmword [0x140146a10]
movaps xmmword [rbp], xmm0
lea rcx, [0x140149da4]
lea r8, [rsp + 0x50]
mov qword [r8], rcx
mov qword [r8 + 8], 1
lea rdx, [rax + 0x18]
movzx ecx, byte [rax + 0x2f]
test cl, cl
mov rsi, qword [rax + 0x18]
mov qword [rsp + 0x30], rdx
cmovns rsi, rdx
lea rdx, [rsp + 0x40]
mov qword [rdx], rsi
cmovs rcx, qword [rax + 0x20]
mov qword [rdx + 8], rcx
mov dword [rsp + 0x20], 1
mov rcx, rbp
xor r9d, r9d
call fcn.140049fb0
mov r13, qword [rbp]
mov r12, qword [rbp + 8]
cmp r13, r12
je 0x14000dd6a
mov rcx, r14
call fcn.140124b10
mov rbp, rax
mov rsi, r13
cmp qword [rsi + 8], rbp
jne 0x14000dd55
mov rcx, qword [rsi]
mov rdx, r14
mov r8, rbp
call fcn.1401106e0
test eax, eax
je 0x14000ddea
add rsi, 0x10
cmp r12, rsi
jne 0x14000dd39
mov rcx, qword [rsp + 0x30]
mov dl, 0x2c
call fcn.1400027ec
mov rcx, qword [rsp + 0x30]
mov rdx, r14
call fcn.1400208cc
mov r13, qword [rsp + 0x60]
test r13, r13
je 0x14000dd8e
mov qword [rsp + 0x68], r13
mov rcx, r13
call fcn.14010b880
mov rbp, qword [rsp + 0x38]
jmp 0x14000dddc
lea rax, [rsp + 0x80]
mov qword [rax], r13
lea rcx, [rsp + 0x88]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea r9, [0x140151469]
lea r12, [rsp + 0x60]
mov rcx, rsi
mov rdx, r12
mov r8, r13
call fcn.1400522e8
mov rcx, qword [r12]
add rcx, 0x18
mov rdx, r14
call fcn.1400016dc
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
jmp 0x14000dbfa
cmp r12, rsi
jne 0x14000dd7c
jmp 0x14000dd5e
xor eax, eax
jmp 0x14000dbea
mov rcx, rbp
call fcn.1400067c0
jmp 0x14000dc7a
call fcn.14000bf20
jmp 0x14000dc4a
lea rcx, [0x140173f20]
call fcn.14010bdd8
cmp dword [0x140173f20], 0xffffffff
jne 0x14000dbb4
mov ecx, 8
call fcn.14010b888
mov rbp, rax
mov eax, 0xffffffff
mov qword [rbp], rax
mov rcx, rbp
xor edx, edx
call fcn.14001c0c0
mov qword [0x140173f18], rbp
lea rcx, [0x140173f20]
call fcn.14010ba50
jmp 0x14000dbb4