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

Disassembly:
push rsi
sub rsp, 0x60
mov rax, qword [rcx]
cmp byte [rax], 0
mov byte [rax], 0
je 0x1001c14a
mov byte [rsp + 0x37], 0
mov rax, qword [0x10064078]
cmp rax, 3
jne 0x1001c0f6
cmp byte [rsp + 0x37], 0
jne 0x1001c10b
mov ecx, dword [0x1004f0b8]
test ecx, ecx
je 0x1001c111
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x1001bf3d
mov rsi, rax
cmp byte [rax + 8], 0
jne 0x1001bfd4
mov ecx, dword [0x1004f0b8]
test ecx, ecx
je 0x1001c124
dec ecx
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x1001bf89
mov rsi, rax
cmp rax, 1
jne 0x1001bfce
lea rax, [0x1005b778]
mov qword [rsp + 0x20], rax
lea rcx, str.cannot_access_a_Thread_Local_Storage_value_during_or_after_destructionlibraryTTTTTTTGGGGwwooooooooooo
lea r9, [0x1005a2c8]
lea r8, [rsp + 0x38]
mov edx, 0x46
call fcn.100046b0
movzx eax, byte [0x10064020]
mov edx, 0x10
xor ecx, ecx
call fcn.100481f0
test rax, rax
je 0x1001c15d
mov rsi, rax
lea rax, [0x1004f0a0]
mov qword [rsi], rax
mov byte [rsi + 8], 0
mov ecx, dword [0x1004f0b8]
test ecx, ecx
je 0x1001c137
dec ecx
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
mov word [rsi + 8], 1
add rsi, 9
mov rax, qword [0x10064040]
cmp rax, rsi
jne 0x1001c006
mov eax, dword [0x10064070]
inc eax
jne 0x1001c026
lea rcx, str.lock_count_overflow_in_reentrant_mutexlibraryFFFFFFFFFFFFFFFFFFFFFFFF
lea r8, [0x1005bba0]
mov edx, 0x26
call fcn.10004930
lea rcx, [0x10064038]
call sub.KERNEL32.dll_TryAcquireSRWLockExclusive
test al, al
je 0x1001c10b
mov qword [0x10064040], rsi
mov eax, 1
mov dword [0x10064070], eax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x40], 1
mov qword [rsp + 0x48], 0
mov byte [rsp + 0x50], 0
mov byte [rsp + 0x55], 0
mov dword [rsp + 0x51], 0
cmp qword [0x10064048], 0
jne 0x1001c156
mov qword [0x10064048], 0xffffffffffffffff
cmp byte [0x10064068], 0
jne 0x1001c09b
lea rcx, [0x10064050]
call fcn.1001c2a0
mov qword [rsp + 0x58], rax
test rax, rax
je 0x1001c09b
lea rcx, [rsp + 0x58]
call fcn.1001ad40
cmp qword [0x10064050], 0
je 0x1001c0b6
mov rcx, qword [0x10064058]
mov edx, 1
call fcn.10001660
movups xmm0, xmmword [rsp + 0x38]
movups xmm1, xmmword [rsp + 0x48]
movups xmmword [0x10064060], xmm1
movups xmmword [0x10064050], xmm0
inc qword [0x10064048]
dec dword [0x10064070]
jne 0x1001c10b
mov qword [0x10064040], 0
lea rcx, [0x10064038]
call sub.KERNEL32.dll_ReleaseSRWLockExclusive
jmp 0x1001c10b
lea rcx, [rsp + 0x37]
call fcn.1001c230
cmp byte [rsp + 0x37], 0
je 0x1001bf15
add rsp, 0x60
pop rsi
ret
lea rcx, [0x1004f0a0]
call fcn.1001b6a0
mov ecx, eax
jmp 0x1001bf25
lea rcx, [0x1004f0a0]
call fcn.1001b6a0
mov ecx, eax
jmp 0x1001bf4d
lea rcx, [0x1004f0a0]
call fcn.1001b6a0
mov ecx, eax
jmp 0x1001bfc6
lea rcx, str.oooooooooooooooooooottttuuFF
call fcn.10004910
call fcn.10003e10
ud2
mov ecx, 8
mov edx, 0x10
call fcn.10001bd0
mov rsi, rax
cmp qword [0x10064050], 0
je 0x1001c18a
mov rcx, qword [0x10064058]
mov edx, 1
call fcn.10001660
movups xmm0, xmmword [rsp + 0x38]
movups xmm1, xmmword [rsp + 0x48]
movups xmmword [0x10064060], xmm1
movups xmmword [0x10064050], xmm0
inc qword [0x10064048]
jmp 0x1001c1e3
dec dword [0x10064070]
jne 0x1001c202
mov qword [0x10064040], 0
lea rcx, [0x10064038]
call sub.KERNEL32.dll_ReleaseSRWLockExclusive
mov rcx, rsi
call fcn.1004cda0
cmp qword [rsp + 0x38], 0
je 0x1001c221
mov rcx, qword [rsp + 0x40]
mov edx, 1
call fcn.10001660
call fcn.10004d20
int3