Function at 0x4028db
Capabilities:
Create pipe

Disassembly:
push 0x38
mov eax, 0x408616
call fcn.0040785d
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 0x402919
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 0x40295a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x1c], ebx
je 0x402953
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov dword [ebp - 0x1c], ebx
mov eax, esi
jmp 0x402ab6
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.00405b67
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x20]
xor ebx, ebx
cmp esi, ebx
jne 0x4029a5
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x1c], ebx
je 0x40299d
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov dword [ebp - 0x1c], ebx
push 8
pop eax
jmp 0x402ab6
push 2
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_InitializeAcl]
test eax, eax
jne 0x4029e4
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 0x4029dd
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov dword [ebp - 0x1c], ebx
mov eax, edi
jmp 0x402ab6
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 0x402a03
call edi
jmp 0x402a09
push esi
call fcn.004050c3
cmp eax, ebx
je 0x402a11
call edi
jmp 0x4029b9
push 1
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x402a0d
push ebx
push esi
push 1
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x402a0d
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.00405aed
cmp dword [esi], 0xffffffff
jne 0x402a90
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 0x40293e
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 0x402ab4
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov dword [ebp - 0x1c], ebx
xor eax, eax
call fcn.004078e0
ret 4