Function at 0x4291b7
Capabilities:
Connect pipe
Create pipe

Disassembly:
push 0x8c
mov eax, 0x46b7d8
call fcn.0043990a
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 0x42923f
push ebx
push eax
push str.Failed_to_create_connection
lea ecx, [ebp - 0x54]
call fcn.00409030
mov byte [ebp - 4], 1
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x3c], vtable.RSException.0
call fcn.00403cbd
mov dword [ebp - 0x3c], vtable.CMessageException.0
push 0x48b144
lea eax, [ebp - 0x3c]
push eax
call sub.MSVCR100.dll__CxxThrowException
lea eax, [ebp - 0x84]
push eax
call fcn.0043b5c6
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.00403cbd
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 3
call fcn.00408498
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 4
call fcn.00408498
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.00403754
lea ecx, [ebp - 0x4c]
call fcn.00403754
cmp dword [ebp - 0x10], 0xffffffff
je 0x42939e
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 0x4292f3
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 0x42932a
cmp eax, 0x3e5
jne 0x4293b7
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x1c]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
sub eax, ebx
jne 0x429357
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 0x429262
mov byte [ebp - 4], bl
cmp dword [ebp - 0x14], ebx
je 0x429344
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.004399e2
ret
dec eax
je 0x429333
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.00409030
mov byte [ebp - 4], 6
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x70], vtable.RSException.0
call fcn.00403cbd
mov dword [ebp - 0x70], vtable.CMessageException.0
push 0x48b144
lea eax, [ebp - 0x70]
jmp 0x429239
push ebx
push 0xffffffffffffffff
push str.Failed_to_create_connection
lea ecx, [ebp - 0x54]
call fcn.00409030
mov byte [ebp - 4], 5
jmp 0x429217
push ebx
push 0xffffffffffffffff
push str.Failed_to_create_connection
lea ecx, [ebp - 0x38]
call fcn.00409030
mov byte [ebp - 4], 7
jmp 0x429377