Function at 0x140088de0
Capabilities:
Set thread local storage value

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rax, qword [0x14012c028]
xor rax, rsp
mov qword [rsp + 0x50], rax
test rcx, rcx
je 0x140089659
mov rsi, rcx
mov r14d, dword [rcx + 0xc]
add r14, 0x518
mov byte [rsp + 0x3f], 0xaa
mov dl, byte [rcx + 2]
mov rcx, r14
call fcn.140071b10
movzx eax, ax
lea r12, [rax + rax*4]
lea r15, [rsi + r12*8]
add r15, 0x48
lea rbx, [rsi + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x140089612
mov rax, qword [r15]
mov rdi, qword [rax]
test rdi, rdi
je 0x1400895a0
mov byte [rsp + 0x3f], 0
mov rcx, qword [rdi]
test rcx, rcx
je 0x14008960b
lea rdx, [rsi + r12*8]
bswap rcx
mov r14d, dword [rdx + 0x60]
mov rdx, rcx
xor rdx, rdi
cmp rdx, 0x1fffff
ja 0x140089628
mov edx, ecx
and edx, 0x1fc000
je 0x140089628
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 eax, eax
mov dword [rdi], eax
mov byte [rdi + 4], 0
mov qword [rdi + 0x78], rax
mov dword [rdi + 0x80], eax
mov byte [rdi + 0x81], 0
mov dword [rdi + 0x90], eax
mov qword [rdi + 0x88], rax
mov byte [rdi + 0x91], 0
mov dword [rdi + 0xa0], eax
mov qword [rdi + 0x98], rax
mov byte [rdi + 0xa1], 0
mov dword [rdi + 0xb0], eax
mov qword [rdi + 0xa8], rax
mov byte [rdi + 0xb1], 0
mov dword [rdi + 0xc0], eax
mov qword [rdi + 0xb8], rax
mov byte [rdi + 0xc1], 0
mov dword [rdi + 0xd0], eax
mov qword [rdi + 0xc8], rax
mov byte [rdi + 0xd1], 0
mov dword [rdi + 0xe0], eax
mov qword [rdi + 0xd8], rax
mov byte [rdi + 0xe1], 0
mov dword [rdi + 0xf0], eax
mov qword [rdi + 0xe8], rax
mov byte [rdi + 0xf1], 0
mov dword [rdi + 0x100], eax
mov qword [rdi + 0xf8], rax
mov byte [rdi + 0x101], 0
mov dword [rdi + 0x110], eax
mov qword [rdi + 0x108], rax
mov byte [rdi + 0x111], 0
mov dword [rdi + 0x120], eax
mov qword [rdi + 0x118], rax
mov byte [rdi + 0x121], 0
mov dword [rdi + 0x130], eax
mov qword [rdi + 0x128], rax
mov byte [rdi + 0x131], 0
mov dword [rdi + 0x140], eax
mov qword [rdi + 0x138], rax
mov byte [rdi + 0x141], 0
mov dword [rdi + 0x150], eax
mov qword [rdi + 0x148], rax
mov byte [rdi + 0x151], 0
mov dword [rdi + 0x160], eax
mov qword [rdi + 0x158], rax
mov byte [rdi + 0x161], 0
mov dword [rdi + 0x170], eax
mov qword [rdi + 0x168], rax
mov byte [rdi + 0x171], 0
mov dword [rdi + 0x180], eax
mov qword [rdi + 0x178], rax
mov byte [rdi + 0x181], 0
mov dword [rdi + 0x190], eax
mov qword [rdi + 0x188], rax
mov byte [rdi + 0x191], 0
mov dword [rdi + 0x1a0], eax
mov qword [rdi + 0x198], rax
mov byte [rdi + 0x1a1], 0
mov dword [rdi + 0x1b0], eax
mov qword [rdi + 0x1a8], rax
mov byte [rdi + 0x1b1], 0
mov dword [rdi + 0x1c0], eax
mov qword [rdi + 0x1b8], rax
mov byte [rdi + 0x1c1], 0
mov dword [rdi + 0x1d0], eax
mov qword [rdi + 0x1c8], rax
mov byte [rdi + 0x1d1], 0
mov dword [rdi + 0x1e0], eax
mov qword [rdi + 0x1d8], rax
mov byte [rdi + 0x1e1], 0
mov dword [rdi + 0x1f0], eax
mov qword [rdi + 0x1e8], rax
mov byte [rdi + 0x1f1], 0
mov dword [rdi + 0x200], eax
mov qword [rdi + 0x1f8], rax
mov byte [rdi + 0x201], 0
mov dword [rdi + 0x210], eax
mov qword [rdi + 0x208], rax
mov byte [rdi + 0x211], 0
mov dword [rdi + 0x220], eax
mov qword [rdi + 0x218], rax
mov byte [rdi + 0x221], 0
mov dword [rdi + 0x230], eax
mov qword [rdi + 0x228], rax
mov byte [rdi + 0x231], 0
mov dword [rdi + 0x240], eax
mov qword [rdi + 0x238], rax
mov byte [rdi + 0x241], 0
mov dword [rdi + 0x250], eax
mov qword [rdi + 0x248], rax
mov byte [rdi + 0x251], 0
mov dword [rdi + 0x260], eax
mov qword [rdi + 0x258], rax
mov byte [rdi + 0x261], 0
mov dword [rdi + 0x270], eax
mov qword [rdi + 0x268], rax
mov byte [rdi + 0x271], 0
mov dword [rdi + 0x280], eax
mov qword [rdi + 0x278], rax
mov byte [rdi + 0x281], 0
mov dword [rdi + 0x290], eax
mov qword [rdi + 0x288], rax
mov byte [rdi + 0x291], 0
mov dword [rdi + 0x2a0], eax
mov qword [rdi + 0x298], rax
mov byte [rdi + 0x2a1], 0
mov dword [rdi + 0x2b0], eax
mov qword [rdi + 0x2a8], rax
mov byte [rdi + 0x2b1], 0
mov dword [rdi + 0x2c0], eax
mov qword [rdi + 0x2b8], rax
mov byte [rdi + 0x2c1], 0
mov dword [rdi + 0x2d0], eax
mov qword [rdi + 0x2c8], rax
mov byte [rdi + 0x2d1], 0
mov dword [rdi + 0x2e0], eax
mov qword [rdi + 0x2d8], rax
mov byte [rdi + 0x2e1], 0
mov dword [rdi + 0x2f0], eax
mov qword [rdi + 0x2e8], rax
mov byte [rdi + 0x2f1], 0
mov dword [rdi + 0x300], eax
mov qword [rdi + 0x2f8], rax
mov byte [rdi + 0x301], 0
mov dword [rdi + 0x310], eax
mov qword [rdi + 0x308], rax
mov byte [rdi + 0x311], 0
mov dword [rdi + 0x320], eax
mov qword [rdi + 0x318], rax
mov byte [rdi + 0x321], 0
mov dword [rdi + 0x330], eax
mov qword [rdi + 0x328], rax
mov byte [rdi + 0x331], 0
mov dword [rdi + 0x340], eax
mov qword [rdi + 0x338], rax
mov byte [rdi + 0x341], 0
mov dword [rdi + 0x350], eax
mov qword [rdi + 0x348], rax
mov byte [rdi + 0x351], 0
mov dword [rdi + 0x360], eax
mov qword [rdi + 0x358], rax
mov byte [rdi + 0x361], 0
mov dword [rdi + 0x370], eax
mov qword [rdi + 0x368], rax
mov byte [rdi + 0x371], 0
mov dword [rdi + 0x380], eax
mov qword [rdi + 0x378], rax
mov byte [rdi + 0x381], 0
mov dword [rdi + 0x390], eax
mov qword [rdi + 0x388], rax
mov byte [rdi + 0x391], 0
mov dword [rdi + 0x3a0], eax
mov qword [rdi + 0x398], rax
mov byte [rdi + 0x3a1], 0
mov dword [rdi + 0x3b0], eax
mov qword [rdi + 0x3a8], rax
mov byte [rdi + 0x3b1], 0
mov dword [rdi + 0x3c0], eax
mov qword [rdi + 0x3b8], rax
mov byte [rdi + 0x3c1], 0
mov dword [rdi + 0x3d0], eax
mov qword [rdi + 0x3c8], rax
mov byte [rdi + 0x3d1], 0
mov dword [rdi + 0x3e0], eax
mov qword [rdi + 0x3d8], rax
mov byte [rdi + 0x3e1], 0
mov dword [rdi + 0x3f0], eax
mov qword [rdi + 0x3e8], rax
mov byte [rdi + 0x3f1], 0
mov dword [rdi + 0x400], eax
mov qword [rdi + 0x3f8], rax
mov byte [rdi + 0x401], 0
mov dword [rdi + 0x410], eax
mov qword [rdi + 0x408], rax
mov byte [rdi + 0x411], 0
mov dword [rdi + 0x420], eax
mov qword [rdi + 0x418], rax
mov byte [rdi + 0x421], 0
mov dword [rdi + 0x430], eax
mov qword [rdi + 0x428], rax
mov byte [rdi + 0x431], 0
mov dword [rdi + 0x440], eax
mov qword [rdi + 0x438], rax
mov byte [rdi + 0x441], 0
mov dword [rdi + 0x450], eax
mov qword [rdi + 0x448], rax
mov byte [rdi + 0x451], 0
mov dword [rdi + 0x460], eax
mov qword [rdi + 0x458], rax
mov byte [rdi + 0x461], 0
mov dword [rdi + 0x470], eax
mov qword [rdi + 0x468], rax
mov byte [rdi + 0x471], 0
mov dword [rdi + 0x480], eax
mov qword [rdi + 0x478], rax
mov byte [rdi + 0x481], 0
mov dword [rdi + 0x490], eax
mov qword [rdi + 0x488], rax
mov byte [rdi + 0x491], 0
mov dword [rdi + 0x4a0], eax
mov qword [rdi + 0x498], rax
mov byte [rdi + 0x4a1], 0
mov dword [rdi + 0x4b0], eax
mov qword [rdi + 0x4a8], rax
mov byte [rdi + 0x4b1], 0
mov dword [rdi + 0x4c0], eax
mov qword [rdi + 0x4b8], rax
mov byte [rdi + 0x4c1], 0
mov dword [rdi + 0x4d0], eax
mov qword [rdi + 0x4c8], rax
mov byte [rdi + 0x4d1], 0
mov dword [rdi + 0x4e0], eax
mov qword [rdi + 0x4d8], rax
mov byte [rdi + 0x4e1], 0
mov dword [rdi + 0x4f0], eax
mov qword [rdi + 0x4e8], rax
mov byte [rdi + 0x4f1], 0
mov qword [rdi + 0x4f8], rsi
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [rdi + 0x500], eax
xorps xmm0, xmm0
movups xmmword [rdi + 0x508], xmm0
lea rcx, [0x14012f5a8]
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x14008965c
mov qword [rdi + 0x510], 0
mov rax, qword [0x14012f5b0]
mov qword [0x14012f5b0], rdi
mov qword [rdi + 0x508], rax
test rax, rax
je 0x1400894e6
mov qword [rax + 0x510], rdi
lea rcx, [0x14012f5a8]
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
xorps xmm0, xmm0
movups xmmword [rdi + 0x48], xmm0
movups xmmword [rdi + 0x38], xmm0
movups xmmword [rdi + 0x28], xmm0
movups xmmword [rdi + 0x18], xmm0
movups xmmword [rdi + 8], xmm0
lea rax, [rdi + 0x82]
add rsi, 0x48
xor ecx, ecx
lea rdx, [0x14013e730]
nop
mov qword [rax - 0xa], 0
mov byte [rax - 2], 0
movzx r8d, byte [rcx + rdx]
mov byte [rax - 1], r8b
movzx r8d, word [rsi + 0x18]
mov word [rax], r8w
cmp qword [rsi], 0
je 0x14008961f
inc rcx
add rax, 0x10
add rsi, 0x28
cmp rcx, 0x48
jne 0x140089520
mov ecx, dword [0x14013e720]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x14013ba7c]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov qword [rax + 0x120], rdi
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400985e0
mov rax, rdi
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
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.140062f90
test rax, rax
je 0x14008966d
mov rdi, 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 0x140088eb0
xor ecx, ecx
jmp 0x140088e96
mov rcx, rbx
call fcn.140062f20
jmp 0x140088e47
mov byte [rax - 1], 0
jmp 0x140089548
movaps xmm0, xmmword [0x140114940]
lea rsi, [rsp + 0x40]
movaps xmmword [rsi], xmm0
mov r8, qword [rdi]
lea rdx, str.first
mov rcx, rsi
call fcn.1400e4320
mov rcx, rsi
call fcn.140001540
mov rcx, r14
call fcn.1400e4630
int3
lea rcx, [0x14012f5a8]
call fcn.140062f20
jmp 0x1400894ba
xor edi, edi
jmp 0x140088eda