Function at 0x4013d5
Capabilities:
Read pipe
Terminate process
Write pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x484
mov eax, dword [0x404008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [ebp - 0x434], esi
push dword [esi + 0x10]
push ebx
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
jne 0x401411
call fcn.00401301
jmp 0x40164d
xor eax, eax
mov word [ebp - 6], ax
mov eax, dword [esi + 0x18]
push 0x403040
mov dword [ebp - 0x430], eax
lea eax, [ebp - 0x404]
push 0x200
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov eax, dword [ebp - 0x430]
add esp, 0xc
test eax, eax
je 0x401458
push eax
lea ecx, [ebp - 0x404]
call fcn.00401280
test eax, eax
js 0x401642
push str.MicrosoftVisualStudioProcessLaunchNotify_
lea ecx, [ebp - 0x404]
call fcn.00401280
test eax, eax
js 0x401642
push 0x27
lea eax, [ebp - 0x484]
push eax
push esi
call dword [sym.imp.ole32.dll_StringFromGUID2]
lea eax, [ebp - 0x484]
push eax
lea ecx, [ebp - 0x404]
call fcn.00401280
test eax, eax
js 0x401642
mov esi, ebx
cmp esi, 0xffffffff
je 0x4014a5
test esi, esi
jne 0x401515
push 0x3a98
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
je 0x40161f
push ebx
push 0x110080
push 3
push ebx
push ebx
push 0xc0000000
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4014e6
test esi, esi
jne 0x40149c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe7
je 0x40149c
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov eax, 0x80004005
test ebx, ebx
cmovns ebx, eax
test esi, esi
je 0x401644
jmp 0x40153a
push ebx
push ebx
lea eax, [ebp - 0x410]
mov dword [ebp - 0x410], 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
test eax, eax
jne 0x401546
call fcn.00401301
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x401644
mov ecx, dword [ebp - 0x434]
push ebx
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x41c], eax
mov eax, dword [ecx + 0x14]
mov dword [ebp - 0x418], eax
lea eax, [ebp - 0x414]
push eax
push 0x10
lea eax, [ebp - 0x42c]
push eax
push 8
lea eax, [ebp - 0x41c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_TransactNamedPipe]
test eax, eax
je 0x401533
cmp dword [ebp - 0x414], 0x10
je 0x40159d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, 0x8000ffff
jmp 0x401644
mov eax, dword [ebp - 0x42c]
mov dword [ebp - 0x40c], eax
mov eax, dword [ebp - 0x424]
push 0xffffffffffffffff
mov dword [ebp - 0x408], eax
lea eax, [ebp - 0x40c]
push ebx
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
jne 0x4015d3
mov dword [ebp - 0x430], ebx
jmp 0x4015f8
cmp eax, 1
jne 0x4015ed
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [ebp - 0x430], 0x80010007
jmp 0x4015f8
call fcn.00401301
mov dword [ebp - 0x430], eax
push dword [ebp + ebx*4 - 0x40c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, 2
jb 0x4015f8
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
call esi
mov eax, dword [ebp - 0x430]
jmp 0x40164d
call fcn.00401301
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x434], eax
test esi, esi
je 0x401637
push esi
call ebx
push edi
call ebx
mov eax, dword [ebp - 0x434]
jmp 0x40164d
mov ebx, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401fea
leave
ret