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

Disassembly:
push rbp
sub rsp, 0xf0
mov edx, 2
xor ecx, ecx
mov ebp, r9d
call qword [sym.imp.ole32.dll_CoInitializeEx]
call fcn.140007530
test eax, eax
jns 0x140044f20
mov eax, 1
add rsp, 0xf0
pop rbp
ret
call fcn.140045c80
test al, al
je 0x140044f12
mov qword [rsp + 0x100], rbx
mov qword [rsp + 0x110], rdi
mov qword [rsp + 0x118], r12
call fcn.140045e20
lea rcx, [rsp + 0x78]
mov dword [rsp + 0x78], 8
mov dword [rsp + 0x7c], 0x8029
call qword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov rbx, qword [0x1400d62b0]
xor r12d, r12d
test rbx, rbx
je 0x140045029
lea rax, [rsp + 0x50]
lea edx, [r12 + 1]
xor r9d, r9d
xor r8d, r8d
mov rcx, rbx
mov dword [rsp + 0x50], r12d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtQueryInformationToken]
mov r8d, dword [rsp + 0x50]
mov rcx, qword [0x1400d8fb0]
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
test rax, rax
jne 0x140044fbf
mov ecx, 0xc000009a
call qword [sym.imp.ntdll.dll_RtlRaiseStatus]
int3
mov r9d, dword [rsp + 0x50]
lea rax, [rsp + 0x50]
mov r8, rdi
mov edx, 1
mov rcx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtQueryInformationToken]
mov ebx, eax
test eax, eax
jns 0x140044fff
mov rcx, qword [0x1400d8fb0]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rdi, qword [rsp + 0x80]
test ebx, ebx
js 0x140045029
mov rcx, qword [rdi]
xor r8d, r8d
mov dl, 1
call sym.ProcessHacker.exe_PhGetSidFullName
mov rcx, qword [0x1400d8fb0]
mov r8, rdi
xor edx, edx
mov qword [0x1400d6470], rax
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
lea rax, [0x1400d40b8]
mov qword [rsp + 0x108], rsi
mov qword [rsp + 0x90], rax
call fcn.140014480
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x88]
lea r8, [rsp + 0x90]
mov rcx, rax
mov edx, 1
call sub.ADVAPI32.dll_LsaLookupSids
mov esi, eax
test eax, eax
js 0x1400451b8
mov rcx, qword [rsp + 0x58]
mov edx, dword [rcx]
cmp edx, 7
je 0x14004512c
cmp edx, 8
je 0x14004512c
movzx edx, word [rcx + 8]
mov rcx, qword [rcx + 0x10]
call sym.ProcessHacker.exe_PhCreateStringEx
mov rcx, qword [rsp + 0x58]
mov rdi, rax
mov qword [rsp + 0x60], rax
movsxd rax, dword [rcx + 0x18]
cmp eax, 0xffffffff
je 0x1400450da
mov rcx, qword [rsp + 0x88]
lea rax, [rax + rax*2]
mov rcx, qword [rcx + 8]
movzx edx, word [rcx + rax*8]
mov rcx, qword [rcx + rax*8 + 8]
call sym.ProcessHacker.exe_PhCreateStringEx
mov rbx, rax
mov qword [rsp + 0x70], rax
jmp 0x14004513b
mov rdi, qword [0x1400d91a8]
xor r8d, r8d
lea edx, [r8 + 0x12]
mov rcx, rdi
call fcn.14001fbe0
lock add dword [rdi + 0x18], 1
mov qword [rax + 0x10], rdi
mov rdi, qword [rsp + 0x60]
lea rbx, [rax + 0x20]
mov dword [rax], 1
mov qword [rax + 8], 0x12
lea rax, [rbx + 0x10]
mov word [rbx], r12w
mov word [rbx + 2], r12w
mov qword [rbx + 8], rax
mov word [rax], r12w
mov qword [rsp + 0x70], rbx
jmp 0x14004513b
mov rbx, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x60]
mov esi, 0xc0000073
mov rcx, qword [rsp + 0x88]
call sub.ADVAPI32.dll_LsaFreeMemory
mov rcx, qword [rsp + 0x58]
call sub.ADVAPI32.dll_LsaFreeMemory
test esi, esi
js 0x1400451b8
cmp word [rbx], r12w
je 0x14004517a
lea r9, [rdi + 0x10]
lea rdx, [rbx + 0x10]
lea r8, [0x1400ab4b8]
mov ecx, 3
call sym.ProcessHacker.exe_PhConcatStrings
mov rbx, rax
jmp 0x140045187
mov rbx, rdi
lock add dword [rdi - 0x20], 1
mov rdi, qword [rsp + 0x60]
lea rcx, [rdi - 0x20]
or eax, 0xffffffff
lock xadd dword [rcx], eax
add eax, 0xffffffff
jne 0x14004519c
call fcn.14001fcd0
mov rcx, qword [rsp + 0x70]
add rcx, 0xffffffffffffffe0
or eax, 0xffffffff
lock xadd dword [rcx], eax
add eax, 0xffffffff
jne 0x1400451bb
call fcn.14001fcd0
jmp 0x1400451bb
mov rbx, r12
mov qword [0x1400d6478], rbx
call sym.ProcessHacker.exe_PhGetApplicationFileName
mov qword [0x1400d8270], rax
call sym.ProcessHacker.exe_PhGetApplicationDirectory
mov rsi, qword [rsp + 0x108]
mov qword [0x1400d82b8], rax
cmp qword [0x1400d8270], r12
jne 0x14004527d
mov rdi, qword [0x1400d91a8]
xor r8d, r8d
lea edx, [r8 + 0x34]
mov rcx, rdi
call fcn.14001fbe0
lock add dword [rdi + 0x18], 1
mov dword [rax], 1
mov qword [rax + 8], 0x34
mov qword [rax + 0x10], rdi
lea rdx, [rax + 0x20]
mov eax, 0x22
mov word [rdx], ax
mov word [rdx + 2], ax
lea rcx, [rdx + 0x10]
mov qword [rdx + 8], rcx
mov word [rdx + 0x32], r12w
mov rax, qword [0x1400b41f8]
mov qword [rcx], rax
mov rax, qword [0x1400b4200]
mov qword [0x1400d8270], rdx
mov qword [rcx + 8], rax
mov rax, qword [0x1400b4208]
mov qword [rcx + 0x10], rax
mov rax, qword [0x1400b4210]
mov qword [rcx + 0x18], rax
movzx eax, word [0x1400b4218]
mov word [rcx + 0x20], ax
mov rax, qword [0x1400d82b8]
test rax, rax
jne 0x1400452ce
mov rdi, qword [0x1400d91a8]
lea edx, [rax + 0x12]
xor r8d, r8d
mov rcx, rdi
call fcn.14001fbe0
lock add dword [rdi + 0x18], 1
lea rcx, [rax + 0x20]
mov dword [rax], 1
mov qword [rax + 8], 0x12
mov qword [rax + 0x10], rdi
lea rax, [rcx + 0x10]
mov word [rcx], r12w
mov word [rcx + 2], r12w
mov qword [rcx + 8], rax
mov qword [0x1400d82b8], rcx
mov word [rax], r12w
call fcn.1400461e0
call fcn.140073f30
cmp byte [0x1400d8221], r12b
jne 0x140045389
mov rcx, qword [0x1400d8228]
test rcx, rcx
je 0x140045305
add rcx, 0x10
xor edx, edx
call sym.ProcessHacker.exe_PhGetFullPath
mov qword [0x1400d6488], rax
jmp 0x14004530c
mov rax, qword [0x1400d6488]
test rax, rax
jne 0x14004532c
lea rdx, str.Process_Hacker_2_settings.xml
lea ecx, [rax + 0x1a]
call sym.ProcessHacker.exe_PhGetKnownLocation
mov qword [0x1400d6488], rax
test rax, rax
je 0x140045389
lea rcx, [rax + 0x10]
call fcn.1400763c0
cmp eax, 0xc0000102
jne 0x140045389
lea r8, str.Process_Hackers_settings_file_is_corrupt._Do_you_want_to_reset_it__nIf_you_select_No__the_settings_system_will_not_function_properly.
mov edx, 0x34
xor ecx, ecx
call sym.ProcessHacker.exe_PhShowMessage
cmp eax, 6
jne 0x140045366
mov rcx, qword [0x1400d6488]
add rcx, 0x10
call sym.ProcessHacker.exe_PhDeleteFileWin32
jmp 0x140045389
mov rcx, qword [0x1400d6488]
add rcx, 0xffffffffffffffe0
or eax, 0xffffffff
lock xadd dword [rcx], eax
add eax, 0xffffffff
jne 0x140045382
call fcn.14001fcd0
mov qword [0x1400d6488], r12
lea rcx, str.MaxSizeUnit
call sym.ProcessHacker.exe_PhGetIntegerSetting
mov dword [0x1400d1ae4], eax
cmp byte [0x1400d8248], r12b
je 0x1400453c4
cmp qword [0x1400d8250], r12
je 0x1400453c4
cmp qword [0x1400d8260], r12
je 0x1400453c4
call fcn.1400361e0
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_ExitProcess]
cmp byte [0x1400d8268], r12b
je 0x1400453d3
call fcn.140073230
int3
mov edx, 0x80
or rcx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_SetPriorityClass]
lea rcx, str.AllowOnlyOneInstance
call sym.ProcessHacker.exe_PhGetIntegerSetting
test eax, eax
je 0x140045463
cmp byte [0x1400d8232], r12b
jne 0x140045463
lea rcx, str.ProcessHacker
xor edx, edx
call qword [sym.imp.USER32.dll_FindWindowW]
mov rdi, rax
test rax, rax
je 0x140045463
lea rax, [rsp + 0x80]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x30], rax
mov edx, 0x8063
mov rcx, rdi
mov dword [rsp + 0x28], 0x1388
mov dword [rsp + 0x20], 1
call qword [sym.imp.USER32.dll_SendMessageTimeoutW]
cmp qword [rsp + 0x80], 0x1119
jne 0x140045463
mov rcx, rdi
call qword [sym.imp.USER32.dll_SetForegroundWindow]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
lea rcx, str.EnableKph
call sym.ProcessHacker.exe_PhGetIntegerSetting
test eax, eax
je 0x1400454da
cmp byte [0x1400d8220], r12b
jne 0x1400454da
mov rcx, qword [0x1400d62b8]
test rcx, rcx
je 0x1400454da
mov dword [rsp + 0x48], 4
lea rax, [rsp + 0x68]
xor r9d, r9d
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], r12d
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x30], r12
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x28], 0x99992000
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtDeviceIoControlFile]
mov edx, dword [0x1400d8fd0]
test eax, eax
cmovns edx, dword [rsp + 0x68]
mov dword [0x1400d8fd0], edx
or rcx, 0xffffffffffffffff
lea rdx, str.BaseNamedObjectsProcessHacker2Mutant
xor eax, eax
mov rdi, rdx
mov qword [rsp + 0xa0], rdx
lea r8, [rsp + 0xa8]
repne scasw ax, word [rdi]
lea rax, [rsp + 0x98]
xor r9d, r9d
not rcx
mov edx, 0x1f0001
mov dword [rsp + 0xa8], 0x30
dec rcx
mov qword [rsp + 0xb0], r12
mov dword [rsp + 0xc0], r12d
add cx, cx
mov qword [rsp + 0xb8], rax
mov qword [rsp + 0xc8], r12
mov word [rsp + 0x98], cx
mov word [rsp + 0x9a], cx
lea rcx, [rsp + 0xd8]
mov qword [rsp + 0xd0], r12
call qword [sym.imp.ntdll.dll_NtCreateMutant]
mov ecx, dword [0x1400d5794]
mov dword [0x1400d5a10], r12d
mov dword [0x1400d5c18], r12d
mov dword [0x1400d5c1c], r12d
mov qword [0x1400d5c20], r12
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [0x1400d5794]
lea rdx, [0x1400d5a10]
mov qword [0x1400d5c28], rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x1400455b9
mov ecx, 0xc0000001
call qword [sym.imp.ntdll.dll_RtlRaiseStatus]
int3
call fcn.140009060
call fcn.140028ae0
call fcn.140007950
call fcn.14000be90
lea rcx, str.aclui.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rcx, str.aclui.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.CreateSecurityPage
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, str.aclui.dll
mov qword [0x1400d84f8], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.EditSecurity
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400d8500], rax
cmp byte [0x1400d8232], r12b
je 0x140045640
mov rcx, qword [0x1400d8238]
call fcn.1400584b0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, 1
call sym.ProcessHacker.exe_PhCreateList
lea rcx, str.EnablePlugins
mov qword [0x1400d5c30], rax
call sym.ProcessHacker.exe_PhGetIntegerSetting
test eax, eax
setne al
mov byte [0x1400d62f9], al
test al, al
je 0x140045676
call fcn.14005ae40
call fcn.14005b030
mov ecx, ebp
call fcn.140046310
test al, al
jne 0x1400456ba
lea r8, str.Unable_to_initialize_the_main_window.
mov edx, 0x10
xor ecx, ecx
call sym.ProcessHacker.exe_PhShowMessage
mov rdi, qword [rsp + 0x110]
mov rbx, qword [rsp + 0x100]
mov r12, qword [rsp + 0x118]
mov eax, 1
add rsp, 0xf0
pop rbp
ret
lea rcx, [0x1400d5a10]
call sym.ProcessHacker.exe_PhDrainAutoPool
call fcn.1400456e0
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_ExitProcess]