Function at 0x4573d0
Capabilities:
Connect pipe
Create pipe

Disassembly:
sub esp, 0x1b0
push ebx
push ebp
mov ebp, ecx
xor ebx, ebx
push esi
push edi
mov eax, dword [ebp + 4]
mov dword [ebp + 4], ebx
cmp eax, ebx
je 0x45740b
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x4573fe
push eax
call esi
mov dword [ebp + 8], ebx
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x45740b
push eax
call esi
mov dword [ebp + 0xc], ebx
cmp dword [0x5f292c], ebx
jne 0x45745a
mov ecx, 0x24
xor eax, eax
lea edi, [esp + 0x18]
mov esi, 1
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
mov dword [0x5f292c], esi
push eax
mov dword [esp + 0x18], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x24], 2
je 0x45745a
mov dword [0x5f2930], esi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1b0
ret 8
cmp dword [0x5f2930], ebx
jne 0x4575f6
mov edx, dword [str..PipeOCULAR_]
cmp edx, ebx
je 0x4575f6
mov ecx, 0x45
xor eax, eax
lea edi, [esp + 0xa9]
mov byte [esp + 0xa8], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
lea esi, [esp + 0xa8]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, esi
mov edx, ecx
mov esi, edi
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x1c4]
mov ecx, edx
and ecx, 3
cmp eax, ebx
rep movsb byte es:[edi], byte [esi]
je 0x4574d7
push 0x104
lea ecx, [esp + 0xac]
push eax
push ecx
call fcn.0052c31d
add esp, 0xc
mov esi, dword [esp + 0x1c8]
cmp esi, ebx
jne 0x457505
call fcn.00485700
push eax
push ebx
push 0x8000
push 0x8000
push 1
push ebx
lea edx, [esp + 0xc0]
push 0x40000003
push edx
jmp 0x45752a
call fcn.00485700
push eax
push ebx
push 0x1000
push 0x1000
push 0xff
push 6
lea eax, [esp + 0xc0]
push 0x40000003
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
cmp eax, 0xffffffff
mov dword [ebp + 4], eax
jne 0x45754a
pop edi
mov dword [ebp + 4], ebx
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1b0
ret 8
push ebx
push ebx
mov dword [ebp + 0x18], esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push 1
push ebx
call esi
push ebx
push ebx
push 1
push ebx
mov dword [ebp + 8], eax
call esi
mov ecx, dword [ebp + 8]
mov dword [ebp + 0xc], eax
cmp ecx, ebx
je 0x4575c9
cmp eax, ebx
je 0x4575c9
lea eax, [ebp + 0x1c]
xor ecx, ecx
mov edx, eax
push eax
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], ecx
mov dword [edx + 0x10], ecx
mov edx, dword [ebp + 4]
mov ecx, dword [ebp + 8]
push edx
mov dword [ebp + 0x2c], ecx
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
je 0x4575b0
cmp eax, 0x3e5
je 0x4575b0
cmp eax, 0x217
jne 0x4575f6
pop edi
mov dword [ebp + 0x10], 1
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1b0
ret 8
mov eax, dword [ebp + 4]
mov dword [ebp + 4], ebx
cmp eax, ebx
je 0x4575f6
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x4575e9
push eax
call esi
mov dword [ebp + 8], ebx
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x4575f6
push eax
call esi
mov dword [ebp + 0xc], ebx
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1b0
ret 8