Function at 0x140033bd0
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 [0x1401c1658]
mov eax, dword [0x1401c165c]
add edx, eax
je 0x140033c78
mov dword [rbp - 1], ebx
call fcn.140005ad0
mov qword [rbp - 9], rax
lock inc dword [rbp - 1]
mov dword [rbp + 0x67], 4
mov rax, qword [rbp - 9]
test rax, rax
jne 0x140033c3c
call fcn.140005ad0
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.140004c90
nop
mov eax, dword [rbp + 0x67]
test al, 4
je 0x140033cb0
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 0x140033cac
call fcn.140005e40
mov eax, 0xffffffff
lock xadd dword [rbp - 1], eax
cmp eax, 1
jns 0x140033c98
lock inc dword [rbp - 1]
mov rax, qword [0x1401c0ff8]
cmp eax, 0xffffffff
je 0x140033cd0
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rcx, rax
mov rax, qword [0x1401c0ff8]
jmp 0x140033cd6
mov ecx, dword [0x1401c0ffc]
lea edx, [rcx + 1]
cmp eax, 0xffffffff
je 0x140033ce9
movsxd rdx, edx
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp qword [rdi + 0x10], 0
mov ecx, dword [0x1401c1658]
mov eax, dword [0x1401c165c]
jne 0x140033d9f
add ecx, eax
je 0x140033d5e
mov dword [rbp + 0xf], ebx
call fcn.140005ad0
mov qword [rbp + 7], rax
lock inc dword [rbp + 0xf]
or dword [rbp + 0x67], 1
mov rax, qword [rbp + 7]
test rax, rax
jne 0x140033d2e
call fcn.140005ad0
mov qword [rbp + 7], rax
lock inc dword [rbp + 0xf]
mov rcx, qword [rbp + 7]
mov dword [rbp + 0x77], 0x10
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.140004c90
nop
mov eax, dword [rbp + 0x67]
test al, 1
je 0x140033e47
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 0x140033d96
call fcn.140005e40
mov eax, 0xffffffff
lock xadd dword [rbp + 0xf], eax
cmp eax, 1
jns 0x140033d82
lock inc dword [rbp + 0xf]
jmp 0x140033e47
add ecx, eax
je 0x140033dfd
mov dword [rbp + 0x1f], ebx
call fcn.140005ad0
mov qword [rbp + 0x17], rax
lock inc dword [rbp + 0x1f]
or dword [rbp + 0x67], 2
mov rax, qword [rbp + 0x17]
test rax, rax
jne 0x140033dcd
call fcn.140005ad0
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.140004c90
nop
mov eax, dword [rbp + 0x67]
test al, 2
je 0x140033e38
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 0x140033e34
nop dword [rax]
call fcn.140005e40
mov eax, 0xffffffff
lock xadd dword [rbp + 0x1f], eax
cmp eax, 1
jns 0x140033e20
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.140032660
mov eax, ebx
add rsp, 0x88
pop rdi
pop rsi
pop rbx
pop rbp
ret