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

Disassembly:
mov qword ss:[rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x2d0
mov rax, qword [0x1402b5020]
xor rax, rsp
mov qword [rsp + 0x2c0], rax
mov r15, rcx
mov dword [rsp + 0x44], r9d
lea rcx, [rsp + 0xa0]
mov r13, r8
lea esi, [rdx + 1]
call sym.SystemInformer.exe_PhInitializeAutoPool
xor r9d, r9d
mov dword [rsp + 0x40], esi
xor r8d, r8d
mov edx, 0x421
mov rcx, r15
call qword [sym.imp.USER32.dll_SendMessageW]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x429
mov rcx, r15
mov rbx, rax
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [0x1402bfe50]
mov edx, 4
mov ebp, eax
mov r12, rax
lea r8, [rbp*4]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov qword [rsp + 0x58], rax
mov edx, 0x409
mov r14, rax
mov rcx, r15
test rbx, rbx
je 0x1400d29ff
lea r9, [rax + 4]
lea r8d, [r12 - 1]
call qword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [rbx + 4]
mov dword [r14], ecx
jmp 0x1400d2a0b
mov r9, r14
mov r8, rbp
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [0x1402bfe50]
lea r8, ds:[rbp*8]
mov edx, 4
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
xor edi, edi
mov qword [rsp + 0x50], rax
mov rbx, rax
test r12d, r12d
je 0x1400d2ad3
lfence
mov rsi, r14
mov r14, rbp
nop dword [rax]
nop word [rax + rax]
mov r8d, dword [rsi]
lea r9, [rsp + 0x60]
mov edx, 0x407
mov rcx, r15
call qword [sym.imp.USER32.dll_SendMessageW]
test rax, rax
je 0x1400d2a73
mov rax, qword [rsp + 0x70]
mov qword [rbx], rax
add rsi, 4
add rbx, 8
sub r14, 1
jne 0x1400d2a50
mov edx, dword [rsp + 0x40]
lea rcx, [rsp + 0x48]
mov r8d, r12d
call fcn.140180e00
mov rsi, qword [rsp + 0x48]
mov rbx, rdi
mov r14, qword [rsp + 0x50]
mov rcx, qword [rbx + r14]
call sym.SystemInformer.exe_PhCreateString
mov rcx, rax
call sym.SystemInformer.exe_PhAutoDereferenceObject
mov rcx, qword [rsi]
lea rbx, [rbx + 8]
mov qword [rbx + rcx - 8], rax
sub rbp, 1
jne 0x1400d2aa4
mov r14, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
jmp 0x1400d2aea
mov r8d, r12d
lea rcx, [rsp + 0x48]
mov edx, esi
call fcn.140180e00
mov rsi, qword [rsp + 0x48]
mov dword [rsp + 0x90], 1
cmp dword [r13], edi
jbe 0x1400d2b37
nop dword [rax + rax]
mov rdx, qword [r13 + 8]
lea rcx, [rsp + 0x90]
mov eax, edi
mov r9, rsi
mov dword [rsp + 0x30], r12d
xor r8d, r8d
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rcx
mov rcx, r15
mov rdx, qword [rdx + rax*8]
call fcn.1400d26c0
inc edi
cmp edi, dword [r13]
jb 0x1400d2b00
mov rcx, qword [0x1402bfe50]
mov r8, r14
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rcx, qword [0x1402bfe50]
mov r8, rbx
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov r9d, dword [rsp + 0x44]
mov r8d, r12d
mov edx, dword [rsp + 0x40]
mov rcx, rsi
call fcn.140180fa0
lea rcx, [rsp + 0xa0]
mov rbx, rax
call sym.SystemInformer.exe_PhDrainAutoPool
mov ecx, dword [0x1402c2bec]
cmp ecx, 0x40
jae 0x1400d2b9d
mov rdx, qword gs:[0x30]
mov rax, qword [rdx + rcx*8 + 0x1480]
jmp 0x1400d2ba6
lfence
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
lea rcx, [rsp + 0xa0]
cmp rax, rcx
jne 0x1400d2c54
mov ecx, dword [0x1402c2bec]
nop dword [rax]
cmp ecx, 0x40
jae 0x1400d2be2
mov rdx, qword gs:[0x30]
mov rax, qword [rsp + 0x2b8]
mov qword [rdx + rcx*8 + 0x1480], rax
jmp 0x1400d2c09
lfence
mov rdx, qword [rsp + 0x2b8]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x1400d2c09
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call sym.SystemInformer.exe_PhDosErrorToNtStatus
test eax, eax
js 0x1400d2c54
mov r8, qword [rsp + 0x2b0]
test r8, r8
je 0x1400d2c26
mov rcx, qword [0x1402bfe50]
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rax, rbx
mov rcx, qword [rsp + 0x2c0]
xor rcx, rsp
call fcn.1401dd6a0
mov rbx, qword [rsp + 0x328]
add rsp, 0x2d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0xc0000001
call qword [sym.imp.ntdll.dll_RtlRaiseStatus]
int3