Function at 0x462e30
Capabilities:
Check processdebugport

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
mov eax, dword [edx + 0x48]
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x1c], edx
cmp dword [edi + 0x10], 0
mov dword [edi + 0x14], eax
mov eax, dword [edx + 0x50]
mov dword [edi + 0x1c], eax
mov eax, dword [edx + 0x20]
mov dword [edi + 0x20], eax
mov eax, dword [edx + 0x24]
mov dword [edi + 0x24], eax
je 0x462ea6
movzx eax, word [edx + 0x38]
test ax, ax
jne 0x462e72
call sym.ProcessHacker.exe_PhReferenceEmptyString
mov esi, eax
jmp 0x462ed9
push dword [0x54b7b4]
mov ebx, eax
mov eax, dword [edx + 0x3c]
mov dword [esp + 0x18], eax
lea eax, [ebx + 0xa]
push eax
call sym.ProcessHacker.exe_PhCreateObject
mov esi, eax
xor ecx, ecx
lea eax, [esi + 8]
mov dword [esi + 4], eax
mov dword [esi], ebx
mov word [eax + ebx], cx
mov eax, dword [esp + 0x14]
test eax, eax
je 0x462ed9
push ebx
push eax
jmp 0x462ece
push dword [0x54b7b4]
push 0x30
call sym.ProcessHacker.exe_PhCreateObject
mov esi, eax
xor ecx, ecx
lea eax, [esi + 8]
push 0x26
push str.System_Idle_Process
mov dword [esi], 0x26
mov dword [esi + 4], eax
mov word [eax + 0x26], cx
push dword [esi + 4]
call fcn.004dd620
add esp, 0xc
push 0xa
lea eax, [edi + 0xa6]
mov dword [edi + 0x18], esi
push eax
push dword [edi + 0x14]
call fcn.004dec37
add esp, 0xc
lea eax, [edi + 0xc0]
push 0xa
push eax
push dword [edi + 0x1c]
call fcn.004dec37
mov eax, dword [edi + 0x10]
add esp, 0xc
test eax, eax
jle 0x462f3a
push eax
mov edx, 0x400
lea ecx, [edi + 0x28]
call fcn.004ad010
test eax, eax
js 0x462f24
or dword [edi + 0x74], 0x80
cmp dword [edi + 0x28], 0
jne 0x462f3a
push dword [edi + 0x10]
mov edx, 0x1000
lea ecx, [edi + 0x28]
call fcn.004ad010
mov eax, dword [edi + 0x28]
test eax, eax
je 0x462f85
push 0
push 0x20
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], 0x20
push ecx
push 0
push eax
call dword [sym.imp.ntdll.dll_NtQueryInformationProcess]
test eax, eax
js 0x462f85
mov eax, dword [esp + 0x3c]
mov ecx, eax
and ecx, 1
and eax, 0x182
shl ecx, 6
or ecx, eax
mov eax, dword [edi + 0x74]
or ecx, 8
and eax, 0xfffe3dff
shl ecx, 8
or ecx, eax
mov dword [edi + 0x74], ecx
mov eax, dword [edi + 0x10]
cmp eax, 4
je 0x463041
mov ecx, dword [edi + 0x28]
test ecx, ecx
je 0x46302c
test dword [edi + 0x74], 0x10000
jne 0x46302c
lea eax, [esp + 0x14]
mov edx, 0x2b
push eax
call fcn.004ad460
test eax, eax
js 0x4630a3
mov ebx, dword [esp + 0x14]
movzx eax, word [ebx]
test ax, ax
jne 0x462fd5
call sym.ProcessHacker.exe_PhReferenceEmptyString
mov esi, eax
jmp 0x463018
push dword [0x54b7b4]
mov ecx, dword [ebx + 4]
mov dword [esp + 0x18], eax
add eax, 0xa
push eax
mov dword [esp + 0x18], ecx
call sym.ProcessHacker.exe_PhCreateObject
mov ecx, dword [esp + 0x14]
mov esi, eax
lea eax, [esi + 8]
xor edx, edx
mov dword [esi + 4], eax
mov dword [esi], ecx
mov word [eax + ecx], dx
mov eax, dword [esp + 0x10]
test eax, eax
je 0x463018
push ecx
push eax
push dword [esi + 4]
call fcn.004dd620
add esp, 0xc
push ebx
push 0
push dword [0x54b674]
mov dword [edi + 0x2c], esi
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x4630a3
lea ecx, [esp + 0x14]
push ecx
push eax
call sym.ProcessHacker.exe_PhGetProcessImageFileNameByProcessId
test eax, eax
js 0x4630a3
mov esi, dword [esp + 0x14]
jmp 0x463087
lea eax, [esp + 0x14]
xor esi, esi
push eax
call sym.ProcessHacker.exe_PhEnumKernelModules
test eax, eax
js 0x4630a3
mov ebx, dword [esp + 0x14]
cmp dword [ebx], 1
jb 0x463074
lea edx, [ebx + 0x20]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x463062
sub ecx, esi
push ecx
push edx
call sym.ProcessHacker.exe_PhConvertMultiByteToUtf16Ex
mov esi, eax
push ebx
push 0
push dword [0x54b674]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
test esi, esi
je 0x4630a3
push esi
call sym.ProcessHacker.exe_PhGetFileName
mov dword [edi + 0x2c], eax
lea ecx, [esi - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x4630a3
call fcn.004a2a20
mov esi, dword [edi + 0x28]
test esi, esi
je 0x463183
cmp dword [edi + 0x10], 4
je 0x463183
cmp byte [0x5496b4], 0
lea eax, [esp + 0x14]
push eax
jne 0x4630e8
push 8
push esi
call dword [sym.imp.ntdll.dll_NtOpenProcessToken]
cmp eax, 0xc0000022
jne 0x4630f4
cmp byte [0x5496b4], 0
je 0x46319f
lea eax, [esp + 0x14]
push eax
mov edx, 8
mov ecx, esi
call fcn.004b3d60
test eax, eax
js 0x46319f
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 1
push esi
mov dword [esp + 0x24], 0
call dword [sym.imp.ntdll.dll_NtQueryInformationToken]
push dword [esp + 0x10]
push 4
push dword [0x54b674]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ebx, eax
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x14]
push ebx
push 1
push esi
call dword [sym.imp.ntdll.dll_NtQueryInformationToken]
mov esi, eax
test esi, esi
jns 0x46315e
push ebx
push 0
push dword [0x54b674]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov ebx, dword [esp + 0x1c]
test esi, esi
js 0x463177
mov ecx, dword [ebx]
call fcn.00462460
push ebx
push 0
push dword [0x54b674]
mov dword [edi + 0x4c], eax
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
push dword [esp + 0x14]
call dword [sym.imp.ntdll.dll_NtClose]
jmp 0x46319f
mov eax, dword [edi + 0x10]
test eax, eax
je 0x46318f
cmp eax, 4
jne 0x46319f
mov eax, dword [0x5491dc]
mov dword [edi + 0x4c], eax
test eax, eax
je 0x46319f
lock inc dword [eax - 4]
push dword [edi + 0x2c]
push dword [edi + 0x10]
call sym.ProcessHacker.exe__PhGetProcessKnownTypeEx_8
mov dword [edi + 0x2b0], eax
mov eax, dword [edi + 0x28]
test eax, eax
je 0x4631fd
cmp dword [sym.ProcessHacker.exe_WindowsVersion], 0x3f
jb 0x4631e2
push 0
push 1
lea ecx, [esp + 0x17]
push ecx
push 0x3d
push eax
call dword [sym.imp.ntdll.dll_NtQueryInformationProcess]
test eax, eax
js 0x463204
mov al, byte [esp + 0xf]
mov byte [edi + 0x2b4], al
jmp 0x463204
test dword [edi + 0x74], 0x4000
je 0x463204
mov al, byte [edi + 0x2b4]
and al, 0xfa
or al, 2
mov byte [edi + 0x2b4], al
jmp 0x463204
mov byte [edi + 0x2b4], 0xff
cmp dword [sym.ProcessHacker.exe_WindowsVersion], 0x3f
jb 0x46324b
mov eax, dword [edi + 0x28]
test eax, eax
je 0x46324b
push 0
push 8
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], 7
push ecx
push 0x34
push eax
call dword [sym.imp.ntdll.dll_NtQueryInformationProcess]
test eax, eax
js 0x46324b
mov al, byte [esp + 0x18]
and al, 1
movzx ecx, al
mov eax, dword [edi + 0x74]
shl ecx, 0x11
and eax, 0xfffdffff
or ecx, eax
mov dword [edi + 0x74], ecx
mov eax, dword [esp + 0x1c]
cmp dword [eax + 4], 0
jne 0x46326a
mov eax, dword [edi + 0x28]
test eax, eax
je 0x46326a
push eax
call dword [sym.imp.ntdll.dll_NtClose]
mov dword [edi + 0x28], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret