Function at 0x4fd3c0
Capabilities:
Connect pipe
Create pipe

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov edi, dword fs:[0x18]
sub esp, 0x4c
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_CreateEventA]
sub esp, 0x10
mov esi, eax
call fcn.0057d110
mov dword [eax], 0x5ead94
mov dword [eax + 4], 0x947
mov eax, dword [edi + 0x34]
mov dword [esp + 4], str.CreateEventA_failed_with__lu_n
mov dword [esp + 8], eax
xor eax, eax
test esi, esi
setne al
mov dword [esp], eax
call fcn.004f6800
mov ecx, dword [sym.imp.kernel32.dll_CreateNamedPipeA]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0xffffffff
mov dword [esp + 0x14], 0x400
mov dword [esp + 0x10], 0x400
mov dword [esp + 0xc], 1
mov dword [esp + 8], 6
mov dword [esp + 4], 0x40000003
mov dword [esp], str..PiPe_tests_pipe.c
mov dword [ebp - 0x38], ecx
call ecx
sub esp, 0x20
mov ebx, eax
call fcn.0057d110
mov dword [eax], 0x5ead94
mov dword [eax + 4], 0x94c
mov eax, dword [edi + 0x34]
mov dword [esp + 4], str.CreateNamedPipe_failed_with__lu_n
mov dword [esp + 8], eax
xor eax, eax
cmp ebx, 0xffffffff
setne al
mov dword [esp], eax
call fcn.004f6800
lea edx, [ebp - 0x20]
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [esp + 4], edx
mov edx, dword [sym.imp.kernel32.dll_ConnectNamedPipe]
mov dword [esp], ebx
mov dword [ebp - 0x34], edx
call edx
mov esi, dword [edi + 0x34]
sub esp, 8
mov dword [ebp - 0x2c], eax
call fcn.0057d110
mov dword [eax], 0x5ead94
mov dword [eax + 4], 0x952
xor eax, eax
mov dword [esp + 4], str.ConnectNamedPipe_succeeded_n
mov edx, dword [ebp - 0x2c]
test edx, edx
sete al
mov dword [esp], eax
call fcn.004f6800
mov eax, 0x953
call fcn.004f6080
xor eax, eax
cmp esi, 0x3e5
mov dword [esp + 8], esi
sete al
mov dword [esp + 4], 0x5ec380
mov dword [esp], eax
call fcn.004f6800
mov ecx, dword [sym.imp.kernel32.dll_CreateFileA]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x40000000
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0xc0000000
mov dword [esp], str..PiPe_tests_pipe.c
mov dword [ebp - 0x30], ecx
call ecx
sub esp, 0x1c
mov esi, eax
mov eax, 0x957
call fcn.004f6080
mov eax, dword [edi + 0x34]
mov dword [esp + 4], str.CreateFile_failed_with__lu_n
mov dword [esp + 8], eax
xor eax, eax
cmp esi, 0xffffffff
setne al
mov dword [esp], eax
call fcn.004f6800
lea edx, [ebp - 0x20]
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0xdeadbeef
mov dword [esp + 4], edx
mov dword [esp], ebx
mov dword [esp + 0xc], 1
mov dword [esp + 8], eax
call dword [sym.imp.kernel32.dll_GetOverlappedResult]
sub esp, 0x10
mov dword [ebp - 0x2c], eax
call fcn.0057d110
mov dword [eax], 0x5ead94
mov dword [eax + 4], 0x95b
xor eax, eax
mov dword [esp + 4], str.GetOverlappedResult_failed_n
cmp dword [ebp - 0x2c], 1
sete al
mov dword [esp], eax
call fcn.004f6800
mov eax, 0x95c
call fcn.004f6080
mov eax, dword [ebp - 0x24]
mov dword [esp + 4], 0x5ebe16
test eax, eax
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.004f6800
call fcn.0057d110
mov dword [eax], 0x5ead94
mov dword [eax + 4], 0x95d
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], str.expected_STATUS_SUCCESS__got__08Ix_n
test eax, eax
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.004f6800
mov dword [esp], esi
mov esi, dword [sym.imp.kernel32.dll_CloseHandle]
call esi
sub esp, 4
mov dword [esp], ebx
call esi
sub esp, 4
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0xffffffff
mov dword [esp + 0x14], 0x400
mov dword [esp + 0x10], 0x400
mov dword [esp + 0xc], 1
mov dword [esp + 8], 6
mov dword [esp + 4], 0x40000003
mov dword [esp], str..PiPe_tests_pipe.c
mov ecx, dword [ebp - 0x38]
call ecx
sub esp, 0x20
mov ebx, eax
call fcn.0057d110
mov dword [eax], 0x5ead94
mov dword [eax + 4], 0x965
mov eax, dword [edi + 0x34]
mov dword [esp + 4], str.CreateNamedPipe_failed_with__lu_n
mov dword [esp + 8], eax
xor eax, eax
cmp ebx, 0xffffffff
setne al
mov dword [esp], eax
call fcn.004f6800
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x40000000
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0xc0000000
mov dword [esp], str..PiPe_tests_pipe.c
mov ecx, dword [ebp - 0x30]
call ecx
sub esp, 0x1c
mov dword [ebp - 0x2c], eax
call fcn.0057d110
mov dword [eax], 0x5ead94
mov dword [eax + 4], 0x969
mov eax, dword [edi + 0x34]
mov dword [esp + 4], str.CreateFile_failed_with__lu_n
mov dword [esp + 8], eax
xor eax, eax
cmp dword [ebp - 0x2c], 0xffffffff
setne al
mov dword [esp], eax
call fcn.004f6800
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], eax
mov dword [esp + 4], ecx
mov dword [esp], ebx
mov edx, dword [ebp - 0x34]
call edx
mov edx, dword [edi + 0x34]
sub esp, 8
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], edx
call fcn.0057d110
mov dword [eax], 0x5ead94
mov dword [eax + 4], 0x96f
xor eax, eax
mov dword [esp + 4], str.ConnectNamedPipe_succeeded_n
mov ecx, dword [ebp - 0x34]
test ecx, ecx
sete al
mov dword [esp], eax
call fcn.004f6800
call fcn.0057d110
mov edx, dword [ebp - 0x30]
mov dword [eax], 0x5ead94
mov dword [eax + 4], 0x970
xor eax, eax
cmp edx, 0x217
sete al
mov dword [esp + 8], edx
mov dword [esp], eax
mov dword [esp + 4], str.expected_ERROR_PIPE_CONNECTED__got__lu_n
call fcn.004f6800
call fcn.0057d110
mov dword [eax], 0x5ead94
mov dword [eax + 4], 0x971
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], str.expected_STATUS_PENDING__got__08Ix_n
cmp eax, 0x103
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.004f6800
mov edx, dword [ebp - 0x2c]
mov dword [esp], edx
call esi
sub esp, 4
mov dword [esp], ebx
call esi
mov eax, dword [ebp - 0x28]
sub esp, 4
mov dword [esp], eax
call esi
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret