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

Disassembly:
push rbp
push r12
push r14
lea rbp, [rsp - 0x180]
sub rsp, 0x280
xor r12d, r12d
mov r14, rcx
cmp dword [0x1402bff40], 0xffffffff
mov ecx, dword [0x1402cdaf8]
mov dword [rsp + 0x50], r12d
mov qword [rbp + 0x158], r12
mov qword [rbp + 0x160], r12
jae 0x140150e1f
nop dword [rax]
cmp ecx, 0x40
jae 0x140150e1f
mov rcx, qword gs:[0x30]
mov r8d, dword [0x1402cdaf8]
mov rax, qword [rcx + r8*8 + 0x1480]
jmp 0x140150e2d
nop
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r8d, dword [0x1402cdaf8]
cmp dword [0x1402bff40], 0xffffffff
mov qword [rsp + 0x2a0], rbx
mov qword [rsp + 0x2b0], rsi
mov qword [rsp + 0x270], r15
mov qword [rbp + 0x168], rax
jae 0x140150e79
cmp r8d, 0x40
jae 0x140150e79
mov rcx, qword gs:[0x30]
lea rdx, [rsp + 0x50]
mov eax, dword [0x1402cdaf8]
mov qword [rcx + rax*8 + 0x1480], rdx
jmp 0x140150eb7
lea rdx, [rsp + 0x50]
mov ecx, r8d
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x140150eb7
cmp dword [0x1402bff40], 0xffffffff
jae 0x140150ea2
mov rax, qword gs:[0x30]
mov eax, dword [rax + 0x68]
jmp 0x140150ea8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call sym.SystemInformer.exe_PhDosErrorToNtStatus
test eax, eax
js 0x1401511d3
call qword [sym.imp.USER32.dll_GetFocus]
mov rbx, qword [r14 + 8]
mov r15, rax
test rbx, rbx
je 0x140150f17
nop dword [rax]
mov edx, 0xfffffff0
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindowLongPtrW]
bt rax, 0x1e
jae 0x140150ef8
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetParent]
mov rbx, rax
test rax, rax
jne 0x140150ed0
jmp 0x140150f17
call qword [sym.imp.USER32.dll_GetDesktopWindow]
nop
cmp rbx, rax
je 0x140150f14
xor edx, edx
mov rcx, rbx
call qword [sym.imp.USER32.dll_EnableWindow]
test eax, eax
je 0x140150f17
mov rbx, r12
or dword [r14 + 4], 0x400
mov rcx, r14
call qword [sym.imp.COMCTL32.dll_PropertySheetW]
mov rsi, rax
test rax, rax
jne 0x140150f6d
test rbx, rbx
je 0x140150f46
mov edx, 1
mov rcx, rbx
call qword [sym.imp.USER32.dll_EnableWindow]
xor al, al
mov r15, qword [rsp + 0x270]
mov rsi, qword [rsp + 0x2b0]
mov rbx, qword [rsp + 0x2a0]
add rsp, 0x280
pop r14
pop r12
pop rbp
ret
xor r9d, r9d
mov qword [rsp + 0x278], rdi
xor r8d, r8d
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
mov edi, eax
test eax, eax
je 0x140151037
cmp edi, 0xffffffff
je 0x140151046
cmp dword [rsp + 0x28], 0x100
jne 0x140150fbd
mov r9, qword [rsp + 0x38]
mov edx, 0x100
mov r8, qword [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.USER32.dll_SendMessageW]
lea r9, [rsp + 0x20]
xor r8d, r8d
mov edx, 0x475
mov rcx, rsi
call qword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jne 0x140150ff1
lea rcx, ds:[rsp + 0x20]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_DispatchMessageW]
lea rcx, [rsp + 0x50]
call sym.SystemInformer.exe_PhDrainAutoPool
xor r9d, r9d
xor r8d, r8d
mov edx, 0x476
mov rcx, rsi
call qword [sym.imp.USER32.dll_SendMessageW]
test rax, rax
je 0x140151033
xor r9d, r9d
lea rcx, [rsp + 0x20]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
mov edi, eax
test eax, eax
jne 0x140150f92
jmp 0x140151037
test edi, edi
jne 0x140151046
mov ecx, dword ds:[rsp + 0x30]
call qword [sym.imp.USER32.dll_PostQuitMessage]
cmp qword [r14 + 8], r12
je 0x140151066
call qword [sym.imp.USER32.dll_GetActiveWindow]
cmp rax, rsi
jne 0x140151066
mov rcx, qword ds:[r14 + 8]
call qword [sym.imp.USER32.dll_SetActiveWindow]
test rbx, rbx
je 0x140151079
mov edx, 1
mov rcx, rbx
call qword [sym.imp.USER32.dll_EnableWindow]
test r15, r15
je 0x140151094
mov rcx, r15
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x140151094
mov rcx, r15
call qword [sym.imp.USER32.dll_SetFocus]
mov rcx, rsi
call qword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [rsp + 0x50]
test eax, eax
je 0x1401510d5
lea rbx, [rsp + 0x58]
mov edi, eax
nop dword [rax]
mov rcx, qword [rbx]
mov eax, 0xffffffff
add rcx, 0xfffffffffffffff0
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1401510cb
call fcn.140141ca0
add rbx, 8
sub rdi, 1
jne 0x1401510b0
mov rbx, qword [rbp + 0x160]
mov dword [rsp + 0x50], r12d
test rbx, rbx
je 0x140151151
mov eax, dword [rbp + 0x158]
test eax, eax
je 0x14015111e
mov edi, eax
mov rcx, qword [rbx]
mov eax, 0xffffffff
add rcx, 0xfffffffffffffff0
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14015110d
call fcn.140141ca0
add rbx, 8
sub rdi, 1
jne 0x1401510f2
mov rbx, qword [rbp + 0x160]
cmp dword [rbp + 0x15c], 0x100
mov dword [rbp + 0x158], r12d
jbe 0x140151151
mov rcx, qword [0x1402caad0]
mov r8, rbx
xor edx, edx
mov dword [rbp + 0x15c], r12d
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov qword [rbp + 0x160], r12
cmp dword [0x1402bff40], 0xffffffff
mov ecx, dword [0x1402cdaf8]
mov rdi, qword [rsp + 0x278]
jae 0x140151187
cmp ecx, 0x40
jae 0x140151187
mov rcx, qword gs:[0x30]
mov r8d, dword [0x1402cdaf8]
mov rax, qword [rcx + r8*8 + 0x1480]
jmp 0x140151194
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r8d, dword [0x1402cdaf8]
lea rcx, [rsp + 0x50]
cmp rax, rcx
jne 0x1401511d3
mov rdx, qword [rbp + 0x168]
mov ecx, r8d
call fcn.140149540
test eax, eax
js 0x1401511d3
mov r8, qword [rbp + 0x160]
test r8, r8
je 0x1401511cc
mov rcx, qword [0x1402caad0]
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov al, 1
jmp 0x140150f48
mov ecx, 0xc0000001
call qword [sym.imp.ntdll.dll_RtlRaiseStatus]
int3