Function at 0x1001b050
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 0x1001b2ba
mov byte [rsp + 0x37], 0
mov rax, qword [0x101aa078]
cmp rax, 3
jne 0x1001b266
cmp byte [rsp + 0x37], 0
jne 0x1001b27b
mov ecx, dword [0x1004d0b8]
test ecx, ecx
je 0x1001b281
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x1001b0ad
mov rsi, rax
cmp byte [rax + 8], 0
jne 0x1001b144
mov ecx, dword [0x1004d0b8]
test ecx, ecx
je 0x1001b294
dec ecx
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x1001b0f9
mov rsi, rax
cmp rax, 1
jne 0x1001b13e
lea rax, [0x101a14b8]
mov qword [rsp + 0x20], rax
lea rcx, str.cannot_access_a_Thread_Local_Storage_value_during_or_after_destructionlibraryZZZZZZZZZZZZZZZeeeaaaaaa
lea r9, [0x101a0008]
lea r8, [rsp + 0x38]
mov edx, 0x46
call fcn.10007aa0
movzx eax, byte [0x101aa020]
mov edx, 0x10
xor ecx, ecx
call fcn.100468b0
test rax, rax
je 0x1001b2cd
mov rsi, rax
lea rax, [0x1004d0a0]
mov qword [rsi], rax
mov byte [rsi + 8], 0
mov ecx, dword [0x1004d0b8]
test ecx, ecx
je 0x1001b2a7
dec ecx
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
mov word [rsi + 8], 1
add rsi, 9
mov rax, qword [0x101aa040]
cmp rax, rsi
jne 0x1001b176
mov eax, dword [0x101aa070]
inc eax
jne 0x1001b196
lea rcx, str.lock_count_overflow_in_reentrant_mutexlibraryAAAAAAAAAAAAAAAAAAAAAAAA
lea r8, [0x101a18b0]
mov edx, 0x26
call fcn.10007d20
lea rcx, [0x101aa038]
call sub.KERNEL32.dll_TryAcquireSRWLockExclusive
test al, al
je 0x1001b27b
mov qword [0x101aa040], rsi
mov eax, 1
mov dword [0x101aa070], 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 [0x101aa048], 0
jne 0x1001b2c6
mov qword [0x101aa048], 0xffffffffffffffff
cmp byte [0x101aa068], 0
jne 0x1001b20b
lea rcx, [0x101aa050]
call fcn.1001b410
mov qword [rsp + 0x58], rax
test rax, rax
je 0x1001b20b
lea rcx, [rsp + 0x58]
call fcn.10019eb0
cmp qword [0x101aa050], 0
je 0x1001b226
mov rcx, qword [0x101aa058]
mov edx, 1
call fcn.10004c20
movups xmm0, xmmword [rsp + 0x38]
movups xmm1, xmmword [rsp + 0x48]
movups xmmword [0x101aa060], xmm1
movups xmmword [0x101aa050], xmm0
inc qword [0x101aa048]
dec dword [0x101aa070]
jne 0x1001b27b
mov qword [0x101aa040], 0
lea rcx, [0x101aa038]
call sub.KERNEL32.dll_ReleaseSRWLockExclusive
jmp 0x1001b27b
lea rcx, [rsp + 0x37]
call fcn.1001b3a0
cmp byte [rsp + 0x37], 0
je 0x1001b085
add rsp, 0x60
pop rsi
ret
lea rcx, [0x1004d0a0]
call fcn.1001a810
mov ecx, eax
jmp 0x1001b095
lea rcx, [0x1004d0a0]
call fcn.1001a810
mov ecx, eax
jmp 0x1001b0bd
lea rcx, [0x1004d0a0]
call fcn.1001a810
mov ecx, eax
jmp 0x1001b136
lea rcx, str.aaaaaaaaaaaaaaaaaaaaaaaLLLLA
call fcn.10007d00
call fcn.10007200
ud2
mov ecx, 8
mov edx, 0x10
call fcn.10005130
mov rsi, rax
cmp qword [0x101aa050], 0
je 0x1001b2fa
mov rcx, qword [0x101aa058]
mov edx, 1
call fcn.10004c20
movups xmm0, xmmword [rsp + 0x38]
movups xmm1, xmmword [rsp + 0x48]
movups xmmword [0x101aa060], xmm1
movups xmmword [0x101aa050], xmm0
inc qword [0x101aa048]
jmp 0x1001b353
dec dword [0x101aa070]
jne 0x1001b372
mov qword [0x101aa040], 0
lea rcx, [0x101aa038]
call sub.KERNEL32.dll_ReleaseSRWLockExclusive
mov rcx, rsi
call fcn.1004b460
cmp qword [rsp + 0x38], 0
je 0x1001b391
mov rcx, qword [rsp + 0x40]
mov edx, 1
call fcn.10004c20
call fcn.10008110
int3