Function at 0x10087c00
Capabilities:
Connect pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10266ba0
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x1030f644]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x50], edi
mov bh, byte [ebp + 8]
mov bl, byte [ebp + 0xc]
test bh, bh
jne 0x10087d84
test bl, bl
jne 0x10087d84
lea esi, [edi + 0x60]
push esi
call dword [sym.imp.KERNEL32.dll_TryEnterCriticalSection]
test eax, eax
jne 0x10087ce4
cmp dword [0x1031d6f4], eax
je 0x10087cdd
push ecx
mov ecx, 0x1031d6f4
call fcn.1008d2a0
mov eax, dword [0x1031d6f4]
cmp byte [eax + 0x54], bl
je 0x10087cdd
cmp dword [eax + 0x58], 2
jb 0x10087cdd
mov bl, byte [eax + 0x5c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
push 0xf
push str.try_lock_failed
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], eax
call fcn.1004d240
push 0x267
push str.RC::DM::RCNamePipeServer::StartNewListen
push str.d:workcode_git_rhinopcdomain_src_systemipc_namepipe_rcnamepipeserver.cpp
lea eax, [ebp - 0x28]
mov ecx, 0x1031d6f4
push eax
push 2
call fcn.1008de20
test bl, bl
je 0x10087cd5
lea eax, [ebp - 0x28]
mov ecx, 0x1031d6f4
push eax
call fcn.1008e170
lea ecx, [ebp - 0x28]
call fcn.1004bcb0
xor al, al
jmp 0x100880a9
cmp dword [0x1031d6f4], 0
je 0x10087d9f
push ecx
mov ecx, 0x1031d6f4
call fcn.1008d2a0
mov eax, dword [0x1031d6f4]
cmp byte [eax + 0x54], 0
je 0x10087d9f
cmp dword [eax + 0x58], 5
jb 0x10087d9f
mov bl, byte [eax + 0x5c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
push 0x10
push str.try_lock_success
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 1
call fcn.1004d240
push 0x26d
push str.RC::DM::RCNamePipeServer::StartNewListen
push str.d:workcode_git_rhinopcdomain_src_systemipc_namepipe_rcnamepipeserver.cpp
lea eax, [ebp - 0x28]
mov ecx, 0x1031d6f4
push eax
push 5
call fcn.1008de20
test bl, bl
je 0x10087d73
lea eax, [ebp - 0x28]
mov ecx, 0x1031d6f4
push eax
call fcn.1008e170
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.1004bcb0
jmp 0x10087d9f
lea esi, [edi + 0x60]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 0x54], esi
test bh, bh
je 0x10087d9b
cmp dword [edi + 0x34], 0
jne 0x10087dab
test bl, bl
jne 0x10087db9
cmp dword [edi + 0x34], 0
lea ecx, [edi + 0x34]
mov dword [ebp - 0x54], esi
je 0x10087dbc
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
jmp 0x100880a9
lea ecx, [edi + 0x34]
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x4c], 0
push eax
mov dword [ebp - 0x48], 0
call fcn.10071cb0
mov dword [ebp - 4], 2
mov esi, dword [ebp - 0x48]
test esi, esi
je 0x10087e02
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x10087e02
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x10087e02
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x1008809c
mov ebx, eax
mov dword [ebp - 0x48], ebx
nop dword [eax]
cmp ebx, eax
je 0x10087e2c
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x5c]
mov ecx, edi
push eax
call fcn.10087220
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [edi + 0x34], ecx
mov esi, dword [edi + 0x38]
mov dword [edi + 0x38], edx
mov dword [ebp - 4], 3
test esi, esi
je 0x10087e7e
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x10087e7e
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x10087e7e
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov dword [ebp - 4], 4
mov esi, dword [ebp - 0x58]
test esi, esi
je 0x10087ead
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x10087ead
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x10087ead
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edi, dword [edi + 0x34]
test edi, edi
jne 0x10087ec3
mov edi, dword [ebp - 0x50]
jmp 0x10087fe6
lea eax, [edi + 4]
mov dword [edi + 0x28], 0
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
mov esi, eax
test esi, esi
setne bl
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x44], eax
test esi, esi
jne 0x10087ef2
cmp eax, 0x3e5
sete bl
test bl, bl
jne 0x10087ffa
cmp dword [0x1031d6f4], 0
jne 0x10087f07
xor ebx, ebx
jmp 0x10087f2e
push ecx
mov ecx, 0x1031d6f4
call fcn.1008d2a0
mov eax, dword [0x1031d6f4]
xor ebx, ebx
cmp byte [eax + 0x54], bl
je 0x10087f2b
cmp dword [eax + 0x58], 2
jb 0x10087f2b
cmp byte [eax + 0x5c], bl
setne bl
inc ebx
mov eax, dword [ebp - 0x44]
test ebx, ebx
je 0x10087f9c
xor ecx, ecx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], cx
push eax
mov dword [ebp - 4], 5
lea eax, [ebp - 0x28]
push dword [edi]
push edi
push str.start_listen_failed__p__p___d
push eax
call fcn.1008e380
add esp, 0x14
lea eax, [ebp - 0x28]
mov ecx, 0x1031d6f4
push 0xa9
push str.RC::DM::RCNamePipeServer::RCPipeClientNode::StartListen
push str.d:workcode_git_rhinopcdomain_src_systemipc_namepipe_rcnamepipeserver.cpp
push eax
push 2
call fcn.1008de20
cmp ebx, 1
jbe 0x10087f94
lea eax, [ebp - 0x28]
mov ecx, 0x1031d6f4
push eax
call fcn.1008e170
lea ecx, [ebp - 0x28]
call fcn.1004bcb0
mov edi, dword [ebp - 0x50]
mov dword [edi + 0x34], 0
mov esi, dword [edi + 0x38]
mov dword [edi + 0x38], 0
mov dword [ebp - 4], 7
test esi, esi
je 0x10087fdc
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x10087fdc
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x10087fdc
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov ebx, dword [ebp - 0x48]
dec ebx
mov dword [ebp - 0x48], ebx
test ebx, ebx
je 0x1008809c
mov eax, dword [ebp + 0x10]
jmp 0x10087e20
cmp dword [0x1031d6f4], 0
jne 0x10088007
xor ebx, ebx
jmp 0x1008802b
push ecx
mov ecx, 0x1031d6f4
call fcn.1008d2a0
mov eax, dword [0x1031d6f4]
xor ebx, ebx
cmp byte [eax + 0x54], bl
je 0x1008802b
cmp dword [eax + 0x58], 5
jb 0x1008802b
cmp byte [eax + 0x5c], bl
setne bl
inc ebx
test ebx, ebx
je 0x10088098
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov dword [ebp - 4], 6
lea eax, [ebp - 0x40]
push dword [edi]
push edi
push str.start_new_listen_success___p__p
push eax
call fcn.1008e380
add esp, 0x10
lea eax, [ebp - 0x40]
mov ecx, 0x1031d6f4
push 0xb0
push str.RC::DM::RCNamePipeServer::RCPipeClientNode::StartListen
push str.d:workcode_git_rhinopcdomain_src_systemipc_namepipe_rcnamepipeserver.cpp
push eax
push 5
call fcn.1008de20
cmp ebx, 1
jbe 0x10088090
lea eax, [ebp - 0x40]
mov ecx, 0x1031d6f4
push eax
call fcn.1008e170
lea ecx, [ebp - 0x40]
call fcn.1004bcb0
mov bl, 1
jmp 0x1008809e
xor bl, bl
push dword [ebp - 0x54]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101afab5
mov esp, ebp
pop ebp
ret 0xc