Function at 0x14002dd88
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x380
mov rax, qword [0x140050318]
xor rax, rsp
mov qword [rsp + 0x370], rax
movsxd rdi, ecx
mov ecx, dword [0x1400b3604]
mov ebp, r9d
mov r12, r8
mov r15d, edx
cmp ecx, 0xffffffff
je 0x14002e076
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
xor esi, esi
mov qword [rsp + 0x58], rax
cmp rax, rsi
je 0x14002e076
cmp dword [rax], esi
jne 0x14002e076
mov dword [rax], 1
cmp edi, 0x63
ja 0x14002e074
mov rdi, qword [rax + rdi*8 + 8]
cmp rdi, rsi
je 0x14002e074
lea rcx, [rsp + 0x162]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x160], si
call fcn.140008ebc
mov r14d, esi
mov esi, 3
mov r13d, ebp
and r13d, esi
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [rdi + 0x14]
mov dword [rsp + 0x50], eax
lea rdx, [rdi + 0x18]
cmp ecx, dword [rdx]
cmovl ecx, dword [rdx]
add rdx, 4
sub rsi, 1
jne 0x14002de43
cmp ecx, dword [rdi + 0x28]
jg 0x14002de96
mov eax, dword [rdi + 0x60]
cmp dword [rdi + 0x64], eax
jge 0x14002de96
test byte [rdi + 8], 1
jne 0x14002de96
bt dword [rdi + 8], 0xa
jb 0x14002de96
test bpl, 0x10
jne 0x14002de96
xor ebp, ebp
cmp dword [0x1400c0b28], ebp
je 0x14002de98
lea r8, [rsp + 0x60]
lea edx, [rsi + 0x20]
lea ecx, [rsi + 1]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_RtlCaptureStackBackTrace]
movzx r14d, ax
jmp 0x14002de98
xor ebp, ebp
mov ebx, dword [rsp + 0x50]
mov rsi, rdi
mov qword [rsp + 0x38], r12
lea rax, [rsp + 0x60]
mov dword [rsp + 0x30], r14d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x160]
mov r9d, ebx
mov r8d, r15d
mov edx, r13d
mov rcx, rsi
mov qword [rsp + 0x20], rax
call fcn.14002dc9c
test byte [rsi + 8], 2
jne 0x14002dedf
mov rsi, qword [rsi]
cmp rsi, rbp
jne 0x14002de9f
mov rbx, qword [rsp + 0x58]
cmp r13d, ebp
jne 0x14002df12
cmp dword [0x1400b79d4], ebp
je 0x14002df12
mov al, byte [0x1400b79d8]
cmp byte [0x1400b7991], bpl
je 0x14002df2e
cmp al, 4
jae 0x14002df09
cmp al, bpl
jne 0x14002df12
test byte [0x1400b79d0], 2
jne 0x14002df5c
mov esi, dword [rsp + 0x50]
cmp dword [rdi + 0x10], 0xffffffff
je 0x14002e070
movsxd rax, dword [rdi + 0x10]
mov rdi, qword [rbx + rax*8 + 8]
jmp 0x14002e06b
cmp al, 4
jae 0x14002df37
cmp al, bpl
jne 0x14002df12
movabs rdx, 0x8000000000000002
test qword [0x1400b79c0], rdx
je 0x14002df12
mov rcx, qword [0x1400b79c8]
mov rax, rcx
and rax, rdx
cmp rax, rcx
jne 0x14002df12
mov eax, dword [rdi + 0xc]
mov esi, dword [rsp + 0x50]
mov r9d, dword [rdi + 0x48]
mov rcx, qword [0x1400b79a8]
mov qword [rsp + 0x40], r12
mov dword [rsp + 0x38], esi
mov dword [rsp + 0x30], r15d
mov dword [rsp + 0x28], eax
mov eax, dword [rdi + 0x4c]
lea r8, [0x140050870]
lea rdx, [0x1400508a0]
mov dword [rsp + 0x20], eax
call fcn.14002d8d0
mov al, byte [0x1400b79d8]
cmp byte [0x1400b7991], bpl
je 0x14002dfc4
cmp al, 4
jae 0x14002dfb6
cmp al, bpl
jne 0x14002df16
test byte [0x1400b79d0], 1
jne 0x14002dffe
jmp 0x14002df16
cmp al, 4
jae 0x14002dfd1
cmp al, bpl
jne 0x14002df16
movabs r8, 0x8000000000000001
test qword [0x1400b79c0], r8
je 0x14002df16
mov rcx, qword [0x1400b79c8]
mov rax, rcx
and rax, r8
cmp rax, rcx
jne 0x14002df16
mov rcx, qword [0x1400b79a8]
lea rax, [0x140050860]
lea r9, [0x140050890]
lea r8, [0x140050880]
lea rdx, [0x1400508a0]
mov qword [rsp + 0x20], rax
call fcn.14000afa4
jmp 0x14002df16
mov qword [rsp + 0x38], rbp
lea rax, [rsp + 0x60]
mov dword [rsp + 0x30], r14d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x160]
mov r9d, esi
mov r8d, r15d
mov edx, r13d
mov rcx, rdi
mov qword [rsp + 0x20], rax
call fcn.14002dc9c
test byte [rdi + 8], 2
jne 0x14002e070
mov rdi, qword [rdi]
cmp rdi, rbp
jne 0x14002e030
mov dword [rbx], ebp
jmp 0x14002e076
mov dword [rax], esi
mov rcx, qword [rsp + 0x370]
xor rcx, rsp
call fcn.140008a98
mov rbx, qword [rsp + 0x3c8]
add rsp, 0x380
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret