Function at 0x4de140
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a6698
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x62cf50]
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 [0x634a80]
lea esi, [edi + 4]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov bl, byte [edi + 0x3c]
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 4], 0xffffffff
test bl, bl
je 0x4de40e
push 0
push 0
push 6
call fcn.004129f0
add esp, 0xc
test al, al
je 0x4de40e
call fcn.0040b2e0
lea eax, [ebp - 0x40]
push 0x5e0690
push eax
call fcn.0049b3e0
add esp, 8
cmp dword [ebp - 0x30], 0
mov dword [ebp - 4], 1
je 0x4de3f2
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.005706d3
mov esi, eax
add esp, 4
test esi, esi
je 0x4de3f2
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.00409db0
push esi
lea eax, [ebp - 0x6c]
mov byte [ebp - 4], 3
push 0x5c4e80
push eax
call fcn.00443bb0
add esp, 0xc
cmp dword [eax + 0x14], 8
mov ecx, eax
mov byte [ebp - 4], 4
jb 0x4de24f
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x28]
call fcn.0040f730
mov edx, dword [ebp - 0x58]
mov byte [ebp - 4], 3
cmp edx, 8
jb 0x4de2a1
mov ecx, dword [ebp - 0x6c]
lea edx, [edx*2 + 2]
mov eax, ecx
mov byte [ebp - 4], 5
cmp edx, 0x1000
jb 0x4de293
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4de42d
push edx
push ecx
call fcn.0040a1a2
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.004df420
mov esi, eax
test esi, esi
jne 0x4de2fc
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 6
cmp eax, 8
jb 0x4de2dc
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.0040a5e0
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], 7
jmp 0x4de3f9
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 0x4de376
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
mov byte [ebp - 4], 8
cmp edx, 0x1000
jb 0x4de36c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4de432
push edx
push ecx
call fcn.0040a1a2
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 0x4de3d5
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
mov dword [ebp - 4], 9
cmp edx, 0x1000
jb 0x4de3c4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4de432
push edx
push ecx
call fcn.0040a1a2
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 0x4de40e
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x4de40e
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.0040a5e0
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 int.004016cd
mov esp, ebp
pop ebp
ret
call fcn.0056e2db
call fcn.0056e2db
int3