Function at 0x10007c6f0
Capabilities:
Get thread local storage value

Disassembly:
mov word [rsp + 0x20], r9w
mov dword [rsp + 0x18], r8d
push rbp
push rsi
push rdi
push r12
push r13
push r15
sub rsp, 0x58
mov r12, qword [rsp + 0xb0]
xor r15d, r15d
mov rbp, rcx
cmp dword [r12], r15d
mov r13, rdx
lea rcx, [0x100251800]
mov edx, r8d
movzx edi, r9w
mov qword [rsp + 0x40], 0
setle r15b
call fcn.10007cf20
mov rsi, rax
test rax, rax
jne 0x10007c753
add rsp, 0x58
pop r15
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov qword [rsp + 0x90], rbx
mov qword [rsp + 0x50], r14
mov r14d, 1
nop word [rax + rax]
mov rbx, qword [rbp + 0x38]
test rbx, rbx
je 0x10007c8ca
cmp dword [r12], 0
jle 0x10007c79b
cmp qword [rbx + 0x28], 0
jbe 0x10007c79b
mov rcx, rbx
call fcn.10007b0b0
test eax, eax
je 0x10007ca6e
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0x30], 1
lea r8, [rsp + 0xb0]
lea rdx, [rsp + 0x40]
mov r9, r12
mov rcx, rbx
mov word [rsp + 0x28], di
mov dword [rsp + 0x20], eax
call fcn.10007b3b0
mov rbx, rax
test rax, rax
je 0x10007ca82
mov rdx, qword [rsp + 0x40]
mov dword [r13], 1
test rdx, rdx
je 0x10007c7fb
cmp qword [rdx + 0x10], rdx
je 0x10007c7fb
lea rcx, [0x10024d600]
call fcn.100077af0
test r15d, r15d
jne 0x10007caad
mov rax, qword [rbp + 0x38]
mov r11, qword [rsp + 0xb0]
mov rcx, qword [rax + 0x38]
mov r8, qword [rax + 0x18]
mov rdx, qword [r11 + 0x38]
test rcx, rcx
je 0x10007c82e
mov rcx, qword [rcx + 0x38]
mov rdx, qword [rdx + 0x38]
test rcx, rcx
jne 0x10007c821
cmp dword [rdx + 0x38], 1
je 0x10007c896
shr r8, 0xc
mov rax, rbx
and rax, 0xfffffffffffff000
mov r9, r8
xor r8d, r8d
sub rax, qword [rdx + 0x28]
shr rax, 0xc
lea rcx, [rax + rax]
mov r10, rcx
and ecx, 0x3f
shr r10, 6
test r9, r9
je 0x10007c896
mov rax, qword [rdx + 0x10]
lea rdx, [rax + r10*8]
nop word [rax + rax]
mov rax, qword [rdx]
shr rax, cl
test al, 1
je 0x10007c881
add r8, 0x1000
add rcx, 2
cmp rcx, 0x40
jne 0x10007c891
add rdx, 8
xor ecx, ecx
dec r9
jne 0x10007c870
test r8, r8
jne 0x10007cab5
mov rcx, qword [rbp + 0x38]
xor eax, eax
mov r9d, 0x8000
mov r8, qword [rcx + 0x18]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], eax
mov rdx, rbx
mov qword [rsp + 0x20], r11
call fcn.10007aae0
jmp 0x10007c98d
mov rcx, qword [rbp + 0x40]
lea r9, [rsp + 0xb0]
movzx r8d, di
mov edx, r15d
call fcn.10007dfb0
mov rbx, rax
test rax, rax
je 0x10007cb2a
mov eax, 2
mov dword [r13], eax
test r15d, r15d
jne 0x10007caad
mov r11, qword [rsp + 0xb0]
cmp dword [r11 + 0x38], 1
jne 0x10007c918
mov rdx, qword [0x10023c9a0]
jmp 0x10007c977
mov r9, qword [0x10023c9a0]
mov rax, rbx
xor edx, edx
and rax, 0xfffffffffffff000
shr r9, 0xc
sub rax, qword [r11 + 0x28]
shr rax, 0xc
lea rcx, [rax + rax]
mov r8, rcx
and ecx, 0x3f
shr r8, 6
test r9, r9
je 0x10007c977
mov rax, qword [r11 + 0x10]
lea r8, [rax + r8*8]
mov rax, qword [r8]
shr rax, cl
test al, 1
je 0x10007c962
add rdx, 0x1000
add rcx, 2
cmp rcx, 0x40
jne 0x10007c972
add r8, 8
xor ecx, ecx
dec r9
jne 0x10007c951
test rdx, rdx
jne 0x10007cab5
mov rcx, qword [rbp + 0x40]
mov rdx, r11
call qword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
mov r11d, r14d
and r11d, 0x8000007f
jge 0x10007c9a3
dec r11d
or r11d, 0xffffff80
inc r11d
test r11d, r11d
jne 0x10007ca66
call fcn.100068a00
mov rbx, qword gs:[0x30]
mov rcx, rax
mov rdi, rax
add rbx, rax
call fcn.10006c530
test eax, eax
jne 0x10007c9d7
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rbx, rbx
je 0x10007c9e8
mov rcx, qword [rbx + 0xd8]
test rcx, rcx
jne 0x10007ca1f
call fcn.100063d30
call fcn.100068a00
mov rbx, qword gs:[0x30]
mov rcx, rax
mov rdi, rax
add rbx, rax
call fcn.10006c530
test eax, eax
jne 0x10007ca18
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
mov rcx, qword [rbx + 0xd8]
rdtsc
mov r8, qword [rcx + 0x2f8]
shl rdx, 0x20
or rax, rdx
cmp rax, r8
ja 0x10007ca59
mov rdx, r8
sub rdx, rax
mov rax, qword [rcx + 0x218]
cmp rdx, qword [rax + 0xab0]
jbe 0x10007ca5e
movabs rax, 0x7fffffffffffffff
cmp r8, rax
je 0x10007ca5e
call fcn.1000655c0
movzx edi, word [rsp + 0xa8]
inc r14d
jmp 0x10007c770
lea rcx, [0x100251800]
mov rdx, rsi
call fcn.10007d150
jmp 0x10007cb9c
mov rbx, rsi
and rbx, 0xffffffffffffe000
add rbx, 0x1f80
lock inc dword [rbx + 0x28]
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
mov edx, dword [rbx + 0x30]
dec edx
jmp 0x10007cb50
mov r11, qword [rsp + 0xb0]
mov eax, dword [rsp + 0xa0]
xor ecx, ecx
mov qword [rsi], rcx
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rcx
mov qword [rsi + 0x18], rcx
mov dword [rsi + 0x50], eax
mov eax, 0xffff
mov qword [rsi + 0x20], rbx
mov qword [rsi + 0x30], rbp
mov qword [rsi + 0x38], r11
mov word [rsi + 0x56], ax
mov qword [rsi + 0x28], rbx
mov word [rsi + 0x54], di
mov dword [rsi + 0x58], ecx
mov qword [rsi + 0x40], rcx
mov rax, qword [rbp + 0x38]
test rax, rax
je 0x10007cb03
mov rax, qword [rax + 0x18]
jmp 0x10007cb0b
mov rax, qword [rbp + 0x40]
mov rax, qword [rax + 0x28]
xor edx, edx
div qword [rbp + 0x18]
mov qword [rsi + 0x48], rcx
mov qword [rsi + 0x40], rax
shl rax, 3
or rax, 1
mov qword [rsi + 0x60], rax
mov rax, rsi
jmp 0x10007cb9e
mov rbx, rsi
and rbx, 0xffffffffffffe000
add rbx, 0x1f80
lock inc dword [rbx + 0x28]
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
mov ecx, dword [rbx + 0x30]
dec ecx
jne 0x10007cb9c
mov eax, 1
mov ecx, 2
lock cmpxchg dword [rbx + 0x30], ecx
jne 0x10007cb9c
mov ecx, dword [rbx + 0x28]
movzx r8d, word [rbx + 0x2c]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
lea rdx, [rbx + 0x10]
cdqe
lea rcx, [rax + r8*8]
lea rax, [0x100251900]
shl rcx, 4
add rcx, rax
call qword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
xor eax, eax
mov rbx, qword [rsp + 0x90]
mov r14, qword [rsp + 0x50]
add rsp, 0x58
pop r15
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret