Function at 0x42d96c
Capabilities:
Connect pipe
Create pipe

Disassembly:
push 0x8c
mov eax, 0x47811f
call fcn.0043ee6a
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 0x42d9f4
push ebx
push eax
push str.Failed_to_create_connection
lea ecx, [ebp - 0x54]
call fcn.00408d63
mov byte [ebp - 4], 1
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x3c], vtable.RSException.0
call fcn.00403a4f
mov dword [ebp - 0x3c], vtable.CMessageException.0
push 0x49a128
lea eax, [ebp - 0x3c]
push eax
call sub.MSVCR100.dll__CxxThrowException
lea eax, [ebp - 0x84]
push eax
call fcn.00440467
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.00403a4f
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 3
call fcn.004080c5
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 4
call fcn.004080c5
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.004035af
lea ecx, [ebp - 0x4c]
call fcn.004035af
cmp dword [ebp - 0x10], 0xffffffff
je 0x42db53
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 0x42daa8
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 0x42dadf
cmp eax, 0x3e5
jne 0x42db6c
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x1c]
push eax
push 2
call dword [sym.imp.kernel32.dll_WaitForMultipleObjects]
sub eax, ebx
jne 0x42db0c
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 0x42da17
mov byte [ebp - 4], bl
cmp dword [ebp - 0x14], ebx
je 0x42daf9
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.0043ef42
ret
dec eax
je 0x42dae8
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.00408d63
mov byte [ebp - 4], 6
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x70], vtable.RSException.0
call fcn.00403a4f
mov dword [ebp - 0x70], vtable.CMessageException.0
push 0x49a128
lea eax, [ebp - 0x70]
jmp 0x42d9ee
push ebx
push 0xffffffffffffffff
push str.Failed_to_create_connection
lea ecx, [ebp - 0x54]
call fcn.00408d63
mov byte [ebp - 4], 5
jmp 0x42d9cc
push ebx
push 0xffffffffffffffff
push str.Failed_to_create_connection
lea ecx, [ebp - 0x38]
call fcn.00408d63
mov byte [ebp - 4], 7
jmp 0x42db2c