Function at 0x40efe0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x11c
mov eax, dword [0x5ac004]
xor eax, esp
mov dword [esp + 0x118], eax
push ebx
push esi
push edi
push 5
lea eax, [esp + 0x24]
mov ebx, edx
push eax
mov dword [esp + 0x14], ebx
mov edi, ecx
call sym.ProcessHacker.exe_PhEnumProcessesEx
mov esi, eax
test esi, esi
jns 0x40f0f3
jmp 0x40f020
cmp esi, 0xc0000022
je 0x40f042
cmp esi, 0xc0000005
je 0x40f042
and eax, 0xfff0000
cmp eax, 0x70000
jne 0x40f050
movzx eax, si
jmp 0x40f04c
push esi
lfence
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
test eax, eax
jne 0x40f05b
push esi
lfence
call sym.ProcessHacker.exe_PhGetNtMessage
jmp 0x40f065
push eax
lfence
call sym.ProcessHacker.exe_PhGetWin32Message
mov esi, eax
test esi, esi
je 0x40f0c9
lfence
lfence
push dword [esi + 4]
push 0x54ace8
push str.Unable_to_enumerate_processes
push 0xfffe
push 0x20
push edi
call sym.ProcessHacker.exe_PhShowMessage2
add esp, 0x18
lea ecx, [esi - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x40f88e
lfence
call fcn.004b3960
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.0051e068
mov esp, ebp
pop ebp
ret
push str.Unable_to_enumerate_processes
push 0x57e1d4
push 0x10
push edi
call sym.ProcessHacker.exe_PhShowMessage
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.0051e068
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0x845c
push dword [ebx + 0x70]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x1009
push dword [ebx + 0x70]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0xffffffffffffffff
push dword [ebx + 0x6c]
call dword [sym.imp.COMCTL32.dll_ImageList_Remove]
mov eax, dword [esp + 0x20]
mov edi, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x1c], eax
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0xfc], eax
mov dword [esp + 0x14], eax
cmp dword [edi + 0x44], eax
je 0x40f199
movzx eax, word [edi + 0x38]
test ax, ax
jne 0x40f162
call sym.ProcessHacker.exe_PhReferenceEmptyString
mov ebx, eax
jmp 0x40f1cf
push dword [0x5b1d70]
mov edi, dword [edi + 0x3c]
mov esi, eax
lea eax, [esi + 0xa]
push eax
call sym.ProcessHacker.exe_PhCreateObject
mov ebx, eax
xor ecx, ecx
lea eax, [ebx + 8]
mov dword [ebx], esi
mov dword [ebx + 4], eax
mov word [eax + esi], cx
test edi, edi
je 0x40f1cb
push esi
push edi
push dword [ebx + 4]
call fcn.00521a30
add esp, 0xc
jmp 0x40f1cb
push dword [0x5b1d70]
push 0x30
call sym.ProcessHacker.exe_PhCreateObject
mov ebx, eax
xor ecx, ecx
lea eax, [ebx + 8]
mov esi, str.System_Idle_Process
mov dword [ebx + 4], eax
mov dword [ebx], 0x26
mov word [eax + 0x26], cx
mov ecx, 9
mov edi, dword [ebx + 4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, dword [esp + 0x1c]
mov eax, dword ds:[ebx + 4]
mov ecx, dword [edi + 0x44]
mov dword [esp + 0x9c], eax
lea eax, [esp + 0x88]
push eax
mov eax, dword [esp + 0x10]
push 0
push 0x104d
mov dword [esp + 0x94], 5
push dword [eax + 0x70]
mov dword [esp + 0x9c], 0x7fffffff
mov dword [esp + 0xa0], 0
mov dword [esp + 0xb8], ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esp + 0x18], eax
lea ecx, [ebx - 8]
or edx, 0xffffffff
lock xadd dword [ecx + 4], edx
dec edx
jne 0x40f23d
call fcn.004b3960
cmp byte [0x5b18bb], 0
mov eax, dword [edi + 0x44]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], 0
je 0x40f2dc
lea eax, [esp + 0x104]
mov dword [esp + 0x4c], 0x1000
mov dword [esp + 0x48], eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x50], eax
mov eax, dword [0x5b1f40]
mov dword [esp + 0x54], 0
test eax, eax
je 0x40f2a5
push 0
push 0
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x50]
push 0x10
push eax
lea eax, [esp + 0xec]
jmp 0x40f3b8
lea eax, ds:[esp + 0x54]
mov edx, 0x4cc3b0
mov dword [esp + 0x34], eax
mov ecx, 1
lea eax, [esp + 0x34]
push eax
call fcn.004cc340
push 0
push 0
lea eax, [esp + 0x50]
push 0x10
push eax
lea eax, [esp + 0xec]
jmp 0x40f3b8
lea eax, [esp + 0x2c]
mov dword [esp + 0xc4], 0x18
push eax
lea eax, [esp + 0xc8]
mov dword [esp + 0xcc], 0
push eax
push 0x1000
lea eax, [esp + 0x110]
mov dword [esp + 0xdc], 0
push eax
mov dword [esp + 0xdc], 0
mov dword [esp + 0xe4], 0
mov dword [esp + 0xe8], 0
call dword [sym.imp.ntdll.dll_NtOpenProcess]
mov edi, edi
cmp eax, 0xc0000022
jne 0x40f3d0
cmp byte [0x5b18bb], 0
je 0x40f5a6
lea eax, [esp + 0x104]
mov dword [esp + 0x5c], 0x1000
mov dword [esp + 0x58], eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x60], eax
mov eax, dword [0x5b1f40]
mov dword [esp + 0x64], 0
test eax, eax
je 0x40f38a
mov dword [esp + 0x64], eax
jmp 0x40f3a6
lea eax, [esp + 0x64]
mov edx, 0x4cc3b0
mov dword [esp + 0x38], eax
mov ecx, 1
lea eax, [esp + 0x38]
push eax
call fcn.004cc340
push 0
push 0
lea eax, [esp + 0x60]
push 0x10
push eax
lea eax, [esp + 0xf4]
push 0x999920cb
push eax
push 0
push 0
push 0
push dword [0x5b1f3c]
call dword [sym.imp.ntdll.dll_NtDeviceIoControlFile]
test eax, eax
js 0x40f5a6
cmp byte [0x5b18bb], 0
lea eax, [esp + 0x100]
mov esi, dword [esp + 0x104]
je 0x40f45e
mov dword [esp + 0x70], eax
mov eax, dword [0x5b1f40]
mov dword [esp + 0x68], esi
mov dword [esp + 0x6c], 8
mov dword [esp + 0x74], 0
test eax, eax
je 0x40f42b
push 0
push 0
mov dword [esp + 0x7c], eax
lea eax, [esp + 0x70]
push 0x10
push eax
lea eax, [esp + 0xfc]
jmp 0x40f4f1
lea eax, [esp + 0x74]
mov edx, 0x4cc3b0
mov dword [esp + 0x3c], eax
mov ecx, 1
lea eax, [esp + 0x3c]
push eax
call fcn.004cc340
push 0
push 0
lea eax, [esp + 0x70]
push 0x10
push eax
lea eax, [esp + 0xfc]
jmp 0x40f4f1
push eax
push 8
push esi
call dword [sym.imp.ntdll.dll_NtOpenProcessToken]
cmp eax, 0xc0000022
jne 0x40f509
cmp byte [0x5b18bb], 0
lea ebx, [ebx]
je 0x40f597
lea eax, [esp + 0x100]
mov dword [esp + 0x78], esi
mov dword [esp + 0x80], eax
mov eax, dword [0x5b1f40]
mov dword [esp + 0x7c], 8
mov dword [esp + 0x84], 0
test eax, eax
je 0x40f4bd
mov dword [esp + 0x84], eax
jmp 0x40f4dc
lea eax, [esp + 0x84]
mov edx, 0x4cc3b0
mov dword [esp + 0x40], eax
mov ecx, 1
lea eax, [esp + 0x40]
push eax
call fcn.004cc340
push 0
push 0
lea eax, [esp + 0x80]
push 0x10
push eax
lea eax, [esp + 0x104]
push 0x999920cf
push eax
push 0
push 0
push 0
push dword [0x5b1f3c]
call dword [sym.imp.ntdll.dll_NtDeviceIoControlFile]
test eax, eax
js 0x40f597
mov esi, dword [esp + 0x100]
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 ds:[esp + 0x10]
push 4
push dword [0x5b1dac]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x14]
push edi
push 1
push esi
call dword [sym.imp.ntdll.dll_NtQueryInformationToken]
lfence
test eax, eax
js 0x40f573
push 0
push 1
push dword [edi]
call sym.ProcessHacker.exe_PhGetSidFullName
mov dword [esp + 0x14], eax
push edi
push 0
push dword [0x5b1dac]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
push dword [esp + 0x100]
call dword [sym.imp.ntdll.dll_NtClose]
mov edi, dword [esp + 0x1c]
push dword ds:[esp + 0x104]
call dword [sym.imp.ntdll.dll_NtClose]
cmp dword [edi + 0x44], 0
jne 0x40f5d1
cmp dword [esp + 0x14], 0
jne 0x40f5d1
push 0
push 1
push 0x5acb1c
call sym.ProcessHacker.exe_PhGetSidFullName
mov dword [esp + 0x14], eax
test eax, eax
je 0x40f5d1
lock inc dword [eax - 4]
mov eax, dword [edi + 0x44]
cmp eax, 4
jne 0x40f628
lea eax, [esp + 0x44]
xor ebx, ebx
push eax
call sym.ProcessHacker.exe_PhEnumKernelModules
test eax, eax
js 0x40f63b
mov esi, dword [esp + 0x44]
cmp dword [esi], 1
jb 0x40f612
lea edx, [esi + 0x20]
mov ecx, edx
lea ebx, [ecx + 1]
lea ebx, [ebx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40f600
sub ecx, ebx
push ecx
push edx
call sym.ProcessHacker.exe_PhConvertMultiByteToUtf16Ex
mov ebx, eax
push esi
push 0
push dword [0x5b1dac]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x40f63b
test eax, eax
jle 0x40f687
lea ecx, [esp + 0x20]
push ecx
push eax
call sym.ProcessHacker.exe_PhGetProcessImageFileNameByProcessId
mov ebx, dword [esp + 0x20]
test ebx, ebx
je 0x40f68b
push ebx
call sym.ProcessHacker.exe_PhGetFileName
mov esi, eax
mov eax, ebx
mov ebx, esi
test eax, eax
je 0x40f665
lea ecx, [eax - 8]
or edx, 0xffffffff
lock xadd dword [ecx + 4], edx
dec edx
jne 0x40f665
lea ecx, [ecx]
call fcn.004b3960
test esi, esi
je 0x40f68b
cmp dword [esi], 0
je 0x40f68b
lea eax, ds:[esp + 0xfc]
push eax
push 0
push dword [esi + 4]
call sym.ProcessHacker.exe_PhExtractIcon
jmp 0x40f68b
mov ebx, dword [esp + 0x24]
mov eax, dword [esp + 0xfc]
test eax, eax
je 0x40f6f5
mov esi, dword [esp + 0xc]
push eax
push 0xffffffffffffffff
push dword [esi + 0x6c]
call dword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0xa4], eax
lea eax, [esp + 0x88]
push eax
push 0
push 0x104c
push dword [esi + 0x70]
mov dword [esp + 0x98], 2
mov dword [esp + 0x9c], ecx
mov dword [esp + 0xa0], 0
call dword [sym.imp.USER32.dll_SendMessageW]
push dword [esp + 0xfc]
call dword [sym.imp.USER32.dll_DestroyIcon]
jmp 0x40f75b
lea eax, ds:[esp + 0xfc]
push eax
push 0
call sym.ProcessHacker.exe_PhGetStockApplicationIcon
push dword [esp + 0xfc]
mov esi, dword [esp + 0x10]
push 0xffffffffffffffff
push dword [esi + 0x6c]
call dword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0xa4], eax
lea eax, [esp + 0x88]
push eax
push 0
push 0x104c
push dword [esi + 0x70]
mov dword [esp + 0x98], 2
mov dword [esp + 0x9c], ecx
mov dword [esp + 0xa0], 0
call dword [sym.imp.USER32.dll_SendMessageW]
push 0xa
lea eax, [esp + 0x10c]
push eax
push dword [edi + 0x44]
call fcn.00522341
mov eax, dword [esp + 0x24]
add esp, 0xc
mov dword [esp + 0x8c], eax
lea eax, [esp + 0x108]
mov dword [esp + 0x9c], eax
lea eax, [esp + 0x88]
mov dword [esp + 0x88], 1
push eax
push 0
push 0x104c
push dword [esi + 0x70]
mov dword [esp + 0xa0], 1
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, dword [esp + 0x14]
test esi, esi
je 0x40f7c4
mov eax, dword [esi + 4]
jmp 0x40f7c6
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x9c], eax
lea eax, [esp + 0x88]
push eax
mov eax, dword [esp + 0x10]
push 0
push 0x104c
mov dword [esp + 0x94], 1
push dword [eax + 0x70]
mov dword [esp + 0x9c], ecx
mov dword [esp + 0xa0], 2
call dword [sym.imp.USER32.dll_SendMessageW]
test esi, esi
je 0x40f825
lea ecx, [esi - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x40f825
lea esp, [esp]
call fcn.004b3960
test ebx, ebx
je 0x40f83c
lea ecx, [ebx - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x40f83c
call fcn.004b3960
mov eax, dword ds:[edi]
test eax, eax
je 0x40f850
add edi, eax
mov dword [esp + 0x1c], edi
jne 0x40f134
push dword ds:[esp + 0x28]
push 0
push dword [0x5b1dac]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov ebx, dword [esp + 0xc]
push 0
push 0
push 0x844d
push dword [ebx + 0x70]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 1
push 0x845c
push dword [ebx + 0x70]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0x124]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0051e068
mov esp, ebp
pop ebp
ret