Function at 0x407680
Capabilities:
Connect pipe
Create pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41377a
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x41d008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, 0x41ec44
call fcn.00412f13
mov dword [ebp - 0x64], 0
xorps xmm0, xmm0
movlpd qword [ebp - 0x18], xmm0
test edi, edi
jne 0x4076d3
xor eax, eax
jmp 0x407bbb
cmp dword [edi + 0x2c], 0
mov eax, dword [edi + 0x30]
mov dword [ebp - 0x18], eax
jne 0x407bb6
push 0x2c
call fcn.00411d04
mov esi, eax
mov dword [ebp - 0x94], esi
mov dword [ebp - 4], 0
mov dword [esi + 0x28], 0
mov dword [ebp - 4], 0xffffffff
push 0x2c
push 0
push esi
mov dword [ebp - 0x90], esi
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
push 0
push 1
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x14], eax
test eax, eax
jne 0x40773a
push esi
call fcn.00407d60
jmp 0x407bac
mov dword [ebp - 0x14], eax
xorps xmm0, xmm0
push 1
lea eax, [ebp - 0x78]
mov dword [ebp - 0x68], 0
push eax
movups xmmword [ebp - 0x78], xmm0
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
cmp dword [edi + 0x18], 8
lea ecx, [edi + 4]
lea eax, [ebp - 0x78]
mov dword [ebp - 0x84], 0xc
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x80], eax
jb 0x407789
mov ecx, dword [ecx]
mov eax, dword [edi + 0x20]
lea edx, [ebp - 0x84]
push edx
push 0
push eax
push eax
push 0x80
push 6
push 0x40000003
push ecx
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x4077c4
push esi
call fcn.00407d60
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x407bac
lea ecx, [esi + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
cmp eax, 1
jne 0x4077df
push esi
call fcn.00407d60
jmp 0x407bac
cmp dword [edi + 0x2c], 0
jne 0x407bb6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
jne 0x4077ff
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [edi + 0x34]
test eax, eax
je 0x40780f
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [edi + 0x38]
lea edx, [ebp - 0x90]
push edx
mov dword [ebp - 0x8c], eax
mov ecx, dword [eax + 4]
push ecx
push eax
mov dword [ebp - 0x88], ecx
call fcn.004084a0
mov edx, eax
mov ecx, 0x15555554
mov eax, dword [edi + 0x3c]
sub ecx, eax
cmp ecx, 1
jb 0x407bdc
lea ecx, [eax + 1]
mov eax, dword [ebp - 0x8c]
mov dword [edi + 0x3c], ecx
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x88]
mov dword [eax], edx
mov eax, dword [edi + 0x34]
test eax, eax
je 0x407869
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x18]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
je 0x407bb6
cmp eax, 1
jne 0x407bac
cmp dword [edi + 0x2c], 0
jne 0x407bb6
push 0
lea eax, [ebp - 0x64]
push eax
lea eax, [esi + 4]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x40799f
push 2
mov ecx, 0x41d7ec
call fcn.0040f3d0
mov dword [ebp - 0x88], eax
test eax, eax
je 0x407992
xor eax, eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x30]
push 0x2b
push 0x4171b8
call fcn.00403610
push 0x1c9
push str.RC::DmAvCore::RCImplPortServer::RealListenRoutine
push str.d:jenkinsworkspacepc_2345mpcsafe_build_2_rhinoprotect_framework_src_vbaselib_src_namedpipe_rcimplportserver.cpp
lea eax, [ebp - 0x30]
mov ecx, 0x41d7ec
push eax
push 2
call fcn.0040f420
cmp dword [ebp - 0x88], 1
jbe 0x40793d
lea eax, [ebp - 0x30]
mov ecx, 0x41d7ec
push eax
call fcn.0040f750
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x1c]
cmp edx, 8
jb 0x40797e
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x407974
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407bd6
push edx
push ecx
call fcn.00411fb1
add esp, 8
xor eax, eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
push esi
mov ecx, edi
call fcn.00407120
jmp 0x407bac
mov dword [esi + 0x24], edi
mov ecx, dword [edi + 0x1c]
push 0
push esi
push 0x406830
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov dword [ebp - 0x88], eax
test eax, eax
je 0x407bac
push 2
push 0
lea eax, [esi + 0x20]
push 0
push eax
mov dword [ebp - 0x8c], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, dword [ebp - 0x88]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov ecx, 0x41d7ec
push 4
test eax, eax
je 0x407ae2
call fcn.0040f3d0
mov dword [ebp - 0x88], eax
test eax, eax
je 0x407bac
xor eax, eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 7
mov word [ebp - 0x48], ax
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x8c]
push dword [eax]
lea eax, [ebp - 0x48]
push esi
push 0x417278
push eax
call fcn.0040f940
add esp, 0x10
lea eax, [ebp - 0x48]
mov ecx, 0x41d7ec
push 0x1e0
push str.RC::DmAvCore::RCImplPortServer::RealListenRoutine
push str.d:jenkinsworkspacepc_2345mpcsafe_build_2_rhinoprotect_framework_src_vbaselib_src_namedpipe_rcimplportserver.cpp
push eax
push 4
call fcn.0040f420
cmp dword [ebp - 0x88], 1
jbe 0x407a88
lea eax, [ebp - 0x48]
mov ecx, 0x41d7ec
push eax
call fcn.0040f750
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x34]
cmp edx, 8
jb 0x407ac9
mov ecx, dword [ebp - 0x48]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x407abf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407bd6
push edx
push ecx
call fcn.00411fb1
add esp, 8
xor eax, eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 7
mov word [ebp - 0x48], ax
jmp 0x407bac
call fcn.0040f3d0
mov esi, eax
test esi, esi
je 0x407bac
xor eax, eax
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 7
mov word [ebp - 0x60], ax
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x60]
push 0xd
push str._rY6R
call fcn.00403610
push 0x1e4
push str.RC::DmAvCore::RCImplPortServer::RealListenRoutine
push str.d:jenkinsworkspacepc_2345mpcsafe_build_2_rhinoprotect_framework_src_vbaselib_src_namedpipe_rcimplportserver.cpp
lea eax, [ebp - 0x60]
mov ecx, 0x41d7ec
push eax
push 4
call fcn.0040f420
cmp esi, 1
jbe 0x407b5b
lea eax, [ebp - 0x60]
mov ecx, 0x41d7ec
push eax
call fcn.0040f750
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x4c]
cmp edx, 8
jb 0x407b98
mov ecx, dword [ebp - 0x60]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x407b8e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407bd6
push edx
push ecx
call fcn.00411fb1
add esp, 8
xor eax, eax
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 7
mov word [ebp - 0x60], ax
cmp dword [edi + 0x2c], 0
je 0x4076e3
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00411cf3
mov esp, ebp
pop ebp
ret
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push str.list_T__too_long
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const__]
int3