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

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], rbp
push rdi
sub rsp, 0x270
xor edi, edi
mov rbp, rcx
mov ecx, dword [0x14015ec30]
mov dword [rsp + 0x50], edi
mov qword [rax - 0x20], rdi
mov qword [rax - 0x18], rdi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [0x14015ec30]
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x268], rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x1400c35d5
mov ecx, 0xc0000001
call qword [sym.imp.ntdll.dll_RtlRaiseStatus]
int3
mov qword [rsp + 0x280], rbx
mov qword [rsp + 0x288], rsi
mov qword [rsp + 0x290], r14
call qword [sym.imp.USER32.dll_GetFocus]
mov rbx, qword [rbp + 8]
mov r14, rax
test rbx, rbx
je 0x1400c3649
nop
mov edx, 0xfffffff0
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindowLongW]
bt eax, 0x1e
jae 0x1400c3627
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetParent]
mov rbx, rax
test rax, rax
jne 0x1400c3600
jmp 0x1400c3649
test rbx, rbx
je 0x1400c3649
call qword [sym.imp.USER32.dll_GetDesktopWindow]
cmp rbx, rax
je 0x1400c3646
xor edx, edx
mov rcx, rbx
call qword [sym.imp.USER32.dll_EnableWindow]
test eax, eax
je 0x1400c3649
mov rbx, rdi
or dword [rbp + 4], 0x400
mov rcx, rbp
call qword [sym.imp.COMCTL32.dll_PropertySheetW]
mov rsi, rax
test rax, rax
jne 0x1400c3679
test rbx, rbx
je 0x1400c3672
lea edx, [rax + 1]
mov rcx, rbx
call qword [sym.imp.USER32.dll_EnableWindow]
xor al, al
jmp 0x1400c37d4
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
je 0x1400c3709
cmp edi, 0xffffffff
je 0x1400c3705
lea r9, [rsp + 0x20]
xor r8d, r8d
mov edx, 0x475
mov rcx, rsi
call qword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jne 0x1400c36c7
lea rcx, [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.ProcessHacker.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 0x1400c3705
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 0x1400c3692
jmp 0x1400c3709
test edi, edi
jne 0x1400c3713
mov ecx, dword [rsp + 0x30]
call qword [sym.imp.USER32.dll_PostQuitMessage]
cmp qword [rbp + 8], 0
je 0x1400c372f
call qword [sym.imp.USER32.dll_GetActiveWindow]
cmp rax, rsi
jne 0x1400c372f
mov rcx, qword [rbp + 8]
call qword [sym.imp.USER32.dll_SetActiveWindow]
test rbx, rbx
je 0x1400c3742
mov edx, 1
mov rcx, rbx
call qword [sym.imp.USER32.dll_EnableWindow]
test r14, r14
je 0x1400c375d
mov rcx, r14
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1400c375d
mov rcx, r14
call qword [sym.imp.USER32.dll_SetFocus]
mov rcx, rsi
call qword [sym.imp.USER32.dll_DestroyWindow]
lea rcx, [rsp + 0x50]
call sym.ProcessHacker.exe_PhDrainAutoPool
mov ecx, dword [0x14015ec30]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
lea rcx, [rsp + 0x50]
cmp rax, rcx
je 0x1400c3792
mov ecx, 0xc0000001
call qword [sym.imp.ntdll.dll_RtlRaiseStatus]
int3
mov rdx, qword [rsp + 0x268]
mov ecx, dword [0x14015ec30]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x1400c37b6
mov ecx, 0xc0000001
call qword [sym.imp.ntdll.dll_RtlRaiseStatus]
int3
mov r8, qword [rsp + 0x260]
test r8, r8
je 0x1400c37d2
mov rcx, qword [sym.ProcessHacker.exe_PhHeapHandle]
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov al, 1
mov rsi, qword [rsp + 0x288]
mov rbx, qword [rsp + 0x280]
mov r14, qword [rsp + 0x290]
mov rbp, qword [rsp + 0x298]
add rsp, 0x270
pop rdi
ret