Function at 0x4012ba
Capabilities:
Read pipe
Write pipe

Disassembly:
sub esp, 0x2c
mov eax, dword [0x40b040]
and dword [esp], 0
push ebx
push ebp
mov ebp, dword [esp + 0x38]
push esi
push edi
mov edi, dword [esp + 0x44]
push 0xffffffffffffffff
push str.No_originating_script_specified
push str.script
push edi
push ebp
push 0x20
pop ebx
lea esi, [esp + 0x2c]
mov dword [esp + 0x4c], eax
call fcn.0040121b
add esp, 0xc
push eax
call fcn.00401196
push str.msg
push edi
push ebp
mov ebx, 0x100
mov esi, 0x40c3a0
call fcn.0040121b
add esp, 0x18
test eax, eax
jne 0x401343
push str.file
push edi
push ebp
call fcn.0040121b
add esp, 0xc
test eax, eax
jne 0x40133b
push 0xffffffffffffffff
push str.Neither_msg_nor_file_specified
push eax
call fcn.00401196
add esp, 0xc
jmp 0x401343
mov dword [esp + 0x10], 1
push str.comp
push edi
push ebp
push 0x10
pop ebx
mov esi, 0x40c280
call fcn.0040121b
add esp, 0xc
test eax, eax
jne 0x40136b
push 0x409564
push esi
call fcn.00401f20
pop ecx
pop ecx
push str.flg
push edi
push ebp
push 4
pop ebx
mov esi, 0x40c290
call fcn.0040121b
add esp, 0xc
test eax, eax
mov ebx, 0x409558
jne 0x401394
push ebx
push esi
call fcn.00401f20
pop ecx
pop ecx
push 0x409554
push esi
call fcn.0040888e
test eax, eax
pop ecx
pop ecx
jne 0x4013b4
mov dword [0x40c2b4], 1
jmp 0x401439
push 0x409550
push esi
call fcn.0040888e
test eax, eax
pop ecx
pop ecx
jne 0x4013d1
mov dword [0x40c2b4], 2
jmp 0x401439
push 0x40954c
push esi
call fcn.0040888e
test eax, eax
pop ecx
pop ecx
jne 0x4013ee
mov dword [0x40c2b4], 4
jmp 0x401439
push ebx
push esi
call fcn.0040888e
test eax, eax
pop ecx
pop ecx
jne 0x401407
mov dword [0x40c2b4], 8
jmp 0x401439
push 0x409548
push esi
call fcn.0040888e
test eax, eax
pop ecx
pop ecx
jne 0x401424
mov dword [0x40c2b4], 0x10
jmp 0x401439
call fcn.004010cb
push esi
push str.Illegal_flag___s__specified
push 0xffffffffffffffff
call fcn.004011c3
add esp, 0xc
push str.always
push edi
push ebp
call fcn.00401284
add esp, 0xc
test eax, eax
je 0x401453
or byte [0x40c2b6], 1
push 0x40c280
push str._spipeMrsMessageReporterIPC
push 0x100
mov esi, 0x40c180
push esi
mov word [0x40c2a0], 0x40
mov word [0x40c2a2], 0x20
call fcn.00401ec5
add esp, 0x10
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push ebx
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4014b8
push esi
push str.LogServ
push str._s:_cant_connect_to_named_pipe__s_n
call fcn.0040192b
xor eax, eax
add esp, 0xc
inc eax
jmp 0x40154e
push ebx
push ebx
lea eax, [esp + 0x1c]
push eax
push edi
mov dword [esp + 0x24], 2
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
test eax, eax
je 0x401545
lea eax, [esp + 0x18]
push eax
push str.__s_:
mov ebp, 0xe8
push ebp
mov esi, 0x40c2b8
push esi
call fcn.00401ec5
add esp, 0x10
cmp dword [esp + 0x10], ebx
je 0x40150a
push 0x40c3a0
push edi
mov eax, 0x40c2a0
call section..text
pop ecx
pop ecx
jmp 0x401545
push esi
call fcn.004018a0
sub ebp, eax
push ebp
push 0x40c3a0
push esi
call fcn.00401d90
add esp, 0x10
push ebx
push 0x40c064
push 8
push 0x40c080
push esi
call fcn.004018a0
pop ecx
add eax, 0x19
push eax
push 0x40c2a0
push edi
call dword [sym.imp.KERNEL32.dll_TransactNamedPipe]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [esp + 0x38]
pop edi
pop esi
pop ebp
pop ebx
call fcn.00401c4f
add esp, 0x2c
ret