Function at 0x1400f7ab0
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov rsi, rcx
mov rax, qword [0x14016c028]
xor rax, rsp
mov qword [rsp + 0x40], rax
call fcn.1400f7db0
test rsi, rsi
je 0x1400f7be2
mov rax, rsi
and rax, 0xffffffffffe00000
mov rcx, rsi
shr rcx, 9
and ecx, 0xfe0
lea r15, [rax + rcx]
add r15, 0x1000
movzx ecx, word [r15 + 0x1e]
mov r13, rcx
neg r13
shl rcx, 5
mov r12, r15
sub r12, rcx
mov rcx, r12
and rcx, 0xfffffffffffff000
mov r14, qword [rcx]
cmp byte [r14], 2
je 0x1400f7c01
cmp byte [r14 + 1], 0
je 0x1400f7ce2
mov rax, r13
shl rax, 5
mov rbx, qword [r15 + rax + 0x10]
cmp byte [rbx + 0x1c], 0
je 0x1400f7ce2
mov edi, dword [0x140178ca0]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test ebp, ebp
jne 0x1400f7cce
test rdi, rdi
je 0x1400f7ce2
sub rbx, r14
add rbx, 0xfffffffffffffff0
sar rbx, 3
movabs rbp, 0xcccccccccccccccd
imul rbp, rbx
inc qword [rdi + 0x2c0]
cmp rbp, 0x28
ja 0x1400f7cdb
shl rbp, 4
mov rcx, qword [rdi + rbp + 8]
call fcn.14010bcbc
mov qword [rsi], rax
mov qword [rdi + rbp + 8], rsi
mov al, byte [rdi + rbp + 0x10]
inc al
mov byte [rdi + rbp + 0x10], al
inc qword [rdi + 0x2c8]
movzx r8d, byte [rdi + rbp + 0x11]
cmp al, r8b
jae 0x1400f7d5c
mov eax, dword [rdi]
test eax, eax
jne 0x1400f7d74
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14010e4a0
nop
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, r13
shl rcx, 5
mov rdx, qword [r15 + rcx + 0x10]
cmp byte [rdx + 0x1c], 0
je 0x1400f7b2d
lea rdx, [r15 + rcx]
add rdx, 0x10
mov rbp, qword [0x14016cca8]
and ebp, 1
shl rbp, 0xe
add rbp, rax
mov eax, esi
shr eax, 7
and eax, 0x3fff
shr sil, 4
and sil, 7
mov bl, 1
mov ecx, esi
shl bl, cl
lock or byte [rax + rbp + 0x4000], bl
mov rax, qword [rdx]
mov ecx, dword [rax + 0x18]
mov rdx, rcx
lock xadd qword [0x14016cc98], rdx
mov al, 1
add rdx, rcx
mov rcx, qword [0x14016cca0]
cmp rdx, rcx
jbe 0x1400f7be2
xchg byte [0x14016ccb8], al
test al, 1
jne 0x1400f7be2
xor eax, eax
xchg qword [0x14016cc98], rax
lea rsi, [0x14016cc50]
mov qword [0x14016ccb0], rax
lock inc qword [0x14016cca8]
call fcn.1400f55f0
mov rdi, rax
mov rcx, rax
mov rdx, rsi
call fcn.1400f5700
call fcn.1400f6400
lea rcx, [rsp + 0x30]
mov qword [rcx], rdi
call fcn.1400f64f0
jmp 0x1400f7be2
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1400f7b6f
inc qword [rdi + 0x2d0]
add r14, 8
xorps xmm0, xmm0
movaps xmmword [rsp + 0x30], xmm0
mov rcx, r14
call fcn.1400a5910
mov rcx, qword [r12]
cmp rcx, rsi
je 0x1400f7da8
call fcn.14010bcbc
mov qword [rsi], rax
mov qword [r12], rsi
shl r13, 5
movzx eax, word [r15 + r13 + 0x18]
dec eax
mov word [r15 + r13 + 0x18], ax
test ax, ax
jle 0x1400f7d99
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
movaps xmm0, xmmword [rsp + 0x20]
movaps xmmword [rsp + 0x30], xmm0
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
cmp qword [rsp + 0x30], 0
je 0x1400f7be2
lea rcx, [rsp + 0x30]
call fcn.140053f10
jmp 0x1400f7be2
lea rdx, [rdi + rbp]
add rdx, 8
shr r8, 1
mov rcx, rdi
call fcn.1401061c0
jmp 0x1400f7bd8
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14010e4a0
mov rcx, rdi
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp fcn.140106300
lea rdx, [rsp + 0x20]
mov rcx, r12
call fcn.140106480
jmp 0x1400f7d2e
int3