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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x104
mov eax, dword [0x5c7004]
xor eax, esp
mov dword [esp + 0x100], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x20], eax
mov ecx, dword [ebp + 0x10]
mov ebx, edx
mov eax, dword [ebp + 0xc]
push edi
mov dword [esp + 0x3c], ecx
xor edi, edi
mov ecx, dword [sym.ProcessHacker.exe_PhStdGetClientIdName]
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x18]
push 1
push ecx
push eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x24], 0x1e
mov dword [esp + 0x28], str.EtwRegistration
call sym.ProcessHacker.exe_PhEqualStringRef
nop
test al, al
je 0x4eaa91
mov eax, dword [0x5cd6d4]
test eax, eax
je 0x4eb266
push edi
push edi
push 0x18
lea ecx, [esp + 0xa0]
mov dword [esp + 0x4c], esi
mov dword [esp + 0x58], ecx
lea ecx, [esp + 0x4c]
push ecx
push 0x9999225f
lea ecx, [esp + 0x3c]
mov dword [esp + 0x58], ebx
push ecx
push edi
push edi
push edi
push eax
mov dword [esp + 0x70], 6
mov dword [esp + 0x78], 0x14
mov dword [esp + 0x7c], edi
call dword [sym.imp.ntdll.dll_NtDeviceIoControlFile]
test eax, eax
js 0x4eb266
lea eax, [esp + 0x94]
push eax
call sym.ProcessHacker.exe_PhGetEtwPublisherName
mov edi, eax
jmp 0x4eb728
push 1
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 8
push eax
push dword [esp + 0x28]
mov dword [esp + 0x28], 0x585098
call sym.ProcessHacker.exe_PhEqualStringRef
test al, al
je 0x4eac1d
mov eax, dword ds:[esp + 0x24]
push eax
call sym.ProcessHacker.exe_PhResolveDevicePrefix
mov edi, eax
test edi, edi
jne 0x4eab27
mov edi, dword [esp + 0x24]
mov dword [esp + 0x18], 0x10
mov dword [esp + 0x1c], str.Device_
mov dword [esp + 0x7c], 0x10
cmp dword [edi], 0x10
mov eax, dword [edi + 4]
mov dword [esp + 0x80], eax
jb 0x4eab1f
push 1
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x84]
push eax
call sym.ProcessHacker.exe_PhEqualStringRef
test al, al
je 0x4eab1f
mov ecx, edi
call fcn.004e9c00
mov edi, eax
test edi, edi
jne 0x4eab27
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x24]
lock inc dword [eax - 4]
cmp dword [edi], 0
jne 0x4eb728
cmp dword [0x5cd6d4], 0
je 0x4eb728
push 0
push 4
lea eax, [esp + 0x18]
mov edx, ebx
push eax
push 8
mov ecx, esi
call fcn.004dd3f0
test eax, eax
js 0x4eb728
mov ecx, dword ds:[esp + 0x10]
test ecx, ecx
je 0x4eb728
lea eax, [esp + 0x14]
mov edx, 1
push eax
call fcn.004d65e0
test eax, eax
js 0x4eb71e
mov ebx, dword [esp + 0x14]
movzx eax, word [ebx]
mov dword [esp + 0x14], eax
test ax, ax
jne 0x4eab98
call sym.ProcessHacker.exe_PhReferenceEmptyString
mov esi, eax
jmp 0x4eabdd
push dword [0x5cd4f8]
mov ecx, dword [ebx + 4]
movzx eax, ax
add eax, 0xa
mov dword [esp + 0x3c], ecx
push eax
call sym.ProcessHacker.exe_PhCreateObject
mov esi, eax
xor edx, edx
mov eax, dword [esp + 0x14]
movzx ecx, ax
lea eax, [esi + 8]
mov dword [esi + 4], eax
mov dword [esi], ecx
mov word [eax + ecx], dx
mov eax, dword [esp + 0x38]
test eax, eax
je 0x4eabdd
push ecx
push eax
push dword [esi + 4]
call fcn.00537fe0
add esp, 0xc
push ebx
push 0
push dword [0x5cd55c]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
push esi
push 0x5cb980
call sym.ProcessHacker.exe_PhConcatStringRef2
mov ecx, edi
mov edi, eax
test ecx, ecx
je 0x4eac12
add ecx, 0xfffffff8
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x4eac12
call fcn.004c1f60
push esi
call sym.ProcessHacker.exe_PhDereferenceObject
jmp 0x4eb71e
push 1
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 6
push eax
push dword [esp + 0x28]
mov dword [esp + 0x28], 0x586910
call sym.ProcessHacker.exe_PhEqualStringRef
lea ecx, [ecx]
test al, al
je 0x4eae16
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4eac58
cmp dword [eax], edi
jne 0x4eb266
push 0
push 0
push 4
lea eax, [esp + 0x20]
push eax
push 0xffffffffffffffff
push ebx
push esi
call dword [sym.imp.ntdll.dll_NtDuplicateObject]
test eax, eax
js 0x4eb266
mov esi, dword ds:[esp + 0x10]
test esi, esi
je 0x4eae0d
lea eax, [esp + 0x38]
push eax
push dword [esp + 0x18]
call sym.ProcessHacker.exe_PhGetJobProcessIdList
test eax, eax
js 0x4eae0d
push dword [0x5cd4f8]
mov dword [esp + 0x1c], 0x28
push 0x32
call sym.ProcessHacker.exe_PhCreateObject
mov edi, eax
xor ecx, ecx
lea eax, [edi + 8]
mov dword [esp + 0x1c], edi
xor ebx, ebx
mov dword [edi + 4], eax
mov word [eax + 0x28], cx
mov dword [edi], ecx
mov eax, dword [edi + 4]
mov word [eax], cx
mov eax, dword [esp + 0x38]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x38], eax
cmp dword [eax + 4], ecx
jbe 0x4eadab
add eax, 8
mov dword [esp + 0x20], eax
mov eax, dword ds:[eax]
mov ecx, esi
mov dword [esp + 0x28], eax
lea eax, [esp + 0x28]
push eax
call dword [0x55890c]
call esi
mov dword [esp + 0x7c], eax
test eax, eax
je 0x4ead8c
push eax
lea eax, [esp + 0x1c]
push eax
call sym.ProcessHacker.exe_PhAppendStringBuilder
push 0x593268
call sym.ProcessHacker.exe_PhCountStringZ
mov edi, dword [esp + 0x1c]
mov esi, eax
add esi, esi
je 0x4ead6e
mov ecx, dword [edi]
add ecx, esi
cmp dword [esp + 0x18], ecx
jae 0x4ead4d
lfence
mov edx, dword [edi]
lea ecx, [esp + 0x18]
add edx, esi
call fcn.004c5440
mov edi, dword [esp + 0x1c]
mov eax, dword [edi]
add eax, dword [edi + 4]
push esi
push 0x593268
push eax
call fcn.00537fe0
add dword [edi], esi
add esp, 0xc
mov ecx, dword [edi]
xor edx, edx
mov eax, dword [edi + 4]
mov word [ecx + eax], dx
mov ecx, dword ds:[esp + 0x7c]
or eax, 0xffffffff
add ecx, 0xfffffff8
lock xadd dword [ecx + 4], eax
dec eax
jne 0x4ead88
call fcn.004c1f60
mov esi, dword [esp + 0x10]
mov ecx, dword ds:[esp + 0x38]
inc ebx
mov eax, dword [esp + 0x20]
add eax, 4
mov dword [esp + 0x20], eax
cmp ebx, dword [ecx + 4]
jb 0x4eacf0
mov eax, ecx
push eax
push 0
push dword [0x5cd55c]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov esi, dword ds:[edi]
test esi, esi
je 0x4eadfa
mov ecx, dword [edi + 4]
mov eax, esi
shr eax, 1
lea edx, [eax*2 - 4]
sub esi, edx
lea eax, [ecx + eax*2]
sub esi, 4
push esi
push eax
lea eax, [edx + ecx]
push eax
call fcn.00537fe0
add dword [edi], 0xfffffffc
xor edx, edx
mov ecx, dword [edi]
add esp, 0xc
mov eax, dword [edi + 4]
mov word [ecx + eax], dx
cmp dword [edi], edx
jne 0x4eae0d
push str._No_processes_
lea eax, [esp + 0x1c]
push eax
call sym.ProcessHacker.exe_PhAppendStringBuilder2
mov edi, dword [esp + 0x1c]
push dword [esp + 0x14]
jmp 0x4eb722
push 1
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], 6
push eax
push dword [esp + 0x28]
mov dword [esp + 0x38], 0x586318
call sym.ProcessHacker.exe_PhEqualStringRef
test al, al
je 0x4eae4c
mov eax, dword ds:[esp + 0x24]
push eax
call sym.ProcessHacker.exe_PhFormatNativeKeyName
mov edi, eax
jmp 0x4eb728
push 1
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], 0xe
push eax
push dword [esp + 0x28]
mov dword [esp + 0x38], 0x584fdc
call sym.ProcessHacker.exe_PhEqualStringRef
test al, al
je 0x4eaf10
mov dword ds:[esp + 0x1c], edi
push 0
cmp dword [0x5cd6d4], edi
je 0x4eae9e
push 0x18
lea eax, [esp + 0x48]
mov edx, ebx
push eax
push 4
mov ecx, esi
call fcn.004dd3f0
test eax, eax
jmp 0x4eaedf
push 0
push 0x1000
lea eax, [esp + 0x20]
push eax
push 0xffffffffffffffff
push ebx
push esi
call dword [sym.imp.ntdll.dll_NtDuplicateObject]
test eax, eax
js 0x4eb266
push 0
push 0x18
lea eax, [esp + 0x48]
push eax
push 0
push dword [esp + 0x24]
call dword [sym.imp.ntdll.dll_NtQueryInformationProcess]
push dword [esp + 0x14]
mov esi, eax
call dword [sym.imp.ntdll.dll_NtClose]
test esi, esi
nop
js 0x4eb266
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x50]
mov dword [esp + 0x18], eax
test ebx, ebx
je 0x4eb266
lea eax, [esp + 0x18]
mov ecx, ebx
push eax
call dword [0x55890c]
call ebx
mov edi, eax
jmp 0x4eb728
push 1
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], 0xe
push eax
push dword [esp + 0x28]
mov dword [esp + 0x38], 0x58635c
call sym.ProcessHacker.exe_PhEqualStringRef
test al, al
je 0x4eb09e
mov eax, dword ds:[esp + 0x24]
test eax, eax
je 0x4eaf4c
cmp dword [eax], edi
jne 0x4eb266
push 0
push 0
push 5
lea eax, [esp + 0x1c]
push eax
push 0xffffffffffffffff
push ebx
push esi
call dword [sym.imp.ntdll.dll_NtDuplicateObject]
test eax, eax
js 0x4eb266
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x7c]
call fcn.004ea500
test eax, eax
js 0x4eaf96
mov esi, dword [esp + 0x7c]
push esi
call sym.ProcessHacker.exe_PhResolveDevicePrefix
push esi
mov edi, eax
call sym.ProcessHacker.exe_PhDereferenceObject
jmp 0x4eb71e
push 0
push 0x10
lea eax, [esp + 0x30]
push eax
push 0
push dword [esp + 0x20]
call dword [sym.imp.ntdll.dll_NtQuerySection]
test eax, eax
js 0x4eb71e
mov eax, dword ds:[esp + 0x2c]
mov ecx, 0x585a18
test eax, 0x8000000
je 0x4eafce
mov edx, 0x586c7c
jmp 0x4eaffb
test eax, 0x800000
je 0x4eafdc
mov edx, 0x585098
jmp 0x4eaffb
lea esp, [esp]
test eax, 0x1000000
je 0x4eafee
mov edx, 0x586c8c
jmp 0x4eaffb
test eax, 0x4000000
mov edx, str.Reserve
cmove edx, ecx
mov ecx, edx
mov dword [esp + 0xa8], 1
lea esi, [ecx + 2]
jmp 0x4eb010
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4eb010
sub ecx, esi
mov dword [esp + 0xbc], edx
sar ecx, 1
push 0x14
push 4
mov dword [esp + 0xc8], 1
lea eax, [ecx + ecx]
mov dword [esp + 0xd8], 4
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0xc0], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0xf0], eax
mov eax, 0x29
mov word [esp + 0x108], ax
lea eax, [esp + 0xb0]
push eax
mov dword [esp + 0xe0], 0x585aac
mov dword [esp + 0xe4], 0xc
mov dword [esp + 0xf8], ecx
mov dword [esp + 0xfc], edi
call sym.ProcessHacker.exe_PhFormat
mov edi, eax
jmp 0x4eb71e
push 1
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], 0xc
push eax
push dword [esp + 0x28]
mov dword [esp + 0x38], str.Thread
call sym.ProcessHacker.exe_PhEqualStringRef
mov edi, edi
test al, al
je 0x4eb165
push 0
cmp dword [0x5cd6d4], edi
je 0x4eb0e9
push 0x1c
lea eax, [esp + 0x48]
mov edx, ebx
push eax
push 5
mov ecx, esi
call fcn.004dd3f0
test eax, eax
jmp 0x4eb12b
push 0
push 0x800
lea eax, [esp + 0x20]
push eax
push 0xffffffffffffffff
push ebx
push esi
call dword [sym.imp.ntdll.dll_NtDuplicateObject]
nop
test eax, eax
js 0x4eb266
push 0
push 0x1c
lea eax, [esp + 0x48]
push eax
push 0
push dword [esp + 0x24]
call dword [sym.imp.ntdll.dll_NtQueryInformationThread]
push dword [esp + 0x14]
mov esi, eax
call dword [sym.imp.ntdll.dll_NtClose]
test esi, esi
js 0x4eb266
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
test ebx, ebx
je 0x4eb266
lea eax, [esp + 0x18]
mov ecx, ebx
push eax
call dword [0x55890c]
call ebx
mov edi, eax
jmp 0x4eb728
push 1
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], 8
push eax
push dword [esp + 0x28]
mov dword [esp + 0x38], str.TmEn
call sym.ProcessHacker.exe_PhEqualStringRef
test al, al
je 0x4eb205
push 0
push 0
push 1
lea eax, [esp + 0x1c]
push eax
push 0xffffffffffffffff
push ebx
push esi
call dword [sym.imp.ntdll.dll_NtDuplicateObject]
test eax, eax
js 0x4eb266
mov esi, dword [esp + 0x10]
call fcn.004de3e0
test eax, eax
je 0x4eb25c
push 0
push 0x30
lea eax, [esp + 0x48]
push eax
push 0
push esi
call fcn.004de3e0
mov esi, eax
mov ecx, eax
call dword [0x55890c]
call esi
push dword [esp + 0x10]
mov esi, eax
call dword [sym.imp.ntdll.dll_NtClose]
test esi, esi
js 0x4eb266
lea eax, [esp + 0x40]
push eax
call sym.ProcessHacker.exe_PhFormatGuid
mov edi, eax
jmp 0x4eb728
push 1
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], 8
push eax
push dword [esp + 0x28]
mov dword [esp + 0x38], str.TmRm
call sym.ProcessHacker.exe_PhEqualStringRef
test al, al
je 0x4eb353
push 0
push 0
push 1
lea eax, [esp + 0x1c]
push eax
push 0xffffffffffffffff
push ebx
push esi
call dword [sym.imp.ntdll.dll_NtDuplicateObject]
test eax, eax
js 0x4eb266
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x7c]
push eax
call fcn.004d61a0
test eax, eax
jns 0x4eb291
push dword [esp + 0x10]
call dword [sym.imp.ntdll.dll_NtClose]
mov ebx, dword [esp + 0x24]
test ebx, ebx
je 0x4eb272
lock inc dword [ebx - 4]
mov eax, dword [esp + 0x3c]
mov dword [eax], ebx
mov ecx, dword [esp + 0x10c]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00534c91
mov esp, ebp
pop ebp
ret 0xc
mov edi, dword ds:[esp + 0x7c]
mov eax, dword [edi]
mov dword [esp + 0x84], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x88], eax
mov eax, dword [edi + 8]
mov dword [esp + 0x8c], eax
mov eax, dword [edi + 0xc]
mov dword [esp + 0x90], eax
mov ebx, dword [edi + 0x10]
test ebx, ebx
jne 0x4eb2cd
call sym.ProcessHacker.exe_PhReferenceEmptyString
mov esi, eax
jmp 0x4eb300
push dword [0x5cd4f8]
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
lea eax, [edi + 0x14]
test eax, eax
je 0x4eb300
push ebx
push eax
push dword [esi + 4]
call fcn.00537fe0
add esp, 0xc
push edi
push 0
push dword [0x5cd55c]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
push dword [esp + 0x10]
call dword [sym.imp.ntdll.dll_NtClose]
test esi, esi
je 0x4eb329
cmp dword [esi], 0
je 0x4eb329
mov edi, esi
jmp 0x4eb728
lea eax, [esp + 0x84]
push eax
call sym.ProcessHacker.exe_PhFormatGuid
mov edi, eax
test esi, esi
je 0x4eb728
push esi
call sym.ProcessHacker.exe_PhDereferenceObject
jmp 0x4eb728
push 1
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], 8
push eax
push dword [esp + 0x28]
mov dword [esp + 0x38], str.TmTm
call sym.ProcessHacker.exe_PhEqualStringRef
test al, al
je 0x4eb485
push 0
push 0
push 1
lea eax, [esp + 0x1c]
push eax
push 0xffffffffffffffff
push ebx
push esi
call dword [sym.imp.ntdll.dll_NtDuplicateObject]
test eax, eax
js 0x4eb266
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
call fcn.004d5ca0
test eax, eax
js 0x4eb437
mov eax, dword [esp + 0x14]
mov ebx, dword [eax]
test ebx, ebx
jne 0x4eb3c2
call sym.ProcessHacker.exe_PhReferenceEmptyString
mov esi, eax
jmp 0x4eb400
push dword [0x5cd4f8]
add eax, 4
mov dword [esp + 0x80], 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 + 0x7c]
test eax, eax
je 0x4eb400
push ebx
push eax
push dword [esi + 4]
call fcn.00537fe0
add esp, 0xc
push dword [esp + 0x14]
push 0
push dword [0x5cd55c]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
test esi, esi
je 0x4eb437
push esi
cmp dword [esi], edi
je 0x4eb432
jmp 0x4eb420
call sym.ProcessHacker.exe_PhGetFileName
push esi
mov edi, eax
call sym.ProcessHacker.exe_PhDereferenceObject
jmp 0x4eb71e
call sym.ProcessHacker.exe_PhDereferenceObject
mov esi, dword ds:[esp + 0x10]
call fcn.004de800
test eax, eax
je 0x4eb71e
push 0
push 0x18
lea eax, [esp + 0x48]
push eax
push 0
push esi
call fcn.004de800
mov esi, eax
mov ecx, eax
call dword [0x55890c]
call esi
test eax, eax
js 0x4eb71e
lea eax, [esp + 0x40]
push eax
call sym.ProcessHacker.exe_PhFormatGuid
mov edi, eax
jmp 0x4eb71e
push 1
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], 8
push eax
push dword [esp + 0x28]
mov dword [esp + 0x38], str.TmTx
call sym.ProcessHacker.exe_PhEqualStringRef
test al, al
je 0x4eb5a5
push 0
push 0
push 1
lea eax, [esp + 0x1c]
push eax
push 0xffffffffffffffff
push ebx
push esi
call dword [sym.imp.ntdll.dll_NtDuplicateObject]
test eax, eax
js 0x4eb266
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
call fcn.004d5f20
lea esp, [esp]
test eax, eax
js 0x4eb557
mov eax, dword [esp + 0x14]
push dword [0x5cd4f8]
mov ebx, dword [eax + 0x14]
add eax, 0x18
mov dword [esp + 0x80], eax
lea eax, [ebx + 0xa]
push eax
call sym.ProcessHacker.exe_PhCreateObject
mov esi, eax
xor eax, eax
lea ecx, [esi + 8]
mov dword [esi], ebx
mov dword [esi + 4], ecx
mov word [ecx + ebx], ax
mov eax, dword [esp + 0x7c]
test eax, eax
je 0x4eb531
push ebx
push eax
push dword [esi + 4]
call fcn.00537fe0
add esp, 0xc
push dword ds:[esp + 0x14]
push 0
push dword [0x5cd55c]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp dword [esi], edi
je 0x4eb551
mov edi, esi
jmp 0x4eb71e
push esi
call sym.ProcessHacker.exe_PhDereferenceObject
mov esi, dword ds:[esp + 0x10]
call fcn.004de6a0
test eax, eax
je 0x4eb71e
push 0
push 0x18
lea eax, [esp + 0x48]
push eax
push 0
push esi
call fcn.004de6a0
mov esi, eax
mov ecx, eax
call dword [0x55890c]
call esi
test eax, eax
js 0x4eb71e
lea eax, [esp + 0x40]
push eax
call sym.ProcessHacker.exe_PhFormatGuid
mov edi, eax
jmp 0x4eb71e
push 1
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], 0xa
push eax
push dword [esp + 0x28]
mov dword [esp + 0x38], 0x586938
call sym.ProcessHacker.exe_PhEqualStringRef
test al, al
je 0x4eb266
push 0x38
lea eax, [esp + 0x44]
mov dword [esp + 0x18], edi
push 0
push eax
call fcn.00536b00
add esp, 0xc
lea eax, [esp + 0x10]
push 0
push 0
push 8
push eax
push 0xffffffffffffffff
push ebx
push esi
call dword [sym.imp.ntdll.dll_NtDuplicateObject]
test eax, eax
js 0x4eb266
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
mov edx, 1
call fcn.004d54e0
mov esi, eax
lea eax, [esp + 0x7c]
push eax
push 0x38
lea eax, [esp + 0x48]
push eax
push 0xa
push dword [esp + 0x20]
call dword [sym.imp.ntdll.dll_NtQueryInformationToken]
test esi, esi
js 0x4eb71e
mov ebx, dword ds:[esp + 0x14]
push 0
push 1
push dword [ebx]
call sym.ProcessHacker.exe_PhGetSidFullName
mov esi, eax
test esi, esi
je 0x4eb70f
mov eax, dword [esp + 0x48]
mov edx, str.__Primary_
cmp dword [esp + 0x58], 1
mov ecx, dword [esi + 4]
mov edi, dword [esi]
mov dword [esp + 0xe8], eax
mov eax, str.__Impersonation_
cmovne edx, eax
mov dword [esp + 0xbc], ecx
mov ecx, edx
mov dword [esp + 0xa8], 1
mov dword [esp + 0xb8], edi
mov dword [esp + 0xc0], 1
mov dword [esp + 0xd0], 8
lea eax, [ecx + 2]
mov dword [esp + 0xd4], str.:_0x
mov dword [esp + 0xd8], pe_nt_image_headers32
mov byte [esp + 0xe2], 0x10
mov dword [esp + 0xf0], 1
mov dword [esp + 0x7c], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4eb6d2
sub ecx, dword [esp + 0x7c]
sar ecx, 1
mov dword [esp + 0x104], edx
lea eax, [ecx + ecx]
mov dword [esp + 0x100], eax
lea eax, [edi + 0x28]
push eax
push 4
lea eax, [esp + 0xb0]
push eax
call sym.ProcessHacker.exe_PhFormat
push esi
mov edi, eax
call sym.ProcessHacker.exe_PhDereferenceObject
push ebx
push 0
push dword [0x5cd55c]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
push dword [esp + 0x10]
call dword [sym.imp.ntdll.dll_NtClose]
test edi, edi
je 0x4eb266
mov eax, dword [esp + 0x3c]
mov dword [eax], edi
jmp 0x4eb278