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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1404af540]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rdi, rcx
mov qword [rsp + 0x20], rcx
lea rax, vtable.nbase::MessageLoop.0
mov qword [rcx], rax
xor ebp, ebp
mov dword [rcx + 8], ebp
mov qword [rcx + 0x10], rbp
mov qword [rcx + 0x18], rbp
mov qword [rcx + 0x20], rbp
mov word [rcx + 0x28], 0x100
lea rbx, [rcx + 0x30]
mov qword [rsp + 0x40], rbx
mov qword [rbx], rbp
mov qword [rbx + 8], rbp
mov qword [rbx + 0x10], rbp
mov qword [rbx + 0x18], rbp
mov qword [rbx + 0x20], rbp
mov ecx, reloc.SinoSPE.dll_Ordinal_16
call fcn.1403ca490
mov qword [rax + 8], rbp
mov qword [rbx], rax
mov qword [rax], rbx
lea rcx, [rdi + 0x58]
mov edx, 0x7d0
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
nop
lea rbx, [rdi + 0x80]
mov qword [rsp + 0x40], rbx
mov qword [rbx], rbp
mov qword [rbx + 8], rbp
mov qword [rbx + 0x10], rbp
mov qword [rbx + 0x18], rbp
mov qword [rbx + 0x20], rbp
mov ecx, reloc.SinoSPE.dll_Ordinal_16
call fcn.1403ca490
mov qword [rax + 8], rbp
mov qword [rbx], rax
mov qword [rax], rbx
lea rbx, [rdi + 0xa8]
mov qword [rsp + 0x40], rbx
mov qword [rbx], rbp
mov qword [rbx + 8], rbp
mov qword [rbx + 0x10], rbp
mov qword [rbx + 0x18], rbp
mov qword [rbx + 0x20], rbp
mov ecx, reloc.SinoSPE.dll_Ordinal_16
call fcn.1403ca490
mov qword [rax + 8], rbp
mov qword [rbx], rax
mov qword [rax], rbx
mov qword [rdi + 0xd0], rbp
mov qword [rdi + 0xd8], rbp
mov qword [rdi + 0xe0], rbp
xor eax, eax
mov byte [rdi + 0xe8], al
mov dword [rdi + 0xf0], ebp
mov qword [rdi + 0xf8], rbp
mov dword [rdi + 0x108], ebp
lea rax, vtable.ObserverList_class_nbase::MessageLoop::TaskObserver_.0
mov qword [rdi + 0x100], rax
mov qword [rdi + 0x110], rbp
mov qword [rdi + 0x118], rbp
mov qword [rdi + 0x120], rbp
mov dword [rdi + 0x130], ebp
lea rax, vtable.ObserverList_class_nbase::MessageLoop::DestructionObserver_.0
mov qword [rdi + 0x128], rax
mov qword [rdi + 0x138], rbp
mov qword [rdi + 0x140], rbp
mov qword [rdi + 0x148], rbp
mov qword [rdi + 0x150], rbp
mov qword [rdi + 0x158], rbp
mov esi, 0xffffffff
cmp dword [rdi + 8], ebp
jne 0x1401ac6cc
mov ecx, reloc.SinoSPE.dll_Ordinal_32
call fcn.1403ca490
mov rbx, rax
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
lea rax, vtable.nbase::DefaultMessagePump.0
mov qword [rbx], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 8], rax
mov byte [rbx + 0x10], bpl
mov qword [rbx + 0x18], rbp
mov qword [rsp + 0x40], rbx
mov ecx, reloc.SinoSPE.dll_Ordinal_24
call fcn.1403ca490
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov dword [rax + 8], 1
mov dword [rax + 0xc], 1
lea rcx, vtable.std::_Ref_count_class_nbase::DefaultMessagePump_.0
mov qword [rax], rcx
mov qword [rax + 0x10], rbx
mov qword [rdi + 0x18], rbx
mov rbx, qword [rdi + 0x20]
mov qword [rdi + 0x20], rax
test rbx, rbx
je 0x1401ac6cc
mov eax, esi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1401ac6cc
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, esi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x1401ac6cc
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.SinoSPE.dll_Ordinal_8]
call fcn.1401ade50
mov rdx, rdi
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, 0x48
call fcn.1403ca490
mov rbx, rax
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbx], xmm0
movups xmmword [rbx + 0x10], xmm0
movups xmmword [rbx + 0x20], xmm0
movups xmmword [rbx + 0x30], xmm0
mov qword [rbx + 0x40], rax
mov qword [rbx + 8], rbp
mov qword [rbx + 0x10], rbp
lea rax, vtable.nbase::MessageLoopProxy.0
mov qword [rbx], rax
lea rcx, [rbx + 0x18]
mov edx, 0x7d0
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
nop
call fcn.1401ade50
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rbx + 0x40], rax
lea rax, [0x1401b04d0]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x28], rbx
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov byte [rsp + 0x38], 1
mov ecx, reloc.SinoSPE.dll_Ordinal_32
call fcn.1403ca490
mov qword [rsp + 0x20], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
mov rcx, qword [rsp + 0x40]
movups xmmword [rax], xmm0
mov dword [rax + 8], 1
mov dword [rax + 0xc], 1
lea rdx, vtable.std::_Ref_count_resource_class_nbase::MessageLoopProxy____ptr64__void____cdecl___class_nbase::MessageLoopProxy_const____ptr64__.0
mov qword [rax], rdx
mov qword [rax + 0x10], rcx
mov qword [rax + 0x18], rbx
mov qword [rdi + 0x150], rbx
mov rbx, qword [rdi + 0x158]
mov qword [rdi + 0x158], rax
test rbx, rbx
je 0x1401ac7db
mov eax, esi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1401ac7db
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], esi
cmp esi, 1
jne 0x1401ac7db
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx + reloc.SinoSPE.dll_Ordinal_8]
mov rcx, qword [rdi + 0x150]
mov qword [rcx + 0x40], rdi
mov rax, rdi
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1403ca460
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret