Function at 0x140099880
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x18]
sub rsp, 0x110
mov qword [rbp - 0x80], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
mov rbx, r8
mov rdi, rdx
mov r11, rcx
cmp r9d, 1
je 0x1400993bb
mov rdx, rbx
mov rcx, qword [rcx + 8]
call fcn.1400810f0
movups xmm0, xmmword [r11 + 0x28]
movups xmmword [rsp + 0x58], xmm0
movups xmm1, xmmword [rdi]
movups xmmword [rsp + 0x68], xmm1
mov qword [rsp + 0x78], rbx
lea rsi, [r11 + 0x20]
mov r14, qword [r11 + 0x18]
mov rbx, qword [rsi]
mov ecx, dword [0x140338560]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400992b2
nop dword [rax]
cmp qword [rax], rbx
je 0x14009939e
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x1400992a0
lea rax, [rsp + 0x58]
mov qword [rbp - 0x78], rax
lea rdx, [rsp + 0x58]
mov ecx, 0x60
call fcn.140022520
mov rdi, rax
xor ebx, ebx
mov qword [rax + 0x20], rbx
lea rax, [fcn.140089910]
mov qword [rdi + 0x28], rax
mov qword [rdi], rbx
mov qword [rdi + 8], rbx
mov qword [rdi + 0x10], rbx
mov qword [rdi + 0x18], rbx
mov dword [rdi + 0x30], ebx
movups xmm0, xmmword [rsp + 0x58]
movups xmmword [rdi + 0x38], xmm0
movups xmm1, xmmword [rsp + 0x68]
movups xmmword [rdi + 0x48], xmm1
mov rax, qword [rsp + 0x78]
mov qword [rdi + 0x58], rax
mov r8, rdi
mov rdx, rsi
mov rcx, r14
call fcn.140025320
mov qword [rbp - 0x68], rbx
mov qword [rbp - 0x70], rbx
test al, al
je 0x140099399
mov rax, qword [rsi]
mov qword [rsp + 0x40], rax
mov ecx, dword [0x140338560]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x40]
mov ecx, dword [0x140338560]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov rcx, qword [r14 + 0x28]
mov qword [rsp + 0x20], rcx
mov rax, qword [rsi]
mov qword [rsp + 0x28], rax
xor r9d, r9d
lea r8, [rsp + 0x30]
mov rdx, rdi
call fcn.140089910
nop
lea rcx, [rsp + 0x20]
call fcn.1400250e0
nop
mov rdx, qword [rsp + 0x50]
mov ecx, dword [0x140338560]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
jmp 0x140099436
cmp qword [rax + 8], 0
je 0x1400992b2
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x58]
call fcn.140057c30
nop
jmp 0x140099436
mov r8, qword [rcx + 8]
mov rax, qword [r8 + 0x38]
mov rdx, qword [rax]
mov qword [rsp + 0x30], rdx
mov rax, qword [r8 + 0x40]
mov rcx, qword [rax]
sub rcx, rdx
mov qword [rsp + 0x38], rcx
xor ebx, ebx
mov dword [rsp + 0x20], ebx
mov byte [rsp + 0x24], bl
lea rax, [0x1402c28e8]
mov qword [rsp + 0x28], rax
mov rax, qword [r11]
mov qword [rbp - 0x60], rax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rbp - 0x58], xmm0
mov qword [rbp - 0x48], rbx
mov dword [rbp - 0x40], ebx
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], r8
movups xmm0, xmmword [r11 + 0x18]
movups xmmword [rbp - 0x20], xmm0
movups xmm1, xmmword [r11 + 0x28]
movups xmmword [rbp - 0x10], xmm1
lea r9d, [rbx + 1]
xor r8d, r8d
lea rdx, [rsp + 0x20]
lea rcx, [rbp - 0x60]
call fcn.140099880
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
push rbx
push rdi
sub rsp, 0xa8
mov dword [rcx + 0x20], r9d
mov r10, r8
mov rbx, rcx
cmp r9d, 1
je 0x1400998d9
mov r8, qword [rcx + 0x18]
add r8, r10
mov qword [rcx + 0x18], r8
mov ecx, dword [rdx]
test ecx, ecx
jne 0x1400998b0
test r10, r10
je 0x1400998c4
cmp r8, qword [rbx + 0x10]
jae 0x1400998c4
xor edi, edi
mov eax, 0x10000
test ecx, ecx
cmovne eax, edi
je 0x1400998e5
lea rcx, [rbx + 0x28]
xor r9d, r9d
add rsp, 0xa8
pop rdi
pop rbx
jmp 0x140099220
xor edi, edi
mov eax, 0x10000
cmp dword [rdx], edi
cmovne eax, edi
mov rcx, qword [rbx + 0x18]
lea rdx, [rbx + 0x50]
mov qword [rsp + 0xc8], rbp
mov rbp, qword [rbx + 0x10]
cmp rcx, rbp
mov qword [rsp + 0xd0], rsi
mov qword [rsp + 0xd8], r12
cmovae rcx, rbp
mov qword [rsp + 0xa0], r13
sub rbp, rcx
mov qword [rsp + 0x98], r14
cmp rbp, rax
mov qword [rsp + 0x90], r15
mov r15, qword [rbx + 8]
cmovae rbp, rax
mov qword [rsp + 0x78], rbx
mov rax, qword [rbx]
add r15, rcx
mov ecx, 0xc8
mov qword [rsp + 0x40], r15
mov r14, rbp
mov qword [rsp + 0x48], rbp
mov r13, qword [rax]
lea r12, [rax + 0x68]
lea rsi, [rax + 8]
call fcn.140022520
mov rcx, qword [rsi + 0x18]
mov r10, rax
test rcx, rcx
je 0x140099981
lock inc dword [rcx + 0xc]
mov rcx, qword [rsi + 0x18]
mov r14, qword [rsp + 0x48]
mov r15, qword [rsp + 0x40]
mov rax, qword [rsi + 0x10]
lea r8, [rsp + 0x40]
mov qword [rsp + 0x58], rcx
lea rdx, [rsp + 0x50]
mov rcx, r10
mov qword [rsp + 0x50], rax
mov r9, rbx
mov qword [rsp + 0x20], r12
call fcn.14009a3e0
test byte [rsi + 8], 0x10
mov r12, qword [rsp + 0xd8]
mov qword [rsp + 0x68], r15
mov r15, qword [rsp + 0x90]
mov dword [rsp + 0x60], r14d
mov qword [rsp + 0x70], r14
mov r14, qword [rsp + 0x98]
je 0x1400999df
test rbp, rbp
jne 0x1400999df
mov dl, 1
jmp 0x1400999e1
xor edx, edx
mov qword [rsp + 0x30], rax
lea rcx, [r13 + 0x28]
mov byte [rsp + 0x28], dl
lea r8, [rsp + 0x60]
mov rdx, rsi
mov dword [rsp + 0x20], edi
mov r9d, 1
call fcn.1400720a0
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x88], rdi
mov qword [rsp + 0x80], rdi
call fcn.14008ba80
mov r13, qword [rsp + 0xa0]
mov rsi, qword [rsp + 0xd0]
mov rbp, qword [rsp + 0xc8]
add rsp, 0xa8
pop rdi
pop rbx
ret