Function at 0x1400d89d0
Capabilities:
Set thread local storage value

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x70
movaps xmmword [rsp + 0x60], xmm6
mov rax, qword [0x140346038]
xor rax, rsp
mov qword [rsp + 0x58], rax
test rcx, rcx
je 0x1400d9218
mov rsi, 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, [0x140306a20]
mov cl, byte [rdx + rcx + 0x41]
mov r8, r14
shr r8, cl
and r8d, 7
lea rcx, [0x140306a70]
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, [0x1402fcd20]
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, [rsi + r13*8]
add r15, 0x48
lea rbx, [rsi + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x1400d8ab8
lea r12, [rsi + 0x48]
mov rax, qword [r15]
mov rdi, qword [rax]
test rdi, rdi
je 0x1400d8ac2
mov byte [rsp + 0x3f], 0
mov rcx, qword [rdi]
test rcx, rcx
jne 0x1400d8b29
xor ecx, ecx
jmp 0x1400d8b55
mov rcx, rbx
call fcn.1400c1cd0
jmp 0x1400d8a95
lea rax, [rsp + 0x3f]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0x4000
mov rcx, r15
mov rdx, rsi
mov r8d, 2
mov r9, r14
call fcn.14012bb70
test rax, rax
je 0x1400d921b
mov rdi, rax
and rax, 0xffffffffffe00000
mov ecx, edi
shr ecx, 0xe
movzx ecx, cl
shl rcx, 5
or rcx, rax
mov rax, rcx
or rax, 0x1000
or rcx, 0x101e
movzx ecx, byte [rcx]
and ecx, 0x3f
shl rcx, 5
sub rax, rcx
jmp 0x1400d8b6f
bswap rcx
mov r14d, dword [r12 + r13*8 + 0x18]
mov rdx, rcx
xor rdx, rdi
cmp rdx, 0x1fffff
ja 0x1400d9222
mov edx, ecx
and edx, 0x1fc000
je 0x1400d9222
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 [rsi + 0x1498]
mov qword [rsi + 0x1498], rax
mov rcx, qword [rsi + 0x14a0]
cmp rcx, rax
cmova rax, rcx
mov qword [rsi + 0x14a0], rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
xor ebx, ebx
mov dword [rdi], ebx
mov byte [rdi + 4], 0
mov qword [rdi + 0x78], rbx
mov dword [rdi + 0x80], ebx
mov byte [rdi + 0x81], 0
mov dword [rdi + 0x90], ebx
mov qword [rdi + 0x88], rbx
mov byte [rdi + 0x91], 0
mov dword [rdi + 0xa0], ebx
mov qword [rdi + 0x98], rbx
mov byte [rdi + 0xa1], 0
mov dword [rdi + 0xb0], ebx
mov qword [rdi + 0xa8], rbx
mov byte [rdi + 0xb1], 0
mov dword [rdi + 0xc0], ebx
mov qword [rdi + 0xb8], rbx
mov byte [rdi + 0xc1], 0
mov dword [rdi + 0xd0], ebx
mov qword [rdi + 0xc8], rbx
mov byte [rdi + 0xd1], 0
mov dword [rdi + 0xe0], ebx
mov qword [rdi + 0xd8], rbx
mov byte [rdi + 0xe1], 0
mov dword [rdi + 0xf0], ebx
mov qword [rdi + 0xe8], rbx
mov byte [rdi + 0xf1], 0
mov dword [rdi + 0x100], ebx
mov qword [rdi + 0xf8], rbx
mov byte [rdi + 0x101], 0
mov dword [rdi + 0x110], ebx
mov qword [rdi + 0x108], rbx
mov byte [rdi + 0x111], 0
mov dword [rdi + 0x120], ebx
mov qword [rdi + 0x118], rbx
mov byte [rdi + 0x121], 0
mov dword [rdi + 0x130], ebx
mov qword [rdi + 0x128], rbx
mov byte [rdi + 0x131], 0
mov dword [rdi + 0x140], ebx
mov qword [rdi + 0x138], rbx
mov byte [rdi + 0x141], 0
mov dword [rdi + 0x150], ebx
mov qword [rdi + 0x148], rbx
mov byte [rdi + 0x151], 0
mov dword [rdi + 0x160], ebx
mov qword [rdi + 0x158], rbx
mov byte [rdi + 0x161], 0
mov dword [rdi + 0x170], ebx
mov qword [rdi + 0x168], rbx
mov byte [rdi + 0x171], 0
mov dword [rdi + 0x180], ebx
mov qword [rdi + 0x178], rbx
mov byte [rdi + 0x181], 0
mov dword [rdi + 0x190], ebx
mov qword [rdi + 0x188], rbx
mov byte [rdi + 0x191], 0
mov dword [rdi + 0x1a0], ebx
mov qword [rdi + 0x198], rbx
mov byte [rdi + 0x1a1], 0
mov dword [rdi + 0x1b0], ebx
mov qword [rdi + 0x1a8], rbx
mov byte [rdi + 0x1b1], 0
mov dword [rdi + 0x1c0], ebx
mov qword [rdi + 0x1b8], rbx
mov byte [rdi + 0x1c1], 0
mov dword [rdi + 0x1d0], ebx
mov qword [rdi + 0x1c8], rbx
mov byte [rdi + 0x1d1], 0
mov dword [rdi + 0x1e0], ebx
mov qword [rdi + 0x1d8], rbx
mov byte [rdi + 0x1e1], 0
mov dword [rdi + 0x1f0], ebx
mov qword [rdi + 0x1e8], rbx
mov byte [rdi + 0x1f1], 0
mov dword [rdi + 0x200], ebx
mov qword [rdi + 0x1f8], rbx
mov byte [rdi + 0x201], 0
mov dword [rdi + 0x210], ebx
mov qword [rdi + 0x208], rbx
mov byte [rdi + 0x211], 0
mov dword [rdi + 0x220], ebx
mov qword [rdi + 0x218], rbx
mov byte [rdi + 0x221], 0
mov dword [rdi + 0x230], ebx
mov qword [rdi + 0x228], rbx
mov byte [rdi + 0x231], 0
mov dword [rdi + 0x240], ebx
mov qword [rdi + 0x238], rbx
mov byte [rdi + 0x241], 0
mov dword [rdi + 0x250], ebx
mov qword [rdi + 0x248], rbx
mov byte [rdi + 0x251], 0
mov dword [rdi + 0x260], ebx
mov qword [rdi + 0x258], rbx
mov byte [rdi + 0x261], 0
mov dword [rdi + 0x270], ebx
mov qword [rdi + 0x268], rbx
mov byte [rdi + 0x271], 0
mov dword [rdi + 0x280], ebx
mov qword [rdi + 0x278], rbx
mov byte [rdi + 0x281], 0
mov dword [rdi + 0x290], ebx
mov qword [rdi + 0x288], rbx
mov byte [rdi + 0x291], 0
mov dword [rdi + 0x2a0], ebx
mov qword [rdi + 0x298], rbx
mov byte [rdi + 0x2a1], 0
mov dword [rdi + 0x2b0], ebx
mov qword [rdi + 0x2a8], rbx
mov byte [rdi + 0x2b1], 0
mov dword [rdi + 0x2c0], ebx
mov qword [rdi + 0x2b8], rbx
mov byte [rdi + 0x2c1], 0
mov dword [rdi + 0x2d0], ebx
mov qword [rdi + 0x2c8], rbx
mov byte [rdi + 0x2d1], 0
mov dword [rdi + 0x2e0], ebx
mov qword [rdi + 0x2d8], rbx
mov byte [rdi + 0x2e1], 0
mov dword [rdi + 0x2f0], ebx
mov qword [rdi + 0x2e8], rbx
mov byte [rdi + 0x2f1], 0
mov dword [rdi + 0x300], ebx
mov qword [rdi + 0x2f8], rbx
mov byte [rdi + 0x301], 0
mov dword [rdi + 0x310], ebx
mov qword [rdi + 0x308], rbx
mov byte [rdi + 0x311], 0
mov dword [rdi + 0x320], ebx
mov qword [rdi + 0x318], rbx
mov byte [rdi + 0x321], 0
mov dword [rdi + 0x330], ebx
mov qword [rdi + 0x328], rbx
mov byte [rdi + 0x331], 0
mov dword [rdi + 0x340], ebx
mov qword [rdi + 0x338], rbx
mov byte [rdi + 0x341], 0
mov dword [rdi + 0x350], ebx
mov qword [rdi + 0x348], rbx
mov byte [rdi + 0x351], 0
mov dword [rdi + 0x360], ebx
mov qword [rdi + 0x358], rbx
mov byte [rdi + 0x361], 0
mov dword [rdi + 0x370], ebx
mov qword [rdi + 0x368], rbx
mov byte [rdi + 0x371], 0
mov dword [rdi + 0x380], ebx
mov qword [rdi + 0x378], rbx
mov byte [rdi + 0x381], 0
mov dword [rdi + 0x390], ebx
mov qword [rdi + 0x388], rbx
mov byte [rdi + 0x391], 0
mov dword [rdi + 0x3a0], ebx
mov qword [rdi + 0x398], rbx
mov byte [rdi + 0x3a1], 0
mov dword [rdi + 0x3b0], ebx
mov qword [rdi + 0x3a8], rbx
mov byte [rdi + 0x3b1], 0
mov dword [rdi + 0x3c0], ebx
mov qword [rdi + 0x3b8], rbx
mov byte [rdi + 0x3c1], 0
mov dword [rdi + 0x3d0], ebx
mov qword [rdi + 0x3c8], rbx
mov byte [rdi + 0x3d1], 0
mov dword [rdi + 0x3e0], ebx
mov qword [rdi + 0x3d8], rbx
mov byte [rdi + 0x3e1], 0
mov dword [rdi + 0x3f0], ebx
mov qword [rdi + 0x3e8], rbx
mov byte [rdi + 0x3f1], 0
mov dword [rdi + 0x400], ebx
mov qword [rdi + 0x3f8], rbx
mov byte [rdi + 0x401], 0
mov dword [rdi + 0x410], ebx
mov qword [rdi + 0x408], rbx
mov byte [rdi + 0x411], 0
mov dword [rdi + 0x420], ebx
mov qword [rdi + 0x418], rbx
mov byte [rdi + 0x421], 0
mov dword [rdi + 0x430], ebx
mov qword [rdi + 0x428], rbx
mov byte [rdi + 0x431], 0
mov dword [rdi + 0x440], ebx
mov qword [rdi + 0x438], rbx
mov byte [rdi + 0x441], 0
mov dword [rdi + 0x450], ebx
mov qword [rdi + 0x448], rbx
mov byte [rdi + 0x451], 0
mov dword [rdi + 0x460], ebx
mov qword [rdi + 0x458], rbx
mov byte [rdi + 0x461], 0
mov dword [rdi + 0x470], ebx
mov qword [rdi + 0x468], rbx
mov byte [rdi + 0x471], 0
mov dword [rdi + 0x480], ebx
mov qword [rdi + 0x478], rbx
mov byte [rdi + 0x481], 0
mov dword [rdi + 0x490], ebx
mov qword [rdi + 0x488], rbx
mov byte [rdi + 0x491], 0
mov dword [rdi + 0x4a0], ebx
mov qword [rdi + 0x498], rbx
mov byte [rdi + 0x4a1], 0
mov dword [rdi + 0x4b0], ebx
mov qword [rdi + 0x4a8], rbx
mov byte [rdi + 0x4b1], 0
mov dword [rdi + 0x4c0], ebx
mov qword [rdi + 0x4b8], rbx
mov byte [rdi + 0x4c1], 0
mov dword [rdi + 0x4d0], ebx
mov qword [rdi + 0x4c8], rbx
mov byte [rdi + 0x4d1], 0
mov dword [rdi + 0x4e0], ebx
mov qword [rdi + 0x4d8], rbx
mov byte [rdi + 0x4e1], 0
mov dword [rdi + 0x4f0], ebx
mov qword [rdi + 0x4e8], rbx
mov byte [rdi + 0x4f1], 0
mov qword [rdi + 0x4f8], rsi
call sub.KERNEL32.dll_GetCurrentThreadId
mov dword [rdi + 0x500], eax
xorps xmm6, xmm6
movups xmmword [rdi + 0x508], xmm6
mov rcx, rdi
call fcn.1400d9270
movups xmmword [rdi + 0x48], xmm6
movups xmmword [rdi + 0x38], xmm6
movups xmmword [rdi + 0x28], xmm6
movups xmmword [rdi + 0x18], xmm6
movups xmmword [rdi + 8], xmm6
lea rax, [rdi + 0x82]
lea rcx, [0x14035bcb0]
nop dword [rax]
mov qword [rax - 0xa], 0
mov byte [rax - 2], 0
movzx edx, byte [rbx + rcx]
mov byte [rax - 1], dl
movzx edx, word [r12 + 0x18]
mov word [rax], dx
cmp qword [r12], 0
je 0x1400d9212
inc rbx
add rax, 0x10
add r12, 0x28
cmp rbx, 0x48
jne 0x1400d9190
mov ecx, dword [0x14035bca8]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x1403576e0]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov qword [rax + 0x140], rdi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140156fe0
mov rax, rdi
movaps xmm6, xmmword [rsp + 0x60]
add rsp, 0x70
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov byte [rax - 1], 0
jmp 0x1400d91b3
int3
xor edi, edi
jmp 0x1400d8b99
movaps xmm0, xmmword [0x1402fccc0]
lea rsi, [rsp + 0x40]
movaps xmmword [rsi], xmm0
mov r8, qword [rdi]
lea rdx, str.first
mov rcx, rsi
call fcn.1401bdfc0
mov rcx, rsi
call fcn.1400bf590
mov rcx, r14
call fcn.1401be000
int3