Function at 0x1401a86f0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xa8
mov r14, rdx
mov rsi, rcx
mov rdi, qword [rcx + 0x18]
test rdi, rdi
jne 0x1401a8745
test dword [0x140254874], 0x80000000
je 0x1401a8739
mov ecx, dword [0x140273390]
call sub.KERNEL32.dll_TlsGetValue
mov rdi, rax
test rax, rax
jne 0x1401a8741
call fcn.1401a33a4
mov rdi, rax
mov qword [rsi + 0x18], rdi
mov qword [rsp + 0xf8], rdi
lea r15, [rdi + 0x60]
mov qword [rsp + 0x30], r15
mov rax, qword [r15]
mov qword [rsi], rax
test rax, rax
je 0x1401a876c
mov eax, dword [rax + 8]
shl eax, 4
sar eax, 4
inc eax
xor eax, dword [rsi + 8]
and eax, 0xfffffff
xor dword [rsi + 8], eax
mov qword [r15], rsi
and qword [rsp + 0x38], 0
xor r13d, r13d
mov qword [rsp + 0x20], r13
lea r12, [rsi + 0x10]
mov qword [rsp + 0x28], r12
cmp qword [r12], r13
je 0x1401a87c4
lea rdx, [rsp + 0x38]
mov rcx, rsi
call fcn.1401b5a34
mov r13, rax
mov qword [rsp + 0x20], rax
mov r8d, dword [rsi + 8]
shl r8d, 4
sar r8d, 4
mov rdx, rax
mov rcx, rdi
call fcn.1401aa030
nop
test r14, r14
je 0x1401a880d
test byte [rsi + 0x28], 3
jne 0x1401a899e
mov ecx, dword [rdi + 0xc4]
mov eax, dword [rdi + 0xbc]
add ecx, eax
test ecx, ecx
jle 0x1401a87fb
xor r8d, r8d
mov rdx, rsi
mov rcx, rdi
call fcn.1401a9cb4
test al, al
jne 0x1401a899e
mov rcx, r14
mov rax, qword [r14 + 8]
call qword [case.0x1401a385a.0]
and qword [r14 + 0x10], 0
mov eax, dword [rsi + 0x20]
mov dword [rsp + 0xf0], eax
test eax, eax
jle 0x1401a88bb
mov rcx, rdi
call fcn.1401a9eb4
mov r14, rax
mov qword [rsp + 0xe8], rax
test byte [rsi + 0x28], 3
jne 0x1401a89b9
mov ecx, dword [rdi + 0xc4]
mov eax, dword [rdi + 0xbc]
add ecx, eax
test ecx, ecx
jle 0x1401a8864
xor r8d, r8d
mov rdx, rsi
mov rcx, rdi
call fcn.1401a9cb4
test al, al
jne 0x1401a89b9
test r14, r14
je 0x1401a88bb
mov eax, dword [rsp + 0xf0]
dec eax
mov dword [rsp + 0xf0], eax
cmp r14, 1
je 0x1401a8817
dec dword [rsi + 0x20]
cmp byte [rdi + 0x88], 0
mov rax, qword [rdi + 0xf8]
je 0x1401a8897
inc dword [rax + 0x24]
jmp 0x1401a889d
inc dword [rax + 0xa4]
mov rcx, r14
mov rax, qword [r14 + 8]
call qword [case.0x1401a385a.0]
and qword [r14 + 0x10], 0
mov eax, dword [rsp + 0xf0]
jmp 0x1401a8817
mov edx, dword [rsi + 0x20]
test edx, edx
jle 0x1401a88ce
mov rcx, rsi
call fcn.1401a8b88
and dword [rsi + 0x20], 0
jmp 0x1401a88ef
cmp qword [r12], 0
je 0x1401a8913
mov rdx, r13
mov rcx, rdi
call fcn.1401a9e1c
mov rdx, qword [rsp + 0x38]
test rdx, rdx
je 0x1401a8913
mov rcx, r13
call fcn.1401a6e88
mov rax, qword [rsi]
mov qword [r15], rax
cmp qword [rsi + 0x28], 0
je 0x1401a895d
mov rcx, rsi
call fcn.1401a7b74
mov edx, dword [rdi + 0xc4]
mov eax, dword [rdi + 0xbc]
add edx, eax
test edx, edx
jle 0x1401a8956
cmp qword [r12], 0
setne r8b
mov rdx, rsi
mov rcx, rdi
call fcn.1401a9cb4
test al, al
jne 0x1401a89da
mov eax, 2
jmp 0x1401a898c
mov ecx, dword [rdi + 0xc4]
mov eax, dword [rdi + 0xbc]
add ecx, eax
test ecx, ecx
jle 0x1401a8987
cmp qword [r12], 0
setne r8b
mov rdx, rsi
mov rcx, rdi
call fcn.1401a9cb4
test al, al
jne 0x1401a89f6
mov eax, 1
add rsp, 0xa8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
lea rcx, [rsp + 0x40]
call fcn.1401a6c50
lea rdx, [0x140249730]
lea rcx, [rsp + 0x40]
call fcn.14017168c
bts dword [rsi + 8], 0x1d
lea rcx, [rsp + 0x58]
call fcn.1401a6c50
lea rdx, [0x140249730]
lea rcx, [rsp + 0x58]
call fcn.14017168c
nop
lea rcx, [rsp + 0x70]
call fcn.1401a6c50
lea rdx, [0x140249730]
lea rcx, [rsp + 0x70]
call fcn.14017168c
int3
lea rcx, [rsp + 0x88]
call fcn.1401a6c50
lea rdx, [0x140249730]
lea rcx, [rsp + 0x88]
call fcn.14017168c
int3