Function at 0x4ce6f0
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x577ef8
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x5edd38]
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 [0x5f3910]
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 0x4ce9be
push 0
push 0
push 6
call fcn.00410b70
add esp, 0xc
test al, al
je 0x4ce9be
call fcn.0040b570
lea eax, [ebp - 0x40]
push 0x5aa730
push eax
call fcn.00497e20
add esp, 8
cmp dword [ebp - 0x30], 0
mov dword [ebp - 4], 1
je 0x4ce9a2
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.0054a153
mov esi, eax
add esp, 4
test esi, esi
je 0x4ce9a2
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.00408f30
push esi
lea eax, [ebp - 0x6c]
mov byte [ebp - 4], 3
push 0x592740
push eax
call fcn.004364d0
add esp, 0xc
cmp dword [eax + 0x14], 8
mov ecx, eax
mov byte [ebp - 4], 4
jb 0x4ce7ff
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x28]
call fcn.0040ddb0
mov edx, dword [ebp - 0x58]
mov byte [ebp - 4], 3
cmp edx, 8
jb 0x4ce851
mov ecx, dword [ebp - 0x6c]
lea edx, [edx*2 + 2]
mov eax, ecx
mov byte [ebp - 4], 5
cmp edx, 0x1000
jb 0x4ce843
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4ce9dd
push edx
push ecx
call fcn.00409f25
add esp, 8
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x54]
xor eax, eax
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 7
mov word [ebp - 0x6c], ax
call fcn.004cf9d0
mov esi, eax
test esi, esi
jne 0x4ce8ac
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 6
cmp eax, 8
jb 0x4ce88c
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.0040a2e0
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], 7
jmp 0x4ce9a9
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 edx, dword [ebp - 0x14]
mov dword [ebp - 0x50], eax
cmp edx, 8
jb 0x4ce926
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
mov byte [ebp - 4], 8
cmp edx, 0x1000
jb 0x4ce91c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4ce9e2
push edx
push ecx
call fcn.00409f25
add esp, 8
mov edx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], 0xffffffff
cmp edx, 8
jb 0x4ce985
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
mov dword [ebp - 4], 9
cmp edx, 0x1000
jb 0x4ce974
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4ce9e2
push edx
push ecx
call fcn.00409f25
add esp, 8
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov dword [ebp - 0x30], 0
push esi
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x4ce9be
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x4ce9be
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.0040a2e0
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.00401682
mov esp, ebp
pop ebp
ret
call fcn.0054223b
call fcn.0054223b
int3