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

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
push r13
lea rbp, [rsp - 0x1c0]
sub rsp, 0x2c0
xor r13d, r13d
mov rdi, rcx
mov ecx, dword [0x14015ec30]
mov dword [rsp + 0x70], r13d
mov qword [rbp + 0x178], r13
mov qword [rbp + 0x180], r13
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [0x14015ec30]
lea rdx, [rsp + 0x70]
mov qword [rbp + 0x188], rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x1400c8d89
mov ecx, 0xc0000001
call qword [sym.imp.ntdll.dll_RtlRaiseStatus]
int3
mov qword [rsp + 0x2b8], rbx
xor r9d, r9d
mov qword [rsp + 0x2b0], rsi
xor r8d, r8d
mov qword [rsp + 0x2a8], r12
mov edx, 0x411
mov qword [rsp + 0x2a0], r14
mov rcx, rdi
mov qword [rsp + 0x298], r15
call qword [sym.imp.USER32.dll_SendMessageW]
lea r9, [rbp + 0x1f0]
mov rcx, rdi
lea r8, [rsp + 0x30]
mov r12, rax
lea rdx, [rsp + 0x40]
lea esi, [rax + 1]
mov dword [rbp + 0x1f8], esi
call fcn.1400c8940
mov ebx, dword [rbp + 0x1f0]
lea rcx, [rsp + 0x38]
mov r8d, ebx
mov edx, esi
call fcn.1400c8380
mov rsi, qword [rsp + 0x30]
mov r14, qword [rsp + 0x38]
test ebx, ebx
je 0x1400c8e62
mov rdi, r13
mov r15d, ebx
nop dword [rax]
nop word [rax + rax]
mov rcx, qword [rdi + rsi]
or rdx, 0xffffffffffffffff
nop dword [rax + rax]
inc rdx
cmp word [rcx + rdx*2], r13w
jne 0x1400c8e30
add rdx, rdx
call sym.ProcessHacker.exe_PhCreateStringEx
mov rcx, rax
call sym.ProcessHacker.exe_PhAutoDereferenceObject
mov rcx, qword [r14]
mov qword [rdi + rcx], rax
add rdi, 8
sub r15, 1
jne 0x1400c8e20
mov rdi, qword [rbp + 0x1e0]
test r12d, r12d
je 0x1400c9003
lea r15, [r14 + 8]
mov qword [rsp + 0x20], r13
mov r14d, r12d
mov qword [rsp + 0x28], r14
nop dword [rax]
xor r9d, r9d
mov r8, r13
mov edx, 0x412
mov rcx, rdi
call qword [sym.imp.USER32.dll_SendMessageW]
mov r12, rax
test rax, rax
je 0x1400c8f27
test ebx, ebx
je 0x1400c8fde
mov rsi, qword [rsp + 0x40]
xor r13d, r13d
mov r14d, ebx
mov edi, r13d
mov rbx, qword [rbp + 0x1e0]
nop dword [rax]
mov qword [rsp + 0x50], r12
lea r9, [rsp + 0x48]
mov eax, dword [rsi]
xor r8d, r8d
mov edx, 0x413
mov dword [rsp + 0x58], eax
mov rcx, rbx
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x68], r13
call qword [sym.imp.USER32.dll_SendMessageW]
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x68]
call sym.ProcessHacker.exe_PhCreateStringEx
mov rcx, rax
call sym.ProcessHacker.exe_PhAutoDereferenceObject
mov rcx, qword [r15]
lea rdi, [rdi + 8]
lea rsi, [rsi + 4]
mov qword [rdi + rcx - 8], rax
sub r14, 1
jne 0x1400c8ec0
mov r13, qword [rsp + 0x20]
mov r14, qword [rsp + 0x28]
jmp 0x1400c8fd1
test ebx, ebx
je 0x1400c8fde
xor r12d, r12d
mov esi, ebx
mov edi, r12d
nop word [rax + rax]
mov rbx, qword [0x14015c390]
test rbx, rbx
jne 0x1400c8fb0
mov rbx, qword [0x14015f258]
mov edx, 0x12
mov rcx, rbx
call fcn.1400ae4a0
lock inc dword [rbx + 4]
mov dword [rax + 8], 1
movzx ecx, byte [rbx + 2]
mov word [rax], cx
lea rcx, [rax + 0x10]
lea rax, [rcx + 0x10]
mov qword [rcx], r12
mov qword [rcx + 8], rax
mov word [rax], r12w
xor eax, eax
lock cmpxchg qword [0x14015c390], rcx
mov rbx, rax
jne 0x1400c8f9a
mov rbx, rcx
jmp 0x1400c8fb0
add rcx, 0xfffffffffffffff0
or eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400c8fb0
call fcn.1400ae580
lock inc dword [rbx - 8]
mov rcx, rbx
call sym.ProcessHacker.exe_PhAutoDereferenceObject
mov rcx, qword [r15]
mov qword [rdi + rcx], rax
add rdi, 8
sub rsi, 1
jne 0x1400c8f40
mov rdi, qword [rbp + 0x1e0]
mov ebx, dword [rbp + 0x1f0]
inc r13
add r15, 8
sub r14, 1
mov qword [rsp + 0x20], r13
mov qword [rsp + 0x28], r14
jne 0x1400c8e80
mov rsi, qword [rsp + 0x30]
mov r14, qword [rsp + 0x38]
mov rcx, qword [sym.ProcessHacker.exe_PhHeapHandle]
mov r8, rsi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov r8, qword [rsp + 0x40]
xor edx, edx
mov rcx, qword [sym.ProcessHacker.exe_PhHeapHandle]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov r9d, dword [rbp + 0x1e8]
mov r8d, ebx
mov edx, dword [rbp + 0x1f8]
mov rcx, r14
call fcn.1400c8460
lea rcx, [rsp + 0x70]
mov rbx, rax
call sym.ProcessHacker.exe_PhDrainAutoPool
mov ecx, dword [0x14015ec30]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r15, qword [rsp + 0x298]
lea rcx, [rsp + 0x70]
mov r14, qword [rsp + 0x2a0]
mov r12, qword [rsp + 0x2a8]
mov rsi, qword [rsp + 0x2b0]
cmp rax, rcx
je 0x1400c9090
mov ecx, 0xc0000001
call qword [sym.imp.ntdll.dll_RtlRaiseStatus]
int3
mov rdx, qword [rbp + 0x188]
mov ecx, dword [0x14015ec30]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x1400c90b3
mov ecx, 0xc0000001
call qword [sym.imp.ntdll.dll_RtlRaiseStatus]
int3
mov r8, qword [rbp + 0x180]
test r8, r8
je 0x1400c90ce
mov rcx, qword [sym.ProcessHacker.exe_PhHeapHandle]
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rax, rbx
mov rbx, qword [rsp + 0x2b8]
add rsp, 0x2c0
pop r13
pop rdi
pop rbp
ret