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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r13
lea rbp, [rsp - 0x1f0]
sub rsp, 0x2f0
mov rax, qword [0x140237008]
xor rax, rsp
mov qword [rbp + 0x1d0], rax
xor eax, eax
mov qword [rsp + 0x58], rcx
mov r13, rcx
mov dword [rbp - 0x50], eax
mov ecx, dword [0x140244804]
mov rdi, r8
mov qword [rbp + 0x1b8], rax
mov ebx, edx
mov qword [rbp + 0x1c0], rax
mov dword [rsp + 0x44], r9d
mov qword [rsp + 0x68], r8
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [0x140244804]
lea rdx, [rbp - 0x50]
mov qword [rbp + 0x1c8], rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1400aa9e6
mov qword [rsp + 0x338], r12
xor r9d, r9d
mov qword [rsp + 0x2e8], r14
xor r8d, r8d
mov qword [rsp + 0x2e0], r15
mov edx, 0x421
lea r15d, [rbx + 1]
mov rcx, r13
mov dword [rsp + 0x40], r15d
call qword [sym.imp.USER32.dll_SendMessageW]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x429
mov rcx, r13
mov rbx, rax
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [0x140241998]
mov edx, 4
mov r12d, eax
mov r14, rax
mov qword [rsp + 0x60], rax
lea r8, [r12*4]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov qword ds:[rsp + 0x70], rax
mov edx, 0x409
mov rsi, rax
mov rcx, r13
test rbx, rbx
je 0x1400aa6fa
lea r9, [rax + 4]
lea r8d, [r14 - 1]
call qword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [rbx + 4]
mov dword [rsi], ecx
jmp 0x1400aa706
mov r9, rsi
mov r8, r12
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [0x140241998]
lea r8, ds:[r12*8]
mov edx, 4
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov qword [rsp + 0x50], rax
test r14d, r14d
je 0x1400aa814
lfence
mov rdi, rsi
mov rbx, rax
mov rsi, r12
mov r8d, dword [rdi]
lea r9, [rsp + 0x78]
mov edx, 0x407
mov rcx, r13
call qword [sym.imp.USER32.dll_SendMessageW]
test rax, rax
je 0x1400aa762
mov rax, qword [rbp - 0x78]
mov qword [rbx], rax
add rdi, 4
add rbx, 8
sub rsi, 1
jne 0x1400aa740
mov r8d, r14d
lea rcx, [rsp + 0x48]
mov edx, r15d
call fcn.140133680
mov r15, qword [rsp + 0x48]
xor r14d, r14d
mov r13, qword [rsp + 0x50]
mov rdi, qword [r14 + r13]
mov rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp word [rdi + rbx*2], 0
jne 0x1400aa7a0
mov rdx, qword [0x1402418e8]
add rbx, rbx
lea rcx, [rbx + 0x12]
call sym.ProcessHacker.exe_PhCreateObject
mov rsi, rax
lea rcx, [rax + 0x10]
mov qword [rax], rbx
mov qword [rax + 8], rcx
xor eax, eax
mov word [rcx + rbx], ax
test rdi, rdi
je 0x1400aa7e5
mov rcx, qword [rsi + 8]
mov r8, rbx
mov rdx, rdi
call fcn.140188690
mov rcx, rsi
call sym.ProcessHacker.exe_PhAutoDereferenceObject
mov rcx, qword [r15]
mov qword [r14 + rcx], rax
add r14, 8
sub r12, 1
jne 0x1400aa792
mov r13, qword [rsp + 0x58]
mov r14, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
jmp 0x1400aa82a
mov r8d, r14d
lea rcx, [rsp + 0x48]
mov edx, r15d
call fcn.140133680
mov r15, qword [rsp + 0x48]
xor r12d, r12d
mov dword [rbp - 0x58], 1
mov ebx, r12d
cmp dword [rdi], r12d
jbe 0x1400aa871
nop dword [rax]
mov rdx, qword [rdi + 8]
lea rcx, [rbp - 0x58]
mov eax, ebx
mov r9, r15
mov dword [rsp + 0x30], r14d
xor r8d, r8d
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rcx
mov rcx, r13
mov rdx, qword [rdx + rax*8]
call fcn.1400aa340
inc ebx
cmp ebx, dword [rdi]
jb 0x1400aa840
mov rcx, qword [0x140241998]
mov r8, rsi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov r8, qword [rsp + 0x50]
xor edx, edx
mov rcx, qword [0x140241998]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov r9d, dword [rsp + 0x44]
mov r8d, r14d
mov edx, dword [rsp + 0x40]
mov rcx, r15
call fcn.140133800
mov ecx, dword [rbp - 0x50]
mov rsi, rax
mov r15, qword [rsp + 0x2e0]
mov r14, qword [rsp + 0x2e8]
test ecx, ecx
je 0x1400aa8f5
lea rbx, [rbp - 0x48]
mov edi, ecx
nop
mov rcx, qword [rbx]
mov edx, 0xffffffff
add rcx, 0xfffffffffffffff0
lock xadd dword [rcx + 8], edx
cmp edx, 1
jne 0x1400aa8eb
call fcn.1400fbcc0
add rbx, 8
sub rdi, 1
jne 0x1400aa8d0
mov rbx, qword [rbp + 0x1c0]
mov dword [rbp - 0x50], r12d
test rbx, rbx
je 0x1400aa970
mov eax, dword [rbp + 0x1b8]
test eax, eax
je 0x1400aa93d
mov edi, eax
mov rcx, qword [rbx]
mov eax, 0xffffffff
add rcx, 0xfffffffffffffff0
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400aa92c
call fcn.1400fbcc0
add rbx, 8
sub rdi, 1
jne 0x1400aa911
mov rbx, qword [rbp + 0x1c0]
cmp dword [rbp + 0x1bc], 0x100
mov dword [rbp + 0x1b8], r12d
jbe 0x1400aa970
mov rcx, qword [0x140241998]
mov r8, rbx
xor edx, edx
mov dword [rbp + 0x1bc], r12d
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov qword [rbp + 0x1c0], r12
mov ecx, dword [0x140244804]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r12, qword [rsp + 0x338]
lea rcx, [rbp - 0x50]
cmp rax, rcx
jne 0x1400aa9e6
mov rdx, qword ds:[rbp + 0x1c8]
mov ecx, dword [0x140244804]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1400aa9e6
mov r8, qword [rbp + 0x1c0]
test r8, r8
je 0x1400aa9c6
mov rcx, qword [0x140241998]
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rax, rsi
mov rcx, qword [rbp + 0x1d0]
xor rcx, rsp
call fcn.1401848a0
add rsp, 0x2f0
pop r13
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov ecx, 0xc0000001
call qword [sym.imp.ntdll.dll_RtlRaiseStatus]
int3