Function at 0x429600
Capabilities:
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
mov eax, dword [0x5ac004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov eax, dword fs:[0x18]
mov dword [ebp - 0x120], 1
mov dword [ebp - 0x11c], 0x56b11c
mov dword [ebp - 0x118], 1
mov dword [ebp - 0x114], 2
mov dword [ebp - 0x110], str.nosettings
mov dword [ebp - 0x10c], 0
mov dword [ebp - 0x108], 3
mov dword [ebp - 0x104], 0x57058c
mov dword [ebp - 0x100], 0
mov dword [ebp - 0xfc], 4
mov dword [ebp - 0xf8], 0x570590
mov dword [ebp - 0xf4], 0
mov dword [ebp - 0xf0], 5
mov dword [ebp - 0xec], 0x57059c
mov dword [ebp - 0xe8], 1
mov dword [ebp - 0xe4], 6
mov dword [ebp - 0xe0], str.nokph
mov dword [ebp - 0xdc], 0
mov dword [ebp - 0xd8], 7
mov dword [ebp - 0xd4], str.installkph
mov dword [ebp - 0xd0], 0
mov dword [ebp - 0xcc], 8
mov dword [ebp - 0xc8], str.uninstallkph
mov dword [ebp - 0xc4], 0
mov dword [ebp - 0xc0], 9
mov dword [ebp - 0xbc], str.debug
mov dword [ebp - 0xb8], 0
mov dword [ebp - 0xb4], 0xa
mov dword [ebp - 0xb0], str.hwnd
mov dword [ebp - 0xac], 1
mov dword [ebp - 0xa8], 0xb
mov dword [ebp - 0xa4], str.point
mov dword [ebp - 0xa0], 1
mov dword [ebp - 0x9c], 0xc
mov dword [ebp - 0x98], str.showoptions
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x90], 0xd
mov dword [ebp - 0x8c], str.phsvc
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 0xe
mov dword [ebp - 0x80], str.noplugins
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0xf
mov dword [ebp - 0x74], str.newinstance
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0x10
mov dword [ebp - 0x68], str.elevate
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0x11
mov dword [ebp - 0x5c], 0x57065c
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0x12
mov dword [ebp - 0x50], str.help
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0x13
mov dword [ebp - 0x44], 0x570660
mov dword [ebp - 0x40], 1
mov dword [ebp - 0x3c], 0x14
mov dword [ebp - 0x38], str.priority
mov dword [ebp - 0x34], 1
mov dword [ebp - 0x30], 0x15
mov dword [ebp - 0x2c], str.plugin
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x24], 0x16
mov dword [ebp - 0x20], str.selecttab
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x18], 0x17
mov dword [ebp - 0x14], str.sysinfo
mov dword [ebp - 0x10], 2
mov eax, dword [eax + 0x30]
mov ecx, dword [eax + 0x10]
push 0x2c
push 0
movzx eax, word [ecx + 0x40]
mov dword [ebp - 0x138], eax
mov eax, dword [ecx + 0x44]
mov dword [ebp - 0x134], eax
push 0x5b4b40
call fcn.0051fd40
add esp, 0xc
lea eax, [ebp - 0x120]
push 0
push 0x429120
push 3
push 0x17
push eax
lea eax, [ebp - 0x138]
push eax
call sym.ProcessHacker.exe_PhParseCommandLine
nop
test al, al
je 0x4298d0
mov eax, dword [0x5b4b40]
test eax, 0x2000
je 0x4298fc
push str.Command_line_options:_n_n_debug_n_elevate_n_help_n_hide_n_installkph_n_newinstance_n_nokph_n_noplugins_n_nosettings_n_plugin_pluginname:value_n_priority_rhnl_n_s_n_selectpid_pid_to_select_n_selecttab_name_of_tab_to_select_n_settings_filename_n_sysinfo__section_name__n_uninstallkph_n_v_n
push 0x54ace8
push 0x40
push 0
call sym.ProcessHacker.exe_PhShowMessage
mov eax, dword [0x5b4b40]
add esp, 0x10
test eax, 0x2000
je 0x4298fc
push 0
call dword [sym.imp.ntdll.dll_RtlExitUserProcess]
lea esp, [esp]
test al, 0x10
je 0x4299bb
call sym.ProcessHacker.exe_PhGetApplicationDirectory
mov edi, eax
mov dword [ebp - 0x134], edi
test edi, edi
je 0x429a34
mov esi, dword [edi]
push dword [0x5b1d70]
add esi, 0x26
lea ecx, [esi + 0xa]
push ecx
call sym.ProcessHacker.exe_PhCreateObject
mov ebx, eax
xor eax, eax
lea ecx, [ebx + 8]
mov dword [ebx + 4], ecx
mov dword [ebx], esi
mov word [ecx + esi], ax
push dword [edi]
push dword [edi + 4]
push dword [ebx + 4]
call fcn.00521a30
mov eax, dword [ebp - 0x134]
mov ecx, 9
mov edi, dword [ebx + 4]
mov esi, str.kprocesshacker.sys
add esp, 0xc
add edi, dword [eax]
rep movsd dword es:[edi], dword [esi]
push eax
movsw word es:[edi], word [esi]
call sym.ProcessHacker.exe_PhDereferenceObject
lea eax, [ebp - 0x128]
mov dword [ebp - 0x128], 2
mov byte [ebp - 0x124], 1
mov edx, dword [ebx + 4]
push eax
call fcn.004cbd00
mov esi, eax
test esi, esi
jns 0x4299b4
test dword [0x5b4b40], 0x1000
jne 0x4299b4
push 0
push esi
push str.Unable_to_install_KProcessHacker
push 0
lfence
call sym.ProcessHacker.exe_PhShowStatus
push esi
call dword [sym.imp.ntdll.dll_RtlExitUserProcess]
test al, 0x20
je 0x4299f0
nop
call fcn.004cbe20
mov esi, eax
test esi, esi
jns 0x4299e9
test dword [0x5b4b40], 0x1000
jne 0x4299e9
push 0
push esi
push str.Unable_to_uninstall_KProcessHacker
push 0
lfence
call sym.ProcessHacker.exe_PhShowStatus
push esi
call dword [sym.imp.ntdll.dll_RtlExitUserProcess]
test eax, 0x800
je 0x429a2b
lea eax, ds:[ebp - 0x130]
push eax
call sym.ProcessHacker.exe_PhGetOwnTokenAttributes
test byte [eax + 4], 1
jne 0x429a26
push 0
push 0
push 5
push 1
push 5
push 0
push 0
call sym.ProcessHacker.exe__PhShellProcessHacker_28
push 0
call dword [sym.imp.ntdll.dll_RtlExitUserProcess]
mov eax, dword [0x5b4b40]
test al, 0x40
je 0x429a34
call fcn.00411ce0
mov ecx, dword ds:[ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0051e068
mov esp, ebp
pop ebp
ret