Function at 0x140150fc0
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 [0x1402cdb18]
mov dword [rsp + 0x50], r12d
mov qword [rbp + 0x158], r12
mov qword [rbp + 0x160], r12
jae 0x14015101f
nop dword [rax]
cmp ecx, 0x40
jae 0x14015101f
mov rcx, qword gs:[0x30]
mov r8d, dword [0x1402cdb18]
mov rax, qword [rcx + r8*8 + 0x1480]
jmp 0x14015102d
nop
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r8d, dword [0x1402cdb18]
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 0x140151079
cmp r8d, 0x40
jae 0x140151079
mov rcx, qword gs:[0x30]
lea rdx, [rsp + 0x50]
mov eax, dword [0x1402cdb18]
mov qword [rcx + rax*8 + 0x1480], rdx
jmp 0x1401510b7
lea rdx, [rsp + 0x50]
mov ecx, r8d
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x1401510b7
cmp dword [0x1402bff40], 0xffffffff
jae 0x1401510a2
mov rax, qword gs:[0x30]
mov eax, dword [rax + 0x68]
jmp 0x1401510a8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call sym.SystemInformer.exe_PhDosErrorToNtStatus
test eax, eax
js 0x1401513d3
call qword [sym.imp.USER32.dll_GetFocus]
mov rbx, qword [r14 + 8]
mov r15, rax
test rbx, rbx
je 0x140151117
nop dword [rax]
mov edx, 0xfffffff0
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindowLongPtrW]
bt rax, 0x1e
jae 0x1401510f8
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetParent]
mov rbx, rax
test rax, rax
jne 0x1401510d0
jmp 0x140151117
call qword [sym.imp.USER32.dll_GetDesktopWindow]
nop
cmp rbx, rax
je 0x140151114
xor edx, edx
mov rcx, rbx
call qword [sym.imp.USER32.dll_EnableWindow]
test eax, eax
je 0x140151117
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 0x14015116d
test rbx, rbx
je 0x140151146
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 0x140151237
cmp edi, 0xffffffff
je 0x140151246
cmp dword [rsp + 0x28], 0x100
jne 0x1401511bd
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 0x1401511f1
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 0x140151233
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 0x140151192
jmp 0x140151237
test edi, edi
jne 0x140151246
mov ecx, dword ds:[rsp + 0x30]
call qword [sym.imp.USER32.dll_PostQuitMessage]
cmp qword [r14 + 8], r12
je 0x140151266
call qword [sym.imp.USER32.dll_GetActiveWindow]
cmp rax, rsi
jne 0x140151266
mov rcx, qword ds:[r14 + 8]
call qword [sym.imp.USER32.dll_SetActiveWindow]
test rbx, rbx
je 0x140151279
mov edx, 1
mov rcx, rbx
call qword [sym.imp.USER32.dll_EnableWindow]
test r15, r15
je 0x140151294
mov rcx, r15
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x140151294
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 0x1401512d5
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 0x1401512cb
call fcn.140141ea0
add rbx, 8
sub rdi, 1
jne 0x1401512b0
mov rbx, qword [rbp + 0x160]
mov dword [rsp + 0x50], r12d
test rbx, rbx
je 0x140151351
mov eax, dword [rbp + 0x158]
test eax, eax
je 0x14015131e
mov edi, eax
mov rcx, qword [rbx]
mov eax, 0xffffffff
add rcx, 0xfffffffffffffff0
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14015130d
call fcn.140141ea0
add rbx, 8
sub rdi, 1
jne 0x1401512f2
mov rbx, qword [rbp + 0x160]
cmp dword [rbp + 0x15c], 0x100
mov dword [rbp + 0x158], r12d
jbe 0x140151351
mov rcx, qword [0x1402caaf0]
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 [0x1402cdb18]
mov rdi, qword [rsp + 0x278]
jae 0x140151387
cmp ecx, 0x40
jae 0x140151387
mov rcx, qword gs:[0x30]
mov r8d, dword [0x1402cdb18]
mov rax, qword [rcx + r8*8 + 0x1480]
jmp 0x140151394
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r8d, dword [0x1402cdb18]
lea rcx, [rsp + 0x50]
cmp rax, rcx
jne 0x1401513d3
mov rdx, qword [rbp + 0x168]
mov ecx, r8d
call fcn.140149740
test eax, eax
js 0x1401513d3
mov r8, qword [rbp + 0x160]
test r8, r8
je 0x1401513cc
mov rcx, qword [0x1402caaf0]
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov al, 1
jmp 0x140151148
mov ecx, 0xc0000001
call qword [sym.imp.ntdll.dll_RtlRaiseStatus]
int3