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

Disassembly:
push rbp
push rbx
push rsi
push rdi
lea rbp, [rsp - 0x3f]
sub rsp, 0x88
mov rdi, rcx
xor ebx, ebx
mov dword [rbp + 0x67], ebx
lea rcx, [rbp + 0x2f]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
nop
lea rsi, str.CApplicationInstance::InstanceQuit
mov qword [rbp + 0x27], rsi
mov edx, dword [0x1401993f8]
mov eax, dword [0x1401993fc]
add edx, eax
je 0x140030f58
mov dword [rbp - 1], ebx
call fcn.1400057e0
mov qword [rbp - 9], rax
lock inc dword [rbp - 1]
mov dword [rbp + 0x67], 4
mov rax, qword [rbp - 9]
test rax, rax
jne 0x140030f1c
call fcn.1400057e0
mov qword [rbp - 9], rax
lock inc dword [rbp - 1]
mov rcx, qword [rbp - 9]
mov dword [rbp + 0x6f], 0x20
mov qword [rsp + 0x30], rsi
lea rax, str._s_start:
mov qword [rsp + 0x28], rax
lea rax, str._CScopeTrace::operator___
mov qword [rsp + 0x20], rax
lea r9, [0x140000000]
lea r8, [rbp + 0x6f]
movsx edx, bx
call fcn.140004bd0
nop
mov eax, dword [rbp + 0x67]
test al, 4
je 0x140030f90
and eax, 0xfffffffb
mov dword [rbp + 0x67], eax
mov qword [rbp - 9], rbx
mov eax, 0xffffffff
lock xadd dword [rbp - 1], eax
cmp eax, 1
js 0x140030f8c
call fcn.140005b50
mov eax, 0xffffffff
lock xadd dword [rbp - 1], eax
cmp eax, 1
jns 0x140030f78
lock inc dword [rbp - 1]
mov rax, qword [0x140198db8]
cmp eax, 0xffffffff
je 0x140030fb0
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rcx, rax
mov rax, qword [0x140198db8]
jmp 0x140030fb6
mov ecx, dword [0x140198dbc]
lea edx, [rcx + 1]
cmp eax, 0xffffffff
je 0x140030fc9
movsxd rdx, edx
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp qword [rdi + 0x10], 0
mov ecx, dword [0x1401993f8]
mov eax, dword [0x1401993fc]
jne 0x14003107f
add ecx, eax
je 0x14003103e
mov dword [rbp + 0xf], ebx
call fcn.1400057e0
mov qword [rbp + 7], rax
lock inc dword [rbp + 0xf]
or dword [rbp + 0x67], 1
mov rax, qword [rbp + 7]
test rax, rax
jne 0x14003100e
call fcn.1400057e0
mov qword [rbp + 7], rax
lock inc dword [rbp + 0xf]
mov rcx, qword [rbp + 7]
mov dword [rbp + 0x77], Ordinal_21
lea rax, str.Invalid_quit_instance_event
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
lea r9, [0x140000000]
lea r8, [rbp + 0x77]
movsx edx, bx
call fcn.140004bd0
nop
mov eax, dword [rbp + 0x67]
test al, 1
je 0x140031127
and eax, 0xfffffffe
mov dword [rbp + 0x67], eax
mov qword [rbp + 7], rbx
mov eax, 0xffffffff
lock xadd dword [rbp + 0xf], eax
cmp eax, 1
js 0x140031076
call fcn.140005b50
mov eax, 0xffffffff
lock xadd dword [rbp + 0xf], eax
cmp eax, 1
jns 0x140031062
lock inc dword [rbp + 0xf]
jmp 0x140031127
add ecx, eax
je 0x1400310dd
mov dword [rbp + 0x1f], ebx
call fcn.1400057e0
mov qword [rbp + 0x17], rax
lock inc dword [rbp + 0x1f]
or dword [rbp + 0x67], 2
mov rax, qword [rbp + 0x17]
test rax, rax
jne 0x1400310ad
call fcn.1400057e0
mov qword [rbp + 0x17], rax
lock inc dword [rbp + 0x1f]
mov rcx, qword [rbp + 0x17]
mov dword [rbp + 0x7f], 0x20
lea rax, str.Another_instance_found__sending_QUIT
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
lea r9, [0x140000000]
lea r8, [rbp + 0x7f]
movsx edx, bx
call fcn.140004bd0
nop
mov eax, dword [rbp + 0x67]
test al, 2
je 0x140031118
and eax, 0xfffffffd
mov dword [rbp + 0x67], eax
mov qword [rbp + 0x17], rbx
mov eax, 0xffffffff
lock xadd dword [rbp + 0x1f], eax
cmp eax, 1
js 0x140031114
nop dword [rax]
call fcn.140005b50
mov eax, 0xffffffff
lock xadd dword [rbp + 0x1f], eax
cmp eax, 1
jns 0x140031100
lock inc dword [rbp + 0x1f]
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov ebx, 1
lea rcx, [rbp + 0x27]
call fcn.14002f940
mov eax, ebx
add rsp, 0x88
pop rdi
pop rsi
pop rbx
pop rbp
ret