Function at 0x4028a5
Capabilities:
Create pipe

Disassembly:
push 0x38
mov eax, 0x408620
call fcn.0040782d
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x1c], ebx
mov byte [ebp - 0x18], bl
mov byte [ebp - 0x17], bl
mov byte [ebp - 0x16], bl
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], bl
mov byte [ebp - 0x13], 5
je 0x4028e3
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov dword [ebp - 0x1c], ebx
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0xb
push 1
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x402924
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x1c], ebx
je 0x40291d
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov dword [ebp - 0x1c], ebx
mov eax, esi
jmp 0x402a80
push 0xf
call dword [sym.imp.ADVAPI32.dll_GetSidLengthRequired]
mov edi, eax
push ebx
add edi, 0x10
push edi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
lea esi, [ebp - 0x20]
call fcn.00405b2b
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x20]
xor ebx, ebx
cmp esi, ebx
jne 0x40296f
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x1c], ebx
je 0x402967
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov dword [ebp - 0x1c], ebx
push 8
pop eax
jmp 0x402a80
push 2
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_InitializeAcl]
test eax, eax
jne 0x4029ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov byte [ebp - 4], bl
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x20], ebx
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x1c], ebx
je 0x4029a7
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov dword [ebp - 0x1c], ebx
mov eax, edi
jmp 0x402a80
push dword [ebp - 0x1c]
push 0x10000000
push 2
push esi
call dword [sym.imp.ADVAPI32.dll_AddAccessAllowedAce]
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x4029cd
call edi
jmp 0x4029d3
push esi
call fcn.004050ce
cmp eax, ebx
je 0x4029db
call edi
jmp 0x402983
push 1
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x4029d7
push ebx
push esi
push 1
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x4029d7
mov esi, dword [ebp - 0x24]
push ebx
lea eax, [ebp - 0x44]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x30]
push eax
push 0x3e8
push ebx
push ebx
push 1
push 6
push 0x40000001
push 0x40a564
mov dword [ebp - 0x30], 0xc
mov dword [ebp - 0x28], 1
add esi, 4
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
push eax
call fcn.00405ab1
cmp dword [esi], 0xffffffff
jne 0x402a5a
call edi
mov esi, eax
mov byte [ebp - 4], bl
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x20], ebx
jmp 0x402908
mov byte [ebp - 4], bl
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x20], ebx
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x1c], ebx
je 0x402a7e
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov dword [ebp - 0x1c], ebx
xor eax, eax
call fcn.004078b0
ret 4