Function at 0x180169fc
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x1822b00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x118], 0x181f49cc
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.1801622c
test al, al
jne 0x18016a66
mov esi, 0x80004005
jmp 0x18016f0e
lea ecx, [ebp - 0xc8]
call fcn.1800a40c
push ecx
push ecx
lea eax, [ebp - 0xc8]
push eax
lea ecx, [ebp - 0x118]
call fcn.1800ed69
test al, al
jne 0x18016a93
mov esi, 0x80004005
jmp 0x18016f03
lea ecx, [ebp - 0x144]
mov dword [ebp - 0xd0], 0x181f42b8
mov dword [ebp - 0xcc], esi
call fcn.18007817
push 0x12
push 1
mov esi, 0x181f3770
lea eax, [ebp - 0x68]
push esi
push eax
call fcn.1800749c
add esp, 0x10
lea eax, [ebp - 0x68]
lea ecx, [ebp - 0x144]
push 0
push 0xc0100000
push eax
call fcn.18007884
lea ecx, [ebp - 0x68]
call fcn.1800756d
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x68]
push esi
push eax
call fcn.1800749c
add esp, 0x14
lea eax, [ebp - 0x68]
mov esi, 0xc0100000
lea ecx, [ebp - 0x144]
push 0
push esi
push eax
call fcn.18007884
lea ecx, [ebp - 0x68]
call fcn.1800756d
push 0
push esi
lea eax, [ebp - 0xc8]
push eax
lea ecx, [ebp - 0x144]
call fcn.18007884
push ecx
lea eax, [ebp - 0x144]
push eax
lea ecx, [ebp - 0xd0]
call fcn.1800ab86
mov esi, dword [ebp - 0xcc]
test esi, esi
je 0x18016d69
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 0x18016f5c
test dword [ebp - 0x104], 0x8000
je 0x18016d63
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 0x18016f66
push dword [ebp - 0xd8]
call fcn.1817c9e2
mov esi, eax
pop ecx
cmp dword [ebp - 0xe8], ebx
je 0x18016c0e
push dword [ebp - 0xe8]
call fcn.1817c9e2
pop ecx
mov dword [ebp - 0xe0], eax
jmp 0x18016c14
mov dword [ebp - 0xe0], ebx
cmp dword [ebp - 0xe4], ebx
je 0x18016c30
push dword [ebp - 0xe4]
call fcn.1817c9e2
pop ecx
mov dword [ebp - 0xd4], eax
jmp 0x18016c36
mov dword [ebp - 0xd4], ebx
mov eax, dword [ebp - 0xec]
test eax, eax
je 0x18016c57
push eax
call fcn.1817c9e2
mov edi, eax
mov eax, dword [ebp - 0xec]
pop ecx
mov dword [ebp - 0xf4], edi
jmp 0x18016c5f
mov edi, ebx
mov dword [ebp - 0xf4], ebx
mov edx, dword [ebp - 0xf8]
test edx, edx
je 0x18016c7e
push edx
call fcn.1817c9e2
mov edx, dword [ebp - 0xf8]
mov ebx, eax
mov eax, dword [ebp - 0xec]
pop ecx
test esi, esi
je 0x18016d28
cmp dword [ebp - 0xe8], 0
je 0x18016c9c
cmp dword [ebp - 0xe0], 0
je 0x18016d28
cmp dword [ebp - 0xe4], 0
mov ecx, dword [ebp - 0xd4]
je 0x18016caf
test ecx, ecx
je 0x18016d28
test eax, eax
je 0x18016cb7
test edi, edi
je 0x18016d28
test edx, edx
je 0x18016cbf
test ebx, ebx
je 0x18016d28
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 0x18016d05
call fcn.18007319
mov edi, eax
jmp 0x18016d2d
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 0x18016d69
mov edi, 0x8007000e
push esi
call fcn.18178edc
push dword [ebp - 0xe0]
call fcn.18178edc
push dword [ebp - 0xd4]
call fcn.18178edc
push dword [ebp - 0xf4]
call fcn.18178edc
push ebx
call fcn.18178edc
add esp, 0x14
push edi
jmp 0x18016f61
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 0x18016dd6
push esi
push 1
push dword [ebp - 0xdc]
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x18016dd6
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 0x18016ddd
call fcn.18018dce
mov esi, eax
lea ecx, [ebp - 0x144]
call fcn.1800785d
cmp dword [ebp - 0xcc], 0
mov dword [ebp - 0xd0], 0x181f42b8
je 0x18016f03
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 0x18016ef0
test dword [ebp - 0x108], 0x8000
jne 0x18016ef0
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.18178edc
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.18178edc
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 0x18016eba
push dword [ebp - 0xf4]
call fcn.18178edc
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 0x18016ef0
push dword [ebp - 0xe0]
call fcn.18178edc
pop ecx
push dword [ebp - 0xcc]
call fcn.18178edc
and dword [ebp - 0xcc], 0
pop ecx
lea ecx, [ebp - 0xc8]
call fcn.1800756d
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x118], 0x181f49cc
call fcn.1800aea7
cmp dword [ebp - 0xf0], 0
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x18016f3a
push dword [ebp - 0xf0]
call edi
cmp dword [ebp - 0xdc], 0
je 0x18016f4b
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.181605f4
leave
ret
push 0x80004005
call fcn.18006655
call fcn.18007234
int3