Function at 0x4fafb0
Capabilities:
Create pipe
Read file on windows
Read pipe
Write file on windows
Write pipe

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov edi, dword fs:[0x18]
sub esp, 0x70
mov eax, 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], 1
mov dword [esp + 8], 6
mov dword [esp + 4], 3
mov dword [esp], str..PiPe_tests_pipe.c
mov dword [ebp - 0x48], eax
call eax
sub esp, 0x20
mov ebx, eax
mov eax, 0x659
call fcn.004f6080
mov eax, dword [edi + 0x34]
cmp ebx, 0xffffffff
mov dword [esp + 4], str.CreateNamedPipe_failed_with__lu_n
mov dword [esp + 8], eax
setne al
movzx eax, al
mov dword [ebp - 0x38], ebx
lea ebx, [ebp - 0x30]
mov dword [esp], eax
call fcn.004f6800
mov ecx, dword [sym.imp.kernel32.dll_CreateFileA]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
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 - 0x40], ecx
call ecx
sub esp, 0x1c
mov esi, eax
mov eax, 0x65c
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
mov dword [ebp - 0x30], 0xdeadbeef
mov ecx, dword [sym.imp.kernel32.dll_WriteFile]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0xc
mov dword [esp + 4], 0x5ee71c
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
mov dword [ebp - 0x3c], ecx
call ecx
sub esp, 0x14
mov dword [ebp - 0x44], eax
mov eax, 0x660
call fcn.004f6080
mov eax, dword [edi + 0x34]
mov dword [esp + 4], str.WriteFile_failed_with__lu_n
mov dword [esp + 8], eax
mov ecx, dword [ebp - 0x44]
mov dword [esp], ecx
call fcn.004f6800
mov eax, 0x661
call fcn.004f6080
mov eax, dword [ebp - 0x30]
mov dword [esp + 4], str.expected_sizeof_testdata___got__lu_n
cmp eax, 0xc
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.004f6800
mov ecx, dword [sym.imp.kernel32.dll_PeekNamedPipe]
mov dword [ebp - 0x30], 0xdeadbeef
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], esi
mov dword [ebp - 0x4c], ecx
call ecx
sub esp, 0x18
mov dword [ebp - 0x44], eax
mov eax, 0x665
call fcn.004f6080
mov eax, dword [edi + 0x34]
mov dword [esp + 4], str.PeekNamedPipe_failed_with__lu_n
mov dword [esp + 8], eax
mov ecx, dword [ebp - 0x44]
mov dword [esp], ecx
call fcn.004f6800
mov eax, 0x666
call fcn.004f6080
mov eax, dword [ebp - 0x30]
mov dword [esp + 4], str.expected_sizeof_testdata___got__lu_n
cmp eax, 0xc
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.004f6800
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_CloseHandle]
mov dword [ebp - 0x38], eax
call eax
sub esp, 4
mov dword [ebp - 0x44], eax
mov eax, 0x669
call fcn.004f6080
mov eax, dword [edi + 0x34]
mov dword [esp + 4], str.CloseHandle_failed_with__lu_n
mov dword [esp + 8], eax
mov edx, dword [ebp - 0x44]
mov dword [esp], edx
call fcn.004f6800
mov dword [ebp - 0x30], 0xdeadbeef
xor edx, edx
xor eax, eax
mov dword [ebp + eax - 0x2c], edx
add eax, 4
cmp eax, 0x20
jb 0x4fb208
lea eax, [ebp - 0x2c]
mov dword [esp + 0x10], 0
mov dword [esp + 4], eax
mov eax, dword [sym.imp.kernel32.dll_ReadFile]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov dword [esp], esi
mov dword [ebp - 0x44], eax
call eax
sub esp, 0x14
mov edi, eax
mov eax, 0x66e
call fcn.004f6080
mov edx, dword fs:[0x18]
mov eax, dword [edx + 0x34]
mov dword [ebp - 0x50], edx
mov dword [esp], edi
mov dword [esp + 8], eax
mov dword [esp + 4], str.ReadFile_failed_with__lu_n
call fcn.004f6800
mov eax, 0x66f
call fcn.004f6080
mov eax, dword [ebp - 0x30]
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
mov dword [ebp - 0x30], 0xdeadbeef
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], esi
mov eax, dword [ebp - 0x4c]
call eax
sub esp, 0x18
mov edi, eax
mov eax, 0x673
call fcn.004f6080
mov edx, dword [ebp - 0x50]
mov eax, dword [edx + 0x34]
mov dword [esp + 4], str.PeekNamedPipe_failed_with__lu_n
mov dword [esp], edi
mov dword [esp + 8], eax
call fcn.004f6800
mov eax, 0x674
call fcn.004f6080
mov eax, dword [ebp - 0x30]
mov dword [esp + 4], str.expected_sizeof_testdata___got__lu_n
cmp eax, 0xc
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.004f6800
mov dword [ebp - 0x30], 0xdeadbeef
xor edx, edx
xor eax, eax
mov dword [ebp + eax - 0x2c], edx
add eax, 4
cmp eax, 0x20
jb 0x4fb326
lea eax, [ebp - 0x2c]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x20
mov dword [esp + 4], eax
mov dword [esp], esi
mov eax, dword [ebp - 0x44]
call eax
sub esp, 0x14
mov dword [ebp - 0x50], eax
mov eax, 0x679
call fcn.004f6080
mov edi, dword fs:[0x18]
mov eax, dword [edi + 0x34]
mov dword [esp + 4], str.ReadFile_failed_with__lu_n
mov dword [esp + 8], eax
mov edx, dword [ebp - 0x50]
mov dword [esp], edx
call fcn.004f6800
mov eax, 0x67a
call fcn.004f6080
mov eax, dword [ebp - 0x30]
mov dword [esp + 4], str.expected_sizeof_testdata___got__lu_n
cmp eax, 0xc
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.004f6800
lea ecx, [ebp - 0x34]
mov dword [esp], esi
mov dword [esp + 4], ecx
mov ecx, dword [sym.imp.kernel32.dll_GetNamedPipeHandleStateA]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [ebp - 0x5c], ecx
call ecx
sub esp, 0x1c
mov dword [ebp - 0x50], eax
mov eax, 0x67d
call fcn.004f6080
mov eax, dword [edi + 0x34]
mov dword [esp + 4], str.GetNamedPipeHandleState_failed_with__lu_n
mov dword [esp + 8], eax
mov edx, dword [ebp - 0x50]
mov dword [esp], edx
call fcn.004f6800
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x34], 2
mov dword [esp + 4], ecx
mov ecx, dword [sym.imp.kernel32.dll_SetNamedPipeHandleState]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp], esi
mov dword [ebp - 0x58], ecx
call ecx
sub esp, 0x10
mov dword [ebp - 0x50], eax
mov eax, 0x680
call fcn.004f6080
mov eax, dword [edi + 0x34]
mov dword [esp + 4], str.SetNamedPipeHandleState_failed_with__lu_n
mov dword [esp + 8], eax
mov edx, dword [ebp - 0x50]
mov dword [esp], edx
call fcn.004f6800
lea ecx, [ebp - 0x2c]
mov dword [edi + 0x34], 0xdeadbeef
mov dword [esp + 4], ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov dword [esp], esi
mov eax, dword [ebp - 0x44]
call eax
sub esp, 0x14
mov dword [ebp - 0x50], eax
mov eax, 0x684
call fcn.004f6080
mov dword [esp + 4], 0x5ebe84
mov edx, dword [ebp - 0x50]
xor eax, eax
test edx, edx
sete al
mov dword [esp], eax
call fcn.004f6800
mov eax, 0x685
call fcn.004f6080
mov eax, dword [edi + 0x34]
mov dword [esp + 4], str.expected_ERROR_BROKEN_PIPE__got__lu_n
mov dword [esp + 8], eax
xor eax, eax
cmp dword [edi + 0x34], 0x6d
sete al
mov dword [esp], eax
call fcn.004f6800
mov dword [ebp - 0x30], 0xdeadbeef
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], esi
mov eax, dword [ebp - 0x4c]
call eax
mov dword [ebp - 0x50], eax
sub esp, 0x18
mov eax, 0x689
call fcn.004f6080
mov edx, dword [ebp - 0x50]
mov ecx, dword [edi + 0x34]
xor eax, eax
test edx, edx
jne 0x4fb542
xor eax, eax
cmp ecx, 0x6d
sete al
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
mov dword [esp], eax
mov dword [esp + 4], str.PeekNamedPipe_returned__x___lu__n
call fcn.004f6800
mov eax, 0x68b
call fcn.004f6080
mov eax, dword [ebp - 0x30]
mov dword [esp + 4], str.numbytes___lu_n
cmp eax, 0xdeadbeef
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
mov edi, dword fs:[0x18]
call fcn.004f6800
mov dword [edi + 0x34], 0xdeadbeef
mov dword [esp], esi
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0xc
mov dword [esp + 4], 0x5ee71c
mov eax, dword [ebp - 0x3c]
call eax
sub esp, 0x14
mov dword [ebp - 0x50], eax
mov eax, 0x68f
call fcn.004f6080
mov dword [esp + 4], str.WriteFile_unexpectedly_succeeded_n
mov edx, dword [ebp - 0x50]
xor eax, eax
test edx, edx
sete al
mov dword [esp], eax
call fcn.004f6800
mov eax, 0x690
call fcn.004f6080
mov eax, dword [edi + 0x34]
mov dword [esp + 4], str.expected_ERROR_NO_DATA__got__lu_n
mov dword [esp + 8], eax
xor eax, eax
cmp dword [edi + 0x34], 0xe8
sete al
mov dword [esp], eax
call fcn.004f6800
mov dword [esp], esi
mov esi, dword [ebp - 0x38]
call esi
sub esp, 4
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], 6
mov dword [esp + 4], 3
mov dword [esp], str..PiPe_tests_pipe.c
mov edx, dword [ebp - 0x48]
call edx
sub esp, 0x20
mov esi, eax
mov eax, 0x697
call fcn.004f6080
mov eax, dword [edi + 0x34]
cmp esi, 0xffffffff
mov dword [esp + 4], str.CreateNamedPipe_failed_with__lu_n
mov dword [esp + 8], eax
setne al
movzx eax, al
mov dword [ebp - 0x50], esi
mov dword [esp], eax
call fcn.004f6800
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
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 edx, dword [ebp - 0x40]
call edx
sub esp, 0x1c
mov esi, eax
mov eax, 0x69a
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
mov dword [ebp - 0x30], 0xdeadbeef
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], 0x5ee71c
mov eax, dword [ebp - 0x50]
mov dword [esp], eax
mov ecx, dword [ebp - 0x3c]
call ecx
sub esp, 0x14
mov dword [ebp - 0x54], eax
mov eax, 0x69e
call fcn.004f6080
mov eax, dword [edi + 0x34]
mov dword [esp + 4], str.WriteFile_failed_with__lu_n
mov dword [esp + 8], eax
mov ecx, dword [ebp - 0x54]
mov dword [esp], ecx
call fcn.004f6800
mov eax, 0x69f
call fcn.004f6080
mov eax, dword [ebp - 0x30]
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
mov eax, dword [ebp - 0x50]
mov dword [esp], eax
mov eax, dword [ebp - 0x38]
call eax
sub esp, 4
mov dword [ebp - 0x50], eax
mov eax, 0x6a2
call fcn.004f6080
mov eax, dword [edi + 0x34]
mov dword [esp + 4], str.CloseHandle_failed_with__lu_n
mov dword [esp + 8], eax
mov edx, dword [ebp - 0x50]
mov dword [esp], edx
call fcn.004f6800
mov dword [ebp - 0x30], 0xdeadbeef
xor edx, edx
xor eax, eax
mov dword [ebp + eax - 0x2c], edx
add eax, 4
cmp eax, 0x20
jb 0x4fb7bb
lea eax, [ebp - 0x2c]
mov dword [esp], esi
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x20
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x44]
call eax
sub esp, 0x14
mov dword [ebp - 0x50], eax
mov eax, 0x6a7
mov edi, dword fs:[0x18]
call fcn.004f6080
mov eax, dword [edi + 0x34]
mov dword [esp + 4], str.ReadFile_failed_with__lu_n
mov dword [esp + 8], eax
mov edx, dword [ebp - 0x50]
mov dword [esp], edx
call fcn.004f6800
mov eax, 0x6a8
call fcn.004f6080
mov eax, dword [ebp - 0x30]
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
lea ecx, [ebp - 0x2c]
mov dword [edi + 0x34], 0xdeadbeef
mov dword [esp + 4], ecx
mov dword [esp], esi
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov eax, dword [ebp - 0x44]
call eax
sub esp, 0x14
mov dword [ebp - 0x50], eax
mov eax, 0x6ac
call fcn.004f6080
mov dword [esp + 4], 0x5ebe84
mov edx, dword [ebp - 0x50]
xor eax, eax
test edx, edx
sete al
mov dword [esp], eax
call fcn.004f6800
mov eax, 0x6ad
call fcn.004f6080
mov eax, dword [edi + 0x34]
mov dword [esp + 4], str.expected_ERROR_BROKEN_PIPE__got__lu_n
mov dword [esp + 8], eax
xor eax, eax
cmp dword [edi + 0x34], 0x6d
sete al
mov dword [esp], eax
call fcn.004f6800
lea ecx, [ebp - 0x34]
mov dword [esp], esi
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], ecx
mov ecx, dword [ebp - 0x5c]
call ecx
sub esp, 0x1c
mov dword [ebp - 0x50], eax
mov eax, 0x6b0
call fcn.004f6080
mov eax, dword [edi + 0x34]
mov dword [esp + 4], str.GetNamedPipeHandleState_failed_with__lu_n
mov dword [esp + 8], eax
mov edx, dword [ebp - 0x50]
mov dword [esp], edx
call fcn.004f6800
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x34], 2
mov dword [esp], esi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], ecx
mov ecx, dword [ebp - 0x58]
call ecx
sub esp, 0x10
mov dword [ebp - 0x50], eax
mov eax, 0x6b3
call fcn.004f6080
mov eax, dword [edi + 0x34]
mov dword [esp + 4], str.SetNamedPipeHandleState_failed_with__lu_n
mov dword [esp + 8], eax
mov edx, dword [ebp - 0x50]
mov dword [esp], edx
call fcn.004f6800
lea ecx, [ebp - 0x2c]
mov dword [edi + 0x34], 0xdeadbeef
mov dword [esp + 4], ecx
mov dword [esp], esi
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov eax, dword [ebp - 0x44]
call eax
sub esp, 0x14
mov dword [ebp - 0x50], eax
mov eax, 0x6b7
call fcn.004f6080
mov dword [esp + 4], 0x5ebe84
mov edx, dword [ebp - 0x50]
xor eax, eax
test edx, edx
sete al
mov dword [esp], eax
call fcn.004f6800
mov eax, 0x6b8
call fcn.004f6080
mov eax, dword [edi + 0x34]
mov dword [esp + 4], str.expected_ERROR_BROKEN_PIPE__got__lu_n
mov dword [esp + 8], eax
xor eax, eax
cmp dword [edi + 0x34], 0x6d
sete al
mov dword [esp], eax
call fcn.004f6800
mov dword [edi + 0x34], 0xdeadbeef
mov dword [esp], esi
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0xc
mov dword [esp + 4], 0x5ee71c
mov eax, dword [ebp - 0x3c]
call eax
sub esp, 0x14
mov dword [ebp - 0x50], eax
mov eax, 0x6bc
call fcn.004f6080
mov dword [esp + 4], str.WriteFile_unexpectedly_succeeded_n
mov edx, dword [ebp - 0x50]
xor eax, eax
test edx, edx
sete al
mov dword [esp], eax
call fcn.004f6800
mov eax, 0x6bd
call fcn.004f6080
mov eax, dword [edi + 0x34]
mov dword [esp + 4], str.expected_ERROR_NO_DATA__got__lu_n
mov dword [esp + 8], eax
xor eax, eax
cmp dword [edi + 0x34], 0xe8
sete al
mov dword [esp], eax
call fcn.004f6800
mov dword [esp], esi
mov esi, dword [ebp - 0x38]
call esi
sub esp, 4
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], 6
mov dword [esp + 4], 3
mov dword [esp], str..PiPe_tests_pipe.c
mov edx, dword [ebp - 0x48]
call edx
sub esp, 0x20
mov esi, eax
mov eax, 0x6c6
call fcn.004f6080
mov eax, dword [edi + 0x34]
mov dword [esp + 4], str.CreateNamedPipe_failed_with__lu_n
mov dword [esp + 8], eax
xor eax, eax
cmp esi, 0xffffffff
setne al
mov dword [esp], eax
call fcn.004f6800
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
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 edx, dword [ebp - 0x40]
call edx
sub esp, 0x1c
mov dword [ebp - 0x50], eax
mov eax, 0x6c9
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 dword [ebp - 0x50], 0xffffffff
setne al
mov dword [esp], eax
call fcn.004f6800
mov dword [ebp - 0x30], 0xdeadbeef
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0xc
mov dword [esp + 4], 0x5ee71c
mov eax, dword [ebp - 0x50]
mov dword [esp], eax
mov ecx, dword [ebp - 0x3c]
call ecx
sub esp, 0x14
mov dword [ebp - 0x54], eax
mov eax, 0x6cd
call fcn.004f6080
mov eax, dword [edi + 0x34]
mov dword [esp + 4], str.WriteFile_failed_with__lu_n
mov dword [esp + 8], eax
mov ecx, dword [ebp - 0x54]
mov dword [esp], ecx
call fcn.004f6800
mov eax, 0x6ce
call fcn.004f6080
mov eax, dword [ebp - 0x30]
mov dword [esp + 4], str.expected_sizeof_testdata___got__lu_n
cmp eax, 0xc
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.004f6800
mov dword [ebp - 0x30], 0xdeadbeef
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], esi
mov ecx, dword [ebp - 0x4c]
call ecx
sub esp, 0x18
mov dword [ebp - 0x54], eax
mov eax, 0x6d2
call fcn.004f6080
mov eax, dword [edi + 0x34]
mov dword [esp + 4], str.PeekNamedPipe_failed_with__lu_n
mov dword [esp + 8], eax
mov ecx, dword [ebp - 0x54]
mov dword [esp], ecx
call fcn.004f6800
mov eax, 0x6d3
call fcn.004f6080
mov eax, dword [ebp - 0x30]
mov dword [esp + 4], str.expected_sizeof_testdata___got__lu_n
cmp eax, 0xc
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.004f6800
mov eax, dword [ebp - 0x50]
mov dword [esp], eax
mov eax, dword [ebp - 0x38]
call eax
sub esp, 4
mov dword [ebp - 0x50], eax
mov eax, 0x6d6
call fcn.004f6080
mov eax, dword [edi + 0x34]
mov dword [esp + 4], str.CloseHandle_failed_with__lu_n
mov dword [esp + 8], eax
mov edx, dword [ebp - 0x50]
mov dword [esp], edx
call fcn.004f6800
mov dword [ebp - 0x30], 0xdeadbeef
xor edx, edx
xor eax, eax
mov dword [ebp + eax - 0x2c], edx
add eax, 4
cmp eax, 0x20
jb 0x4fbca5
lea eax, [ebp - 0x2c]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], esi
mov eax, dword [ebp - 0x44]
call eax
sub esp, 0x14
mov edi, eax
mov eax, 0x6db
call fcn.004f6080
mov eax, 1
mov ecx, dword fs:[0x18]
mov edx, dword [ecx + 0x34]
test edi, edi
jne 0x4fbd01
xor eax, eax
cmp edx, 0xea
sete al
mov dword [esp + 8], edx
mov dword [esp], eax
mov dword [esp + 4], str.ReadFile_failed_with__lu_n
call fcn.004f6800
mov eax, 0x6dd
call fcn.004f6080
mov eax, dword [ebp - 0x30]
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
mov dword [ebp - 0x30], 0xdeadbeef
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], esi
mov eax, dword [ebp - 0x4c]
call eax
sub esp, 0x18
mov edi, eax
mov eax, 0x6e1
call fcn.004f6080
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 4], str.PeekNamedPipe_failed_with__lu_n
mov dword [esp], edi
mov dword [esp + 8], eax
call fcn.004f6800
mov eax, 0x6e2
call fcn.004f6080
mov eax, dword [ebp - 0x30]
mov dword [esp + 4], str.expected_sizeof_testdata___got__lu_n
cmp eax, 0xc
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.004f6800
mov dword [ebp - 0x30], 0xdeadbeef
xor edx, edx
xor eax, eax
mov dword [ebp + eax - 0x2c], edx
add eax, 4
cmp eax, 0x20
jb 0x4fbdd2
lea eax, [ebp - 0x2c]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x20
mov dword [esp + 4], eax
mov dword [esp], esi
mov eax, dword [ebp - 0x44]
call eax
sub esp, 0x14
mov dword [ebp - 0x50], eax
mov eax, 0x6e7
call fcn.004f6080
mov edi, dword fs:[0x18]
mov eax, dword [edi + 0x34]
mov dword [esp + 4], str.ReadFile_failed_with__lu_n
mov dword [esp + 8], eax
mov edx, dword [ebp - 0x50]
mov dword [esp], edx
call fcn.004f6800
mov eax, 0x6e8
call fcn.004f6080
mov eax, dword [ebp - 0x30]
mov dword [esp + 4], str.expected_sizeof_testdata___got__lu_n
cmp eax, 0xc
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.004f6800
lea ecx, [ebp - 0x34]
mov dword [esp], esi
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], ecx
mov ecx, dword [ebp - 0x5c]
call ecx
sub esp, 0x1c
mov dword [ebp - 0x50], eax
mov eax, 0x6eb
call fcn.004f6080
mov eax, dword [edi + 0x34]
mov dword [esp + 4], str.GetNamedPipeHandleState_failed_with__lu_n
mov dword [esp + 8], eax
mov edx, dword [ebp - 0x50]
mov dword [esp], edx
call fcn.004f6800
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x34], 2
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], ecx
mov dword [esp], esi
mov ecx, dword [ebp - 0x58]
call ecx
sub esp, 0x10
mov dword [ebp - 0x50], eax
mov eax, 0x6ee
call fcn.004f6080
mov eax, dword [edi + 0x34]
mov dword [esp + 4], str.SetNamedPipeHandleState_failed_with__lu_n
mov dword [esp + 8], eax
mov edx, dword [ebp - 0x50]
mov dword [esp], edx
call fcn.004f6800
lea ecx, [ebp - 0x2c]
mov dword [edi + 0x34], 0xdeadbeef
mov dword [esp + 4], ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov dword [esp], esi
mov eax, dword [ebp - 0x44]
call eax
sub esp, 0x14
mov dword [ebp - 0x50], eax
mov eax, 0x6f2
call fcn.004f6080
mov dword [esp + 4], 0x5ebe84
mov edx, dword [ebp - 0x50]
xor eax, eax
test edx, edx
sete al
mov dword [esp], eax
call fcn.004f6800
mov eax, 0x6f3
call fcn.004f6080
mov eax, dword [edi + 0x34]
mov dword [esp + 4], str.expected_ERROR_BROKEN_PIPE__got__lu_n
mov dword [esp + 8], eax
xor eax, eax
cmp dword [edi + 0x34], 0x6d
sete al
mov dword [esp], eax
call fcn.004f6800
mov dword [ebp - 0x30], 0xdeadbeef
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], esi
mov eax, dword [ebp - 0x4c]
call eax
mov dword [ebp - 0x4c], eax
sub esp, 0x18
mov eax, 0x6f7
call fcn.004f6080
mov edx, dword [ebp - 0x4c]
mov ecx, dword [edi + 0x34]
xor eax, eax
test edx, edx
jne 0x4fbfe2
xor eax, eax
cmp ecx, 0x6d
sete al
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
mov dword [esp], eax
mov dword [esp + 4], str.PeekNamedPipe_returned__x___lu__n
call fcn.004f6800
mov eax, 0x6f9
call fcn.004f6080
mov eax, dword [ebp - 0x30]
mov dword [esp + 4], str.numbytes___lu_n
cmp eax, 0xdeadbeef
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
mov edi, dword fs:[0x18]
call fcn.004f6800
mov dword [edi + 0x34], 0xdeadbeef
mov dword [esp], esi
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0xc
mov dword [esp + 4], 0x5ee71c
mov eax, dword [ebp - 0x3c]
call eax
sub esp, 0x14
mov dword [ebp - 0x4c], eax
mov eax, 0x6fd
call fcn.004f6080
mov dword [esp + 4], str.WriteFile_unexpectedly_succeeded_n
mov edx, dword [ebp - 0x4c]
xor eax, eax
test edx, edx
sete al
mov dword [esp], eax
call fcn.004f6800
mov eax, 0x6fe
call fcn.004f6080
mov eax, dword [edi + 0x34]
mov dword [esp + 4], str.expected_ERROR_NO_DATA__got__lu_n
mov dword [esp + 8], eax
xor eax, eax
cmp dword [edi + 0x34], 0xe8
sete al
mov dword [esp], eax
call fcn.004f6800
mov dword [esp], esi
mov esi, dword [ebp - 0x38]
call esi
sub esp, 4
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], 6
mov dword [esp + 4], 3
mov dword [esp], str..PiPe_tests_pipe.c
mov edx, dword [ebp - 0x48]
call edx
sub esp, 0x20
mov esi, eax
mov eax, 0x705
call fcn.004f6080
mov eax, dword [edi + 0x34]
mov dword [esp + 4], str.CreateNamedPipe_failed_with__lu_n
mov dword [esp + 8], eax
xor eax, eax
cmp esi, 0xffffffff
setne al
mov dword [esp], eax
call fcn.004f6800
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
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 edx, dword [ebp - 0x40]
call edx
sub esp, 0x1c
mov dword [ebp - 0x40], eax
mov eax, 0x708
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 dword [ebp - 0x40], 0xffffffff
setne al
mov dword [esp], eax
call fcn.004f6800
mov dword [ebp - 0x30], 0xdeadbeef
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], 0x5ee71c
mov eax, dword [ebp - 0x40]
mov dword [esp], eax
mov ecx, dword [ebp - 0x3c]
call ecx
sub esp, 0x14
mov dword [ebp - 0x48], eax
mov eax, 0x70c
call fcn.004f6080
mov eax, dword [edi + 0x34]
mov dword [esp + 4], str.WriteFile_failed_with__lu_n
mov dword [esp + 8], eax
mov ecx, dword [ebp - 0x48]
mov dword [esp], ecx
call fcn.004f6800
mov eax, 0x70d
call fcn.004f6080
mov eax, dword [ebp - 0x30]
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
mov eax, dword [ebp - 0x40]
mov dword [esp], eax
mov eax, dword [ebp - 0x38]
call eax
sub esp, 4
mov dword [ebp - 0x40], eax
mov eax, 0x710
call fcn.004f6080
mov eax, dword [edi + 0x34]
mov dword [esp + 4], str.CloseHandle_failed_with__lu_n
mov dword [esp + 8], eax
mov edx, dword [ebp - 0x40]
mov dword [esp], edx
call fcn.004f6800
mov dword [ebp - 0x30], 0xdeadbeef
xor edx, edx
xor eax, eax
mov dword [ebp + eax - 0x2c], edx
add eax, 4
cmp eax, 0x20
jb 0x4fc259
lea eax, [ebp - 0x2c]
mov dword [esp + 0xc], ebx
mov dword [esp], esi
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0x20
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x44]
call eax
sub esp, 0x14
mov dword [ebp - 0x40], eax
mov eax, 0x715
mov edi, dword fs:[0x18]
call fcn.004f6080
mov eax, dword [edi + 0x34]
mov dword [esp + 4], str.ReadFile_failed_with__lu_n
mov dword [esp + 8], eax
mov edx, dword [ebp - 0x40]
mov dword [esp], edx
call fcn.004f6800
mov eax, 0x716
call fcn.004f6080
mov eax, dword [ebp - 0x30]
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
lea ecx, [ebp - 0x2c]
mov dword [edi + 0x34], 0xdeadbeef
mov dword [esp + 4], ecx
mov dword [esp + 0xc], ebx
mov dword [esp], esi
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0
mov eax, dword [ebp - 0x44]
call eax
sub esp, 0x14
mov dword [ebp - 0x40], eax
mov eax, 0x71a
call fcn.004f6080
mov dword [esp + 4], 0x5ebe84
mov edx, dword [ebp - 0x40]
xor eax, eax
test edx, edx
sete al
mov dword [esp], eax
call fcn.004f6800
mov eax, 0x71b
call fcn.004f6080
mov eax, dword [edi + 0x34]
mov dword [esp + 4], str.expected_ERROR_BROKEN_PIPE__got__lu_n
mov dword [esp + 8], eax
xor eax, eax
cmp dword [edi + 0x34], 0x6d
sete al
mov dword [esp], eax
call fcn.004f6800
lea ecx, [ebp - 0x34]
mov dword [esp], esi
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], ecx
mov ecx, dword [ebp - 0x5c]
call ecx
sub esp, 0x1c
mov dword [ebp - 0x40], eax
mov eax, 0x71e
call fcn.004f6080
mov eax, dword [edi + 0x34]
mov dword [esp + 4], str.GetNamedPipeHandleState_failed_with__lu_n
mov dword [esp + 8], eax
mov edx, dword [ebp - 0x40]
mov dword [esp], edx
call fcn.004f6800
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x34], 2
mov dword [esp], esi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], ecx
mov ecx, dword [ebp - 0x58]
call ecx
sub esp, 0x10
mov dword [ebp - 0x40], eax
mov eax, 0x721
call fcn.004f6080
mov eax, dword [edi + 0x34]
mov dword [esp + 4], str.SetNamedPipeHandleState_failed_with__lu_n
mov dword [esp + 8], eax
mov edx, dword [ebp - 0x40]
mov dword [esp], edx
call fcn.004f6800
lea ecx, [ebp - 0x2c]
mov dword [edi + 0x34], 0xdeadbeef
mov dword [esp + 4], ecx
mov dword [esp + 0xc], ebx
mov dword [esp], esi
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0
mov eax, dword [ebp - 0x44]
call eax
sub esp, 0x14
mov dword [ebp - 0x40], eax
mov eax, 0x725
call fcn.004f6080
mov dword [esp + 4], 0x5ebe84
mov edx, dword [ebp - 0x40]
xor eax, eax
test edx, edx
sete al
mov dword [esp], eax
call fcn.004f6800
mov eax, 0x726
call fcn.004f6080
mov eax, dword [edi + 0x34]
mov dword [esp + 4], str.expected_ERROR_BROKEN_PIPE__got__lu_n
mov dword [esp + 8], eax
xor eax, eax
cmp dword [edi + 0x34], 0x6d
sete al
mov dword [esp], eax
call fcn.004f6800
mov dword [edi + 0x34], 0xdeadbeef
mov dword [esp + 0xc], ebx
mov dword [esp], esi
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0xc
mov dword [esp + 4], 0x5ee71c
mov eax, dword [ebp - 0x3c]
call eax
sub esp, 0x14
mov ebx, eax
mov eax, 0x72a
call fcn.004f6080
xor eax, eax
test ebx, ebx
mov dword [esp + 4], str.WriteFile_unexpectedly_succeeded_n
sete al
mov dword [esp], eax
call fcn.004f6800
mov eax, 0x72b
call fcn.004f6080
mov eax, dword [edi + 0x34]
mov dword [esp + 4], str.expected_ERROR_NO_DATA__got__lu_n
mov dword [esp + 8], eax
xor eax, eax
cmp dword [edi + 0x34], 0xe8
sete al
mov dword [esp], eax
call fcn.004f6800
mov dword [esp], esi
mov eax, dword [ebp - 0x38]
call eax
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret