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

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x58]
sub rsp, 0x130
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov r11, r8
mov r15, rdx
mov rbx, rcx
mov dword [rcx + 0x18], r9d
cmp r9d, 1
je 0x1400b3fd8
add qword [rcx + 0x20], r8
mov r10, qword [rcx + 0x10]
mov r8, qword [r10 + 0x58]
movsxd rdx, dword [r8]
mov r9, r11
cmp rdx, r11
cmovb r9, rdx
sub edx, r9d
mov dword [r8], edx
mov rcx, qword [r10 + 0x40]
movsxd rax, r9d
add qword [rcx], rax
mov rax, qword [r10 + 0x40]
mov rcx, qword [rax]
mov rax, qword [r10 + 0x38]
sub ecx, dword [rax]
mov rax, qword [r10 + 0x50]
mov dword [rax], ecx
mov r10d, dword [r15]
xor edi, edi
test r10d, r10d
jne 0x1400b3e27
mov rax, qword [rbx]
cmp qword [rbx + 0x20], rax
mov r9d, 0x10000
jb 0x1400b3e2a
mov r9, rdi
mov qword [rbp + 0x60], r9
mov r14, qword [rbx + 0x10]
mov r8, qword [r14 + 0x68]
mov rax, qword [r14 + 0x40]
mov rdx, qword [rax]
mov rax, qword [r14 + 0x38]
sub rdx, qword [rax]
sub r8, rdx
mov qword [rsp + 0x60], r8
mov rcx, qword [r14 + 0x80]
sub rcx, qword [r14 + 0x70]
sub rcx, rdx
lea rax, [rbp + 0x60]
lea rdx, [rsp + 0x60]
cmp r8, r9
cmovb rax, rdx
mov edx, 0x200
cmp rcx, rdx
cmova rdx, rcx
mov rsi, qword [rax]
cmp rsi, rdx
cmovae rsi, rdx
test r10d, r10d
jne 0x1400b3e8a
test r11, r11
je 0x1400b3e93
test rsi, rsi
jne 0x1400b4046
movups xmm0, xmmword [rbx + 0x38]
movups xmmword [rbp - 0x78], xmm0
movups xmm1, xmmword [r15]
movups xmmword [rbp - 0x68], xmm1
mov rax, qword [rbx + 0x20]
mov qword [rbp - 0x58], rax
lea rsi, [rbx + 0x30]
mov r14, qword [rbx + 0x28]
mov rbx, qword [rsi]
mov ecx, dword [0x140338560]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400b3ed9
cmp qword [rax], rbx
je 0x1400b3fbb
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x1400b3ec7
lea rax, [rbp - 0x78]
mov qword [rbp], rax
lea rdx, [rbp - 0x78]
mov ecx, 0x60
call fcn.140022520
mov rbx, rax
mov qword [rax + 0x20], rdi
lea rax, [fcn.1400899d0]
mov qword [rbx + 0x28], rax
mov qword [rbx], rdi
mov qword [rbx + 8], rdi
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], rdi
mov dword [rbx + 0x30], edi
movups xmm0, xmmword [rbp - 0x78]
movups xmmword [rbx + 0x38], xmm0
movups xmm1, xmmword [rbp - 0x68]
movups xmmword [rbx + 0x48], xmm1
mov rax, qword [rbp - 0x58]
mov qword [rbx + 0x58], rax
mov r8, rbx
mov rdx, rsi
mov rcx, r14
call fcn.140025320
mov qword [rbp + 0x10], rdi
mov qword [rbp + 8], rdi
test al, al
je 0x1400b3fb6
mov rax, qword [rsi]
mov qword [rsp + 0x70], rax
mov ecx, dword [0x140338560]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rbp - 0x80], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x78], rax
lea rdx, [rsp + 0x70]
mov ecx, dword [0x140338560]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov rcx, qword [r14 + 0x28]
mov qword [rsp + 0x40], rcx
mov rax, qword [rsi]
mov qword [rsp + 0x48], rax
xor r9d, r9d
lea r8, [rbp + 0x18]
mov rdx, rbx
call fcn.1400899d0
nop
lea rcx, [rsp + 0x40]
call fcn.1400250e0
nop
mov rdx, qword [rbp - 0x80]
mov ecx, dword [0x140338560]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
jmp 0x1400b4120
cmp qword [rax + 8], rdi
je 0x1400b3ed9
lea rdx, [rbp - 0x78]
lea rcx, [rbp - 0x78]
call fcn.14008c460
nop
jmp 0x1400b4120
xor edi, edi
cmp dword [rdx], edi
jne 0x1400b3fed
mov rax, qword [rcx]
cmp qword [rcx + 0x20], rax
mov r9d, 0x10000
jb 0x1400b3ff0
mov r9, rdi
mov qword [rbp + 0x60], r9
mov r14, qword [rcx + 0x10]
mov rax, qword [r14 + 0x40]
mov rcx, qword [r14 + 0x38]
mov rdx, qword [rcx]
sub rdx, qword [rax]
mov rcx, qword [r14 + 0x68]
add rcx, rdx
mov qword [rsp + 0x68], rcx
mov r8, qword [r14 + 0x80]
sub r8, qword [r14 + 0x70]
add r8, rdx
lea rax, [rbp + 0x60]
lea rdx, [rsp + 0x68]
cmp rcx, r9
cmovb rax, rdx
mov edx, 0x200
cmp r8, rdx
cmova rdx, r8
mov rsi, qword [rax]
cmp rsi, rdx
cmovae rsi, rdx
mov rdx, rsi
mov rcx, r14
call fcn.140081a70
mov rax, qword [r14 + 0x40]
mov r15, qword [rax]
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x48], rsi
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rbp - 0x10], xmm0
mov rax, qword [rbx + 8]
lea r12, [rax + 0x68]
mov r13, qword [rax]
lea r14, [rax + 8]
mov qword [rbp - 0x38], rbx
lea rdx, [rbx + 0x38]
mov ecx, 0xb8
call fcn.140022520
mov r10, rax
mov rcx, qword [r14 + 0x18]
test rcx, rcx
je 0x1400b40a1
lock inc dword [rcx + 0xc]
mov rcx, qword [r14 + 0x18]
mov rax, qword [r14 + 0x10]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], rbx
lea r9, [rbp - 0x10]
lea r8, [rsp + 0x50]
movzx edx, byte [r14 + 8]
mov rcx, r10
call fcn.1400b4f00
mov qword [rbp - 0x48], r15
mov dword [rbp - 0x50], esi
mov qword [rbp - 0x40], rsi
test byte [r14 + 8], 0x10
je 0x1400b40ea
test rsi, rsi
jne 0x1400b40ea
mov dl, 1
jmp 0x1400b40ec
xor edx, edx
lea rcx, [r13 + 0x28]
mov qword [rsp + 0x30], rax
mov byte [rsp + 0x28], dl
mov dword [rsp + 0x20], edi
mov r9d, 1
lea r8, [rbp - 0x50]
mov rdx, r14
call fcn.1400721a0
mov qword [rbp - 0x28], rdi
mov qword [rbp - 0x30], rdi
lea rcx, [rbp - 0x38]
call fcn.1400890a0
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret