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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x60
mov rsi, r8
mov rdi, rdx
mov rbp, rcx
mov rax, qword [rcx + 0x30]
lea rbx, [rax + 0x28]
xor r14d, r14d
test rax, rax
cmove rbx, r14
mov ecx, dword [0x1800a4940]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x18000b1a4
cmp qword [rax], rbx
je 0x18000b1d8
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x18000b196
mov rcx, qword [rdi]
add rcx, 0x38
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [rdi]
cmp byte [rax + 0x60], r14b
je 0x18000b302
mov qword [rsi + 0x20], r14
mov rcx, qword [rax + 0x70]
test rcx, rcx
je 0x18000b2eb
mov qword [rcx + 0x20], rsi
jmp 0x18000b2ef
mov rbx, qword [rax + 8]
mov rcx, qword [rdi]
add rcx, 0x38
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test rbx, rbx
je 0x18000b1b1
mov rax, qword [rdi]
cmp byte [rax + 0x60], r14b
jne 0x18000b1b1
mov byte [rax + 0x60], 1
mov rcx, qword [rdi]
add rcx, 0x38
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rax, qword [rdi]
mov qword [rsp + 0x40], rax
mov ecx, dword [0x1800a4950]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x40]
mov ecx, dword [0x1800a4950]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov rbp, qword [rbp + 0x30]
mov qword [rsp + 0x30], rbp
mov rdi, qword [rdi]
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x20], r14d
lea rax, [0x1800a0df8]
mov qword [rsp + 0x28], rax
mov rax, qword [rsi + 0x28]
xor r9d, r9d
lea r8, [rsp + 0x20]
mov rdx, rsi
mov rcx, rbp
call rax
nop
lea rcx, [rdi + 0x38]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [rdi + 0x68]
test rcx, rcx
je 0x18000b2b0
mov rax, qword [rdi + 0x80]
test rax, rax
je 0x18000b299
mov qword [rax + 0x20], rcx
jmp 0x18000b29d
mov qword [rdi + 0x78], rcx
mov rax, qword [rdi + 0x70]
mov qword [rdi + 0x80], rax
mov qword [rdi + 0x68], r14
mov qword [rdi + 0x70], r14
mov rbx, qword [rdi + 0x78]
test rbx, rbx
setne al
mov byte [rdi + 0x60], al
lea rcx, [rdi + 0x38]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test rbx, rbx
je 0x18000b2d8
mov rdx, rdi
mov rcx, rbp
call fcn.180007970
nop
mov rdx, qword [rsp + 0x50]
mov ecx, dword [0x1800a4950]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
jmp 0x18000b343
mov qword [rax + 0x68], rsi
mov qword [rax + 0x70], rsi
mov rcx, qword [rdi]
add rcx, 0x38
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x18000b343
mov byte [rax + 0x60], 1
mov rcx, qword [rdi]
add rcx, 0x38
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rax, qword [rdi]
mov qword [rsi + 0x20], r14
mov rcx, qword [rax + 0x80]
test rcx, rcx
je 0x18000b32c
mov qword [rcx + 0x20], rsi
jmp 0x18000b330
mov qword [rax + 0x78], rsi
mov qword [rax + 0x80], rsi
mov rdx, qword [rdi]
mov rcx, qword [rbp + 0x30]
call fcn.180007970
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret