Function at 0x495a10
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x4fb128]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push 0x60
push 0
push 0x60
push ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x4c], 0xc
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x48], 0
call fcn.0048b000
push eax
call fcn.00472dd0
mov dword [edi], eax
mov dword [eax], ebx
mov eax, dword [edi]
add esp, 0xc
mov dword [eax + 0x20], 0
mov eax, dword [edi]
push 0
mov byte [eax + 8], 1
mov eax, dword [edi]
push ebx
mov dword [eax + 0x10], 0xffffffff
mov dword [eax + 0x14], 0xffffffff
mov eax, dword [edi]
push 1
mov dword [eax + 0x30], 0xffffffff
mov eax, dword [edi]
mov dword [eax + 0x28], 0
mov eax, dword [edi]
mov dword [eax + 0x50], 0
mov dword [eax + 0x54], 0
mov eax, dword [edi]
mov dword [eax + 0x3c], 0
mov eax, dword [edi]
mov dword [eax + 0x44], 0
mov eax, dword [edi]
mov dword [eax + 0x48], 0
mov eax, dword [edi]
mov dword [eax + 0xc], 0
mov eax, dword [edi]
add eax, 0x5c
push eax
call fcn.00494e20
push 0x60
push 0
push 0x60
push ebx
call fcn.0048b000
push eax
call fcn.00472dd0
mov dword [esi], eax
mov dword [eax], ebx
mov eax, dword [esi]
add esp, 0xc
mov dword [eax + 0x20], 0
mov eax, dword [esi]
mov byte [eax + 8], 1
mov eax, dword [esi]
mov dword [eax + 0x10], 0xffffffff
mov dword [eax + 0x14], 0xffffffff
mov eax, dword [esi]
mov dword [eax + 0x30], 0xffffffff
mov eax, dword [esi]
mov dword [eax + 0x28], 0
mov eax, dword [esi]
mov dword [eax + 0x50], 0
mov dword [eax + 0x54], 0
mov eax, dword [esi]
mov dword [eax + 0x3c], 0
mov eax, dword [esi]
mov dword [eax + 0x44], 0
mov eax, dword [esi]
mov dword [eax + 0x48], 0
mov eax, dword [esi]
mov dword [eax + 0xc], 0
mov eax, dword [esi]
push 0
push ebx
push 1
add eax, 0x5c
push eax
call fcn.00494e20
cmp dword [0x502374], 0x1e
jl 0x495cce
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x40], 1
cmp ebx, 4
je 0x495b81
cmp ebx, 2
jne 0x495bd0
push 0x14
push dword [ebp - 0x3c]
mov dword [ebp - 0x40], 0x40000001
call fcn.0048b000
xorps xmm0, xmm0
movq qword [eax], xmm0
push 0
movq qword [eax + 8], xmm0
push 0
mov dword [eax + 0x10], 0
mov ecx, dword [edi]
push 0
push 0
mov dword [ecx + 0xc], eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ecx, dword [edi]
mov ecx, dword [ecx + 0xc]
mov dword [ecx + 0x10], eax
mov eax, dword [edi]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov eax, dword [0x502668]
push eax
inc eax
mov dword [0x502668], eax
call sub.KERNEL32.dll_GetCurrentProcessId
push eax
lea eax, [ebp - 0x38]
push str..pipe_apr_pipe__u._lu
push eax
call fcn.0047413d
add esp, 0x10
lea eax, [ebp - 0x4c]
push eax
push 1
push 0x10000
push 0
push 1
push 0
push dword [ebp - 0x40]
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov ecx, dword [edi]
mov dword [ecx + 4], eax
mov eax, 0x80
cmp ebx, 3
je 0x495c25
cmp ebx, 2
jne 0x495c72
push 0x14
push dword [ebp - 0x3c]
call fcn.0048b000
xorps xmm0, xmm0
movq qword [eax], xmm0
push 0
movq qword [eax + 8], xmm0
push 0
mov dword [eax + 0x10], 0
mov ecx, dword [esi]
push 0
push 0
mov dword [ecx + 0xc], eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ecx, dword [esi]
mov ecx, dword [ecx + 0xc]
mov dword [ecx + 0x10], eax
mov eax, dword [esi]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov eax, 0x40000080
push 0
push eax
push 3
lea eax, [ebp - 0x4c]
push eax
push 0
push 0x40000000
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [esi]
mov dword [ecx + 4], eax
mov eax, dword [edi]
push method.CMainDlg.2.virtual_0
push fcn.004900b0
push eax
push dword [eax]
call fcn.0048b1a0
mov eax, dword [esi]
push method.CMainDlg.2.virtual_0
push fcn.004900b0
push eax
push dword [eax]
call fcn.0048b1a0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047232c
mov esp, ebp
pop ebp
ret 0x10
push 0x10000
lea eax, [ebp - 0x4c]
push eax
mov eax, dword [esi]
add eax, 4
push eax
mov eax, dword [edi]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x495c91
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x495cb9
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
add eax, 0xafc80
pop ebx
call fcn.0047232c
mov esp, ebp
pop ebp
ret 0x10