Function at 0x42b8f9
Capabilities:
Connect pipe
Create pipe

Disassembly:
push 0x8c
mov eax, 0x47520a
call fcn.0043cb52
mov esi, ecx
push 0x14
xor ebx, ebx
lea eax, [ebp - 0x98]
push ebx
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebp - 0x20], eax
mov ecx, dword [esi + 4]
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x1c], eax
mov ecx, dword [ecx + 4]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ecx
cmp eax, 0xffffffff
jne 0x42b981
push ebx
push eax
push str.Failed_to_create_connection
lea ecx, [ebp - 0x54]
call fcn.00408f1a
mov byte [ebp - 4], 1
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x3c], vtable.RSException.0
call fcn.00403996
mov dword [ebp - 0x3c], vtable.CMessageException.0
push 0x49694c
lea eax, [ebp - 0x3c]
push eax
call sub.MSVCR100.dll__CxxThrowException
lea eax, [ebp - 0x84]
push eax
call fcn.0043e8e1
pop ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x78], vtable.RSSecurityUtilsWin::CLocalFreeGuard.0
mov dword [ebp - 0x74], eax
mov byte [ebp - 4], 2
mov edi, 0x1000
lea eax, [esi + 8]
push eax
lea ecx, [ebp - 0x54]
call fcn.00403996
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 3
call fcn.0040827c
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 4
call fcn.0040827c
lea ecx, [ebp - 0x84]
push ecx
push ebx
push edi
push edi
push 0xff
push 6
push 0x40000003
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 2
call fcn.00403632
lea ecx, [ebp - 0x4c]
call fcn.00403632
cmp dword [ebp - 0x10], 0xffffffff
je 0x42bae0
lea eax, [ebp - 0x98]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
jne 0x42ba35
push dword [esi + 4]
mov eax, dword [esi]
push dword [ebp - 0x10]
mov ecx, esi
call dword [eax + 4]
mov dword [ebp - 0x10], eax
jmp 0x42ba6c
cmp eax, 0x3e5
jne 0x42baf9
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x1c]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
sub eax, ebx
jne 0x42ba99
push dword [esi + 4]
mov eax, dword [esi]
push dword [ebp - 0x10]
mov ecx, esi
call dword [eax + 4]
push dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
cmp dword [ebp - 0x10], ebx
je 0x42b9a4
mov byte [ebp - 4], bl
cmp dword [ebp - 0x14], ebx
je 0x42ba86
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 0x20]
or dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.0043cc2a
ret
dec eax
je 0x42ba75
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push 0xffffffffffffffff
push str.Bad_completion_event
lea ecx, [ebp - 0x38]
call fcn.00408f1a
mov byte [ebp - 4], 6
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x70], vtable.RSException.0
call fcn.00403996
mov dword [ebp - 0x70], vtable.CMessageException.0
push 0x49694c
lea eax, [ebp - 0x70]
jmp 0x42b97b
push ebx
push 0xffffffffffffffff
push str.Failed_to_create_connection
lea ecx, [ebp - 0x54]
call fcn.00408f1a
mov byte [ebp - 4], 5
jmp 0x42b959
push ebx
push 0xffffffffffffffff
push str.Failed_to_create_connection
lea ecx, [ebp - 0x38]
call fcn.00408f1a
mov byte [ebp - 4], 7
jmp 0x42bab9