Function at 0x4e9140
Capabilities:
Create pipe

Disassembly:
sub esp, 0x5c
mov eax, dword [0x557200]
xor eax, esp
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x64]
push ebx
mov ebx, dword [esp + 0x64]
push esi
mov esi, dword [esp + 0x74]
push edi
mov edi, dword [esp + 0x7c]
push 0x60
push 0
push 0x60
push esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], 0xc
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
call fcn.004dde90
push eax
call fcn.004b73e0
mov dword [ebx], eax
add esp, 0xc
mov dword [eax], esi
mov eax, dword [ebx]
push 0x60
push 0
push 0x60
mov dword [eax + 0x20], 0
mov eax, dword [ebx]
push edi
mov byte [eax + 8], 1
mov eax, dword [ebx]
mov dword [eax + 0x10], 0xffffffff
mov dword [eax + 0x14], 0xffffffff
mov eax, dword [ebx]
mov dword [eax + 0x30], 0xffffffff
mov eax, dword [ebx]
mov dword [eax + 0x28], 0
mov eax, dword [ebx]
mov dword [eax + 0x50], 0
mov dword [eax + 0x54], 0
mov eax, dword [ebx]
mov dword [eax + 0x3c], 0
mov eax, dword [ebx]
mov dword [eax + 0x44], 0
mov eax, dword [ebx]
mov dword [eax + 0x48], 0
mov eax, dword [ebx]
mov dword [eax + 0xc], 0
call fcn.004dde90
push eax
call fcn.004b73e0
mov esi, dword [esp + 0x18]
add esp, 0xc
mov dword [esi], eax
mov dword [eax], edi
mov eax, dword [esi]
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
cmp dword [0x560ea8], 0x1e
jl 0x4e9485
call sub.KERNEL32.dll_GetCurrentProcessId
mov edi, dword [esp + 0x74]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x80001
cmp edi, 4
je 0x4e92a9
cmp edi, 2
jne 0x4e92f4
mov eax, dword [ebx]
push 0x14
mov dword [esp + 0x10], 0x40080001
push dword [eax]
call fcn.004dde90
xorps xmm0, xmm0
push 0
push 0
movups xmmword [eax], xmm0
mov dword [eax + 0x10], 0
mov ecx, dword [ebx]
push 0
push 0
mov dword [ecx + 0xc], eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ecx, dword [ebx]
mov ecx, dword [ecx + 0xc]
mov dword [ecx + 0x10], eax
mov eax, dword [ebx]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
push 8
lea eax, [esp + 0x24]
push eax
call fcn.004ea110
mov ecx, dword [0x560f88]
push ecx
push dword [esp + 0x14]
lea eax, [ecx + 1]
push str..pipe_apr_pipe__x._lx.
mov dword [0x560f88], eax
lea eax, [esp + 0x34]
push 0x3a
push eax
call fcn.004e2500
add esp, 0x14
lea ecx, [esp + 0x20]
push 0
push 0
push 8
push ecx
lea ecx, [esp + 0x38]
add eax, ecx
push eax
call fcn.004ea1b0
lea eax, [esp + 0x14]
push eax
push 1
push 0x10000
push 0
push 1
push 0
push dword [esp + 0x24]
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov ecx, dword [ebx]
mov dword [ecx + 4], eax
mov eax, dword [ebx]
cmp dword [eax + 4], 0xffffffff
jne 0x4e93c2
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jne 0x4e939a
push dword [ebx]
xor esi, esi
call fcn.004e1000
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.004b4f32
add esp, 0x5c
ret 0x14
call esi
push dword [ebx]
lea esi, [eax + 0xafc80]
call fcn.004e1000
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.004b4f32
add esp, 0x5c
ret 0x14
mov eax, 0x80
cmp edi, 3
je 0x4e93d1
cmp edi, 2
jne 0x4e9419
mov eax, dword [esi]
push 0x14
push dword [eax]
call fcn.004dde90
xorps xmm0, xmm0
push 0
push 0
movups xmmword [eax], xmm0
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, [esp + 0x20]
push eax
push 0
push 0x40000000
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [esi]
mov dword [ecx + 4], eax
mov eax, dword [esi]
cmp dword [eax + 4], 0xffffffff
jne 0x4e94cc
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
test eax, eax
jne 0x4e9456
xor edi, edi
jmp 0x4e945e
call edi
lea edi, [eax + 0xafc80]
push dword [esi]
call fcn.004e1000
push dword [ebx]
call fcn.004e1000
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.004b4f32
add esp, 0x5c
ret 0x14
push 0x10000
lea eax, [esp + 0x18]
push eax
mov eax, dword [esi]
add eax, 4
push eax
mov eax, dword [ebx]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x4e94cc
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x4e94f4
call esi
pop edi
pop esi
add eax, 0xafc80
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.004b4f32
add esp, 0x5c
ret 0x14
mov eax, dword [ebx]
push fcn.00427e70
push fcn.004e1000
push eax
push dword [eax]
call fcn.004de010
mov eax, dword [esi]
push fcn.00427e70
push fcn.004e1000
push eax
push dword [eax]
call fcn.004de010
mov ecx, dword [esp + 0x64]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004b4f32
add esp, 0x5c
ret 0x14