Function at 0x14012bb60
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 rbx, r8
mov qword [rsp + 0x38], rcx
mov rax, qword [0x1403acd78]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rax, qword [rdx + 0x770]
mov qword [rsp + 0x40], rax
mov rdi, qword [rdx + 0x18]
mov qword [rsp + 0x80], r9
mov rax, qword [r9 + 8]
mov rcx, qword [rax + 0x17]
xor r14d, r14d
cmp rcx, 2
setge r14b
mov rax, qword [rax + 0x17]
mov qword [rsp + 0x50], rax
mov rax, qword [0x1403b1590]
mov qword [rsp + 0x58], rax
mov rcx, rdi
call fcn.140100c10
mov r15, rax
mov rcx, rdi
call fcn.1401050c0
mov r12, rax
mov rcx, rdi
call fcn.140104dc0
mov r13, rax
mov rax, qword [rbx + 8]
mov rdx, qword [rax + r14*8 + 0x17]
mov rcx, r15
call fcn.140100c30
mov rax, qword [r15 + 8]
cmp rax, qword [0x1403aac60]
jne 0x14012bc3b
mov rsi, qword [rsp + 0x38]
mov qword [rsi], rax
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140279500
mov rax, rsi
add rsp, 0x98
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov eax, dword [0x1403b3e60]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
lea rax, [rax + 8]
mov qword [rsp + 0x48], rax
nop word [rax + rax]
mov rcx, r15
mov rdx, r12
call fcn.140177190
test al, al
je 0x14012bcc8
mov rcx, r12
lea rdx, [rsp + 0x80]
xor r8d, r8d
call fcn.14015c0d0
cmp qword [rsp + 0x50], 2
jl 0x14012bcc0
test al, al
je 0x14012bcc0
mov rcx, qword [r12 + 8]
mov edx, dword [rcx + 0x47]
and edx, 0x1f
dec edx
cmp edx, 1
ja 0x14012bcc0
mov rax, qword [r15 + 8]
mov rax, qword [rax + 0x17]
mov rdx, qword [0x1403afb70]
cmp rax, qword [rdx + 8]
jne 0x14012bcc8
jmp 0x14012bf83
test al, al
jne 0x14012bf7e
mov rax, qword [r15]
mov rcx, r15
call qword [rax + 0x1a0]
test al, al
jne 0x14012bf2b
mov rax, qword [r15 + 8]
test al, 1
jne 0x14012bd00
lea rcx, [rsp + 0x78]
call fcn.14017e910
mov rax, qword [rsp + 0x78]
jmp 0x14012bd52
mov ecx, dword [0x1403b3e60]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp byte [rcx + 0x14], 0
jne 0x14012bd25
call fcn.140279b2c
mov rax, qword [r15 + 8]
mov rcx, qword [rsp + 0x48]
mov rcx, qword [rcx]
mov rcx, qword [rcx + 0x770]
mov rcx, qword [rcx + 0x10]
mov rax, qword [rax - 1]
mov rcx, qword [rcx + 0x30]
shr rax, 9
and eax, 0x7ffff8
mov rax, qword [rcx + rax]
mov qword [rsp + 0x78], rax
mov qword [r13 + 8], rax
mov byte [rsp + 0x20], 0
lea rcx, [rsp + 0x70]
mov rdx, rdi
mov r8, r13
mov r9, qword [rsp + 0x58]
call fcn.1401c1a10
mov rax, qword [rsp + 0x70]
mov qword [r12 + 8], rax
cmp rax, qword [0x1403aac60]
je 0x14012bc0c
mov ecx, dword [0x1403aadb8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14012bdc0
mov rbp, rax
cmp byte [rax + 8], 0
jne 0x14012bdc8
mov rcx, rbp
call fcn.1400726b0
mov rbp, rax
test rax, rax
jne 0x14012bdc8
nop word cs:[rax + rax]
call fcn.1401a2410
mov rbp, rax
mov rsi, qword [rbp + 0x58]
call fcn.1401a2240
add rsi, qword [rbp + 0x50]
cmp rax, rsi
jbe 0x14012bf37
mov edx, 0x59
mov r8d, 1
lea rcx, [rsp + 0x68]
xor r9d, r9d
call fcn.140182630
mov rdx, qword [rsp + 0x68]
mov rcx, rdi
call fcn.1401001f0
mov rbp, rax
mov rdx, qword [rax + 8]
lea rcx, [rdx - 1]
mov r8, qword [r15 + 8]
add rdx, 0x17
call fcn.1400fdf70
mov rax, qword [rbp + 8]
mov rax, qword [rax + 0xf]
mov r8, rax
sar r8, 1
cmp rax, 0x3f
jg 0x14012be40
lea rax, [0x1403af280]
lea rsi, [rax + r8*8]
jmp 0x14012be62
mov dword [rsp + 0x28], 1
mov byte [rsp + 0x20], 1
lea rsi, [rsp + 0x88]
mov rcx, rsi
xor edx, edx
mov r9, r8
call fcn.14012ccc0
mov rcx, qword [rsi]
call fcn.1400fe130
mov rsi, rax
call fcn.1401a2240
lea rcx, [rsp + 0x60]
mov rdx, r12
mov r8, rbp
mov r9, rsi
call fcn.14012b840
mov rsi, qword [rsp + 0x60]
mov rcx, rdi
call fcn.1401339c0
mov rbp, rax
mov qword [rax + 8], rsi
mov eax, 0x3b
test sil, 1
je 0x14012becc
mov rcx, qword [rsi - 1]
shr ecx, 0xc
cmp ecx, 0xb0
mov rax, rcx
mov edx, 0x2b
cmovae rax, rdx
cmp ecx, 0xac
mov ecx, 4
cmove rax, rcx
lea rcx, [0x1403af5a0]
mov rax, qword [rcx + rax*8]
mov qword [rbp], rax
mov rcx, rbp
call qword [rax + 0x110]
test al, al
jne 0x14012bf75
mov rcx, qword [rbx + 8]
mov r8, qword [rbp + 8]
lea rdx, [rcx + r14*8]
add rdx, 0x17
dec rcx
call fcn.1400fdf70
mov rax, qword [rbx + 8]
mov rdx, qword [rax + r14*8 + 0x17]
mov rcx, r15
call fcn.140100c30
mov rax, qword [r15 + 8]
cmp rax, qword [0x1403aac60]
jne 0x14012bc60
jmp 0x14012bc0c
mov rax, qword [0x1403aac60]
jmp 0x14012bc0c
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x20]
mov rdx, qword [rax + 0x3d0]
mov rcx, rdi
call fcn.14012bfa0
mov rbx, rax
mov rcx, rdi
call fcn.14010cda0
mov rsi, qword [rsp + 0x38]
mov rcx, rsi
mov rdx, rbx
mov r8, rax
xor r9d, r9d
call fcn.14015c820
jmp 0x14012bc14
mov rax, qword [rbp + 8]
jmp 0x14012bc0c
mov rcx, qword [r12 + 8]
mov rsi, qword [rsp + 0x38]
mov qword [rsi], rcx
jmp 0x14012bc14