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

Disassembly:
mov qword [rsp + 0x20], rbx
mov byte [rsp + 0x10], dl
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov rsi, rcx
mov rbp, r9
mov ecx, dword [0x14003d17c]
mov r12, r8
mov dil, dl
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
or ebx, 0xffffffff
mov r14, rax
test rax, rax
jne 0x140018e98
mov ebx, dword [0x14003d17c]
lea rdx, [rsp + 0x90]
and dword [rsp + 0x90], eax
lea r14, [rsp + 0x90]
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
inc dword [r14]
mov r8, qword [0x14003d048]
lea rax, [0x14003d048]
lea rdx, [0x140000000]
mov r13d, 0x1df
cmp r8, rax
je 0x140018f20
test byte [r8 + 0x1c], 1
je 0x140018f20
mov eax, dword [r14]
lea ecx, [rax + rax*4]
cmp ecx, 0x1e1
ja 0x140018eda
mov eax, ecx
mov ecx, r13d
sub rcx, rax
jmp 0x140018edc
xor ecx, ecx
lea r9, [rdx + 0x35650]
movzx eax, dil
add r9, rcx
mov edx, 0x51
mov rcx, qword [rsp + 0xc0]
mov qword [rsp + 0x40], rcx
mov rcx, qword [rsp + 0xb8]
mov qword [rsp + 0x38], rcx
mov rcx, qword [r8 + 0x10]
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
call fcn.140015030
lea r15, [rsi + 0x18]
xor edi, edi
mov rcx, qword [r15]
and qword [r15], rdi
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
test r12, r12
je 0x140018f5e
lea rdi, [rsi + 8]
mov rcx, qword [rdi]
and qword [rdi], 0
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
mov rdx, rdi
mov rcx, r12
call qword [sym.imp.api_ms_win_shcore_obsolete_l1_1_0.dll_SHStrDupW]
mov edi, eax
test eax, eax
js 0x1400190da
test rbp, rbp
je 0x140018f82
lea rdi, [rsi + 0x10]
mov rcx, qword [rdi]
and qword [rdi], 0
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
mov rdx, rdi
mov rcx, rbp
call qword [sym.imp.api_ms_win_shcore_obsolete_l1_1_0.dll_SHStrDupW]
mov edi, eax
test edi, edi
js 0x1400190da
mov r12, qword [rsp + 0xb8]
mov r9, r15
mov r8, r12
mov qword [rsi + 0x20], r12
mov edx, 1
call fcn.140004940
mov edi, eax
test eax, eax
js 0x1400190da
mov r8, qword [rsi + 0x20]
mov rdx, qword [rsp + 0xc0]
mov rcx, qword [r15]
call sub.msvcrt.dll_memcpy
mov rax, qword [rsp + 0xb0]
lea rbp, [rsi + 0x28]
test rax, rax
jne 0x140019068
mov rax, qword [rsi + 0x10]
mov qword [rsp + 0xa0], rax
test rax, rax
je 0x140019061
test rbp, rbp
je 0x140019061
xor r12d, r12d
mov edi, 0x80070490
xor r15d, r15d
and dword [rsp + 0x20], 0
lea rcx, [0x140000000]
mov r8, qword [r15 + rcx + 0x3d0a0]
or r9d, 0xffffffff
mov rcx, rax
or edx, r9d
call qword [sym.imp.api_ms_win_core_string_l1_1_0.dll_CompareStringOrdinal]
cmp eax, 2
je 0x140019042
mov rax, qword [rsp + 0xa0]
inc r12
add r15, 0x18
cmp r15, 0x30
jb 0x140018ffa
mov r12, qword [rsp + 0xb8]
jmp 0x140019070
lea rax, [r12 + r12*2]
xor edi, edi
mov r12, qword [rsp + 0xb8]
lea rcx, [0x140000000]
movups xmm0, xmmword [rcx + rax*8 + 0x3d0a8]
jmp 0x14001906b
mov edi, 0x80070057
jmp 0x140019070
movups xmm0, xmmword [rax]
movdqu xmmword [rbp], xmm0
test edi, edi
js 0x1400190da
mov r15, qword [rsp + 0xc0]
mov r9, r12
mov dl, byte [rsp + 0x98]
mov r8, rbp
mov rcx, rsi
mov qword [rsp + 0x20], r15
call fcn.140019308
mov edi, eax
mov rax, qword [0x140035ae0]
cmp rax, qword [rbp]
jne 0x1400190da
mov rax, qword [0x140035ae8]
cmp rax, qword [rbp + 8]
jne 0x1400190da
cmp edi, 0x80640019
jne 0x1400190da
mov dl, byte [rsp + 0x98]
lea r8, [0x140036550]
mov r9, r12
mov qword [rsp + 0x20], r15
mov rcx, rsi
call fcn.140019308
mov edi, eax
mov rcx, qword [0x14003d048]
lea rax, [0x14003d048]
cmp rcx, rax
je 0x14001913a
test byte [rcx + 0x1c], 1
je 0x14001913a
mov eax, dword [r14]
lea edx, [rax + rax*4]
cmp edx, 0x1e1
ja 0x140019108
mov eax, edx
sub r13, rax
jmp 0x14001910b
xor r13d, r13d
mov rcx, qword [rcx + 0x10]
lea rax, [0x140000000]
lea r9, [rax + 0x35650]
mov dword [rsp + 0x28], edi
add r9, r13
mov qword [rsp + 0x20], rsi
mov edx, 0x52
lea r8, [0x1400367b8]
call fcn.140001730
or eax, 0xffffffff
add dword [r14], eax
cmp ebx, eax
je 0x14001915b
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
test rax, rax
je 0x14001915b
xor edx, edx
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
mov eax, edi
mov rbx, qword [rsp + 0xa8]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret