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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x18c
mov eax, dword [0x5ac004]
xor eax, esp
mov dword [esp + 0x188], eax
test byte [ebp + 0x10], 1
mov ecx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 0x14]
mov dword [esp + 0x1c], ebx
je 0x4c7e77
lea eax, ds:[esp + 0x20]
mov dword [esp + 0x60], 1
push eax
push 0x100
lea eax, [esp + 0x98]
mov dword [esp + 0x78], 0x54
push eax
push 2
lea eax, [esp + 0x70]
mov dword [esp + 0x84], str.BaseNamedObjectsCor_Private_IPCBlock_v4_
push eax
mov dword [esp + 0x8c], 8
mov dword [esp + 0x9c], ebx
call sym.ProcessHacker.exe_PhFormatToBuffer
test al, al
je 0x4c7b0a
mov eax, dword [esp + 0x20]
add eax, 0xfffffffe
mov word [esp + 0x10], ax
add eax, 2
mov word [esp + 0x12], ax
lea eax, [esp + 0x90]
mov dword [esp + 0x14], eax
jmp 0x4c7b18
xor eax, eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x24], 0x18
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x24]
push eax
push 1
lea eax, [esp + 0x20]
mov dword [esp + 0x30], 0
push eax
mov dword [esp + 0x3c], 0x40
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
call dword [sym.imp.ntdll.dll_NtOpenSection]
lea ebx, [ebx]
test eax, eax
jns 0x4c7e43
cmp eax, 0xc0000022
je 0x4c7e4d
lea eax, [esp + 0x20]
mov dword [esp + 0x60], 1
push eax
push 0x100
lea eax, [esp + 0x98]
mov dword [esp + 0x78], 0x4e
push eax
push 2
lea eax, [esp + 0x70]
mov dword [esp + 0x84], str.BaseNamedObjectsCor_Private_IPCBlock_
push eax
mov dword [esp + 0x8c], 8
mov dword [esp + 0x9c], ebx
call sym.ProcessHacker.exe_PhFormatToBuffer
mov edi, edi
test al, al
je 0x4c7be5
mov eax, dword [esp + 0x20]
add eax, 0xfffffffe
mov word [esp + 0x10], ax
add eax, 2
mov word [esp + 0x12], ax
lea eax, [esp + 0x90]
mov dword [esp + 0x14], eax
jmp 0x4c7bf3
xor eax, eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x24], 0x18
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x24]
push eax
push 1
lea eax, [esp + 0x20]
mov dword [esp + 0x30], 0
push eax
mov dword [esp + 0x3c], 0x40
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
call dword [sym.imp.ntdll.dll_NtOpenSection]
mov ebx, eax
test ebx, ebx
jns 0x4c7e0c
nop
cmp ebx, 0xc0000022
je 0x4c7e16
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x88], eax
lea eax, [esp + 0x20]
push eax
push 0x100
lea eax, [esp + 0x98]
mov dword [esp + 0x68], 1
push eax
push 2
lea eax, [esp + 0x70]
mov dword [esp + 0x80], 0x24
push eax
mov dword [esp + 0x88], str.dotnet_diagnostic_
mov dword [esp + 0x8c], 8
call sym.ProcessHacker.exe_PhFormatToBuffer
mov edi, edi
test al, al
je 0x4c7e04
mov eax, dword [esp + 0x20]
add eax, 0xfffffffe
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x90]
mov dword [esp + 0x50], eax
lea eax, [esp + 0x4c]
push 1
push eax
call sym.ProcessHacker.exe_PhHashStringRef
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x10]
push 0x20
mov dword [esp + 0x30], eax
lea eax, [esp + 0x58]
push 3
push eax
lea eax, [esp + 0x30]
mov dword [esp + 0x1c], 0x260024
push eax
push 0x80100000
lea eax, [esp + 0x30]
mov dword [esp + 0x28], str.DeviceNamedPipe_
push eax
mov dword [esp + 0x3c], 0x18
mov dword [esp + 0x40], 0
mov dword [esp + 0x48], 0x40
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
call dword [sym.imp.ntdll.dll_NtOpenFile]
mov ebx, eax
test ebx, ebx
js 0x4c7e04
push 0x800
push 4
push dword [0x5b1dac]
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0x200
mov dword [esp + 0x50], 4
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ecx, dword [esp + 0x1c]
mov edx, 1
mov dword [esp + 0x48], eax
lea eax, [esp + 0x3c]
push eax
push 0x4c79a0
push 0
push 0
call fcn.004c80e0
mov ebx, eax
mov eax, dword [esp + 0x48]
test ebx, ebx
js 0x4c7dbd
xor ecx, ecx
mov ebx, 0xc0000001
cmp dword [esp + 0x3c], ecx
je 0x4c7dbd
lea ecx, [ecx]
mov edx, dword [esp + 0x4c]
cmp dword [eax], edx
mov edx, dword [esp + 0x3c]
je 0x4c7db7
add eax, dword [esp + 0x44]
inc ecx
cmp ecx, edx
jb 0x4c7da0
jmp 0x4c7db9
xor ebx, ebx
mov eax, dword [esp + 0x48]
push eax
push 0
push dword [0x5b1dac]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
push dword [esp + 0x1c]
call dword [sym.imp.ntdll.dll_NtClose]
test ebx, ebx
js 0x4c7e04
test edi, edi
je 0x4c7de1
mov byte [edi], 1
test esi, esi
je 0x4c7e5e
mov dword [esi], 0x18
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x188]
xor ecx, esp
call fcn.0051e068
mov esp, ebp
pop ebp
ret 0x14
lfence
jmp 0x4c7f17
push dword [esp + 0x18]
call dword [sym.imp.ntdll.dll_NtClose]
test edi, edi
je 0x4c7e1d
mov byte [edi], 1
lea ecx, [ecx]
test esi, esi
je 0x4c7e5e
mov dword [esi], 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x188]
xor ecx, esp
call fcn.0051e068
mov esp, ebp
pop ebp
ret 0x14
push dword [esp + 0x18]
call dword [sym.imp.ntdll.dll_NtClose]
test edi, edi
je 0x4c7e54
mov byte [edi], 1
test esi, esi
je 0x4c7e5e
mov dword [esi], 8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x188]
xor ecx, esp
call fcn.0051e068
mov esp, ebp
pop ebp
ret 0x14
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
test ecx, ecx
jne 0x4c7ebc
push ebx
mov edx, 0x1010
lea ecx, [esp + 0x1c]
call fcn.004c3180
test eax, eax
jns 0x4c7eb8
lfence
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x188]
xor ecx, esp
call fcn.0051e068
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [esp + 0x18]
lea eax, ds:[esp + 0x1c]
mov dword [esp + 0x54], 0x4c77c0
mov dword [esp + 0x58], eax
mov edx, 0x4c6280
push ecx
lea eax, [esp + 0x58]
mov dword [esp + 0x60], 0
push eax
call fcn.004c6140
mov ecx, dword [esp + 0x18]
mov ebx, eax
test ecx, ecx
je 0x4c7ef6
push ecx
call dword [sym.imp.ntdll.dll_NtClose]
mov edx, dword [esp + 0x1c]
test edi, edi
je 0x4c7f11
test edx, 0x30000
setne cl
test dl, 0x20
setne al
and cl, al
mov byte [edi], cl
test esi, esi
je 0x4c7f17
mov dword [esi], edx
mov ecx, dword [esp + 0x194]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0051e068
mov esp, ebp
pop ebp
ret 0x14