Function at 0x14001bf80
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 0x14001bfc9
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 0x14001c02b
test byte [r10 + 0x1c], 1
je 0x14001c02b
mov eax, dword [r14]
lea ecx, [rax + rax*4]
cmp ecx, 0x1e1
ja 0x14001c00b
mov eax, ecx
mov ecx, r15d
sub rcx, rax
jmp 0x14001c00d
xor ecx, ecx
lea r9, [rcx + rdx]
mov qword [rsp + 0x20], rsi
mov rcx, qword [r10 + 0x10]
lea r8, [0x140036cb8]
mov edx, 0x20
call fcn.140001370
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 + 0x138]
mov rdi, rax
and qword [rsi + 0x138], 0
lea rdx, [rcx - 1]
cmp rdx, 0xfffffffffffffffd
ja 0x14001c05f
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
lea rax, [rdi + 1]
mov qword [rsi + 0x138], rdi
test rax, 0xfffffffffffffffe
jne 0x14001c098
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 0x14001c1c0
mov qword [rsp + 0x28], rsi
lea rcx, [0x14001f400]
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.api_ms_win_shlwapi_winrt_storage_l1_1_1.dll_SHCreateWorkerWindowW]
mov qword [rsi + 0x60], rax
test rax, rax
jne 0x14001c0e7
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 0x14001c1b1
mov rcx, rsi
call fcn.14001c570
mov edi, eax
test eax, eax
js 0x14001c1b1
mov rcx, rsi
call fcn.14001c8d8
mov edi, eax
test eax, eax
js 0x14001c1b1
mov edx, dword [rsi + 0x30]
xor ecx, ecx
mov qword [rsp + 0x50], rcx
test edx, edx
je 0x14001c149
mov edi, dword [rsi + 0x34]
test edi, edi
js 0x14001c18b
mov rcx, qword [0x14003da90]
lea r9, [rsp + 0x50]
lea r8, [0x140036bb8]
mov rax, qword [rcx]
mov rax, qword [rax + 0x28]
call qword [0x140034e68]
mov rcx, qword [rsp + 0x50]
mov edi, eax
jmp 0x14001c14e
mov edi, 0x80070057
test edi, edi
js 0x14001c18b
mov rax, qword [rcx]
mov rdx, qword [rsi + 0x50]
mov rax, qword [rax + 0x158]
call qword [0x140034e68]
mov edi, eax
test eax, eax
js 0x14001c186
mov al, byte [rsi + 0x134]
mov r8b, 1
neg al
mov rcx, rsi
sbb edx, edx
not edx
and edx, 2
call fcn.14001ea7c
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14001c1a3
and qword [rsp + 0x50], 0
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140034e68]
test edi, edi
js 0x14001c1b1
mov rcx, rsi
call fcn.14001d80c
jmp 0x14001c1c0
mov rcx, qword [rsi + 0x60]
call qword [sym.imp.USER32.dll_DestroyWindow]
and qword [rsi + 0x60], 0
mov rcx, qword [0x14003d048]
lea rax, [0x14003d048]
cmp rcx, rax
je 0x14001c219
test byte [rcx + 0x1c], 1
je 0x14001c219
mov eax, dword [r14]
lea edx, [rax + rax*4]
cmp edx, 0x1e1
ja 0x14001c1ee
mov eax, edx
sub r15, rax
jmp 0x14001c1f1
xor r15d, r15d
mov rcx, qword [rcx + 0x10]
lea r9, [0x140035650]
add r9, r15
mov dword [rsp + 0x28], edi
mov edx, 0x21
mov qword [rsp + 0x20], rsi
lea r8, [0x140036cb8]
call fcn.140001730
dec dword [r14]
cmp ebx, 0xffffffff
je 0x14001c238
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
test rax, rax
je 0x14001c238
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