Function at 0x1400f7790
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, 0x58
mov rsi, rcx
mov rax, qword [0x14016c028]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rcx, qword [rcx + 0x40]
call fcn.1400f7e40
mov rdi, qword [rsi + 0x20]
test rdi, rdi
jne 0x1400f77f5
mov rcx, qword [rsi + 8]
test rcx, rcx
je 0x1400f77d6
mov qword [rsi + 0x10], rcx
call fcn.1400f7ab0
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14010e4a0
nop
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov qword [rsi + 0x28], rdi
call fcn.1400f7db0
mov rax, rdi
and rax, 0xffffffffffe00000
mov rcx, rdi
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 rdx, r15
sub rdx, rcx
mov qword [rsp + 0x28], rdx
mov rcx, rdx
and rcx, 0xfffffffffffff000
mov rcx, qword [rcx]
cmp byte [rcx], 2
je 0x1400f7917
cmp byte [rcx + 1], 0
je 0x1400f79f8
mov rax, r13
shl rax, 5
mov r14, qword [r15 + rax + 0x10]
cmp byte [r14 + 0x1c], 0
je 0x1400f79f8
mov r12, rcx
mov ebx, dword [0x140178ca0]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test ebp, ebp
jne 0x1400f79e4
test rbx, rbx
mov rcx, r12
je 0x1400f79f8
sub r14, rcx
add r14, 0xfffffffffffffff0
sar r14, 3
movabs rbp, 0xcccccccccccccccd
imul rbp, r14
inc qword [rbx + 0x2c0]
cmp rbp, 0x28
ja 0x1400f79f1
shl rbp, 4
mov rcx, qword [rbx + rbp + 8]
call fcn.14010bcbc
mov qword [rdi], rax
mov qword [rbx + rbp + 8], rdi
mov al, byte [rbx + rbp + 0x10]
inc al
mov byte [rbx + rbp + 0x10], al
inc qword [rbx + 0x2c8]
movzx r8d, byte [rbx + rbp + 0x11]
cmp al, r8b
jae 0x1400f7a77
mov eax, dword [rbx]
test eax, eax
je 0x1400f77c4
mov rcx, rbx
call fcn.140106300
jmp 0x1400f77c4
mov rbp, r13
shl rbp, 5
mov rdx, qword [r15 + rbp + 0x10]
cmp byte [rdx + 0x1c], 0
je 0x1400f784f
lea rdx, [r15 + rbp]
add rdx, 0x10
mov rbp, qword [0x14016cca8]
and ebp, 1
shl rbp, 0xe
add rbp, rax
mov eax, edi
shr eax, 7
and eax, 0x3fff
shr dil, 4
and dil, 7
mov bl, 1
mov ecx, edi
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 0x1400f77c4
xchg byte [0x14016ccb8], al
test al, 1
jne 0x1400f77c4
xor eax, eax
xchg qword [0x14016cc98], rax
lea rdi, [0x14016cc50]
mov qword [0x14016ccb0], rax
lock inc qword [0x14016cca8]
call fcn.1400f55f0
mov rbx, rax
mov rcx, rax
mov rdx, rdi
call fcn.1400f5700
call fcn.1400f6400
lea rcx, [rsp + 0x40]
mov qword [rcx], rbx
call fcn.1400f64f0
jmp 0x1400f77c4
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1400f7894
inc qword [rbx + 0x2d0]
add rcx, 8
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
mov rbx, rcx
call fcn.1400a5910
mov rbp, qword [rsp + 0x28]
mov rcx, qword [rbp]
cmp rdi, rcx
je 0x1400f7aa0
call fcn.14010bcbc
mov qword [rdi], rax
mov qword [rbp], rdi
shl r13, 5
movzx eax, word [r15 + r13 + 0x18]
dec eax
mov word [r15 + r13 + 0x18], ax
test ax, ax
jle 0x1400f7a8f
xorps xmm0, xmm0
movaps xmmword [rsp + 0x30], xmm0
movaps xmm0, xmmword [rsp + 0x30]
movaps xmmword [rsp + 0x40], xmm0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
cmp qword [rsp + 0x40], 0
je 0x1400f77c4
lea rcx, [rsp + 0x40]
call fcn.140053f10
jmp 0x1400f77c4
lea rdx, [rbx + rbp]
add rdx, 8
shr r8, 1
mov rcx, rbx
call fcn.1401061c0
jmp 0x1400f7900
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
call fcn.140106480
jmp 0x1400f7a49
int3