Function at 0x4c1fd0
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x560248
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x5c7cec]
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 dword [ebp - 0x54], ecx
push 5
mov dword [ebp - 0x50], 0xffffffff
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [0x5ccda4]
lea esi, [edi + 4]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov bl, byte [edi + 0x38]
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 4], 0xffffffff
test bl, bl
je 0x4c215f
push 0
push 0
push 6
call fcn.00410300
add esp, 0xc
test al, al
je 0x4c215f
call fcn.0040a890
lea eax, [ebp - 0x40]
push 0x56a254
push eax
call fcn.0048f0c0
add esp, 8
cmp dword [ebp - 0x30], 0
mov dword [ebp - 4], 1
je 0x4c2157
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.00535374
mov esi, eax
add esp, 4
test esi, esi
je 0x4c2157
push 0x19
xor eax, eax
mov dword [ebp - 0x18], 0
push str..pipeACROCOMMACTWIN_
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.00408740
push esi
lea eax, [ebp - 0x6c]
mov byte [ebp - 4], 2
push 0x573af8
push eax
call fcn.00440560
add esp, 0xc
cmp dword [eax + 0x14], 8
mov ecx, eax
mov byte [ebp - 4], 3
jb 0x4c20df
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x28]
call fcn.0040cd80
mov edx, dword [ebp - 0x58]
mov byte [ebp - 4], 4
cmp edx, 8
jb 0x4c2129
mov ecx, dword [ebp - 0x6c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4c211f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c2270
push edx
push ecx
call fcn.004097e6
add esp, 8
mov ecx, dword [ebp - 0x54]
xor eax, eax
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 7
mov word [ebp - 0x6c], ax
mov byte [ebp - 4], 2
call fcn.004c32f0
mov esi, eax
test esi, esi
jne 0x4c217e
lea ecx, [ebp - 0x28]
call fcn.00408e50
lea ecx, [ebp - 0x40]
call fcn.00408e50
mov eax, dword [ebp - 0x50]
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.0040154f
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x4c]
push ecx
push 0x3e8
push 0
push 0
push 1
push 0xe
lea eax, [ebp - 0x28]
mov dword [ebp - 0x4c], 0xc
cmovae eax, dword [ebp - 0x28]
push 0x80003
push eax
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x44], 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [ebp - 0x50], eax
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 5
cmp edx, 8
jb 0x4c21f8
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4c21ee
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c2275
push edx
push ecx
call fcn.004097e6
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 4], 6
cmp edx, 8
jb 0x4c2249
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4c223f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c227a
push edx
push ecx
call fcn.004097e6
add esp, 8
xor eax, eax
mov dword [ebp - 0x30], 0
push esi
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x4c215f
call fcn.0052cae1
call fcn.0052cae1
call fcn.0052cae1
int3