Function at 0x140151520
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 [0x1402c0f40], 0xffffffff
mov ecx, dword [0x1402cea48]
mov dword [rsp + 0x50], r12d
mov qword [rbp + 0x158], r12
mov qword [rbp + 0x160], r12
jae 0x14015157f
nop dword [rax]
cmp ecx, 0x40
jae 0x14015157f
mov rcx, qword gs:[0x30]
mov r8d, dword [0x1402cea48]
mov rax, qword [rcx + r8*8 + 0x1480]
jmp 0x14015158d
nop
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r8d, dword [0x1402cea48]
cmp dword [0x1402c0f40], 0xffffffff
mov qword [rsp + 0x2a0], rbx
mov qword [rsp + 0x2b0], rsi
mov qword [rsp + 0x270], r15
mov qword [rbp + 0x168], rax
jae 0x1401515d9
cmp r8d, 0x40
jae 0x1401515d9
mov rcx, qword gs:[0x30]
lea rdx, [rsp + 0x50]
mov eax, dword [0x1402cea48]
mov qword [rcx + rax*8 + 0x1480], rdx
jmp 0x140151617
lea rdx, [rsp + 0x50]
mov ecx, r8d
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x140151617
cmp dword [0x1402c0f40], 0xffffffff
jae 0x140151602
mov rax, qword gs:[0x30]
mov eax, dword [rax + 0x68]
jmp 0x140151608
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call sym.SystemInformer.exe_PhDosErrorToNtStatus
test eax, eax
js 0x140151933
call qword [sym.imp.USER32.dll_GetFocus]
mov rbx, qword [r14 + 8]
mov r15, rax
test rbx, rbx
je 0x140151677
nop dword [rax]
mov edx, 0xfffffff0
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindowLongPtrW]
bt rax, 0x1e
jae 0x140151658
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetParent]
mov rbx, rax
test rax, rax
jne 0x140151630
jmp 0x140151677
call qword [sym.imp.USER32.dll_GetDesktopWindow]
nop
cmp rbx, rax
je 0x140151674
xor edx, edx
mov rcx, rbx
call qword [sym.imp.USER32.dll_EnableWindow]
test eax, eax
je 0x140151677
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 0x1401516cd
test rbx, rbx
je 0x1401516a6
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 0x140151797
cmp edi, 0xffffffff
je 0x1401517a6
cmp dword [rsp + 0x28], 0x100
jne 0x14015171d
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 0x140151751
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 0x140151793
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 0x1401516f2
jmp 0x140151797
test edi, edi
jne 0x1401517a6
mov ecx, dword ds:[rsp + 0x30]
call qword [sym.imp.USER32.dll_PostQuitMessage]
cmp qword [r14 + 8], r12
je 0x1401517c6
call qword [sym.imp.USER32.dll_GetActiveWindow]
cmp rax, rsi
jne 0x1401517c6
mov rcx, qword ds:[r14 + 8]
call qword [sym.imp.USER32.dll_SetActiveWindow]
test rbx, rbx
je 0x1401517d9
mov edx, 1
mov rcx, rbx
call qword [sym.imp.USER32.dll_EnableWindow]
test r15, r15
je 0x1401517f4
mov rcx, r15
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1401517f4
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 0x140151835
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 0x14015182b
call fcn.140142200
add rbx, 8
sub rdi, 1
jne 0x140151810
mov rbx, qword [rbp + 0x160]
mov dword [rsp + 0x50], r12d
test rbx, rbx
je 0x1401518b1
mov eax, dword [rbp + 0x158]
test eax, eax
je 0x14015187e
mov edi, eax
mov rcx, qword [rbx]
mov eax, 0xffffffff
add rcx, 0xfffffffffffffff0
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14015186d
call fcn.140142200
add rbx, 8
sub rdi, 1
jne 0x140151852
mov rbx, qword [rbp + 0x160]
cmp dword [rbp + 0x15c], 0x100
mov dword [rbp + 0x158], r12d
jbe 0x1401518b1
mov rcx, qword [0x1402cba10]
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 [0x1402c0f40], 0xffffffff
mov ecx, dword [0x1402cea48]
mov rdi, qword [rsp + 0x278]
jae 0x1401518e7
cmp ecx, 0x40
jae 0x1401518e7
mov rcx, qword gs:[0x30]
mov r8d, dword [0x1402cea48]
mov rax, qword [rcx + r8*8 + 0x1480]
jmp 0x1401518f4
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r8d, dword [0x1402cea48]
lea rcx, [rsp + 0x50]
cmp rax, rcx
jne 0x140151933
mov rdx, qword [rbp + 0x168]
mov ecx, r8d
call fcn.140149ba0
test eax, eax
js 0x140151933
mov r8, qword [rbp + 0x160]
test r8, r8
je 0x14015192c
mov rcx, qword [0x1402cba10]
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov al, 1
jmp 0x1401516a8
mov ecx, 0xc0000001
call qword [sym.imp.ntdll.dll_RtlRaiseStatus]
int3