Function at 0x14000a5d0
Capabilities:
Get thread local storage value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x60
xor ebx, ebx
lea rax, [r11 - 0x28]
mov qword [r11 - 0x30], rbx
xor r9d, r9d
mov qword [r11 - 0x38], rax
mov r8d, 0xffffffff
mov qword [r11 - 0x40], rbx
lea rax, [r11 + 0x20]
mov qword [r11 - 0x48], rax
mov rbp, rdx
lea rax, [r11 + 0x18]
mov qword [r11 - 0x50], rbx
mov qword [r11 - 0x58], rax
mov qword [r11 + 0x20], rbx
mov qword [r11 - 0x28], rbx
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhGetHandleInformationEx
test eax, eax
js 0x14000a685
cmp dword [rsp + 0x90], ebx
jge 0x14000a685
mov rcx, qword [rsp + 0x98]
mov esi, ebx
mov qword [rsp + 0x98], rbx
mov edi, 0xffffffff
test rcx, rcx
je 0x14000a663
add rcx, 0xfffffffffffffff0
mov eax, edi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14000a65b
call fcn.1400d9400
mov rsi, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0x50], rbx
test rcx, rcx
je 0x14000a692
add rcx, 0xfffffffffffffff0
lock xadd dword [rcx + 8], edi
cmp edi, 1
jne 0x14000a685
call fcn.1400d9400
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x98]
mov ecx, dword [0x140190208]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test rsi, rsi
je 0x14000a741
mov eax, dword [rax]
cmp eax, 0x40
jae 0x14000a6bd
mov qword [rdi + rax*8 + 8], rsi
inc dword [rdi]
jmp 0x14000a741
mov rcx, qword [rdi + 0x210]
test rcx, rcx
jne 0x14000a6f5
mov dword [rdi + 0x20c], 0x40
mov edx, 4
mov rcx, qword [sym.4yUlCM3HuVsHzW5CaCX.exe_PhHeapHandle]
mov r8d, 0x200
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rcx, rax
mov qword [rdi + 0x210], rax
mov eax, dword [rdi + 0x20c]
cmp dword [rdi + 0x208], eax
jne 0x14000a731
add eax, eax
mov r8, rcx
mov r9d, eax
mov edx, 4
mov dword [rdi + 0x20c], eax
mov rcx, qword [sym.4yUlCM3HuVsHzW5CaCX.exe_PhHeapHandle]
shl r9, 3
call qword [sym.imp.ntdll.dll_RtlReAllocateHeap]
mov rcx, rax
mov qword [rdi + 0x210], rax
mov eax, dword [rdi + 0x208]
mov qword [rcx + rax*8], rsi
inc dword [rdi + 0x208]
mov ecx, dword [0x140190208]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test rbx, rbx
je 0x14000a7f0
mov eax, dword [rax]
cmp eax, 0x40
jae 0x14000a76c
mov qword [rdi + rax*8 + 8], rbx
inc dword [rdi]
jmp 0x14000a7f0
mov rcx, qword [rdi + 0x210]
test rcx, rcx
jne 0x14000a7a4
mov dword [rdi + 0x20c], 0x40
mov edx, 4
mov rcx, qword [sym.4yUlCM3HuVsHzW5CaCX.exe_PhHeapHandle]
mov r8d, 0x200
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rcx, rax
mov qword [rdi + 0x210], rax
mov eax, dword [rdi + 0x20c]
cmp dword [rdi + 0x208], eax
jne 0x14000a7e0
add eax, eax
mov r8, rcx
mov r9d, eax
mov edx, 4
mov dword [rdi + 0x20c], eax
mov rcx, qword [sym.4yUlCM3HuVsHzW5CaCX.exe_PhHeapHandle]
shl r9, 3
call qword [sym.imp.ntdll.dll_RtlReAllocateHeap]
mov rcx, rax
mov qword [rdi + 0x210], rax
mov eax, dword [rdi + 0x208]
mov qword [rcx + rax*8], rbx
inc dword [rdi + 0x208]
test rsi, rsi
je 0x14000a82f
test rbx, rbx
je 0x14000a82f
cmp qword [rbx], 0
je 0x14000a806
mov r9, qword [rbx + 8]
jmp 0x14000a80d
lea r9, str._unnamed_object_
mov r8, qword [rsi + 8]
lea rcx, str.Handle_0x_Ix___s_:__s
mov rdx, rbp
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
jmp fcn.1400013f0
mov rdx, rbp
lea rcx, str.Handle_0x_Ix:__error_querying_handle_
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
jmp fcn.1400013f0