Function at 0x180012c50
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x190
mov rax, qword [0x1800a0040]
xor rax, rsp
mov qword [rsp + 0x188], rax
mov rsi, r8
mov rdi, rdx
mov r10, rcx
mov dword [rcx + 0x40], r9d
xor ebx, ebx
cmp r9d, 1
je 0x180012df7
mov rdx, r8
add qword [rcx + 0x28], r8
mov r11, qword [rcx + 0x10]
mov rcx, qword [rcx + 0x30]
shl rcx, 4
mov rax, qword [r10 + 8]
add rax, rcx
cmp rax, r11
je 0x180012cf8
test rdx, rdx
je 0x180012cf8
mov r9, qword [r10 + 0x38]
mov rcx, qword [rax]
mov qword [rsp + 0x30], rcx
mov r8, qword [rax + 8]
mov rcx, r8
cmp r9, r8
cmovb rcx, r9
sub r8, rcx
cmp rdx, r8
jae 0x180012ce1
lea rcx, [r9 + rdx]
mov rdx, rbx
jmp 0x180012cef
sub rdx, r8
inc qword [r10 + 0x30]
add rax, 0x10
mov rcx, rbx
mov qword [r10 + 0x38], rcx
cmp rax, r11
jne 0x180012cb1
mov ecx, dword [rdi]
test ecx, ecx
jne 0x180012d09
test rsi, rsi
jne 0x180012d09
mov rax, qword [r10 + 0x28]
jmp 0x180012d25
mov rax, qword [r10 + 0x28]
cmp rax, qword [r10 + 0x20]
jae 0x180012d25
mov r11d, 0x10000
test ecx, ecx
cmovne r11, rbx
je 0x180012e03
movups xmm0, xmmword [r10 + 0x58]
movups xmmword [rsp + 0x48], xmm0
movups xmm1, xmmword [rdi]
movups xmmword [rsp + 0x58], xmm1
mov qword [rsp + 0x68], rax
mov rbp, qword [r10 + 0x48]
lea rsi, [r10 + 0x50]
mov rdi, qword [rsi]
mov ecx, dword [0x1800a4950]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x180012d66
cmp qword [rax], rdi
je 0x180012ddc
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x180012d58
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x48]
mov ecx, 0x68
call fcn.1800072d0
mov r8, rax
mov qword [rax + 0x20], rbx
lea rax, [0x180014d00]
mov qword [r8 + 0x28], rax
mov qword [r8], rbx
mov qword [r8 + 8], rbx
mov qword [r8 + 0x10], rbx
mov qword [r8 + 0x18], rbx
mov dword [r8 + 0x30], ebx
movups xmm0, xmmword [rsp + 0x48]
movups xmmword [r8 + 0x38], xmm0
movups xmm1, xmmword [rsp + 0x58]
movups xmmword [r8 + 0x48], xmm1
mov rax, qword [rsp + 0x68]
mov qword [r8 + 0x58], rax
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rbx
mov rdx, rsi
mov rcx, rbp
call fcn.18000b150
nop
jmp 0x180012ee9
cmp qword [rax + 8], rbx
je 0x180012d66
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x48]
call fcn.180015500
nop
jmp 0x180012ee9
mov r11d, 0x10000
cmp dword [rdx], ebx
cmovne r11, rbx
mov rsi, qword [r10]
lea rax, [rsp + 0x70]
mov ecx, select
mov qword [rax], rbx
mov qword [rax + 8], rbx
lea rax, [rax + 0x10]
sub rcx, 1
jne 0x180012e10
mov r9, rbx
mov qword [rsp + 0x170], rbx
mov rdi, qword [r10 + 0x10]
mov rax, qword [r10 + 0x30]
shl rax, 4
add rax, qword [r10 + 8]
mov rbp, qword [r10 + 0x38]
cmp rax, rdi
je 0x180012ec3
nop dword [rax]
test r11, r11
je 0x180012ec3
cmp r9, 0x10
jae 0x180012ec3
mov rcx, qword [rax]
mov r8, qword [rax + 8]
mov rdx, r8
cmp rbp, r8
cmovb rdx, rbp
add rcx, rdx
sub r8, rdx
mov qword [rsp + 0x30], rcx
cmp r8, r11
cmovae r8, r11
mov qword [rsp + 0x38], r8
add r9, r9
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rsp + r9*8 + 0x70], xmm0
mov r9, qword [rsp + 0x170]
mov rcx, r9
add rcx, rcx
mov rdx, qword [rsp + rcx*8 + 0x78]
sub r11, rdx
mov rbp, rbx
test rdx, rdx
je 0x180012eba
inc r9
mov qword [rsp + 0x170], r9
add rax, 0x10
cmp rax, rdi
jne 0x180012e50
lea rax, [rsi + 0x68]
lea rdx, [rsi + 8]
mov rcx, qword [rsi]
add rcx, 0x28
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r10
xor r9d, r9d
lea r8, [rsp + 0x70]
call fcn.180013fa0
mov rcx, qword [rsp + 0x188]
xor rcx, rsp
call fcn.180050570
lea r11, [rsp + 0x190]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret