Function at 0x14007c9d0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
and rbx, 0xfffffffffffffffe
je 0x14007ca54
cmp byte [rbx + 0x9c], 0
je 0x14007ca54
sub dword [rbx + 0x98], 1
jne 0x14007ca54
mov ecx, dword [0x14016b930]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r8, qword [rbx + 0x30]
xor edx, edx
test r8, r8
jne 0x14007ca15
movzx ecx, byte [rbx + 0x4a]
not cl
test cl, 1
mov ecx, edx
je 0x14007ca1a
mov ecx, 1
or rcx, rbx
cmp rax, rcx
je 0x14007ca45
test r8, r8
jne 0x14007ca31
movzx eax, byte [rbx + 0x4a]
not al
test al, 1
je 0x14007ca36
mov edx, 1
mov ecx, dword [0x14016b930]
or rdx, rbx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
xor edx, edx
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp 0x14007d550
add rsp, 0x20
pop rbx
ret
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x30
movzx r15d, dl
mov rdi, rcx
mov rsi, qword [rcx + 0x30]
mov r14, qword [rcx + 0x78]
xor ebp, ebp
test rsi, rsi
je 0x14007d60f
mov rax, qword [rcx + 0x28]
cmp qword [rax + 8], rbp
je 0x14007d5f7
call fcn.14007d310
mov rcx, qword [rdi + 0x28]
cmp qword [rcx + 8], rbp
je 0x14007d5ef
mov rcx, qword [rcx + 0x10]
mov rax, qword [rdi + 0x28]
mov rax, qword [rax + 0x88]
cmp rcx, rax
jae 0x14007d5ef
mov rcx, qword [rdi + 0x28]
cmp qword [rcx + 8], rbp
je 0x14007d5cb
mov rax, qword [rcx + 0x98]
nop
mov qword [rcx + 8], rax
mov rax, qword [rdi + 0x90]
mov qword [rax - 0x18], 2
mov rax, qword [rdi]
xor r8d, r8d
mov rdx, qword [rdi + 0x90]
mov rcx, rdi
call qword [rax + 0x28]
jmp 0x14007d5f7
mov rax, qword [rdi + 0x28]
mov qword [rax + 8], rbp
mov rdx, qword [rdi + 0x58]
test rdx, rdx
je 0x14007d60f
lea rcx, [rsi + 0xe0]
xor r8d, r8d
call fcn.140084490
mov rdx, qword [rdi + 0x50]
test rdx, rdx
je 0x14007d627
xor r8d, r8d
lea rcx, [0x14016bdb8]
call fcn.140084490
mov rcx, qword [r14 + 0x10]
mov rax, qword [rcx]
mov rdx, qword [rdi + 0x168]
call qword [rax + 0x38]
test rsi, rsi
je 0x14007d647
mov rax, qword [rdi + 0x28]
nop
mov qword [rax], rbp
jmp 0x14007d667
mov rax, qword [rdi + 0x90]
mov rcx, qword [rax - 0x38]
call fcn.14007bb40
mov rax, qword [rdi + 0x90]
mov rcx, qword [rax - 0x38]
call fcn.14007c770
mov eax, 0x28
mov rcx, rdi
lea rdx, [rcx + rax]
mov byte [rsp + 0x28], bpl
lea rax, [0x14016b918]
mov qword [rsp + 0x20], rax
mov r12d, 1
mov ebx, r12d
xor eax, eax
lock cmpxchg byte [0x14016b918], r12b
je 0x14007d6d2
nop word [rax + rax]
cmp ebx, 0x10
jg 0x14007d6bb
movsxd rax, ebx
test ebx, ebx
je 0x14007d6b7
nop dword [rax]
pause
sub rax, r12
jne 0x14007d6b0
add ebx, ebx
jmp 0x14007d6c1
call qword [sym.imp.KERNEL32.dll_SwitchToThread]
xor eax, eax
lock cmpxchg byte [0x14016b918], r12b
jne 0x14007d6a0
lea rdx, [rdi + 0x28]
mov rax, qword [rdi + 0x78]
dec qword [rax + 0xf0]
mov rcx, qword [rdi + 0x18]
mov rax, qword [rdi + 0x10]
mov qword [rcx], rax
mov rcx, qword [rdi + 0x10]
mov rax, qword [rdi + 0x18]
mov qword [rcx + 8], rax
nop
mov byte [0x14016b918], 0
mov qword [rsp + 0x20], rbp
mov qword [rdx], rbp
mov rcx, rdi
call fcn.14007d7b0
test rsi, rsi
je 0x14007d776
mov rdi, qword [rsi + 0x138]
mov rbx, qword [rsi + 0x130]
mov eax, dword [rsi + 0x14c]
cmp dword [rsi + 0x148], eax
je 0x14007d753
cmp dword [rbx + 0x1c], 0
jne 0x14007d753
cmp byte [rsi + 0x151], 0
jne 0x14007d753
nop dword [rax]
mov rcx, rsi
call fcn.140083210
test al, al
jne 0x14007d753
inc ebp
cmp ebp, 3
jl 0x14007d740
mov eax, 0xffffffff
lock xadd dword [rsi + 0x84], eax
cmp eax, 1
jne 0x14007d773
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
call fcn.140081db0
test rsi, rsi
setne dl
movzx r8d, r15b
mov rcx, r14
call fcn.140081990
nop
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop r12
ret