Function at 0x41c110
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 0x41c37a
mov byte [rsp + 0x37], 0
mov rax, qword [0x005ab088]
cmp rax, 3
jne 0x41c326
cmp byte [rsp + 0x37], 0
jne 0x41c33b
mov ecx, dword [0x0044e0c8]
test ecx, ecx
je 0x41c341
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x41c16d
mov rsi, rax
cmp byte [rax + 8], 0
jne 0x41c204
mov ecx, dword [0x0044e0c8]
test ecx, ecx
je 0x41c354
dec ecx
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x41c1b9
mov rsi, rax
cmp rax, 1
jne 0x41c1fe
lea rax, [0x005a2048]
mov qword [rsp + 0x20], rax
lea rcx, str.cannot_access_a_Thread_Local_Storage_value_during_or_after_destructionlibrarySSSSSSSSSSSSSSSSSSSSSSSS
lea r9, [0x005a0ac8]
lea r8, [rsp + 0x38]
mov edx, 0x46
call fcn.00404930
movzx eax, byte [0x005ab030]
mov edx, 0x10
xor ecx, ecx
call fcn.00447a90
test rax, rax
je 0x41c38d
mov rsi, rax
lea rax, [0x0044e0b0]
mov qword [rsi], rax
mov byte [rsi + 8], 0
mov ecx, dword [0x0044e0c8]
test ecx, ecx
je 0x41c367
dec ecx
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
mov word [rsi + 8], 1
add rsi, 9
mov rax, qword [0x005ab050]
cmp rax, rsi
jne 0x41c236
mov eax, dword [0x005ab080]
inc eax
jne 0x41c256
lea rcx, str.lock_count_overflow_in_reentrant_mutexlibraryOOOOOOOOOOOOOOOOOOOOOOOO
lea r8, [0x005a2440]
mov edx, 0x26
call fcn.00404bb0
lea rcx, [0x005ab048]
call sub.KERNEL32.dll_TryAcquireSRWLockExclusive
test al, al
je 0x41c33b
mov qword [0x005ab050], rsi
mov eax, 1
mov dword [0x005ab080], 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 [0x005ab058], 0
jne 0x41c386
mov qword [0x005ab058], 0xffffffffffffffff
cmp byte [0x005ab078], 0
jne 0x41c2cb
lea rcx, [0x005ab060]
call fcn.0041c4d0
mov qword [rsp + 0x58], rax
test rax, rax
je 0x41c2cb
lea rcx, [rsp + 0x58]
call fcn.0041af70
cmp qword [0x005ab060], 0
je 0x41c2e6
mov rcx, qword [0x005ab068]
mov edx, 1
call fcn.00401800
movups xmm0, xmmword [rsp + 0x38]
movups xmm1, xmmword [rsp + 0x48]
movups xmmword [0x005ab070], xmm1
movups xmmword [0x005ab060], xmm0
inc qword [0x005ab058]
dec dword [0x005ab080]
jne 0x41c33b
mov qword [0x005ab050], 0
lea rcx, [0x005ab048]
call sub.KERNEL32.dll_ReleaseSRWLockExclusive
jmp 0x41c33b
lea rcx, [rsp + 0x37]
call fcn.0041c460
cmp byte [rsp + 0x37], 0
je 0x41c145
add rsp, 0x60
pop rsi
ret
lea rcx, [0x0044e0b0]
call fcn.0041b8d0
mov ecx, eax
jmp 0x41c155
lea rcx, [0x0044e0b0]
call fcn.0041b8d0
mov ecx, eax
jmp 0x41c17d
lea rcx, [0x0044e0b0]
call fcn.0041b8d0
mov ecx, eax
jmp 0x41c1f6
lea rcx, str.OOOOOOOOOOOOOOOOOOOOOOOOOOOO
call fcn.00404b90
call fcn.00404090
ud2
mov ecx, 8
mov edx, 0x10
call fcn.00401d70
mov rsi, rax
cmp qword [0x005ab060], 0
je 0x41c3ba
mov rcx, qword [0x005ab068]
mov edx, 1
call fcn.00401800
movups xmm0, xmmword [rsp + 0x38]
movups xmm1, xmmword [rsp + 0x48]
movups xmmword [0x005ab070], xmm1
movups xmmword [0x005ab060], xmm0
inc qword [0x005ab058]
jmp 0x41c413
dec dword [0x005ab080]
jne 0x41c432
mov qword [0x005ab050], 0
lea rcx, [0x005ab048]
call sub.KERNEL32.dll_ReleaseSRWLockExclusive
mov rcx, rsi
call fcn.0044c650
cmp qword [rsp + 0x38], 0
je 0x41c451
mov rcx, qword [rsp + 0x40]
mov edx, 1
call fcn.00401800
call fcn.00404fa0
int3