Function at 0x4f7ff0
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push esi
push edi
lea edi, [ebp - 0x64]
mov ecx, 0x19
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x5a2184]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], 0xc
cmp dword [0x5a51dc], 0x14
jl 0x4f802a
mov dword [ebp - 0xc], 0
jmp 0x4f8031
mov dword [ebp - 0xc], 1
mov dword [ebp - 0x10], 0
push 0x58
push 0
push 0x58
mov eax, dword [ebp + 0x14]
push eax
call fcn.00497ff0
push eax
call fcn.00523be0
add esp, 0xc
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [ebp + 0x14]
mov dword [eax], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov dword [eax + 0x20], 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov byte [edx + 8], 1
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ecx + 0x10], 0xffffffff
mov dword [ecx + 0x14], 0xffffffff
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov dword [eax + 0x30], 0xffffffff
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov dword [edx + 0x28], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ecx + 0x48], 0
mov dword [ecx + 0x4c], 0
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov dword [eax + 0x3c], 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov dword [edx + 0x40], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ecx + 0x44], 0
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov dword [eax + 0xc], 0
push 0
mov ecx, dword [ebp + 0x14]
push ecx
push 1
mov edx, dword [ebp + 8]
mov eax, dword [edx]
add eax, 0x54
push eax
call fcn.004b3dc0
push 0x58
push 0
push 0x58
mov ecx, dword [ebp + 0x14]
push ecx
call fcn.00497ff0
push eax
call fcn.00523be0
add esp, 0xc
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ebp + 0x14]
mov dword [ecx], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov dword [ecx + 0x20], 0
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
mov byte [eax + 8], 1
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov dword [edx + 0x10], 0xffffffff
mov dword [edx + 0x14], 0xffffffff
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov dword [ecx + 0x30], 0xffffffff
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
mov dword [eax + 0x28], 0
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov dword [edx + 0x48], 0
mov dword [edx + 0x4c], 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov dword [ecx + 0x3c], 0
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
mov dword [eax + 0x40], 0
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov dword [edx + 0x44], 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov dword [ecx + 0xc], 0
push 0
mov edx, dword [ebp + 0x14]
push edx
push 1
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
add ecx, 0x54
push ecx
call fcn.004b3dc0
cmp dword [0x5a51dc], 0x1e
jl 0x4f8320
mov dword [ebp - 0x20], 1
cmp dword [ebp + 0x10], 4
je 0x4f81d8
cmp dword [ebp + 0x10], 2
jne 0x4f8226
mov edx, dword [ebp - 0x20]
or edx, 0x40000000
mov dword [ebp - 0x20], edx
push 0x14
push 0
push 0x14
mov eax, dword [ebp + 0x14]
push eax
call fcn.00497ff0
push eax
call fcn.00523be0
add esp, 0xc
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov dword [edx + 0xc], eax
mov esi, esp
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
cmp esi, esp
call fcn.0052354c
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov ecx, dword [edx + 0xc]
mov dword [ecx + 0x10], eax
mov dword [ebp - 0x1c], 0
mov edx, dword [0x5a5a50]
mov dword [ebp - 0x60], edx
mov eax, dword [0x5a5a50]
add eax, 1
mov dword [0x5a5a50], eax
mov ecx, dword [ebp - 0x60]
push ecx
call sub.KERNEL32.dll_GetCurrentProcessId
push eax
push str..pipe_apr_pipe__u._lu
lea edx, [ebp - 0x58]
push edx
call fcn.0052304e
add esp, 0x10
mov esi, esp
lea eax, [ebp - 0x14]
push eax
push 1
push 0x10000
push 0
push 1
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x20]
push edx
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
cmp esi, esp
call fcn.0052354c
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov dword [edx + 4], eax
mov dword [ebp - 0x20], 0x80
cmp dword [ebp + 0x10], 3
je 0x4f82a3
cmp dword [ebp + 0x10], 2
jne 0x4f82f0
mov eax, dword [ebp - 0x20]
or eax, 0x40000000
mov dword [ebp - 0x20], eax
push 0x14
push 0
push 0x14
mov ecx, dword [ebp + 0x14]
push ecx
call fcn.00497ff0
push eax
call fcn.00523be0
add esp, 0xc
mov edx, dword [ebp + 0xc]
mov ecx, dword [edx]
mov dword [ecx + 0xc], eax
mov esi, esp
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
cmp esi, esp
call fcn.0052354c
mov edx, dword [ebp + 0xc]
mov ecx, dword [edx]
mov edx, dword [ecx + 0xc]
mov dword [edx + 0x10], eax
mov esi, esp
push 0
mov eax, dword [ebp - 0x20]
push eax
push 3
lea ecx, [ebp - 0x14]
push ecx
push 0
push 0x40000000
lea edx, [ebp - 0x58]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp esi, esp
call fcn.0052354c
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov dword [edx + 4], eax
jmp 0x4f8386
mov esi, esp
push 0x10000
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
add edx, 4
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
add ecx, 4
push ecx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
cmp esi, esp
call fcn.0052354c
test eax, eax
jne 0x4f8386
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, esp
call fcn.0052354c
test eax, eax
jne 0x4f836a
mov dword [ebp - 0x64], 0
jmp 0x4f8381
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, esp
call fcn.0052354c
add eax, 0xafc80
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x64]
jmp 0x4f83c2
push 0x498ef0
push fcn.0045c0a0
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov eax, dword [edx]
push eax
call fcn.00498ce0
push 0x498ef0
push fcn.0045c0a0
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
push edx
call fcn.00498ce0
xor eax, eax
push edx
mov ecx, ebp
push eax
lea edx, [0x4f83f0]
call fcn.0052356f
pop eax
pop edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00522672
add esp, 0x64
cmp ebp, esp
call fcn.0052354c
mov esp, ebp
pop ebp
ret