Function at 0x18015a90
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x1820f00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x118], 0x181dc5a0
mov ebx, ecx
mov dword [ebp - 0xdc], esi
mov edi, edx
mov dword [ebp - 0x100], ebx
push ecx
lea ecx, [ebp - 0x118]
mov dword [ebp - 0xfc], edi
mov dword [ebp - 0xf0], esi
mov dword [ebp - 0x114], esi
mov dword [ebp - 0x110], esi
mov dword [ebp - 0x10c], esi
call fcn.18015367
test al, al
jne 0x18015afa
mov esi, 0x80004005
jmp 0x18015fa2
lea ecx, [ebp - 0xc8]
call fcn.1800a30b
push ecx
push ecx
lea eax, [ebp - 0xc8]
push eax
lea ecx, [ebp - 0x118]
call fcn.1800e302
test al, al
jne 0x18015b27
mov esi, 0x80004005
jmp 0x18015f97
lea ecx, [ebp - 0x144]
mov dword [ebp - 0xd0], 0x181dbf70
mov dword [ebp - 0xcc], esi
call fcn.18007747
push 0x12
push 1
mov esi, 0x181db50c
lea eax, [ebp - 0x68]
push esi
push eax
call fcn.180073cc
add esp, 0x10
lea eax, [ebp - 0x68]
lea ecx, [ebp - 0x144]
push 0
push 0xc0100000
push eax
call fcn.180077b4
lea ecx, [ebp - 0x68]
call fcn.1800749d
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x68]
push esi
push eax
call fcn.180073cc
add esp, 0x14
lea eax, [ebp - 0x68]
mov esi, 0xc0100000
lea ecx, [ebp - 0x144]
push 0
push esi
push eax
call fcn.180077b4
lea ecx, [ebp - 0x68]
call fcn.1800749d
push 0
push esi
lea eax, [ebp - 0xc8]
push eax
lea ecx, [ebp - 0x144]
call fcn.180077b4
push ecx
lea eax, [ebp - 0x144]
push eax
lea ecx, [ebp - 0xd0]
call fcn.1800aa85
mov esi, dword [ebp - 0xcc]
test esi, esi
je 0x18015dfd
and dword [ebp - 0x104], 0
lea eax, [ebp - 0xf4]
push eax
lea eax, [ebp - 0x104]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorControl]
test eax, eax
je 0x18015ff0
test dword [ebp - 0x104], 0x8000
je 0x18015df7
xor ebx, ebx
lea eax, [ebp - 0xe4]
push eax
push ebx
lea eax, [ebp - 0xe8]
mov dword [ebp - 0xf8], ebx
push eax
push ebx
lea eax, [ebp - 0xf8]
mov dword [ebp - 0xec], ebx
push eax
push ebx
lea eax, [ebp - 0xec]
mov dword [ebp - 0xe4], ebx
push eax
push ebx
lea eax, [ebp - 0xd8]
mov dword [ebp - 0xe8], ebx
push eax
push ebx
push dword [ebp - 0xcc]
mov dword [ebp - 0xd8], ebx
call dword [sym.imp.ADVAPI32.dll_MakeAbsoluteSD]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x18015ffa
push dword [ebp - 0xd8]
call fcn.18169322
mov esi, eax
pop ecx
cmp dword [ebp - 0xe8], ebx
je 0x18015ca2
push dword [ebp - 0xe8]
call fcn.18169322
pop ecx
mov dword [ebp - 0xe0], eax
jmp 0x18015ca8
mov dword [ebp - 0xe0], ebx
cmp dword [ebp - 0xe4], ebx
je 0x18015cc4
push dword [ebp - 0xe4]
call fcn.18169322
pop ecx
mov dword [ebp - 0xd4], eax
jmp 0x18015cca
mov dword [ebp - 0xd4], ebx
mov eax, dword [ebp - 0xec]
test eax, eax
je 0x18015ceb
push eax
call fcn.18169322
mov edi, eax
mov eax, dword [ebp - 0xec]
pop ecx
mov dword [ebp - 0xf4], edi
jmp 0x18015cf3
mov edi, ebx
mov dword [ebp - 0xf4], ebx
mov edx, dword [ebp - 0xf8]
test edx, edx
je 0x18015d12
push edx
call fcn.18169322
mov edx, dword [ebp - 0xf8]
mov ebx, eax
mov eax, dword [ebp - 0xec]
pop ecx
test esi, esi
je 0x18015dbc
cmp dword [ebp - 0xe8], 0
je 0x18015d30
cmp dword [ebp - 0xe0], 0
je 0x18015dbc
cmp dword [ebp - 0xe4], 0
mov ecx, dword [ebp - 0xd4]
je 0x18015d43
test ecx, ecx
je 0x18015dbc
test eax, eax
je 0x18015d4b
test edi, edi
je 0x18015dbc
test edx, edx
je 0x18015d53
test ebx, ebx
je 0x18015dbc
lea eax, [ebp - 0xe4]
push eax
push ecx
lea eax, [ebp - 0xe8]
push eax
push dword [ebp - 0xe0]
lea eax, [ebp - 0xf8]
push eax
push ebx
lea eax, [ebp - 0xec]
push eax
push edi
lea eax, [ebp - 0xd8]
push eax
push esi
push dword [ebp - 0xcc]
call dword [sym.imp.ADVAPI32.dll_MakeAbsoluteSD]
test eax, eax
jne 0x18015d99
call fcn.18007249
mov edi, eax
jmp 0x18015dc1
mov eax, dword [ebp - 0xd0]
lea ecx, [ebp - 0xd0]
call dword [eax + 4]
mov ebx, dword [ebp - 0x100]
mov edi, dword [ebp - 0xfc]
mov dword [ebp - 0xcc], esi
jmp 0x18015dfd
mov edi, 0x8007000e
push esi
call fcn.1816581c
push dword [ebp - 0xe0]
call fcn.1816581c
push dword [ebp - 0xd4]
call fcn.1816581c
push dword [ebp - 0xf4]
call fcn.1816581c
push ebx
call fcn.1816581c
add esp, 0x14
push edi
jmp 0x18015ff5
mov esi, dword [ebp - 0xcc]
mov dword [ebp - 0x120], esi
lea eax, [ebp - 0x124]
xor esi, esi
mov dword [ebp - 0x124], 0xc
push esi
push eax
lea eax, [ebp - 0xf0]
mov dword [ebp - 0x11c], 1
push eax
lea eax, [ebp - 0xdc]
push eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x18015e6a
push esi
push 1
push dword [ebp - 0xdc]
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x18015e6a
mov eax, dword [ebp - 0xdc]
mov dword [ebx], eax
mov eax, dword [ebp - 0xf0]
mov dword [ebp - 0xdc], esi
mov dword [ebp - 0xf0], esi
mov dword [edi], eax
jmp 0x18015e71
call fcn.18017850
mov esi, eax
lea ecx, [ebp - 0x144]
call fcn.1800778d
cmp dword [ebp - 0xcc], 0
mov dword [ebp - 0xd0], 0x181dbf70
je 0x18015f97
and dword [ebp - 0x108], 0
lea eax, [ebp - 0xfc]
push eax
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0xcc]
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorControl]
test eax, eax
je 0x18015f84
test dword [ebp - 0x108], 0x8000
jne 0x18015f84
lea eax, [ebp - 0xd8]
push eax
lea eax, [ebp - 0xfc]
push eax
push dword [ebp - 0xcc]
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorOwner]
push dword [ebp - 0xfc]
call fcn.1816581c
pop ecx
lea eax, [ebp - 0xd8]
push eax
lea eax, [ebp - 0x100]
push eax
push dword [ebp - 0xcc]
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorGroup]
push dword [ebp - 0x100]
call fcn.1816581c
pop ecx
lea eax, [ebp - 0xd8]
push eax
lea eax, [ebp - 0xf4]
push eax
lea eax, [ebp - 0xd4]
push eax
push dword [ebp - 0xcc]
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorDacl]
cmp dword [ebp - 0xd4], 0
je 0x18015f4e
push dword [ebp - 0xf4]
call fcn.1816581c
pop ecx
lea eax, [ebp - 0xd8]
push eax
lea eax, [ebp - 0xe0]
push eax
lea eax, [ebp - 0xd4]
push eax
push dword [ebp - 0xcc]
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorSacl]
cmp dword [ebp - 0xd4], 0
je 0x18015f84
push dword [ebp - 0xe0]
call fcn.1816581c
pop ecx
push dword [ebp - 0xcc]
call fcn.1816581c
and dword [ebp - 0xcc], 0
pop ecx
lea ecx, [ebp - 0xc8]
call fcn.1800749d
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x118], 0x181dc5a0
call fcn.1800ada6
cmp dword [ebp - 0xf0], 0
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x18015fce
push dword [ebp - 0xf0]
call edi
cmp dword [ebp - 0xdc], 0
je 0x18015fdf
push dword [ebp - 0xdc]
call edi
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1814cf3d
leave
ret
push 0x80004005
call fcn.18006585
call fcn.18007164
int3