Function at 0x14015b570
Capabilities:
Set thread local storage value

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rax, qword [0x140297028]
xor rax, rsp
mov qword [rsp + 0x58], rax
test rcx, rcx
je 0x14015be22
mov rdi, rcx
mov r14d, dword [rcx + 8]
add r14, 0x518
mov byte [rsp + 0x3f], 0xaa
cmp byte [rcx + 2], 0
sete al
bsr rdx, r14
xor rdx, 0xffffffffffffffc0
lea rcx, [0x140277ac0]
mov cl, byte [rdx + rcx + 0x41]
mov r8, r14
shr r8, cl
and r8d, 7
lea rcx, [0x140277b10]
mov rcx, qword [rcx + rdx*8 + 0x208]
and rcx, r14
lea rdx, [r8 + rdx*8]
add rdx, 0x208
cmp rcx, 1
sbb rdx, 0xffffffffffffffff
lea rcx, [0x140269fe0]
movzx ecx, word [rcx + rdx*2 + 0x400]
cmp cx, 0x6e
setb dl
and dl, al
movzx eax, dl
or eax, ecx
movzx eax, ax
lea r13, [rax + rax*4]
lea r15, [rdi + r13*8]
add r15, 0x48
lea rbx, [rdi + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x14015bdae
lea r12, [rdi + 0x48]
mov rax, qword [r15]
mov rsi, qword [rax]
test rsi, rsi
je 0x14015bdbb
mov byte [rsp + 0x3f], 0
mov rcx, qword [rsi]
test rcx, rcx
je 0x14015bda7
bswap rcx
mov r14d, dword [r12 + r13*8 + 0x18]
mov rdx, rcx
xor rdx, rsi
cmp rdx, 0x1fffff
ja 0x14015be2c
mov edx, ecx
and edx, 0x1fc000
je 0x14015be2c
prefetcht0 byte [rcx]
mov qword [rax], rcx
mov ecx, dword [rax + 0x18]
lea edx, [rcx + 2]
and edx, 0x3ffe
and ecx, 0xffffc001
or ecx, edx
mov dword [rax + 0x18], ecx
mov rax, qword [rax + 0x10]
mov eax, dword [rax + 0x18]
add rax, qword [rdi + 0x1498]
mov qword [rdi + 0x1498], rax
mov rcx, qword [rdi + 0x14a0]
cmp rcx, rax
cmova rax, rcx
mov qword [rdi + 0x14a0], rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
xor eax, eax
mov dword [rsi], eax
mov byte [rsi + 4], 0
mov qword [rsi + 0x78], rax
mov dword [rsi + 0x80], eax
mov byte [rsi + 0x81], 0
mov dword [rsi + 0x90], eax
mov qword [rsi + 0x88], rax
mov byte [rsi + 0x91], 0
mov dword [rsi + 0xa0], eax
mov qword [rsi + 0x98], rax
mov byte [rsi + 0xa1], 0
mov dword [rsi + 0xb0], eax
mov qword [rsi + 0xa8], rax
mov byte [rsi + 0xb1], 0
mov dword [rsi + 0xc0], eax
mov qword [rsi + 0xb8], rax
mov byte [rsi + 0xc1], 0
mov dword [rsi + 0xd0], eax
mov qword [rsi + 0xc8], rax
mov byte [rsi + 0xd1], 0
mov dword [rsi + 0xe0], eax
mov qword [rsi + 0xd8], rax
mov byte [rsi + 0xe1], 0
mov dword [rsi + 0xf0], eax
mov qword [rsi + 0xe8], rax
mov byte [rsi + 0xf1], 0
mov dword [rsi + 0x100], eax
mov qword [rsi + 0xf8], rax
mov byte [rsi + 0x101], 0
mov dword [rsi + 0x110], eax
mov qword [rsi + 0x108], rax
mov byte [rsi + 0x111], 0
mov dword [rsi + 0x120], eax
mov qword [rsi + 0x118], rax
mov byte [rsi + 0x121], 0
mov dword [rsi + 0x130], eax
mov qword [rsi + 0x128], rax
mov byte [rsi + 0x131], 0
mov dword [rsi + 0x140], eax
mov qword [rsi + 0x138], rax
mov byte [rsi + 0x141], 0
mov dword [rsi + 0x150], eax
mov qword [rsi + 0x148], rax
mov byte [rsi + 0x151], 0
mov dword [rsi + 0x160], eax
mov qword [rsi + 0x158], rax
mov byte [rsi + 0x161], 0
mov dword [rsi + 0x170], eax
mov qword [rsi + 0x168], rax
mov byte [rsi + 0x171], 0
mov dword [rsi + 0x180], eax
mov qword [rsi + 0x178], rax
mov byte [rsi + 0x181], 0
mov dword [rsi + 0x190], eax
mov qword [rsi + 0x188], rax
mov byte [rsi + 0x191], 0
mov dword [rsi + 0x1a0], eax
mov qword [rsi + 0x198], rax
mov byte [rsi + 0x1a1], 0
mov dword [rsi + 0x1b0], eax
mov qword [rsi + 0x1a8], rax
mov byte [rsi + 0x1b1], 0
mov dword [rsi + 0x1c0], eax
mov qword [rsi + 0x1b8], rax
mov byte [rsi + 0x1c1], 0
mov dword [rsi + 0x1d0], eax
mov qword [rsi + 0x1c8], rax
mov byte [rsi + 0x1d1], 0
mov dword [rsi + 0x1e0], eax
mov qword [rsi + 0x1d8], rax
mov byte [rsi + 0x1e1], 0
mov dword [rsi + 0x1f0], eax
mov qword [rsi + 0x1e8], rax
mov byte [rsi + 0x1f1], 0
mov dword [rsi + 0x200], eax
mov qword [rsi + 0x1f8], rax
mov byte [rsi + 0x201], 0
mov dword [rsi + 0x210], eax
mov qword [rsi + 0x208], rax
mov byte [rsi + 0x211], 0
mov dword [rsi + 0x220], eax
mov qword [rsi + 0x218], rax
mov byte [rsi + 0x221], 0
mov dword [rsi + 0x230], eax
mov qword [rsi + 0x228], rax
mov byte [rsi + 0x231], 0
mov dword [rsi + 0x240], eax
mov qword [rsi + 0x238], rax
mov byte [rsi + 0x241], 0
mov dword [rsi + 0x250], eax
mov qword [rsi + 0x248], rax
mov byte [rsi + 0x251], 0
mov dword [rsi + 0x260], eax
mov qword [rsi + 0x258], rax
mov byte [rsi + 0x261], 0
mov dword [rsi + 0x270], eax
mov qword [rsi + 0x268], rax
mov byte [rsi + 0x271], 0
mov dword [rsi + 0x280], eax
mov qword [rsi + 0x278], rax
mov byte [rsi + 0x281], 0
mov dword [rsi + 0x290], eax
mov qword [rsi + 0x288], rax
mov byte [rsi + 0x291], 0
mov dword [rsi + 0x2a0], eax
mov qword [rsi + 0x298], rax
mov byte [rsi + 0x2a1], 0
mov dword [rsi + 0x2b0], eax
mov qword [rsi + 0x2a8], rax
mov byte [rsi + 0x2b1], 0
mov dword [rsi + 0x2c0], eax
mov qword [rsi + 0x2b8], rax
mov byte [rsi + 0x2c1], 0
mov dword [rsi + 0x2d0], eax
mov qword [rsi + 0x2c8], rax
mov byte [rsi + 0x2d1], 0
mov dword [rsi + 0x2e0], eax
mov qword [rsi + 0x2d8], rax
mov byte [rsi + 0x2e1], 0
mov dword [rsi + 0x2f0], eax
mov qword [rsi + 0x2e8], rax
mov byte [rsi + 0x2f1], 0
mov dword [rsi + 0x300], eax
mov qword [rsi + 0x2f8], rax
mov byte [rsi + 0x301], 0
mov dword [rsi + 0x310], eax
mov qword [rsi + 0x308], rax
mov byte [rsi + 0x311], 0
mov dword [rsi + 0x320], eax
mov qword [rsi + 0x318], rax
mov byte [rsi + 0x321], 0
mov dword [rsi + 0x330], eax
mov qword [rsi + 0x328], rax
mov byte [rsi + 0x331], 0
mov dword [rsi + 0x340], eax
mov qword [rsi + 0x338], rax
mov byte [rsi + 0x341], 0
mov dword [rsi + 0x350], eax
mov qword [rsi + 0x348], rax
mov byte [rsi + 0x351], 0
mov dword [rsi + 0x360], eax
mov qword [rsi + 0x358], rax
mov byte [rsi + 0x361], 0
mov dword [rsi + 0x370], eax
mov qword [rsi + 0x368], rax
mov byte [rsi + 0x371], 0
mov dword [rsi + 0x380], eax
mov qword [rsi + 0x378], rax
mov byte [rsi + 0x381], 0
mov dword [rsi + 0x390], eax
mov qword [rsi + 0x388], rax
mov byte [rsi + 0x391], 0
mov dword [rsi + 0x3a0], eax
mov qword [rsi + 0x398], rax
mov byte [rsi + 0x3a1], 0
mov dword [rsi + 0x3b0], eax
mov qword [rsi + 0x3a8], rax
mov byte [rsi + 0x3b1], 0
mov dword [rsi + 0x3c0], eax
mov qword [rsi + 0x3b8], rax
mov byte [rsi + 0x3c1], 0
mov dword [rsi + 0x3d0], eax
mov qword [rsi + 0x3c8], rax
mov byte [rsi + 0x3d1], 0
mov dword [rsi + 0x3e0], eax
mov qword [rsi + 0x3d8], rax
mov byte [rsi + 0x3e1], 0
mov dword [rsi + 0x3f0], eax
mov qword [rsi + 0x3e8], rax
mov byte [rsi + 0x3f1], 0
mov dword [rsi + 0x400], eax
mov qword [rsi + 0x3f8], rax
mov byte [rsi + 0x401], 0
mov dword [rsi + 0x410], eax
mov qword [rsi + 0x408], rax
mov byte [rsi + 0x411], 0
mov dword [rsi + 0x420], eax
mov qword [rsi + 0x418], rax
mov byte [rsi + 0x421], 0
mov dword [rsi + 0x430], eax
mov qword [rsi + 0x428], rax
mov byte [rsi + 0x431], 0
mov dword [rsi + 0x440], eax
mov qword [rsi + 0x438], rax
mov byte [rsi + 0x441], 0
mov dword [rsi + 0x450], eax
mov qword [rsi + 0x448], rax
mov byte [rsi + 0x451], 0
mov dword [rsi + 0x460], eax
mov qword [rsi + 0x458], rax
mov byte [rsi + 0x461], 0
mov dword [rsi + 0x470], eax
mov qword [rsi + 0x468], rax
mov byte [rsi + 0x471], 0
mov dword [rsi + 0x480], eax
mov qword [rsi + 0x478], rax
mov byte [rsi + 0x481], 0
mov dword [rsi + 0x490], eax
mov qword [rsi + 0x488], rax
mov byte [rsi + 0x491], 0
mov dword [rsi + 0x4a0], eax
mov qword [rsi + 0x498], rax
mov byte [rsi + 0x4a1], 0
mov dword [rsi + 0x4b0], eax
mov qword [rsi + 0x4a8], rax
mov byte [rsi + 0x4b1], 0
mov dword [rsi + 0x4c0], eax
mov qword [rsi + 0x4b8], rax
mov byte [rsi + 0x4c1], 0
mov dword [rsi + 0x4d0], eax
mov qword [rsi + 0x4c8], rax
mov byte [rsi + 0x4d1], 0
mov dword [rsi + 0x4e0], eax
mov qword [rsi + 0x4d8], rax
mov byte [rsi + 0x4e1], 0
mov dword [rsi + 0x4f0], eax
mov qword [rsi + 0x4e8], rax
mov byte [rsi + 0x4f1], 0
mov qword [rsi + 0x4f8], rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [rsi + 0x500], eax
xorps xmm0, xmm0
movups xmmword [rsi + 0x508], xmm0
lea rcx, [0x14029ae18]
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x14015bd96
mov qword [rsi + 0x510], 0
mov rax, qword [0x14029ae20]
mov qword [0x14029ae20], rsi
mov qword [rsi + 0x508], rax
test rax, rax
je 0x14015bcd4
mov qword [rax + 0x510], rsi
lea rcx, [0x14029ae18]
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
xorps xmm0, xmm0
movups xmmword [rsi + 0x48], xmm0
movups xmmword [rsi + 0x38], xmm0
movups xmmword [rsi + 0x28], xmm0
movups xmmword [rsi + 0x18], xmm0
movups xmmword [rsi + 8], xmm0
lea rax, [rsi + 0x82]
xor ecx, ecx
lea rdx, [0x1402acc10]
nop dword [rax + rax]
mov qword [rax - 0xa], 0
mov byte [rax - 2], 0
movzx r8d, byte [rcx + rdx]
mov byte [rax - 1], r8b
movzx r8d, word [r12 + 0x18]
mov word [rax], r8w
cmp qword [r12], 0
je 0x14015bd90
inc rcx
add rax, 0x10
add r12, 0x28
cmp rcx, 0x48
jne 0x14015bd10
mov ecx, dword [0x1402acc00]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x1402a76e4]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov qword [rax + 0x178], rsi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1401830b0
mov rax, rsi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov byte [rax - 1], 0
jmp 0x14015bd36
lea rcx, [0x14029ae18]
call fcn.1400ee8b0
jmp 0x14015bca8
xor ecx, ecx
jmp 0x14015b684
mov rcx, rbx
call fcn.1400ee8b0
jmp 0x14015b634
lea rax, [rsp + 0x3f]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0x4000
mov rcx, r15
mov rdx, rdi
mov r8d, 2
mov r9, r14
call fcn.1400ee920
test rax, rax
je 0x14015be25
mov rsi, rax
mov rcx, rax
and rcx, 0xffffffffffe00000
mov rdx, rax
shr rdx, 9
and edx, 0xfe0
lea rax, [rdx + rcx]
movzx ecx, byte [rdx + rcx + 0x101e]
and ecx, 0x3f
shl rcx, 5
sub rax, rcx
add rax, 0x1000
jmp 0x14015b69e
int3
xor esi, esi
jmp 0x14015b6c8
movaps xmm0, xmmword [0x140268c70]
lea rdi, [rsp + 0x40]
movaps xmmword [rdi], xmm0
mov r8, qword [rsi]
lea rdx, str.first
mov rcx, rdi
call fcn.1401ef4e0
mov rcx, rdi
call fcn.140006910
mov rcx, r14
call fcn.1401c2fe0
int3