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

Disassembly:
mov dword [rsp + 0x10], edx
mov r11, rsp
mov qword [r11 + 8], rcx
push r14
sub rsp, 0x310
xor eax, eax
mov r14, rcx
mov ecx, dword [0x140196214]
mov dword [rsp + 0xb0], eax
mov qword [r11 - 0x60], rax
mov qword [r11 - 0x58], rax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [0x140196214]
lea rdx, [rsp + 0xb0]
mov qword [rsp + 0x2c8], rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x1400e88a0
mov ecx, 0xc0000001
call qword [sym.imp.ntdll.dll_RtlRaiseStatus]
int3
mov qword [rsp + 0x308], rbx
xor r9d, r9d
mov qword [rsp + 0x300], rbp
xor r8d, r8d
mov qword [rsp + 0x2f8], rsi
mov edx, 0x411
mov qword [rsp + 0x2f0], rdi
mov rcx, r14
mov qword [rsp + 0x2e8], r12
mov qword [rsp + 0x2e0], r13
mov qword [rsp + 0x2d8], r15
call qword [sym.imp.USER32.dll_SendMessageW]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x421
mov qword [rsp + 0x338], rax
mov rcx, r14
mov r15, rax
lea r13d, [rax + 1]
mov dword [rsp + 0x330], r13d
call qword [sym.imp.USER32.dll_SendMessageW]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x429
mov rcx, r14
mov rbx, rax
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [0x140196670]
mov edx, 4
mov r12d, eax
mov rsi, rax
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], r12
lea r8, [r12*4]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov qword [rsp + 0x40], rax
mov edx, 0x409
mov rdi, rax
mov rcx, r14
test rbx, rbx
je 0x1400e8982
lea r9, [rax + 4]
lea r8d, [rsi - 1]
call qword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [rbx + 4]
mov dword [rdi], ecx
jmp 0x1400e898e
mov r9, rdi
mov r8, r12
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [0x140196670]
lea rbp, [r12*8]
mov r8, rbp
mov edx, 4
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov qword [rsp + 0x38], rax
test esi, esi
je 0x1400e89f9
mov rbx, rax
mov rsi, r12
nop word [rax + rax]
mov r8d, dword [rdi]
lea r9, [rsp + 0x78]
mov edx, 0x407
mov rcx, r14
call qword [sym.imp.USER32.dll_SendMessageW]
test rax, rax
je 0x1400e89e6
mov rax, qword [rsp + 0x88]
mov qword [rbx], rax
add rdi, 4
add rbx, 8
sub rsi, 1
jne 0x1400e89c0
mov rsi, qword [rsp + 0x20]
mov rdx, qword [0x140193828]
lea rcx, [r13*8]
mov edi, r13d
call sym.ProcessHacker.exe_PhCreateObject
mov rcx, rax
call sym.ProcessHacker.exe_PhAutoDereferenceObject
cmp dword [rsp + 0x330], 0
mov r13, rax
mov qword [rsp + 0x48], rax
jbe 0x1400e8a61
mov rbx, rax
nop dword [rax]
mov rdx, qword [0x140193828]
mov rcx, rbp
call sym.ProcessHacker.exe_PhCreateObject
mov rcx, rax
call sym.ProcessHacker.exe_PhAutoDereferenceObject
mov r8, rbp
mov qword [rbx], rax
xor edx, edx
mov rcx, rax
call fcn.14010ed90
lea rbx, [rbx + 8]
sub rdi, 1
jne 0x1400e8a30
test esi, esi
je 0x1400e8afb
xor r15d, r15d
mov rbp, r12
mov r12, qword [rsp + 0x38]
mov r14d, r15d
nop word [rax + rax]
mov rdi, qword [r14 + r12]
or rbx, 0xffffffffffffffff
nop dword [rax + rax]
inc rbx
cmp word [rdi + rbx*2], r15w
jne 0x1400e8a90
mov rdx, qword [0x140196800]
add rbx, rbx
lea rcx, [rbx + 0x12]
call sym.ProcessHacker.exe_PhCreateObject
mov rsi, rax
mov qword [rax], rbx
lea rcx, [rax + 0x10]
mov qword [rax + 8], rcx
mov word [rcx + rbx], r15w
test rdi, rdi
je 0x1400e8ad4
mov rcx, qword [rax + 8]
mov r8, rbx
mov rdx, rdi
call fcn.14010e700
mov rcx, rsi
call sym.ProcessHacker.exe_PhAutoDereferenceObject
mov rcx, qword [r13]
mov qword [r14 + rcx], rax
add r14, 8
sub rbp, 1
jne 0x1400e8a80
mov r15, qword [rsp + 0x338]
mov rsi, qword [rsp + 0x20]
test r15d, r15d
je 0x1400e8cdb
mov rbx, qword [rsp + 0x320]
lea r12, [r13 + 8]
xor r14d, r14d
mov ebp, r15d
mov eax, r14d
mov qword [rsp + 0x338], rbp
mov qword [rsp + 0x30], rax
nop word [rax + rax]
xor r9d, r9d
mov r8, rax
mov edx, 0x412
mov rcx, rbx
call qword [sym.imp.USER32.dll_SendMessageW]
mov r13, rax
test rax, rax
je 0x1400e8c19
test esi, esi
je 0x1400e8cb3
mov rsi, qword [rsp + 0x40]
mov rdi, r14
mov r14, qword [rsp + 0x28]
nop word [rax + rax]
mov qword [rsp + 0x58], r13
lea r9, [rsp + 0x50]
mov eax, dword [rsi]
xor r8d, r8d
mov dword [rsp + 0x60], eax
mov edx, 0x413
xor eax, eax
mov rcx, rbx
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
call qword [sym.imp.USER32.dll_SendMessageW]
mov rbp, qword [rsp + 0x68]
mov rdx, qword [0x140196800]
mov r15, qword [rsp + 0x70]
lea rcx, [rbp + 0x12]
call sym.ProcessHacker.exe_PhCreateObject
mov rbx, rax
lea rcx, [rax + 0x10]
mov qword [rax], rbp
mov qword [rax + 8], rcx
xor eax, eax
mov word [rcx + rbp], ax
test r15, r15
je 0x1400e8bdf
mov rcx, qword [rbx + 8]
mov r8, rbp
mov rdx, r15
call fcn.14010e700
mov rcx, rbx
call sym.ProcessHacker.exe_PhAutoDereferenceObject
mov rcx, qword [r12]
add rsi, 4
mov rbx, qword [rsp + 0x320]
mov qword [rdi + rcx], rax
add rdi, 8
sub r14, 1
jne 0x1400e8b70
mov rbp, qword [rsp + 0x338]
xor r14d, r14d
jmp 0x1400e8ca6
test esi, esi
je 0x1400e8cb3
mov rsi, qword [rsp + 0x28]
mov rdi, r14
nop dword [rax]
mov rbx, qword [0x140193860]
test rbx, rbx
jne 0x1400e8c88
mov rdx, qword [0x140196800]
lea ecx, [rbx + 0x12]
call sym.ProcessHacker.exe_PhCreateObject
mov rdx, rax
lea rcx, [rax + 0x10]
mov qword [rax], r14
mov qword [rax + 8], rcx
xor eax, eax
mov word [rcx], r14w
lock cmpxchg qword [0x140193860], rdx
mov rbx, rax
jne 0x1400e8c72
mov rbx, rdx
jmp 0x1400e8c88
lea rcx, [rdx - 0x10]
or eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400e8c88
call fcn.1400c8bc0
lock inc dword [rbx - 8]
mov rcx, rbx
call sym.ProcessHacker.exe_PhAutoDereferenceObject
mov rcx, qword [r12]
mov qword [rdi + rcx], rax
add rdi, 8
sub rsi, 1
jne 0x1400e8c30
mov rsi, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x320]
mov rax, qword [rsp + 0x30]
add r12, 8
inc rax
sub rbp, 1
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x338], rbp
jne 0x1400e8b30
mov r13, qword [rsp + 0x48]
mov r8, qword [rsp + 0x38]
xor edx, edx
mov rcx, qword [0x140196670]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov r8, qword [rsp + 0x40]
xor edx, edx
mov rcx, qword [0x140196670]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov r9d, dword [rsp + 0x328]
mov r8d, esi
mov edx, dword [rsp + 0x330]
mov rcx, r13
call fcn.1400e8130
lea rcx, [rsp + 0xb0]
mov rbx, rax
call sym.ProcessHacker.exe_PhDrainAutoPool
mov ecx, dword [0x140196214]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r15, qword [rsp + 0x2d8]
lea rcx, [rsp + 0xb0]
mov r13, qword [rsp + 0x2e0]
mov r12, qword [rsp + 0x2e8]
mov rdi, qword [rsp + 0x2f0]
mov rsi, qword [rsp + 0x2f8]
mov rbp, qword [rsp + 0x300]
cmp rax, rcx
je 0x1400e8d82
mov ecx, 0xc0000001
call qword [sym.imp.ntdll.dll_RtlRaiseStatus]
int3
mov rdx, qword [rsp + 0x2c8]
mov ecx, dword [0x140196214]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x1400e8da6
mov ecx, 0xc0000001
call qword [sym.imp.ntdll.dll_RtlRaiseStatus]
int3
mov r8, qword [rsp + 0x2c0]
test r8, r8
je 0x1400e8dc2
mov rcx, qword [0x140196670]
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rax, rbx
mov rbx, qword [rsp + 0x308]
add rsp, 0x310
pop r14
ret