Function at 0x471380
Capabilities:
Connect pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a2c35
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x4cc680]
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 esi, ecx
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
push 0
push 0
push 1
mov dword [ebp - 0x70], eax
mov eax, dword [ebp + 0xc]
push 0
mov dword [ebp - 0x6c], eax
movlpd qword [ebp - 0x64], xmm0
movlpd qword [ebp - 0x5c], xmm0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
movq qword [ebp - 0x24], xmm0
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
lea ebx, [esi + 4]
mov dword [ebp - 4], 0
push ebx
push 0
lea ecx, [ebp - 0x24]
call fcn.00407fe0
call fcn.00471c20
push dword [esi + 8]
mov dword [ebp - 0x68], eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
cmp dword [esi + 0x40], 0xf
lea ecx, [esi + 0x2c]
jbe 0x47142d
mov ecx, dword [esi + 0x2c]
push ecx
push 0x4b3158
push str.IPCServer::WaitPipe
push 6
call fcn.0045ad50
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
add esp, 0x10
push 0
push dword [ebx]
call edi
cmp eax, 0x102
jne 0x471538
nop dword [eax]
lea eax, [ebp - 0x64]
push eax
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x4714db
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
je 0x4714db
cmp eax, 0xe8
je 0x4714db
cmp eax, 0x3e5
jne 0x4714be
mov eax, dword [ebx]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x54]
push 0xffffffffffffffff
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push 0
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 1
je 0x4714db
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_CancelIo]
push 0xffffffffffffffff
push dword [ebp - 0x54]
call edi
jmp 0x471527
push eax
push str.ConnectNamedPipe_failed:__lu
push str.IPCServer::WaitPipe
push 2
call fcn.0045ad50
add esp, 0x10
push 0x32
push dword [ebx]
call edi
jmp 0x471527
push 0x2c
lea eax, [ebp - 0x50]
push 0
push eax
call fcn.00477ac0
add esp, 0xc
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0x50]
push dword [ebp - 0x68]
push eax
push dword [esi + 0x10]
call fcn.00471fa0
push dword [ebp - 0x6c]
lea eax, [ebp - 0x50]
mov byte [ebp - 4], 1
push dword [ebp - 0x70]
mov ecx, esi
push eax
call fcn.00471070
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0
call fcn.004720b0
push 0
push dword [ebx]
call edi
cmp eax, 0x102
je 0x471460
cmp dword [esi + 0x40], 0xf
lea eax, [esi + 0x2c]
jbe 0x471543
mov eax, dword [eax]
push eax
push str.S:__S_down
push str.IPCServer::WaitPipe
push 6
call fcn.0045ad50
add esp, 0x10
push dword [ebp - 0x54]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov edx, dword [ebp - 0x24]
test edx, edx
je 0x47159d
mov ecx, dword [ebp - 0x1c]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x471593
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4715bd
push ecx
push edx
call fcn.004759b5
add esp, 8
xor eax, eax
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.004759c3
mov esp, ebp
pop ebp
ret 8
call fcn.0047abff
int3