Function at 0x1400076b0
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
mov byte [rcx + 0x2930], 1
mov r12, rcx
lea rbx, [rcx + 0x2110]
lea rsi, [rcx + 0x2910]
mov r11, qword [rbx]
test r11, r11
je 0x1400078b5
mov qword [rsp + 0x28], r11
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], rbx
mov r15, qword [rsp + 0x28]
xor ebp, ebp
lea r13, [r15 + 0x10]
mov r14, r13
nop dword [rax]
mov rbx, qword [r14]
mov rsi, rbp
test rbx, rbx
jne 0x14000772d
jmp 0x140007880
add rsi, 1
shr rbx, 1
je 0x140007880
test bl, 1
je 0x140007720
mov rcx, qword [r15 + 8]
shl rcx, 9
or rcx, rsi
mov rdx, rcx
sar rdx, 9
movzx eax, dl
mov rax, qword [r12 + rax*8 + 0x2110]
test rax, rax
jne 0x140007768
jmp 0x140007720
mov rax, qword [rax]
test rax, rax
je 0x140007720
cmp qword [rax + 8], rdx
jne 0x140007760
mov rdx, rcx
and edx, 0x1ff
mov r8, rdx
sar r8, 6
mov rax, qword [rax + r8*8 + 0x10]
bt rax, rdx
jae 0x140007720
shl rcx, 0xc
mov rdx, rcx
test byte [rcx], 1
je 0x140007720
mov r9, qword [rcx + 8]
cmp r9, 0xfc0
jle 0x1400078dc
cmp qword [rcx + 0x28], 1
jbe 0x140007720
mov r9, rcx
mov r11, qword [r12 + 0x2b98]
mov r10, qword [r12 + 0x2ba8]
lea r13, [rcx + 0x20]
shr r9, 0xc
mov rax, r9
and rax, r11
mov rcx, qword [r10 + rax*8]
test rcx, rcx
jne 0x1400077f1
jmp 0x140007801
lea rax, [rax + rax*4 + 1]
and rax, r11
mov rcx, qword [r10 + rax*8]
test rcx, rcx
je 0x140007801
cmp r9, qword [rcx + 8]
jne 0x1400077e0
test byte [rcx + 0x10], 4
jne 0x140007720
mov ecx, dword [0x1400af708]
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rsp + 0x30]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, edi
mov qword [rsp + 0x30], rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rdx, qword [rsp + 0x38]
mov rdx, qword [rdx + 0x28]
cmp qword [rdx + 0x28], 0
je 0x140007860
mov rax, qword [rsp + 0x30]
lea rcx, [r13 + 0x10]
add qword [rax + 0x98], 1
call qword [rdx + 0x28]
mov rax, qword [rsp + 0x30]
sub qword [rax + 0x98], 1
lea rcx, [r12 + 0x68]
mov rdx, r13
add rsi, 1
call sym.rawDealloc__system_5218
shr rbx, 1
jne 0x14000772d
nop word [rax + rax]
add rbp, 0x40
add r14, 8
cmp rbp, 0x200
jne 0x140007708
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
test rax, rax
jne 0x1400076f3
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
add rbx, 8
cmp rsi, rbx
jne 0x1400076d8
mov byte [r12 + 0x2930], 0
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rdi, qword [rcx + 0x30]
lea r8, [rcx + 0x40]
add rdi, r8
cmp r8, rdi
jae 0x140007720
mov qword [rsp + 0x40], r14
mov r13, rdi
mov rdi, r9
mov qword [rsp + 0x30], rbx
mov rbx, r8
mov qword [rsp + 0x38], rbp
mov rbp, r12
mov qword [rsp + 0x48], rsi
mov rsi, r8
nop dword [rax + rax]
cmp qword [rsi + 8], 1
jbe 0x140007980
mov rcx, rbx
mov r12, qword [rbp + 0x2b98]
mov r11, qword [rbp + 0x2ba8]
shr rcx, 0xc
mov rax, rcx
and rax, r12
mov rdx, qword [r11 + rax*8]
test rdx, rdx
jne 0x140007959
jmp 0x1400079b0
lea rax, [rax + rax*4 + 1]
and rax, r12
mov rdx, qword [r11 + rax*8]
test rdx, rdx
je 0x1400079b0
cmp rcx, qword [rdx + 8]
jne 0x140007948
mov rcx, rbx
mov r11d, 1
shr rcx, 4
movzx ecx, cl
mov rax, rcx
shl r11, cl
shr rax, 6
and r11, qword [rdx + rax*8 + 0x10]
je 0x1400079b0
add rbx, rdi
mov rsi, rbx
cmp rbx, r13
jb 0x140007918
mov r12, rbp
mov rbx, qword [rsp + 0x30]
mov r14, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x38]
jmp 0x140007720
mov r14d, dword [0x1400af708]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r12d, eax
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, r12d
mov r14, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rdx, qword [rsi + 8]
cmp qword [rdx + 0x28], 0
je 0x1400079f7
add qword [r14 + 0x98], 1
lea rcx, [rbx + 0x10]
call qword [rdx + 0x28]
sub qword [r14 + 0x98], 1
lea rcx, [rbp + 0x68]
mov rdx, rsi
call sym.rawDealloc__system_5218
jmp 0x140007980