Function at 0x140178ac0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x2a0]
sub rsp, 0x3a0
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
xor r14d, r14d
mov dword [rcx + 0x48], r9d
cmp r9d, 1
je 0x140178caf
lea r9, [rcx + 0x10]
mov rdx, rbx
add qword [r9 + 0x20], rbx
mov r11, qword [r9 + 8]
mov rcx, qword [r9 + 0x28]
shl rcx, 4
mov rax, qword [r9]
add rax, rcx
cmp rax, r11
je 0x140178b5f
nop dword [rax]
test rdx, rdx
je 0x140178b5f
mov r10, qword [r9 + 0x30]
mov r8, qword [rax + 8]
mov rcx, r8
cmp r10, r8
cmovb rcx, r10
sub r8, rcx
cmp rdx, r8
jae 0x140178b48
lea rcx, [r10 + rdx]
mov rdx, r14
jmp 0x140178b56
sub rdx, r8
inc qword [r9 + 0x28]
add rax, 0x10
mov rcx, r14
mov qword [r9 + 0x30], rcx
cmp rax, r11
jne 0x140178b20
mov rcx, qword [rsi + 0x10]
mov rdx, rcx
and edx, 1
je 0x140178b76
cmp rcx, 1
jne 0x140178b7b
cmp dword [rsi], r14d
jne 0x140178b7b
test rbx, rbx
je 0x140178bb6
lea rbx, [rdi + 0x30]
mov rax, qword [rdi + 0x28]
cmp qword [rbx], rax
jae 0x140178bba
test rdx, rdx
je 0x140178bab
cmp rcx, 1
jne 0x140178bba
mov eax, dword [rsi]
mov r8, r14
mov ecx, 0x10000
test eax, eax
cmove r8, rcx
je 0x140178cd7
jmp 0x140178bba
mov r8d, 0x10000
jmp 0x140178cd7
lea rbx, [rdi + 0x30]
mov rbx, qword [rbx]
mov rax, qword [rdi + 0x60]
mov qword [rsp + 0x70], rax
lea rdx, [rdi + 0x68]
lea rcx, [rsp + 0x78]
call fcn.14016ae30
movups xmm0, xmmword [rsi]
movups xmmword [rbp - 0x28], xmm0
movsd xmm1, qword [rsi + 0x10]
movsd qword [rbp - 0x18], xmm1
mov qword [rbp - 0x10], rbx
mov rsi, qword [rdi + 0x50]
mov rbx, qword [rdi + 0x58]
mov ecx, dword [0x14049b880]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140178c10
cmp qword [rax], rbx
je 0x140178c31
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x140178c02
lea rax, [rsp + 0x70]
mov qword [rsp + 0x30], rax
mov rbx, qword [rsp + 0x70]
cmp byte [rbx + 0x400], 0
jne 0x140178c4a
mov byte [rbx + 0x400], 1
jmp 0x140178c57
cmp qword [rax + 8], 0
je 0x140178c10
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x70]
call fcn.140186250
nop
jmp 0x140178ca1
mov ecx, 0xc8
call fcn.14035b61c
mov rbx, rax
mov qword [rbx + 0x20], r14
lea rax, [0x140182440]
mov qword [rbx + 0x28], rax
mov qword [rbx], r14
mov qword [rbx + 8], r14
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], r14
mov dword [rbx + 0x30], r14d
lea rcx, [rbx + 0x38]
lea rdx, [rsp + 0x70]
call fcn.1401826c0
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], r14
mov r8, rbx
lea rdx, [rdi + 0x58]
mov rcx, rsi
call fcn.140138550
nop
lea rcx, [rbp - 0x80]
call fcn.14013b150
jmp 0x140178dd7
mov rax, qword [rdx + 0x10]
test al, 1
je 0x140178cc9
mov r8, r14
cmp rax, 1
jne 0x140178ccf
cmp dword [rdx], r14d
sete r8b
jmp 0x140178ccf
mov r8d, 1
shl r8, 0x10
lea r9, [rcx + 0x10]
mov rbx, qword [rdi + 8]
lea rdx, [rsp + 0x70]
mov rcx, r9
call fcn.1401735e0
lea rdx, [rbx + 0xa8]
lea rcx, [rbx + 8]
mov qword [rbp + 0x80], rcx
mov qword [rbp + 0x88], rdx
lea rcx, [rbp + 0x90]
mov r8d, 2
nop
movups xmm0, xmmword [rax]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rcx + 0x10], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rcx + 0x20], xmm0
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rcx + 0x30], xmm1
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rcx + 0x40], xmm0
movups xmm1, xmmword [rax + 0x50]
movups xmmword [rcx + 0x50], xmm1
movups xmm0, xmmword [rax + 0x60]
movups xmmword [rcx + 0x60], xmm0
lea rcx, [rcx + 0x80]
movups xmm1, xmmword [rax + 0x70]
movups xmmword [rcx - 0x10], xmm1
lea rax, [rax + 0x80]
sub r8, 1
jne 0x140178d10
mov rax, qword [rax]
mov qword [rcx], rax
mov qword [rbp + 0x198], r14
xorps xmm0, xmm0
movups xmmword [rbp + 0x1a0], xmm0
mov qword [rbp + 0x1b0], r14
mov qword [rbp + 0x1b8], r14
mov rdx, rdi
lea rcx, [rbp + 0x1c0]
call fcn.140180420
nop
xorps xmm0, xmm0
mov qword [rsp + 0x60], r14
movaps xmmword [rsp + 0x30], xmm0
movsd xmm0, qword [rsp + 0x60]
movsd qword [rsp + 0x40], xmm0
mov r9d, 1
xor r8d, r8d
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x80]
call fcn.14017f390
nop
lea rcx, [rbp + 0x1c0]
call fcn.140178670
lea r11, [rsp + 0x3a0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret