Function at 0x41b460
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 0x41b6ca
mov byte [rsp + 0x37], 0
mov rax, qword [0x00b90088]
cmp rax, 3
jne 0x41b676
cmp byte [rsp + 0x37], 0
jne 0x41b68b
mov ecx, dword [0x0044e0c8]
test ecx, ecx
je 0x41b691
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x41b4bd
mov rsi, rax
cmp byte [rax + 8], 0
jne 0x41b554
mov ecx, dword [0x0044e0c8]
test ecx, ecx
je 0x41b6a4
dec ecx
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x41b509
mov rsi, rax
cmp rax, 1
jne 0x41b54e
lea rax, [0x00b877c8]
mov qword [rsp + 0x20], rax
lea rcx, str.cannot_access_a_Thread_Local_Storage_value_during_or_after_destructionlibraryZZZZZZZZZZZZZZZZZZZZZZZZ
lea r9, [0x00b86248]
lea r8, [rsp + 0x38]
mov edx, 0x46
call fcn.00404770
movzx eax, byte [0x00b90030]
mov edx, 0x10
xor ecx, ecx
call fcn.00446d60
test rax, rax
je 0x41b6dd
mov rsi, rax
lea rax, [0x0044e0b0]
mov qword [rsi], rax
mov byte [rsi + 8], 0
mov ecx, dword [0x0044e0c8]
test ecx, ecx
je 0x41b6b7
dec ecx
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
mov word [rsi + 8], 1
add rsi, 9
mov rax, qword [0x00b90050]
cmp rax, rsi
jne 0x41b586
mov eax, dword [0x00b90080]
inc eax
jne 0x41b5a6
lea rcx, str.lock_count_overflow_in_reentrant_mutexlibraryeeeeeeeeeeeeeeeeeeeeeeee
lea r8, [0x00b87bc0]
mov edx, 0x26
call fcn.004049f0
lea rcx, [0x00b90048]
call sub.KERNEL32.dll_TryAcquireSRWLockExclusive
test al, al
je 0x41b68b
mov qword [0x00b90050], rsi
mov eax, 1
mov dword [0x00b90080], 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 [0x00b90058], 0
jne 0x41b6d6
mov qword [0x00b90058], 0xffffffffffffffff
cmp byte [0x00b90078], 0
jne 0x41b61b
lea rcx, [0x00b90060]
call fcn.0041b820
mov qword [rsp + 0x58], rax
test rax, rax
je 0x41b61b
lea rcx, [rsp + 0x58]
call fcn.0041a2c0
cmp qword [0x00b90060], 0
je 0x41b636
mov rcx, qword [0x00b90068]
mov edx, 1
call fcn.00419660
movups xmm0, xmmword [rsp + 0x38]
movups xmm1, xmmword [rsp + 0x48]
movups xmmword [0x00b90070], xmm1
movups xmmword [0x00b90060], xmm0
inc qword [0x00b90058]
dec dword [0x00b90080]
jne 0x41b68b
mov qword [0x00b90050], 0
lea rcx, [0x00b90048]
call sub.KERNEL32.dll_ReleaseSRWLockExclusive
jmp 0x41b68b
lea rcx, [rsp + 0x37]
call fcn.0041b7b0
cmp byte [rsp + 0x37], 0
je 0x41b495
add rsp, 0x60
pop rsi
ret
lea rcx, [0x0044e0b0]
call fcn.0041ac20
mov ecx, eax
jmp 0x41b4a5
lea rcx, [0x0044e0b0]
call fcn.0041ac20
mov ecx, eax
jmp 0x41b4cd
lea rcx, [0x0044e0b0]
call fcn.0041ac20
mov ecx, eax
jmp 0x41b546
lea rcx, str.eeeeeeeeeeeeeeeeeeeeeeeeeeee
call fcn.004049d0
call fcn.00403ed0
ud2
mov ecx, 8
mov edx, 0x10
call fcn.00401d20
mov rsi, rax
cmp qword [0x00b90060], 0
je 0x41b70a
mov rcx, qword [0x00b90068]
mov edx, 1
call fcn.00419660
movups xmm0, xmmword [rsp + 0x38]
movups xmm1, xmmword [rsp + 0x48]
movups xmmword [0x00b90070], xmm1
movups xmmword [0x00b90060], xmm0
inc qword [0x00b90058]
jmp 0x41b763
dec dword [0x00b90080]
jne 0x41b782
mov qword [0x00b90050], 0
lea rcx, [0x00b90048]
call sub.KERNEL32.dll_ReleaseSRWLockExclusive
mov rcx, rsi
call fcn.0044b920
cmp qword [rsp + 0x38], 0
je 0x41b7a1
mov rcx, qword [rsp + 0x40]
mov edx, 1
call fcn.00419660
call fcn.00404de0
int3