Function at 0x14001e7e8
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 rsi, rcx
mov ecx, dword [0x14003d17c]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
or ebx, 0xffffffff
mov r14, rax
test rax, rax
jne 0x14001e831
mov ebx, dword [0x14003d17c]
lea rdx, [rsp + 0x58]
and dword [rsp + 0x58], eax
lea r14, [rsp + 0x58]
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
inc dword [r14]
mov r10, qword [0x14003d048]
lea rax, [0x14003d048]
lea rdx, [0x140035650]
mov r15d, 0x1df
cmp r10, rax
je 0x14001e893
test byte [r10 + 0x1c], 1
je 0x14001e893
mov eax, dword [r14]
lea ecx, [rax + rax*4]
cmp ecx, 0x1e1
ja 0x14001e873
mov eax, ecx
mov ecx, r15d
sub rcx, rax
jmp 0x14001e875
xor ecx, ecx
lea r9, [rcx + rdx]
mov qword [rsp + 0x20], rsi
mov rcx, qword [r10 + 0x10]
lea r8, [0x140036cb8]
mov edx, 0x44
call fcn.140001370
mov rcx, rsi
mov byte [rsi + 0x134], 0
call fcn.14001e61c
mov edi, eax
test eax, eax
js 0x14001e9ed
lea rdx, [0x14001f810]
mov rcx, rsi
call fcn.14001bf08
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateEventW]
mov rcx, qword [rsi + 0x140]
mov rdi, rax
and qword [rsi + 0x140], 0
lea rdx, [rcx - 1]
cmp rdx, 0xfffffffffffffffd
ja 0x14001e8ef
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
lea rax, [rdi + 1]
mov qword [rsi + 0x140], rdi
test rax, 0xfffffffffffffffe
jne 0x14001e928
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov eax, 0x80004005
test edi, edi
cmovns edi, eax
test edi, edi
js 0x14001e9ed
lea rdx, [0x14001f200]
mov rcx, rsi
call fcn.14001bf08
mov edi, eax
test eax, eax
js 0x14001e9ed
mov rcx, qword [rsi + 0x140]
mov edx, 0x2710
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
test eax, eax
je 0x14001e961
mov edi, 0x80070102
jmp 0x14001e9ed
mov edx, dword [rsi + 0x30]
xor ecx, ecx
mov qword [rsp + 0x50], rcx
test edx, edx
je 0x14001e99f
mov edi, dword [rsi + 0x34]
test edi, edi
js 0x14001e9d5
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 [rsp + 0x50]
mov edi, eax
jmp 0x14001e9a4
mov edi, 0x80070057
test edi, edi
js 0x14001e9d5
mov rax, qword [rcx]
mov rax, qword [rax + 0x110]
call qword [0x140034e68]
mov edi, eax
test eax, eax
js 0x14001e9d0
mov rax, qword [rsi]
mov rcx, rsi
mov rax, qword [rax + 0x20]
call qword [0x140034e68]
mov edi, eax
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14001e9ed
and qword [rsp + 0x50], 0
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140034e68]
mov rcx, qword [0x14003d048]
lea rax, [0x14003d048]
cmp rcx, rax
je 0x14001ea46
test byte [rcx + 0x1c], 1
je 0x14001ea46
mov eax, dword [r14]
lea edx, [rax + rax*4]
cmp edx, 0x1e1
ja 0x14001ea1b
mov eax, edx
sub r15, rax
jmp 0x14001ea1e
xor r15d, r15d
mov rcx, qword [rcx + 0x10]
lea r9, [0x140035650]
add r9, r15
mov dword [rsp + 0x28], edi
mov edx, 0x45
mov qword [rsp + 0x20], rsi
lea r8, [0x140036cb8]
call fcn.140001730
dec dword [r14]
cmp ebx, 0xffffffff
je 0x14001ea65
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
test rax, rax
je 0x14001ea65
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, edi
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret