Function at 0x140046310
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r13
push r14
sub rsp, 0x178
mov esi, ecx
mov rcx, qword [0x1400d62b8]
test rcx, rcx
je 0x1400463b3
mov dword [rsp + 0x48], 8
lea rax, [rsp + 0xd0]
or rdi, 0xffffffffffffffff
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], 0x10
lea rax, [rsp + 0xf8]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x108]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x28], 0x999920cc
mov qword [rsp + 0xf8], rdi
mov dword [rsp + 0x100], 0x20
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtDeviceIoControlFile]
mov rcx, qword [rsp + 0x1c0]
test eax, eax
cmovns rcx, qword [rsp + 0xd0]
mov qword [rsp + 0x1c0], rcx
jmp 0x1400463d5
or rdi, 0xffffffffffffffff
lea r8, [rsp + 0x1c0]
mov edx, 0x20
mov rcx, rdi
call qword [sym.imp.ntdll.dll_NtOpenProcessToken]
mov rcx, qword [rsp + 0x1c0]
xor r14d, r14d
test eax, eax
js 0x140046678
mov dword [rsp + 0x1b8], 0x14
mov dword [rsp + 0x1bc], r14d
mov rax, qword [rsp + 0x1b8]
lea r8, [rsp + 0xe8]
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x28], r14
mov qword [rsp + 0xec], rax
mov dword [rsp + 0xe8], 1
mov dword [rsp + 0xf4], 2
mov qword [rsp + 0x20], r14
call qword [sym.imp.ntdll.dll_NtAdjustPrivilegesToken]
mov rcx, qword [rsp + 0x1c0]
mov dword [rsp + 0x1b8], 0xe
mov dword [rsp + 0x1bc], r14d
mov rax, qword [rsp + 0x1b8]
lea r8, [rsp + 0xb0]
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x28], r14
mov dword [rsp + 0xb0], 1
mov qword [rsp + 0xb4], rax
mov dword [rsp + 0xbc], 2
mov qword [rsp + 0x20], r14
call qword [sym.imp.ntdll.dll_NtAdjustPrivilegesToken]
mov rcx, qword [rsp + 0x1c0]
mov dword [rsp + 0x1b8], 0x21
mov dword [rsp + 0x1bc], r14d
mov rax, qword [rsp + 0x1b8]
lea r8, [rsp + 0xd8]
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x28], r14
mov qword [rsp + 0xdc], rax
mov dword [rsp + 0xd8], 1
mov dword [rsp + 0xe4], 2
mov qword [rsp + 0x20], r14
call qword [sym.imp.ntdll.dll_NtAdjustPrivilegesToken]
mov rcx, qword [rsp + 0x1c0]
mov dword [rsp + 0x1b8], 0xa
mov dword [rsp + 0x1bc], r14d
mov rax, qword [rsp + 0x1b8]
lea r8, [rsp + 0x80]
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x84], rax
mov dword [rsp + 0x80], 1
mov dword [rsp + 0x8c], 2
mov qword [rsp + 0x20], r14
call qword [sym.imp.ntdll.dll_NtAdjustPrivilegesToken]
mov rcx, qword [rsp + 0x1c0]
mov dword [rsp + 0x1b8], 0x12
mov dword [rsp + 0x1bc], r14d
mov rax, qword [rsp + 0x1b8]
lea r8, [rsp + 0x90]
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x90], 1
mov qword [rsp + 0x94], rax
mov dword [rsp + 0x9c], 2
mov qword [rsp + 0x20], r14
call qword [sym.imp.ntdll.dll_NtAdjustPrivilegesToken]
mov rcx, qword [rsp + 0x1c0]
mov dword [rsp + 0x1b8], 0x13
mov dword [rsp + 0x1bc], r14d
mov rax, qword [rsp + 0x1b8]
lea r8, [rsp + 0xa0]
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x28], r14
mov qword [rsp + 0xa4], rax
mov dword [rsp + 0xa0], 1
mov dword [rsp + 0xac], 2
mov qword [rsp + 0x20], r14
call qword [sym.imp.ntdll.dll_NtAdjustPrivilegesToken]
mov dword [rsp + 0x1b8], 9
mov dword [rsp + 0x1bc], r14d
mov dword [rsp + 0xc0], 1
mov dword [rsp + 0xcc], 2
mov rax, qword [rsp + 0x1b8]
mov rcx, qword [rsp + 0x1c0]
lea r8, [rsp + 0xc0]
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x28], r14
mov qword [rsp + 0xc4], rax
mov qword [rsp + 0x20], r14
call qword [sym.imp.ntdll.dll_NtAdjustPrivilegesToken]
mov rcx, qword [rsp + 0x1c0]
call qword [sym.imp.ntdll.dll_NtClose]
lea rcx, str.shell32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
je 0x1400466a1
mov edx, 0x294
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400466a1
xor ecx, ecx
call rax
lea rcx, str.FirstRun
call sym.ProcessHacker.exe_PhGetIntegerSetting
test eax, eax
je 0x1400466f0
lea rdx, str.Debugging_Tools_for_Windows__x64_dbghelp.dll
mov ecx, 0x26
call sym.ProcessHacker.exe_PhGetKnownLocation
mov rbx, rax
test rax, rax
je 0x1400466f0
mov rcx, rax
call sym.ProcessHacker.exe_PhaDereferenceObject
lea rcx, [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400466f0
lea rcx, str.DbgHelpPath
mov rdx, rbx
call sym.ProcessHacker.exe_PhSetStringSetting2
lea rcx, str.DbgHelpPath
mov qword [rsp + 0x170], r12
call sym.ProcessHacker.exe_PhGetStringSetting
mov r13, rax
lea rcx, [rax + 0x10]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
je 0x1400467fa
mov rcx, rax
call sym.ProcessHacker.exe_PhFindLoaderEntry
test rax, rax
je 0x140046807
movzx edx, word [rax + 0x48]
mov rcx, qword [rax + 0x50]
call sym.ProcessHacker.exe_PhCreateStringEx
mov rcx, rax
mov rbx, rax
call sym.ProcessHacker.exe_PhGetFileName
lea rcx, [rbx - 0x20]
mov edx, edi
mov rbp, rax
lock xadd dword [rcx], edx
add edx, 0xffffffff
jne 0x14004675a
call fcn.14001fcd0
lea rcx, [rbp + 0x10]
mov edx, 0x5c
call fcn.140096158
test rax, rax
je 0x140046780
sub rax, rbp
sub rax, 0x10
sar rax, 1
cmp eax, 0xffffffff
je 0x140046780
inc eax
jmp 0x140046783
or eax, 0xffffffff
test rbp, rbp
je 0x140046807
cmp eax, 0xffffffff
je 0x1400467e4
mov edx, eax
lea rcx, [rbp + 0x10]
add rdx, rdx
call sym.ProcessHacker.exe_PhCreateStringEx
lea rdx, str._symsrv.dll
lea rcx, [rax + 0x10]
mov r12, rax
call sym.ProcessHacker.exe_PhConcatStrings2
mov rbx, rax
lea rcx, [rax + 0x10]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rcx, [rbx - 0x20]
mov edx, edi
lock xadd dword [rcx], edx
add edx, 0xffffffff
jne 0x1400467cf
call fcn.14001fcd0
lea rcx, [r12 - 0x20]
mov eax, edi
lock xadd dword [rcx], eax
add eax, 0xffffffff
jne 0x1400467e4
call fcn.14001fcd0
lea rcx, [rbp - 0x20]
mov eax, edi
lock xadd dword [rcx], eax
add eax, 0xffffffff
jne 0x140046807
call fcn.14001fcd0
jmp 0x140046807
lea rcx, str.dbghelp.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rcx, [r13 - 0x20]
mov eax, edi
lock xadd dword [rcx], eax
add eax, 0xffffffff
jne 0x14004681b
call fcn.14001fcd0
call fcn.140027030
call fcn.14005bc00
lea rcx, str.FirstRun
xor edx, edx
call sym.ProcessHacker.exe_PhSetIntegerSetting
lea rcx, str.UpdateInterval
call sym.ProcessHacker.exe_PhGetIntegerSetting
mov ebx, eax
test eax, eax
jne 0x14004685e
mov ebx, 0x3e8
lea rcx, str.UpdateInterval
mov edx, ebx
mov dword [0x1400d79b4], ebx
call sym.ProcessHacker.exe_PhSetIntegerSetting
lea rax, [0x1400d82e0]
lea rbp, [0x1400d82a0]
lea r13, [0x1400d8280]
mov qword [0x1400d82e8], rax
mov qword [0x1400d82e0], rax
lea rax, [0x14006a580]
mov qword [0x1400d8280], r14
mov qword [0x1400d8288], r14
mov dword [0x1400d8290], ebx
mov qword [0x1400d5f08], rax
mov dword [0x1400d8294], 1
mov qword [0x1400d8298], r14
mov qword [0x1400d82a8], rbp
mov qword [0x1400d82a0], rbp
mov dword [0x1400d82b0], r14d
mov qword [0x1400d82c0], r14
mov qword [0x1400d82c8], r14
mov dword [0x1400d82d0], ebx
mov dword [0x1400d82d4], 1
mov qword [0x1400d82d8], r14
mov dword [0x1400d82f0], r14d
mov qword [0x1400d5f00], r13
mov qword [0x1400d5f10], r14
mov dword [0x1400d5f18], r14d
mov byte [0x1400d5f1c], r14b
mov byte [0x1400d5f1d], r14b
mov byte [0x1400d5f1e], r14b
lock bts qword [0x1400d8298], 0
jae 0x140046937
lea rcx, [0x1400d8298]
call sym.ProcessHacker.exe_PhfAcquireQueuedLockExclusive
mov rax, qword [0x1400d82a8]
lea rcx, [0x1400d5ef0]
mov qword [0x1400d5ef0], rbp
mov qword [0x1400d5ef8], rax
mov qword [rax], rcx
mov qword [0x1400d82a8], rcx
mov rax, rdi
lock xadd qword [0x1400d8298], rax
test al, 2
je 0x14004699b
mov rax, qword [0x1400d8298]
test al, 2
je 0x14004699b
test al, 4
jne 0x14004699b
test al, 1
jne 0x14004699b
lea rdx, [rax + 4]
lock cmpxchg qword [0x1400d8298], rdx
jne 0x14004699b
lea rcx, [0x1400d8298]
call fcn.14001eb50
lea rax, [0x140078a50]
mov byte [0x1400d5f1c], 1
mov qword [0x1400d5d38], r13
mov qword [0x1400d5d48], r14
mov dword [0x1400d5d50], r14d
mov byte [0x1400d5d54], r14b
mov qword [0x1400d5d40], rax
mov byte [0x1400d5d55], r14b
mov byte [0x1400d5d56], r14b
lock bts qword [0x1400d8298], 0
jae 0x1400469f2
lea rcx, [0x1400d8298]
call sym.ProcessHacker.exe_PhfAcquireQueuedLockExclusive
mov rax, qword [0x1400d82a8]
lea rcx, [0x1400d5d28]
mov qword [0x1400d5d28], rbp
mov qword [0x1400d5d30], rax
mov qword [rax], rcx
mov qword [0x1400d82a8], rcx
mov rax, rdi
lock xadd qword [0x1400d8298], rax
test al, 2
je 0x140046a56
mov rax, qword [0x1400d8298]
test al, 2
je 0x140046a56
test al, 4
jne 0x140046a56
test al, 1
jne 0x140046a56
lea rdx, [rax + 4]
lock cmpxchg qword [0x1400d8298], rdx
jne 0x140046a56
lea rcx, [0x1400d8298]
call fcn.14001eb50
lea rax, [0x1400546e0]
mov byte [0x1400d5d54], 1
mov qword [0x1400d5c78], r13
mov qword [0x1400d5c88], r14
mov dword [0x1400d5c90], r14d
mov byte [0x1400d5c94], r14b
mov qword [0x1400d5c80], rax
mov byte [0x1400d5c95], r14b
mov byte [0x1400d5c96], r14b
lock bts qword [0x1400d8298], 0
jae 0x140046aad
lea rcx, [0x1400d8298]
call sym.ProcessHacker.exe_PhfAcquireQueuedLockExclusive
mov rax, qword [0x1400d82a8]
lea rcx, [0x1400d5c68]
mov qword [0x1400d5c68], rbp
mov qword [0x1400d5c70], rax
mov qword [rax], rcx
mov qword [0x1400d82a8], rcx
mov rax, rdi
lock xadd qword [0x1400d8298], rax
test al, 2
je 0x140046b11
mov rax, qword [0x1400d8298]
test al, 2
je 0x140046b11
test al, 4
jne 0x140046b11
test al, 1
jne 0x140046b11
lea rdx, [rax + 4]
lock cmpxchg qword [0x1400d8298], rdx
jne 0x140046b11
lea rcx, [0x1400d8298]
call fcn.14001eb50
lea rcx, str.MainWindowPosition
call sym.ProcessHacker.exe_PhGetIntegerPairSetting
lea rcx, str.MainWindowSize
mov rbx, rax
mov qword [rsp + 0x70], rax
call sym.ProcessHacker.exe_PhGetIntegerPairSetting
mov rcx, qword [0x1400d8fa0]
mov r8, qword [str.Application]
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x40], r14
mov rdx, rax
mov qword [rsp + 0x78], rax
mov r9d, 0x2cf0000
shr rdx, 0x20
xor ecx, ecx
mov dword [rsp + 0x38], edx
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x74]
mov dword [rsp + 0x28], eax
lea rdx, str.ProcessHacker
mov dword [rsp + 0x20], ebx
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov rcx, rax
mov qword [sym.ProcessHacker.exe_PhMainWndHandle], rax
call qword [sym.imp.USER32.dll_GetMenu]
mov rcx, qword [sym.ProcessHacker.exe_PhMainWndHandle]
mov qword [0x1400d8210], rax
test rcx, rcx
jne 0x140046bb2
xor al, al
jmp 0x14004709f
lea rdx, [rsp + 0x70]
call sym.ProcessHacker.exe_PhAdjustRectangleToWorkingArea
mov eax, dword [rsp + 0x7c]
mov r9d, dword [rsp + 0x78]
mov r8d, dword [rsp + 0x74]
mov edx, dword [rsp + 0x70]
mov rcx, qword [sym.ProcessHacker.exe_PhMainWndHandle]
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], eax
call qword [sym.imp.USER32.dll_MoveWindow]
mov rcx, qword [sym.ProcessHacker.exe_PhMainWndHandle]
call fcn.1400459a0
cmp dword [0x1400d8fc0], 0x3c
jb 0x140046c09
mov edx, 1
mov ecx, 0x8063
call qword [0x1400d8f48]
mov rbx, qword [0x1400d91a8]
mov ebp, 0x64
xor r8d, r8d
lea edx, [rbp + 0x12]
mov rcx, rbx
mov dword [rsp + 0x60], ebp
call fcn.14001fbe0
lock add dword [rbx + 0x18], 1
mov qword [rax + 0x10], rbx
lea rbx, [rax + 0x20]
mov dword [rax], 1
mov qword [rax + 8], 0x76
mov word [rbx + 2], bp
lea rax, [rbx + 0x10]
mov qword [rbx + 8], rax
mov word [rbx + 0x74], r14w
movzx edx, r14w
add edx, 0x1c
mov word [rbx], r14w
mov word [rax], r14w
mov qword [rsp + 0x68], rbx
cmp edx, ebp
jbe 0x140046c7a
lea rcx, [rsp + 0x60]
call fcn.140002670
mov rbx, qword [rsp + 0x68]
movzx ecx, word [rbx]
mov rax, qword [0x1400ad8c8]
shr rcx, 1
mov qword [rbx + rcx*2 + 0x10], rax
mov rax, qword [0x1400ad8d0]
mov qword [rbx + rcx*2 + 0x18], rax
mov rax, qword [0x1400ad8d8]
mov qword [rbx + rcx*2 + 0x20], rax
mov eax, dword [0x1400ad8e0]
mov dword [rbx + rcx*2 + 0x28], eax
add word [rbx], 0x1c
movzx eax, word [rbx]
shr rax, 1
mov word [rbx + rax*2 + 0x10], r14w
cmp qword [0x1400d6470], r14
je 0x140046de9
movzx edx, word [rbx]
add edx, 4
cmp dword [rsp + 0x60], edx
jae 0x140046ce6
lea rcx, [rsp + 0x60]
call fcn.140002670
mov rbx, qword [rsp + 0x68]
movzx ecx, word [rbx]
mov eax, dword [0x1400b4978]
shr rcx, 1
mov dword [rbx + rcx*2 + 0x10], eax
add word [rbx], 4
movzx eax, word [rbx]
shr rax, 1
mov word [rbx + rax*2 + 0x10], r14w
mov rax, qword [0x1400d6470]
movzx ebp, word [rax]
lea r12, [rax + 0x10]
test ebp, ebp
je 0x140046d5c
movzx edx, word [rbx]
add edx, ebp
cmp dword [rsp + 0x60], edx
jae 0x140046d32
lea rcx, [rsp + 0x60]
call fcn.140002670
mov rbx, qword [rsp + 0x68]
test r12, r12
je 0x140046d4d
movzx eax, word [rbx]
mov r8, rbp
mov rdx, r12
shr rax, 1
lea rcx, [rbx + rax*2 + 0x10]
call fcn.140094930
add word [rbx], bp
movzx eax, word [rbx]
shr rax, 1
mov word [rbx + rax*2 + 0x10], r14w
movzx edx, word [rbx]
mov eax, dword [rsp + 0x60]
lea rcx, [rdx + 2]
cmp rax, rcx
jae 0x140046d7e
lea rcx, [rsp + 0x60]
add edx, 2
call fcn.140002670
mov rbx, qword [rsp + 0x68]
movzx eax, word [rbx]
mov ecx, 0x5d
shr rax, 1
mov word [rbx + rax*2 + 0x10], cx
add word [rbx], 2
movzx eax, word [rbx]
shr rax, 1
mov word [rbx + rax*2 + 0x10], r14w
cmp qword [0x1400d62b8], r14
je 0x140046de9
movzx edx, word [rbx]
mov eax, dword [rsp + 0x60]
lea rcx, [rdx + 2]
cmp rax, rcx
jae 0x140046dc9
lea rcx, [rsp + 0x60]
add edx, 2
call fcn.140002670
mov rbx, qword [rsp + 0x68]
movzx eax, word [rbx]
mov ecx, 0x2b
shr rax, 1
mov word [rbx + rax*2 + 0x10], cx
add word [rbx], 2
movzx eax, word [rbx]
shr rax, 1
mov word [rbx + rax*2 + 0x10], r14w
cmp dword [0x1400d8fc0], 0x3c
jb 0x140046e5c
cmp dword [0x1400d8ff0], 2
jne 0x140046e5c
movzx edx, word [rbx]
add edx, 0x20
cmp dword [rsp + 0x60], edx
jae 0x140046e16
lea rcx, [rsp + 0x60]
call fcn.140002670
mov rbx, qword [rsp + 0x68]
movzx ecx, word [rbx]
mov rax, qword [str.__Administrator_]
shr rcx, 1
mov qword [rbx + rcx*2 + 0x10], rax
mov rax, qword [0x1400b4988]
mov qword [rbx + rcx*2 + 0x18], rax
mov rax, qword [0x1400b4990]
mov qword [rbx + rcx*2 + 0x20], rax
mov rax, qword [0x1400b4998]
mov qword [rbx + rcx*2 + 0x28], rax
add word [rbx], 0x20
movzx eax, word [rbx]
shr rax, 1
mov word [rbx + rax*2 + 0x10], r14w
mov rcx, qword [sym.ProcessHacker.exe_PhMainWndHandle]
lea rdx, [rbx + 0x10]
call qword [sym.imp.USER32.dll_SetWindowTextW]
lea rcx, [rbx - 0x20]
lock xadd dword [rcx], edi
add edi, 0xffffffff
jne 0x140046e7f
call fcn.14001fcd0
cmp byte [0x1400d8fb8], r14b
je 0x140046eb7
mov rcx, qword [0x1400d8210]
xor r8d, r8d
mov edx, 0x9c8d
call qword [sym.imp.USER32.dll_DeleteMenu]
mov rcx, qword [0x1400d8210]
xor r8d, r8d
mov edx, 0x9c8f
call qword [sym.imp.USER32.dll_DeleteMenu]
jmp 0x140046f62
xor edx, edx
lea rcx, [rsp + 0x124]
mov dword [rsp + 0x120], 0x50
lea r8d, [rdx + 0x4c]
call fcn.14009e740
lea rcx, str.comctl32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.LoadIconMetric
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140046f62
lea r9, [rsp + 0x1c8]
xor r8d, r8d
mov edx, 0x7f06
xor ecx, ecx
call rax
test eax, eax
js 0x140046f62
mov rcx, qword [rsp + 0x1c8]
mov edx, 0x10
mov dword [rsp + 0x124], 0x80
mov r8d, edx
call sym.ProcessHacker.exe_PhIconToBitmap
mov rcx, qword [rsp + 0x1c8]
mov qword [rsp + 0x168], rax
call qword [sym.imp.USER32.dll_DestroyIcon]
mov rcx, qword [0x1400d8210]
lea r9, [rsp + 0x120]
xor r8d, r8d
mov edx, 0x9c8f
call qword [sym.imp.USER32.dll_SetMenuItemInfoW]
mov rcx, qword [sym.ProcessHacker.exe_PhMainWndHandle]
call qword [sym.imp.USER32.dll_DrawMenuBar]
mov ebx, 5
mov ecx, ebx
call qword [sym.imp.USER32.dll_GetSysColor]
mov rcx, qword [0x1400d8fd8]
mov dword [0x1400d82f8], eax
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rcx, qword [0x1400d8fc8]
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rcx, qword [sym.ProcessHacker.exe_PhMainWndHandle]
call fcn.1400459a0
mov r8, qword [0x1400d8fd8]
mov rcx, qword [0x1400d5e60]
lea edx, [rbx + 0x2b]
xor r9d, r9d
call qword [sym.imp.USER32.dll_SendMessageW]
call fcn.140049570
call fcn.14004b260
call fcn.140049660
call fcn.140043a50
lea rcx, [0x1400499c0]
xor edx, edx
call sym.ProcessHacker.exe_PhQueueItemGlobalWorkQueue
call fcn.14004c600
mov rcx, qword [sym.ProcessHacker.exe_PhMainWndHandle]
xor r9d, r9d
xor r8d, r8d
mov edx, ebx
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, r13
call sym.ProcessHacker.exe_PhStartProviderThread
lea rcx, [0x1400d82c0]
call sym.ProcessHacker.exe_PhStartProviderThread
mov rcx, qword [sym.ProcessHacker.exe_PhMainWndHandle]
call qword [sym.imp.USER32.dll_UpdateWindow]
cmp byte [0x1400d8230], r14b
jne 0x140047038
lea rcx, str.StartHidden
call sym.ProcessHacker.exe_PhGetIntegerSetting
test eax, eax
je 0x140047043
cmp dword [0x1400d5e5c], r14d
cmovne esi, r14d
cmp byte [0x1400d8231], r14b
lea rcx, str.MainWindowState
cmovne esi, ebx
call sym.ProcessHacker.exe_PhGetIntegerSetting
cmp eax, 3
jne 0x14004706d
test esi, esi
je 0x140047066
mov esi, eax
jmp 0x14004706d
mov byte [0x1400d62fb], 1
cmp byte [0x1400d62f9], r14b
je 0x140047085
lea rcx, [0x1400d5fd0]
movsxd rdx, esi
call sym.ProcessHacker.exe_PhInvokeCallback
test esi, esi
je 0x140047098
mov rcx, qword [sym.ProcessHacker.exe_PhMainWndHandle]
mov edx, esi
call qword [sym.imp.USER32.dll_ShowWindow]
call fcn.140049ff0
mov al, 1
mov r12, qword [rsp + 0x170]
add rsp, 0x178
pop r14
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret