Function at 0x14005cb10
Capabilities:
Get thread local storage value
Set thread local storage value
Terminate process

Disassembly:
mov qword [rsp + 0x20], rsi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xf0
mov edx, 2
xor ecx, ecx
mov esi, r9d
call qword [sym.imp.ole32.dll_CoInitializeEx]
mov ecx, 0x8003
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov rax, qword [rcx + 0x10]
mov qword [0x14015e7d8], rax
call fcn.14000e390
test eax, eax
jns 0x14005cb74
mov eax, 1
mov rsi, qword [rsp + 0x118]
add rsp, 0xf0
pop rbp
ret
call fcn.14005d920
test al, al
je 0x14005cb5e
mov qword [rsp + 0x100], rbx
lea rcx, [rbp - 0x61]
mov qword [rsp + 0x108], rdi
mov qword [rsp + 0x110], r14
mov dword [rbp - 0x61], 8
mov dword [rbp - 0x5d], 0x8029
call qword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov rcx, qword [sym.ProcessHacker.exe_PhCurrentTokenQueryHandle]
test rcx, rcx
je 0x14005cbf5
lea r8, [rbp - 0x59]
mov edx, 1
call fcn.14001ed50
test eax, eax
js 0x14005cbf5
mov rbx, qword [rbp - 0x59]
xor r8d, r8d
mov dl, 1
mov rcx, qword [rbx]
call sym.ProcessHacker.exe_PhGetSidFullName
mov rcx, qword [sym.ProcessHacker.exe_PhHeapHandle]
mov r8, rbx
xor edx, edx
mov qword [0x14015a710], rax
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
xor r8d, r8d
lea rcx, [0x140152b50]
mov dl, 1
call sym.ProcessHacker.exe_PhGetSidFullName
mov qword [0x14015a730], rax
test rax, rax
jne 0x14005cc28
lea edx, [rax + 0x26]
lea rcx, str.NT_AUTHORITYSYSTEM
call sym.ProcessHacker.exe_PhCreateStringEx
mov qword [0x14015a730], rax
mov rax, qword gs:[0x30]
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x10]
call sym.ProcessHacker.exe_PhGetDllFileName
mov qword [0x14015e7c8], rax
lea rdx, [rbp - 0x65]
mov rax, qword gs:[0x30]
xor r14d, r14d
mov ebx, r14d
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x10]
call sym.ProcessHacker.exe_PhGetDllFileName
mov rdi, rax
test rax, rax
je 0x14005cc9d
mov eax, dword [rbp - 0x65]
test eax, eax
je 0x14005cc87
mov rcx, qword [rdi + 8]
mov edx, eax
add rdx, rdx
call sym.ProcessHacker.exe_PhCreateStringEx
mov rbx, rax
lea rcx, [rdi - 0x10]
or edx, 0xffffffff
lock xadd dword [rcx + 8], edx
cmp edx, 1
jne 0x14005cc9d
call fcn.1400258b0
cmp qword [0x14015e7c8], r14
mov rdi, qword [rsp + 0x108]
mov qword [0x14015e7d0], rbx
jne 0x14005ccd4
mov edx, 0x22
lea rcx, [0x14012db58]
call sym.ProcessHacker.exe_PhCreateStringEx
mov rbx, qword [0x14015e7d0]
mov qword [0x14015e7c8], rax
test rbx, rbx
jne 0x14005cce5
call sym.ProcessHacker.exe_PhReferenceEmptyString
mov qword [0x14015e7d0], rax
call fcn.14005e2e0
call fcn.1400bf5a0
call fcn.14005e470
mov rcx, qword [0x14015e7a0]
test rcx, rcx
je 0x14005cd0e
call fcn.1400be930
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.14005daa0
lea rcx, str.AllowOnlyOneInstance
call sym.ProcessHacker.exe_PhGetIntegerSetting
test eax, eax
je 0x14005cd34
test dword [0x14015e760], 0xb08
jne 0x14005cd34
call fcn.14005d5e0
lea rcx, str.EnableKph
call sym.ProcessHacker.exe_PhGetIntegerSetting
test eax, eax
je 0x14005cd52
test byte [0x14015e760], 0x10
jne 0x14005cd52
call fcn.14005d850
test byte [0x14015e760], 8
je 0x14005cda1
cmp qword [0x14015e780], r14
je 0x14005cda1
cmp qword [0x14015e790], r14
je 0x14005cda1
call fcn.14004b3f0
mov ebx, eax
test eax, eax
jns 0x14005cd98
test dword [0x14015e760], 0x2000
jne 0x14005cd98
xor r9d, r9d
lea rdx, str.Unable_to_execute_the_command
mov r8d, eax
xor ecx, ecx
call sym.ProcessHacker.exe_PhShowStatus
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [0x14015bdc8]
mov dword [0x14015c0c0], r14d
mov qword [0x14015c2c8], r14
mov qword [0x14015c2d0], r14
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [0x14015bdc8]
lea rdx, [0x14015c0c0]
mov qword [0x14015c2d8], rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x14005cdec
mov ecx, 0xc0000001
call qword [sym.imp.ntdll.dll_RtlRaiseStatus]
int3
lea rax, [0x14015a460]
mov ecx, 0x14
nop dword [rax + rax]
mov qword [rax + 8], rax
mov qword [rax], rax
add rax, 0x20
sub rcx, 1
jne 0x14005ce00
call fcn.1400104b0
call fcn.140032d30
call fcn.14000e7c0
call fcn.140012410
call fcn.140007f50
mov ecx, 0x31
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, 0x32
mov dword [0x140154518], eax
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, 0xb
mov dword [0x14015451c], eax
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, 0xc
mov dword [0x140154348], eax
call qword [sym.imp.USER32.dll_GetSystemMetrics]
test dword [0x14015e760], 0x100
mov dword [0x14015434c], eax
je 0x14005ce8f
mov rcx, qword [0x14015e770]
call fcn.14007da40
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
lea rcx, str.EnablePlugins
call sym.ProcessHacker.exe_PhGetIntegerSetting
mov ecx, dword [0x14015e760]
test eax, eax
je 0x14005cf0d
bt ecx, 0xa
jb 0x14005cf0d
mov byte [0x140159a42], 1
lea rax, [0x14015c890]
mov ecx, 0x22
nop
mov qword [rax + 8], rax
mov qword [rax], rax
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], r14
add rax, 0x20
sub rcx, 1
jne 0x14005cec0
cmp dword [sym.ProcessHacker.exe_WindowsVersion], 0x33
ja 0x14005cf00
lea rax, str.ExtendedTools.dll
mov qword [rbp - 0x29], 0x22
mov dl, 1
mov qword [rbp - 0x21], rax
lea rcx, [rbp - 0x29]
call fcn.14009fa40
call fcn.14009fe00
mov ecx, dword [0x14015e760]
jmp 0x14005cf14
mov byte [0x140159a42], r14b
bt ecx, 9
jae 0x14005d032
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.USER32.dll_PostMessageW]
xor r9d, r9d
lea rcx, [rbp + 0x1f]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
lea rax, str.BaseNamedObjectsPhSvcApiPort
mov dword [rbp - 0x49], 0x3e003c
lea r8, [0x14009f600]
mov qword [rbp - 0x41], rax
xor edx, edx
mov qword [rbp - 0x51], 0xfffffffff70f2e80
lea rcx, str.Client
call sym.ProcessHacker.exe_PhCreateObjectType
mov qword [0x14015e618], rax
lea rcx, [rbp - 0x49]
lea rax, [0x14015e620]
mov qword [0x14015e628], rax
mov qword [0x14015e620], rax
call fcn.14009f080
mov ebx, eax
test eax, eax
js 0x14005d029
mov r9d, 1
mov byte [rsp + 0x20], 1
xor r8d, r8d
lea rcx, [0x14015e608]
mov edx, 0x1f0003
call qword [sym.imp.ntdll.dll_NtCreateEvent]
mov ebx, eax
test eax, eax
js 0x14005d029
mov r9d, 1
mov byte [rsp + 0x20], r14b
xor r8d, r8d
lea rcx, [0x14015e610]
mov edx, 0x1f0003
call qword [sym.imp.ntdll.dll_NtCreateEvent]
mov ebx, eax
test eax, eax
jns 0x14005cff9
mov rcx, qword [0x14015e608]
call qword [sym.imp.ntdll.dll_NtClose]
jmp 0x14005d029
mov ebx, 0x102
nop
mov rcx, qword [0x14015e608]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ntdll.dll_NtWaitForSingleObject]
mov rcx, qword [0x14015e610]
lea r8, [rbp - 0x51]
xor edx, edx
call qword [sym.imp.ntdll.dll_NtWaitForSingleObject]
cmp eax, ebx
jne 0x14005d000
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
lea rax, str.BaseNamedObjectsProcessHacker2Mutant
mov dword [rbp - 0x39], 0x4e004c
mov qword [rbp - 0x31], rax
lea r8, [rbp - 0x11]
lea rax, [rbp - 0x39]
mov dword [rbp - 0x11], 0x30
xorps xmm0, xmm0
mov qword [rbp - 1], rax
xor r9d, r9d
mov qword [rbp - 9], r14
mov edx, 0x1f0001
mov dword [rbp + 7], r14d
lea rcx, [rbp - 0x19]
movdqu xmmword [rbp + 0xf], xmm0
call qword [sym.imp.ntdll.dll_NtCreateMutant]
mov al, 3
mov byte [rbp - 0x69], r14b
movzx r8d, al
mov r9d, 2
mov eax, dword [0x14015e7ac]
test eax, eax
movzx edx, al
cmovne r8d, edx
or rcx, 0xffffffffffffffff
mov byte [rbp - 0x68], r8b
lea edx, [r9 + 0x10]
lea r8, [rbp - 0x69]
call qword [sym.imp.ntdll.dll_NtSetInformationProcess]
mov ecx, esi
call fcn.14005e5c0
test al, al
jne 0x14005d0f2
lea r8, str.Unable_to_initialize_the_main_window.
mov edx, 0x10
xor ecx, ecx
call sym.ProcessHacker.exe_PhShowMessage
mov rbx, qword [rsp + 0x100]
mov eax, 1
mov r14, qword [rsp + 0x110]
mov rsi, qword [rsp + 0x118]
add rsp, 0xf0
pop rbp
ret
lea rcx, [0x14015c0c0]
call sym.ProcessHacker.exe_PhDrainAutoPool
call fcn.14005d110
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_ExitProcess]