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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x124
mov eax, dword [0x5c7004]
xor eax, esp
mov dword [esp + 0x120], eax
push ebx
push esi
push edi
push 5
lea eax, [esp + 0x30]
mov ebx, edx
push eax
mov dword [esp + 0x18], ebx
mov edi, ecx
call sym.ProcessHacker.exe_PhEnumProcessesEx
mov esi, eax
test esi, esi
jns 0x411553
jmp 0x411480
cmp esi, 0xc0000022
je 0x4114a2
cmp esi, 0xc0000005
je 0x4114a2
and eax, 0xfff0000
cmp eax, 0x70000
jne 0x4114b0
movzx eax, si
jmp 0x4114ac
push esi
lfence
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
test eax, eax
jne 0x4114bb
push esi
lfence
call sym.ProcessHacker.exe_PhGetNtMessage
jmp 0x4114c5
push eax
lfence
call sym.ProcessHacker.exe_PhGetWin32Message
mov esi, eax
test esi, esi
je 0x411529
lfence
lfence
push dword [esi + 4]
push 0x5634d8
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 0x411cee
lfence
call fcn.004c1f60
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.00534c91
mov esp, ebp
pop ebp
ret
push str.Unable_to_enumerate_processes
push 0x5981b0
push 0x10
push edi
call sym.ProcessHacker.exe_PhShowMessage
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.00534c91
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]
mov eax, dword [ebx + 0x6c]
push 0xffffffffffffffff
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x24]
mov ecx, esi
call dword [0x55890c]
call esi
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x18], edi
xor eax, eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
cmp dword [edi + 0x44], eax
je 0x4115f5
movzx eax, word [edi + 0x38]
test ax, ax
jne 0x4115be
call sym.ProcessHacker.exe_PhReferenceEmptyString
mov ebx, eax
jmp 0x41162e
push dword [0x5cd4f8]
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 0x41162a
push esi
push edi
push dword [ebx + 4]
call fcn.00537fe0
add esp, 0xc
jmp 0x41162a
push dword [0x5cd4f8]
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 + 0x18]
mov eax, dword [ebx + 4]
mov ecx, dword [edi + 0x44]
mov dword [esp + 0xa8], eax
lea eax, [esp + 0x94]
push eax
mov eax, dword [esp + 0x14]
push 0
push 0x104d
mov dword [esp + 0xa0], 5
push dword [eax + 0x70]
mov dword [esp + 0xa8], 0x7fffffff
mov dword [esp + 0xac], 0
mov dword [esp + 0xc4], ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esp + 0x24], eax
lea ecx, [ebx - 8]
or edx, 0xffffffff
lock xadd dword [ecx + 4], edx
dec edx
jne 0x411696
call fcn.004c1f60
cmp byte [0x5cd02b], 0
mov eax, dword [edi + 0x44]
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], 0
je 0x41172c
lea eax, [esp + 0x10c]
mov dword [esp + 0x58], 0x1000
mov dword [esp + 0x54], eax
lea eax, [esp + 0x34]
mov dword [esp + 0x5c], eax
mov eax, dword [0x5cd6d8]
mov dword [esp + 0x60], 0
test eax, eax
je 0x4116f9
push 0
push 0
mov dword [esp + 0x68], eax
lea eax, [esp + 0x5c]
push 0x10
push eax
lea eax, [esp + 0xf8]
jmp 0x411806
lea eax, [esp + 0x60]
mov edx, 0x4dd530
mov dword [esp + 0x3c], eax
mov ecx, 1
lea eax, [esp + 0x3c]
push eax
call fcn.004dd4c0
push 0
push 0
lea eax, [esp + 0x5c]
push 0x10
push eax
lea eax, [esp + 0xf8]
jmp 0x411806
lea eax, [esp + 0x34]
mov dword [esp + 0xd0], 0x18
push eax
lea eax, [esp + 0xd4]
mov dword [esp + 0xd8], 0
push eax
push 0x1000
lea eax, [esp + 0x118]
mov dword [esp + 0xe8], 0
push eax
mov dword [esp + 0xe8], 0
mov dword [esp + 0xf0], 0
mov dword [esp + 0xf4], 0
call dword [sym.imp.ntdll.dll_NtOpenProcess]
cmp eax, 0xc0000022
jne 0x41181e
cmp byte [0x5cd02b], 0
je 0x4119cc
lea eax, [esp + 0x10c]
mov dword [esp + 0x68], 0x1000
mov dword [esp + 0x64], eax
lea eax, [esp + 0x34]
mov dword [esp + 0x6c], eax
mov eax, dword [0x5cd6d8]
mov dword [esp + 0x70], 0
test eax, eax
je 0x4117d8
mov dword [esp + 0x70], eax
jmp 0x4117f4
lea eax, [esp + 0x70]
mov edx, 0x4dd530
mov dword [esp + 0x40], eax
mov ecx, 1
lea eax, [esp + 0x40]
push eax
call fcn.004dd4c0
push 0
push 0
lea eax, [esp + 0x6c]
push 0x10
push eax
lea eax, [esp + 0x100]
push 0x999920cb
push eax
push 0
push 0
push 0
push dword [0x5cd6d4]
call dword [sym.imp.ntdll.dll_NtDeviceIoControlFile]
mov edi, edi
test eax, eax
js 0x4119cc
cmp byte [0x5cd02b], 0
lea eax, ds:[esp + 0x108]
mov esi, dword [esp + 0x10c]
je 0x4118be
mov dword [esp + 0x7c], eax
mov eax, dword [0x5cd6d8]
mov dword [esp + 0x74], esi
mov dword [esp + 0x78], 8
mov dword [esp + 0x80], 0
test eax, eax
je 0x411888
push 0
push 0
mov dword [esp + 0x88], eax
lea eax, [esp + 0x7c]
push 0x10
push eax
lea eax, [esp + 0x108]
jmp 0x41195a
lea eax, [esp + 0x80]
mov edx, 0x4dd530
mov dword [esp + 0x44], eax
mov ecx, 1
lea eax, [esp + 0x44]
push eax
call fcn.004dd4c0
push 0
push 0
lea eax, [esp + 0x7c]
push 0x10
push eax
lea eax, [esp + 0x108]
jmp 0x41195a
push eax
push 8
push esi
call dword [sym.imp.ntdll.dll_NtOpenProcessToken]
cmp eax, 0xc0000022
jne 0x411972
cmp byte [0x5cd02b], 0
lea ebx, [ebx]
je 0x4119bf
lea eax, [esp + 0x108]
mov dword [esp + 0x84], esi
mov dword [esp + 0x8c], eax
mov eax, dword [0x5cd6d8]
mov dword [esp + 0x88], 8
mov dword [esp + 0x90], 0
test eax, eax
je 0x411923
mov dword [esp + 0x90], eax
jmp 0x411945
lea eax, ds:[esp + 0x90]
mov edx, 0x4dd530
mov dword [esp + 0x48], eax
mov ecx, 1
lea eax, [esp + 0x48]
push eax
call fcn.004dd4c0
push 0
push 0
lea eax, [esp + 0x8c]
push 0x10
push eax
lea eax, [esp + 0x110]
push 0x999920cf
push eax
push 0
push 0
push 0
push dword [0x5cd6d4]
call dword [sym.imp.ntdll.dll_NtDeviceIoControlFile]
test eax, eax
js 0x4119bf
mov ecx, dword [esp + 0x108]
lea eax, [esp + 0x4c]
push eax
mov edx, 1
call fcn.004d54e0
test eax, eax
js 0x4119b2
mov esi, dword [esp + 0x4c]
push 0
push 1
push dword [esi]
call sym.ProcessHacker.exe_PhGetSidFullName
push esi
push 0
push dword [0x5cd55c]
mov dword [esp + 0x2c], eax
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
push dword [esp + 0x108]
call dword [sym.imp.ntdll.dll_NtClose]
push dword [esp + 0x10c]
call dword [sym.imp.ntdll.dll_NtClose]
cmp dword [edi + 0x44], 0
jne 0x4119f3
cmp dword [esp + 0x20], 0
jne 0x4119f3
push 0
push 1
push 0x5c7c40
call sym.ProcessHacker.exe_PhGetSidFullName
mov dword [esp + 0x20], eax
test eax, eax
je 0x4119f3
lock inc dword [eax - 4]
mov eax, dword [edi + 0x44]
cmp eax, 4
jne 0x411a48
lea eax, [esp + 0x50]
xor ebx, ebx
push eax
call sym.ProcessHacker.exe_PhEnumKernelModules
test eax, eax
js 0x411a5f
mov esi, dword [esp + 0x50]
cmp dword [esi], 1
jb 0x411a32
lea edx, [esi + 0x20]
mov ecx, edx
lea ebx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x411a20
sub ecx, ebx
push ecx
push edx
call sym.ProcessHacker.exe_PhConvertMultiByteToUtf16Ex
mov ebx, eax
push esi
push 0
push dword [0x5cd55c]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x411a5f
test eax, eax
jle 0x411b36
lea ecx, [esp + 0x14]
push ecx
push eax
call sym.ProcessHacker.exe_PhGetProcessImageFileNameByProcessId
mov ebx, dword [esp + 0x14]
nop
test ebx, ebx
je 0x411b40
push ebx
call sym.ProcessHacker.exe_PhGetFileName
mov esi, eax
mov eax, ebx
mov ebx, esi
test eax, eax
je 0x411a8b
lea ecx, [eax - 8]
or edx, 0xffffffff
lock xadd dword [ecx + 4], edx
dec edx
jne 0x411a8b
call fcn.004c1f60
test esi, esi
je 0x411b40
cmp dword [esi], 0
je 0x411b40
lea eax, [esp + 0x1c]
push eax
push 0
push dword [esi + 4]
call sym.ProcessHacker.exe_PhExtractIcon
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x411b3c
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push edi
push 0xffffffffffffffff
mov eax, dword [eax + 0x6c]
mov dword [esp + 0x20], 0xffffffff
push eax
mov esi, dword [eax]
mov esi, dword [esi + 0x10]
mov ecx, esi
call dword [0x55890c]
call esi
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0xb0], eax
lea eax, [esp + 0x94]
push eax
mov eax, dword [esp + 0x14]
push 0
push 0x104c
mov dword [esp + 0xa0], 2
push dword [eax + 0x70]
mov dword [esp + 0xa8], ecx
mov dword [esp + 0xac], 0
call dword [sym.imp.USER32.dll_SendMessageW]
push edi
call dword [sym.imp.USER32.dll_DestroyIcon]
mov edi, dword [esp + 0x18]
jmp 0x411bbe
mov ebx, dword [esp + 0x30]
jmp 0x411b40
mov edi, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push eax
push 0
call sym.ProcessHacker.exe_PhGetStockApplicationIcon
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x14], 0xffffffff
mov eax, dword [ecx + 0x6c]
lea ecx, [esp + 0x14]
push ecx
push dword [esp + 0x20]
mov esi, dword [eax]
push 0xffffffffffffffff
push eax
mov esi, dword [esi + 0x10]
mov ecx, esi
call dword [0x55890c]
call esi
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0xb0], eax
lea eax, [esp + 0x94]
push eax
mov eax, dword [esp + 0x14]
push 0
push 0x104c
mov dword [esp + 0xa0], 2
push dword [eax + 0x70]
mov dword [esp + 0xa8], ecx
mov dword [esp + 0xac], 0
call dword [sym.imp.USER32.dll_SendMessageW]
push 0xa
lea eax, [esp + 0x114]
push eax
push dword [edi + 0x44]
call fcn.005388ed
mov eax, dword [esp + 0x30]
add esp, 0xc
mov dword [esp + 0x98], eax
lea eax, [esp + 0x110]
mov dword [esp + 0xa8], eax
lea eax, [esp + 0x94]
mov dword [esp + 0x94], 1
push eax
mov eax, dword [esp + 0x14]
push 0
push 0x104c
mov dword [esp + 0xa8], 1
push dword [eax + 0x70]
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, dword [esp + 0x20]
test esi, esi
je 0x411c2b
mov eax, dword [esi + 4]
jmp 0x411c2d
xor eax, eax
mov ecx, dword [esp + 0x24]
mov dword [esp + 0xa8], eax
lea eax, [esp + 0x94]
push eax
mov eax, dword [esp + 0x14]
push 0
push 0x104c
mov dword [esp + 0xa0], 1
push dword [eax + 0x70]
mov dword [esp + 0xa8], ecx
mov dword [esp + 0xac], 2
call dword [sym.imp.USER32.dll_SendMessageW]
test esi, esi
je 0x411c88
lea ecx, [esi - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x411c88
call fcn.004c1f60
test ebx, ebx
je 0x411c9f
lea ecx, [ebx - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x411c9f
call fcn.004c1f60
mov eax, dword [edi]
test eax, eax
je 0x411cb1
add edi, eax
mov dword [esp + 0x18], edi
jne 0x411595
push dword ds:[esp + 0x2c]
push 0
push dword [0x5cd55c]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov ebx, dword [esp + 0x10]
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 + 0x12c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00534c91
mov esp, ebp
pop ebp
ret