Function at 0x140178810
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x60]
sub rsp, 0x160
mov r10, r8
mov rsi, rdx
mov rbx, rcx
xor r15d, r15d
mov dword [rcx + 0x28], r9d
mov r8, qword [rcx + 0x20]
mov rdx, qword [rdx + 0x10]
mov rcx, rdx
and ecx, 1
cmp r9d, 1
je 0x1401789ab
lea rdi, [r8 + r10]
mov qword [rbx + 0x20], rdi
test rcx, rcx
je 0x140178868
cmp rdx, 1
jne 0x14017886d
cmp dword [rsi], r15d
jne 0x14017886d
test r10, r10
je 0x140178893
cmp rdi, qword [rbx + 0x18]
jae 0x140178893
test rcx, rcx
je 0x140178883
cmp rdx, 1
jne 0x140178893
cmp dword [rsi], r15d
jne 0x140178893
cmp rdi, qword [rbx]
jae 0x140178893
mov r9d, 0x10000
jmp 0x1401789c9
mov rax, qword [rbx + 0x40]
mov qword [rsp + 0x50], rax
lea rdx, [rbx + 0x48]
lea rcx, [rsp + 0x58]
call fcn.14016ae30
movups xmm0, xmmword [rsi]
movups xmmword [rbp - 0x48], xmm0
movsd xmm1, qword [rsi + 0x10]
movsd qword [rbp - 0x38], xmm1
mov qword [rbp - 0x30], rdi
mov r14, qword [rbx + 0x30]
lea rsi, [rbx + 0x38]
mov rbx, qword [rsi]
mov ecx, dword [0x14049b880]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1401788ee
nop dword [rax + rax]
cmp qword [rax], rbx
je 0x14017890f
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x1401788e0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov rdi, qword [rsp + 0x50]
cmp byte [rdi + 0x400], 0
jne 0x140178928
mov byte [rdi + 0x400], 1
jmp 0x140178935
cmp qword [rax + 8], 0
je 0x1401788ee
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x50]
call fcn.140186250
nop
jmp 0x1401789a1
mov ecx, 0xc8
call fcn.14035b61c
mov rdi, rax
mov qword [rdi + 0x20], r15
lea rax, [0x140182300]
mov qword [rdi + 0x28], rax
mov qword [rdi], r15
mov qword [rdi + 8], r15
mov qword [rdi + 0x10], r15
mov qword [rdi + 0x18], r15
mov dword [rdi + 0x30], r15d
lea rdx, [rsp + 0x50]
lea rcx, [rdi + 0x38]
call fcn.14016d420
movups xmm0, xmmword [rbp - 0x48]
movups xmmword [rdi + 0xa0], xmm0
movsd xmm1, qword [rbp - 0x38]
movsd qword [rdi + 0xb0], xmm1
mov rax, qword [rbp - 0x30]
mov qword [rdi + 0xb8], rax
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
mov r8, rdi
mov rdx, rsi
mov rcx, r14
call fcn.140138550
nop
lea rcx, [rsp + 0x60]
jmp 0x140178a95
test rcx, rcx
je 0x1401789bb
cmp rdx, 1
jne 0x1401789c6
cmp dword [rsi], r15d
jne 0x1401789c6
cmp r8, qword [rbx]
mov r9d, 0x10000
jb 0x1401789c9
mov r9, r15
mov rax, qword [rbx + 8]
mov rdx, qword [rbx + 0x20]
mov r8, qword [rbx + 0x18]
cmp rdx, r8
cmovae rdx, r8
sub r8, rdx
add rdx, qword [rbx + 0x10]
mov qword [rsp + 0x20], rdx
cmp r8, r9
cmovae r8, r9
mov qword [rsp + 0x28], r8
lea rdx, [rax + 0xa8]
lea rcx, [rax + 8]
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x58], rdx
movups xmm0, xmmword [rsp + 0x20]
movaps xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], r15
xorps xmm0, xmm0
movups xmmword [rsp + 0x78], xmm0
mov qword [rbp - 0x78], r15
mov qword [rbp - 0x70], r15
mov rcx, qword [rbx]
mov qword [rbp - 0x68], rcx
mov qword [rbp - 0x60], rax
movups xmm0, xmmword [rbx + 0x10]
movups xmmword [rbp - 0x58], xmm0
movsd xmm1, qword [rbx + 0x20]
movsd qword [rbp - 0x48], xmm1
mov eax, dword [rbx + 0x28]
mov dword [rbp - 0x40], eax
movups xmm0, xmmword [rbx + 0x30]
movups xmmword [rbp - 0x38], xmm0
lea rdx, [rbx + 0x40]
lea rcx, [rbp - 0x28]
call fcn.14016d420
nop
xorps xmm0, xmm0
mov qword [rbp + 0x50], r15
movaps xmmword [rsp + 0x20], xmm0
movsd xmm0, qword [rbp + 0x50]
movsd qword [rsp + 0x30], xmm0
mov r9d, 1
xor r8d, r8d
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x50]
call fcn.14017f8e0
nop
lea rcx, [rbp - 0x18]
call fcn.14013b150
mov rbx, qword [rsp + 0x1a0]
add rsp, 0x160
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret