Function at 0x1400c8e10
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
movaps xmmword [rsp + 0x40], xmm6
mov rsi, rcx
mov rax, qword [0x1401f5028]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov ecx, dword [0x1401f6f88]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x1400c8e6b
movsxd rcx, dword [rsi + 0x2f8]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [rsi + 0x2fc]
jne 0x1400c8e6b
cmp qword [rax + rcx], 0
jne 0x1400c8f74
mov eax, dword [0x1402003f8]
mov ecx, dword [0x1401f8a8c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400c8f97
mov ecx, dword [0x1401f6f88]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x1400c8f74
movsxd rcx, dword [0x1402003f0]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [0x1402003f4]
jne 0x1400c8f74
cmp qword [rax + rcx], 0
je 0x1400c8f74
mov rdi, qword [0x1401fe500]
cmp rdi, 1
jbe 0x1400c8fda
mov ecx, dword [0x1401f6f88]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x1400c8f74
movsxd rcx, dword [rdi]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [rdi + 4]
jne 0x1400c8f74
cmp qword [rax + rcx], 0
je 0x1400c8f74
mov eax, dword [0x140200188]
test eax, eax
jne 0x1400c9027
mov ecx, dword [0x1401f6f88]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x1400c907a
movsxd rcx, dword [rsi + 0x2f0]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [rsi + 0x2f4]
jne 0x1400c907a
mov rdi, qword [rax + rcx]
test rdi, rdi
je 0x1400c907a
mov rax, qword [rsi + 0x360]
cmp dword [rdi + 0x28], eax
jne 0x1400c906a
mov eax, dword [0x140200188]
test eax, eax
jne 0x1400c9042
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400f32c0
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [0x1402003f8]
call fcn.1400f0548
cmp dword [0x1402003f8], 0xffffffff
jne 0x1400c8e90
mov qword [0x1402003f0], 0
lea rcx, [0x1402003f0]
xor edx, edx
call fcn.14000d6e0
lea rcx, [0x1402003f8]
call fcn.1400f07ac
jmp 0x1400c8e90
lea rcx, [0x1401fe500]
call fcn.14000d630
test al, al
je 0x1400c954c
mov qword [0x1401fe508], 0
lea rbx, [0x1401fe500]
lea rdi, [0x1401fe508]
mov rcx, rdi
xor edx, edx
call fcn.14000d6e0
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
mov r9, rbx
call fcn.14000d5b0
jmp 0x1400c8edd
mov eax, dword [0x140200188]
test eax, eax
je 0x1400c8f18
call fcn.140050650
inc dword [rax + 0x38]
jmp 0x1400c8f18
mov eax, dword [0x140200188]
test eax, eax
je 0x1400c8f74
call fcn.140050650
mov ecx, dword [rax + 0x38]
test ecx, ecx
je 0x1400c8f74
dec ecx
mov dword [rax + 0x38], ecx
jmp 0x1400c8f74
mov rcx, rdi
call fcn.140042ac0
mov rcx, rdi
call fcn.1400f0498
mov ecx, 0x30
call fcn.1400f045c
mov r13, rax
lea rax, fcn.140125d80
mov qword [r13], rax
lea rax, [0x1401cd110]
mov qword [r13 + 8], rax
mov qword [r13 + 0x10], rsi
xorps xmm0, xmm0
movups xmmword [r13 + 0x18], xmm0
mov rax, qword [rsi + 0x360]
mov dword [r13 + 0x28], eax
mov eax, dword [0x1402003f8]
mov ecx, dword [0x1401f8a8c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400c9494
mov ecx, dword [0x1401f6f88]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x1400c94ea
movsxd rcx, dword [0x1402003f0]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [0x1402003f4]
jne 0x1400c94ea
mov rcx, qword [rax + rcx]
lea rdi, [r13 + 8]
add rcx, 0xe28
mov rdx, r13
call fcn.140019400
call fcn.14001aea0
mov rbx, rax
call fcn.1400e8640
mov rax, qword [rax]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x1400c913f
lock inc dword [rax + 8]
lea r8, str.ThreadLocalEventBuffer
lea r9, [rsp + 0x30]
mov rcx, rbx
mov rdx, rdi
call fcn.14001afd0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebp, eax
lea rdi, [rsi + 8]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x1400c94f1
call fcn.1400e8640
mov r14, qword [rax]
test r14, r14
je 0x1400c9185
lock inc dword [r14 + 8]
mov qword [rsp + 0x28], rdi
lea rax, [rsi + 0x308]
mov qword [rsp + 0x20], rax
movsxd r12, ebp
mov r15, qword [rsi + 0x310]
test r15, r15
jne 0x1400c935c
movabs rdi, 0xaaaaaaaaaaaaaaaa
mov ecx, 0x20
call fcn.1400f045c
mov rbx, rax
mov dword [rax + 0x10], r12d
xor eax, eax
mov qword [rbx + 0x18], rax
mov qword [rbx + 8], r12
mov qword [rbx], rax
mov rax, qword [rsi + 0x320]
inc rax
mov rbp, qword [rsp + 0x20]
js 0x1400c91ec
xorps xmm0, xmm0
cvtsi2ss xmm0, rax
jmp 0x1400c9201
mov rcx, rax
shr rcx, 1
and eax, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
mov rcx, r15
shr rcx, 1
mov eax, r15d
and eax, 1
or rax, rcx
test r15, r15
js 0x1400c921c
cvtsi2ss xmm1, r15
jmp 0x1400c9225
cvtsi2ss xmm1, rax
addss xmm1, xmm1
movss xmm2, dword [rsi + 0x328]
je 0x1400c923c
mulss xmm1, xmm2
ucomiss xmm0, xmm1
jbe 0x1400c92c1
divss xmm0, xmm2
call fcn.1401091d4
cvttss2si rcx, xmm0
movss xmm6, dword [0x1401bbf88]
movaps xmm1, xmm0
subss xmm1, xmm6
cvttss2si rax, xmm1
btc rax, 0x3f
ucomiss xmm0, xmm6
cmovb rax, rcx
lea rdx, [r15 + r15]
mov ecx, 1
cmp r15, 3
jae 0x1400c951a
or rcx, rdx
cmp rcx, rax
cmovb rcx, rax
mov edi, 2
cmp rcx, 1
jne 0x1400c9450
cmp rdi, r15
jbe 0x1400c9530
mov rcx, rbp
mov rdx, rdi
call fcn.1400076f0
mov r15, qword [rsi + 0x310]
lea rdi, [r15 - 1]
test r15, rdi
jne 0x1400c9476
and rdi, r12
mov rcx, qword [rbp]
mov rax, qword [rcx + rdi*8]
test rax, rax
jne 0x1400c9416
lea rax, [rsi + 0x318]
mov rdx, qword [rsi + 0x318]
mov qword [rbx], rdx
mov qword [rsi + 0x318], rbx
mov qword [rcx + rdi*8], rax
mov rax, qword [rbx]
test rax, rax
jne 0x1400c9424
inc qword [rsi + 0x320]
mov rcx, qword [rbx + 0x18]
mov qword [rbx + 0x18], r14
test rcx, rcx
jne 0x1400c94fe
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov ecx, dword [0x1401f6f88]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x1400c94d7
movsxd rcx, dword [rsi + 0x2f0]
shl rcx, 4
mov qword [rax + rcx], r13
mov ecx, dword [rsi + 0x2f4]
movsxd rdx, dword [rsi + 0x2f0]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
jmp 0x1400c8f66
mov rax, r15
shr rax, 1
movabs rcx, 0x5555555555555555
and rcx, rax
mov rax, r15
sub rax, rcx
movabs rcx, 0x3333333333333333
mov rdx, rax
and rdx, rcx
shr rax, 2
and rax, rcx
add rax, rdx
mov rcx, rax
shr rcx, 4
add rcx, rax
movabs rax, 0xf0f0f0f0f0f0f0f
and rax, rcx
movabs rcx, 0x101010101010101
imul rcx, rax
shr rcx, 0x38
cmp rcx, 1
ja 0x1400c9655
lea rdi, [r15 - 1]
and rdi, r12
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
mov rbx, qword [rax + rdi*8]
test rbx, rbx
je 0x1400c91b3
lea r8, [r15 - 1]
mov rbx, qword [rbx]
test rbx, rbx
je 0x1400c91b3
mov rax, qword [rbx + 8]
cmp rax, r12
je 0x1400c940c
cmp ecx, 1
ja 0x1400c9558
and rax, r8
cmp rax, rdi
jne 0x1400c91b3
cmp dword [rbx + 0x10], ebp
jne 0x1400c93e2
jmp 0x1400c9301
mov rcx, qword [rax]
mov qword [rbx], rcx
mov qword [rax], rbx
jmp 0x1400c92fa
mov rax, qword [rax + 8]
lea rcx, [r15 - 1]
test r15, rcx
je 0x1400c9671
cmp rax, r15
jb 0x1400c9442
xor edx, edx
div r15
mov rax, rdx
shl rax, 3
mov rcx, qword [rsp + 0x20]
add rax, qword [rcx]
jmp 0x1400c941c
lea rax, [rcx - 1]
test rcx, rax
je 0x1400c9679
call fcn.1400c5680
mov rdi, rax
mov r15, qword [rsi + 0x310]
mov rbp, qword [rsp + 0x20]
jmp 0x1400c9296
cmp r15, r12
ja 0x1400c9681
mov rax, r12
xor edx, edx
div r15
mov rdi, rdx
mov rbp, qword [rsp + 0x20]
jmp 0x1400c92c1
lea rcx, [0x1402003f8]
call fcn.1400f0548
cmp dword [0x1402003f8], 0xffffffff
jne 0x1400c90d9
mov qword [0x1402003f0], 0
lea rcx, [0x1402003f0]
xor edx, edx
call fcn.14000d6e0
lea rcx, [0x1402003f8]
call fcn.1400f07ac
jmp 0x1400c90d9
test r13, r13
je 0x1400c8f66
call fcn.140001340
jmp 0x1400c9333
xor ecx, ecx
jmp 0x1400c910e
mov rcx, rdi
call fcn.1400b0d10
jmp 0x1400c9173
lock dec dword [rcx + 8]
jne 0x1400c9312
add rcx, 8
add rcx, 0xfffffffffffffff8
call fcn.1400e2480
jmp 0x1400c9312
lea rbp, [r15 - 1]
xor ecx, ecx
test r15, rbp
mov rbp, qword [rsp + 0x20]
setne cl
jmp 0x1400c927d
jae 0x1400c92aa
mov rax, qword [rsi + 0x320]
test rax, rax
js 0x1400c956e
xorps xmm0, xmm0
cvtsi2ss xmm0, rax
jmp 0x1400c9586
mov rdi, qword [0x1401fe500]
jmp 0x1400c8edd
cmp rax, r15
jb 0x1400c9403
xor edx, edx
div r15
mov rax, rdx
jmp 0x1400c9403
mov rcx, rax
shr rcx, 1
and eax, 1
or rax, rcx
xorps xmm0, xmm0
cvtsi2ss xmm0, rax
addss xmm0, xmm0
divss xmm0, dword [rsi + 0x328]
call fcn.1401091d4
cvttss2si rcx, xmm0
movaps xmm1, xmm0
subss xmm1, xmm6
cvttss2si rax, xmm1
btc rax, 0x3f
ucomiss xmm0, xmm6
cmovb rax, rcx
cmp r15, 3
jb 0x1400c9633
mov rcx, r15
shr rcx, 1
movabs rdx, 0x5555555555555555
and rdx, rcx
mov rbp, r15
sub rbp, rdx
movabs rdx, 0x3333333333333333
mov rcx, rbp
shr rcx, 2
and rbp, rdx
and rcx, rdx
add rcx, rbp
mov rdx, rcx
shr rdx, 4
add rdx, rcx
movabs rcx, 0xf0f0f0f0f0f0f0f
and rcx, rdx
movabs rdx, 0x101010101010101
imul rdx, rcx
shr rdx, 0x38
cmp edx, 1
ja 0x1400c9633
cmp rax, 2
jb 0x1400c963b
dec rax
bsr rcx, rax
xor ecx, 0x3f
neg cl
mov eax, 1
shl rax, cl
jmp 0x1400c963b
mov rcx, rax
call fcn.1400c5680
cmp rdi, rax
cmovb rdi, rax
cmp rdi, r15
mov rbp, qword [rsp + 0x20]
jb 0x1400c929f
jmp 0x1400c92aa
mov rdi, r12
cmp r15, r12
ja 0x1400c93c9
mov rax, r12
xor edx, edx
div r15
mov rdi, rdx
jmp 0x1400c93c9
and rax, rcx
jmp 0x1400c9442
mov rdi, rcx
jmp 0x1400c946c
mov rdi, r12
jmp 0x1400c948a