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

Disassembly:
push rbp
push r12
push r15
lea rbp, [rsp - 0x430]
sub rsp, 0x530
xor r12d, r12d
mov r15, rcx
mov ecx, dword [0x14015bdc8]
mov dword [rsp + 0x70], r12d
mov qword [rbp + 0x178], r12
mov qword [rbp + 0x180], r12
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [0x14015bdc8]
lea rdx, [rsp + 0x70]
mov qword [rbp + 0x188], rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x140009472
mov ecx, 0xc0000001
call qword [sym.imp.ntdll.dll_RtlRaiseStatus]
int3
mov qword [rsp + 0x550], rbx
lea rax, [rbp + 0x190]
mov qword [rsp + 0x558], rsi
mov ebx, r12d
mov qword [rsp + 0x560], rdi
mov esi, r12d
mov qword [rsp + 0x528], r13
mov qword [rsp + 0x520], r14
mov dword [rsp + 0x30], 0x24
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x48], 0x80
nop dword [rax]
movsxd r8, ebx
lea r9, [rsp + 0x30]
mov edx, 0x105f
mov rcx, r15
call qword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x1400094ee
mov eax, dword [rsp + 0x54]
inc esi
mov dword [rbp + rax*4 + 0x290], ebx
inc ebx
cmp ebx, 0x64
jb 0x1400094c0
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1004
mov rcx, r15
call qword [sym.imp.USER32.dll_SendMessageW]
mov rbx, qword [0x14015f3f8]
mov edx, 0x112
mov rcx, rbx
mov qword [rsp + 0x20], 0x100
mov r13, rax
call fcn.1400257d0
lock inc dword [rbx + 4]
mov dword [rax + 8], 1
lea rdi, [rax + 0x10]
movzx ecx, byte [rbx + 2]
mov r14d, r12d
mov word [rax], cx
lea rax, [rdi + 0x10]
mov qword [rdi + 8], rax
mov qword [rdi], 0x100
mov word [rax + 0x100], r12w
mov qword [rdi], r12
mov rax, qword [rdi + 8]
mov qword [rsp + 0x28], rdi
mov word [rax], r12w
test r13d, r13d
je 0x140009662
nop dword [rax + rax]
mov r9d, 2
mov r8, r12
mov edx, 0x102c
mov rcx, r15
call qword [sym.imp.USER32.dll_SendMessageW]
test al, 2
je 0x140009653
xor eax, eax
mov ebx, eax
test esi, esi
je 0x1400095eb
nop word [rax + rax]
mov r8d, ebx
mov edx, r14d
mov rcx, r15
call fcn.140009300
lea rcx, [rsp + 0x20]
mov r8, qword [rax]
mov rdx, qword [rax + 8]
call sym.ProcessHacker.exe_PhAppendStringBuilderEx
lea rcx, [0x140121290]
call sym.ProcessHacker.exe_PhCountStringZ
lea rdx, [0x140121290]
lea rcx, [rsp + 0x20]
lea r8, [rax + rax]
call sym.ProcessHacker.exe_PhAppendStringBuilderEx
inc ebx
cmp ebx, esi
jb 0x1400095a0
mov rdi, qword [rsp + 0x28]
mov r8, qword [rdi]
test r8, r8
je 0x14000962d
mov rax, qword [rdi + 8]
mov rdx, r8
shr rdx, 1
sub rdx, 2
lea rcx, [rdx + rdx]
add rdx, 2
sub r8, rcx
add rcx, rax
sub r8, 4
lea rdx, [rax + rdx*2]
call fcn.1400e19b0
add qword [rdi], 0xfffffffffffffffc
mov rcx, qword [rdi]
xor edx, edx
mov rax, qword [rdi + 8]
mov word [rcx + rax], dx
lea rcx, [0x140121298]
call sym.ProcessHacker.exe_PhCountStringZ
lea rdx, [0x140121298]
lea rcx, [rsp + 0x20]
lea r8, [rax + rax]
call sym.ProcessHacker.exe_PhAppendStringBuilderEx
mov rdi, qword [rsp + 0x28]
inc r14d
inc r12
cmp r14d, r13d
jb 0x140009570
lea rcx, [rsp + 0x70]
call sym.ProcessHacker.exe_PhDrainAutoPool
mov ecx, dword [0x14015bdc8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r14, qword [rsp + 0x520]
lea rcx, [rsp + 0x70]
mov r13, qword [rsp + 0x528]
mov rsi, qword [rsp + 0x558]
mov rbx, qword [rsp + 0x550]
cmp rax, rcx
je 0x1400096ae
mov ecx, 0xc0000001
call qword [sym.imp.ntdll.dll_RtlRaiseStatus]
int3
mov rdx, qword [rbp + 0x188]
mov ecx, dword [0x14015bdc8]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x1400096d1
mov ecx, 0xc0000001
call qword [sym.imp.ntdll.dll_RtlRaiseStatus]
int3
mov r8, qword [rbp + 0x180]
test r8, r8
je 0x1400096ec
mov rcx, qword [sym.ProcessHacker.exe_PhHeapHandle]
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rax, rdi
mov rdi, qword [rsp + 0x560]
add rsp, 0x530
pop r15
pop r12
pop rbp
ret