Function at 0x4f6be0
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x24
mov ebx, dword [sym.imp.kernel32.dll_CreateNamedPipeA]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x400
mov dword [esp + 0x10], 0x400
mov dword [esp + 0xc], 2
mov dword [esp + 8], 0
mov dword [esp + 4], 3
mov dword [esp], str..PiPe_tests_pipe.c
call ebx
sub esp, 0x20
mov esi, eax
call fcn.0057d110
mov dword [eax], 0x5ead94
mov dword [eax + 4], 0x2c6
xor eax, eax
cmp esi, 0xffffffff
setne al
mov dword [esp + 4], str.CreateNamedPipe_failed_n
mov dword [esp], eax
call fcn.004f6800
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x400
mov dword [esp + 0x10], 0x400
mov dword [esp + 0xc], 2
mov dword [esp + 8], 0
mov dword [esp + 4], 3
mov dword [esp], str..PiPe_tests_pipe.c
call ebx
sub esp, 0x20
mov edi, eax
call fcn.0057d110
mov dword [eax], 0x5ead94
mov dword [eax + 4], 0x2ce
xor eax, eax
cmp edi, 0xffffffff
setne al
mov dword [esp + 4], str.CreateNamedPipe_failed_n
mov dword [esp], eax
call fcn.004f6800
call fcn.0057d110
mov dword [eax], 0x5ead94
mov dword [eax + 4], 0x2d0
mov dword [esp], esi
mov esi, dword [sym.imp.kernel32.dll_CloseHandle]
call esi
sub esp, 4
mov dword [esp], eax
mov dword [esp + 4], str.CloseHandle_n
call fcn.004f6800
call fcn.0057d110
mov dword [eax], 0x5ead94
mov dword [eax + 4], 0x2d1
mov dword [esp], edi
call esi
sub esp, 4
mov dword [esp + 4], str.CloseHandle_n
mov dword [esp], eax
call fcn.004f6800
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x400
mov dword [esp + 0x10], 0x400
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], 3
mov dword [esp], str..PiPe_tests_pipe.c
call ebx
sub esp, 0x20
mov edi, eax
mov eax, 0x2da
call fcn.004f6080
xor eax, eax
cmp edi, 0xffffffff
mov dword [esp + 4], str.CreateNamedPipe_failed_n
setne al
mov dword [esp], eax
call fcn.004f6800
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x400
mov dword [esp + 0x10], 0x400
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], 3
mov dword [esp], str..PiPe_tests_pipe.c
call ebx
sub esp, 0x20
mov dword [ebp - 0x10], eax
call fcn.0057d110
mov dword [eax], 0x5ead94
mov dword [eax + 4], 0x2e2
xor eax, eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x4f7068
mov dword [esp], eax
mov dword [esp + 4], str.nMaxInstances_not_obeyed_n
call fcn.004f6800
call fcn.0057d110
mov dword [eax], 0x5ead94
mov dword [eax + 4], 0x2e5
mov dword [esp], edi
call esi
sub esp, 4
mov dword [esp + 4], str.CloseHandle_n
mov dword [esp], eax
call fcn.004f6800
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x400
mov dword [esp + 0x10], 0x400
mov dword [esp + 0xc], 2
mov dword [esp + 8], 0
mov dword [esp + 4], 3
mov dword [esp], str..PiPe_tests_pipe.c
call ebx
sub esp, 0x20
mov edi, eax
call fcn.0057d110
mov dword [eax], 0x5ead94
mov dword [eax + 4], 0x2ee
xor eax, eax
cmp edi, 0xffffffff
setne al
mov dword [esp + 4], str.CreateNamedPipe_failed_n
mov dword [esp], eax
call fcn.004f6800
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x400
mov dword [esp + 0x10], 0x400
mov dword [esp + 0xc], 2
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], str..PiPe_tests_pipe.c
call ebx
mov dword [ebp - 0x10], eax
sub esp, 0x20
mov eax, 0x2f6
call fcn.004f6080
xor eax, eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x4f7080
mov dword [esp], eax
mov dword [esp + 4], str.PIPE_ACCESS__mismatch_allowed_n
call fcn.004f6800
call fcn.0057d110
mov dword [eax], 0x5ead94
mov dword [eax + 4], 0x2f9
mov dword [esp], edi
call esi
sub esp, 4
mov dword [esp + 4], str.CloseHandle_n
mov dword [esp], eax
call fcn.004f6800
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x400
mov dword [esp + 0x10], 0x400
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], 3
mov dword [esp], str..PiPe_tests_pipe.c
call ebx
sub esp, 0x20
mov edi, eax
call fcn.0057d110
mov dword [eax], 0x5ead94
mov dword [eax + 4], 0x302
xor eax, eax
cmp edi, 0xffffffff
setne al
mov dword [esp + 4], str.CreateNamedPipe_failed_n
mov dword [esp], eax
call fcn.004f6800
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0x4d2
mov dword [esp + 0x14], 0x18
mov dword [esp + 0x10], 0x66
mov dword [esp + 0xc], 3
mov dword [esp + 8], 4
mov dword [esp + 4], 3
mov dword [esp], str..PiPe_tests_pipe.c
call ebx
sub esp, 0x20
mov ebx, eax
mov eax, 0x30a
call fcn.004f6080
xor eax, eax
cmp ebx, 0xffffffff
mov dword [esp + 4], str.CreateNamedPipe_failed_n
setne al
mov dword [esp], eax
call fcn.004f6800
call fcn.0057d110
mov dword [eax], 0x5ead94
mov dword [eax + 4], 0x30c
mov dword [esp], edi
call esi
sub esp, 4
mov dword [esp], eax
mov dword [esp + 4], str.CloseHandle_n
call fcn.004f6800
mov eax, 0x30d
call fcn.004f6080
mov dword [esp], ebx
call esi
sub esp, 4
mov dword [esp + 4], str.CloseHandle_n
mov dword [esp], eax
call fcn.004f6800
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword fs:[0x18]
cmp dword [eax + 0x34], 0xe7
sete al
movzx eax, al
jmp 0x4f6df6
mov eax, dword fs:[0x18]
cmp dword [eax + 0x34], 5
sete al
movzx eax, al
jmp 0x4f6efd