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

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov r14, rcx
mov ecx, dword [0x14003d17c]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
or ebx, 0xffffffff
mov rdi, rax
test rax, rax
jne 0x14001c299
mov ebx, dword [0x14003d17c]
lea rdx, [rsp + 0x58]
and dword [rsp + 0x58], eax
lea rdi, [rsp + 0x58]
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
inc dword [rdi]
mov rcx, qword [0x14003d048]
lea rax, [0x14003d048]
lea r8, [0x140035650]
mov r15d, 0x1df
cmp rcx, rax
je 0x14001c30a
test byte [rcx + 0x1c], 1
je 0x14001c30a
mov eax, dword [rdi]
lea edx, [rax + rax*4]
cmp edx, 0x1e1
ja 0x14001c2d8
mov eax, edx
mov edx, r15d
sub rdx, rax
jmp 0x14001c2da
xor edx, edx
mov eax, dword [r14 + 0x90]
lea r9, [rdx + r8]
mov rcx, qword [rcx + 0x10]
lea r8, [0x140036cb8]
mov dword [rsp + 0x28], eax
mov edx, 0x22
mov qword [rsp + 0x20], r14
call fcn.140001730
mov rcx, qword [0x14003d048]
and qword [rsp + 0x50], 0
mov edx, dword [r14 + 0x30]
test edx, edx
je 0x14001c34f
mov esi, dword [r14 + 0x34]
test esi, esi
js 0x14001c3b9
mov rcx, qword [0x14003da90]
lea r9, [rsp + 0x50]
lea r8, [0x140036ba8]
mov rax, qword [rcx]
mov rax, qword [rax + 0x28]
call qword [0x140034e68]
mov rcx, qword [0x14003d048]
mov esi, eax
jmp 0x14001c354
mov esi, 0x80070057
test esi, esi
js 0x14001c3b9
mov rcx, qword [rsp + 0x50]
xor edx, edx
mov rax, qword [rcx]
mov rax, qword [rax + 0x90]
call qword [0x140034e68]
mov esi, eax
test eax, eax
js 0x14001c3b2
mov ecx, dword [r14 + 0x90]
test ecx, ecx
je 0x14001c47e
cmp ecx, 1
je 0x14001c407
cmp ecx, 2
je 0x14001c3ee
cmp ecx, 3
je 0x14001c407
jle 0x14001c3b2
cmp ecx, 5
jle 0x14001c3ee
cmp ecx, 7
jle 0x14001c48e
cmp ecx, 8
jne 0x14001c3b2
mov dl, 1
mov rcx, r14
call fcn.1400212f8
mov rcx, qword [0x14003d048]
lea rax, [0x14003d048]
cmp rcx, rax
je 0x14001c51c
test byte [rcx + 0x1c], 1
je 0x14001c51c
mov eax, dword [rdi]
lea edx, [rax + rax*4]
cmp edx, 0x1e1
ja 0x14001c4f1
mov eax, edx
sub r15, rax
jmp 0x14001c4f4
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x128]
call qword [0x140034e68]
mov esi, eax
jmp 0x14001c3b2
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x118]
call qword [0x140034e68]
mov esi, eax
mov rcx, qword [0x14003d048]
lea rax, [0x14003d048]
cmp rcx, rax
je 0x14001c51c
test byte [rcx + 0x1c], 4
je 0x14001c3c0
mov eax, dword [rdi]
inc eax
lea edx, [rax + rax*4]
cmp edx, 0x1e1
ja 0x14001c454
mov eax, edx
mov rdx, r15
sub rdx, rax
jmp 0x14001c456
xor edx, edx
lea r9, [0x140035650]
add r9, rdx
mov edx, 0x23
mov rcx, qword [rcx + 0x10]
lea r8, [0x140036cb8]
mov dword [rsp + 0x20], esi
call fcn.140001304
jmp 0x14001c3b2
mov rax, qword [r14]
mov rcx, r14
mov rax, qword [rax + 0x30]
call qword [0x140034e68]
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x118]
call qword [0x140034e68]
mov esi, eax
mov rcx, qword [0x14003d048]
lea rax, [0x14003d048]
cmp rcx, rax
je 0x14001c51c
test byte [rcx + 0x1c], 4
je 0x14001c3c0
mov eax, dword [rdi]
inc eax
lea edx, [rax + rax*4]
cmp edx, 0x1e1
ja 0x14001c4db
mov eax, edx
mov rdx, r15
sub rdx, rax
jmp 0x14001c4dd
xor edx, edx
lea r9, [0x140035650]
add r9, rdx
mov edx, 0x24
jmp 0x14001c465
xor r15d, r15d
mov rcx, qword [rcx + 0x10]
lea r9, [0x140035650]
add r9, r15
mov dword [rsp + 0x28], esi
mov edx, 0x25
mov qword [rsp + 0x20], r14
lea r8, [0x140036cb8]
call fcn.140001730
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14001c539
and qword [rsp + 0x50], 0
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140034e68]
dec dword [rdi]
cmp ebx, 0xffffffff
je 0x14001c557
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
test rax, rax
je 0x14001c557
xor edx, edx
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
mov rbx, qword [rsp + 0x60]
mov eax, esi
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret