Function at 0x50e2b2
Capabilities:
Create pipe
Get token privileges

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x55ca01
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x5f7350]
xor eax, esp
mov dword [esp + 0x208], eax
push ebx
push esi
push edi
mov eax, dword [0x5f7350]
xor eax, esp
push eax
lea eax, [esp + 0x220]
mov dword fs:[0], eax
lea eax, [esp + 0x28]
push eax
xor edi, edi
push 8
mov ebx, ecx
mov dword [esp + 0x30], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x50e3c1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x94]
push eax
call fcn.00403689
mov esi, eax
push str.OpenProcessToken_failed_with
push esi
mov dword [esp + 0x230], edi
call fcn.00405d65
pop ecx
pop ecx
push dword [esp + 0x14]
push esi
call fcn.0041058a
lea eax, [esp + 0x1e0]
push eax
mov eax, esi
call fcn.004036f3
mov byte [esp + 0x228], 1
cmp dword [esp + 0x1f4], 8
mov eax, dword [esp + 0x1e0]
jae 0x50e37c
lea eax, [esp + 0x1e0]
xor ecx, ecx
push eax
inc ecx
call fcn.00492cc7
pop ecx
push 1
xor edi, edi
lea esi, [esp + 0x1e4]
call fcn.0040412d
or dword [esp + 0x228], 0xffffffff
lea eax, [esp + 0x94]
call fcn.0040262a
push str.OpenProcessToken_failed
push 1
push dword [ebx - 0x50]
call fcn.005063f4
add esp, 0xc
jmp 0x50eb03
mov esi, dword [esp + 0x28]
mov dword [esp + 0x10], esi
lea eax, [esp + 0x20]
push eax
push edi
push edi
push 1
mov dword [esp + 0x238], 2
push esi
mov dword [esp + 0x34], edi
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x50ead9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x50ead9
mov esi, dword [esp + 0x20]
lea eax, [esp + 0x1e0]
mov dword [esp + 0x1e0], edi
mov dword [esp + 0x1e4], edi
mov dword [esp + 0x1e8], edi
call fcn.0042c6dd
lea eax, [esp + 0x20]
push eax
mov byte [esp + 0x22c], 3
push dword [esp + 0x24]
xor esi, esi
push dword [esp + 0x1e8]
inc esi
push esi
push dword [esp + 0x38]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x50e529
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x94]
push eax
call fcn.00403689
mov edi, eax
push str.GetTokenInformation_failed_with
push edi
mov byte [esp + 0x230], 4
call fcn.00405d65
pop ecx
pop ecx
push dword [esp + 0x14]
push edi
call fcn.0041058a
lea eax, [esp + 0x1c4]
push eax
mov eax, edi
call fcn.004036f3
mov byte [esp + 0x228], 5
cmp dword [esp + 0x1d8], 8
mov eax, dword [esp + 0x1c4]
jae 0x50e4b9
lea eax, [esp + 0x1c4]
push eax
mov ecx, esi
call fcn.00492cc7
pop ecx
push esi
xor edi, edi
lea esi, [esp + 0x1c8]
call fcn.0040412d
lea eax, [esp + 0x94]
mov byte [esp + 0x228], 3
call fcn.0040262a
push str.GetTokenInformation_failed
push 1
push dword [ebx - 0x50]
call fcn.005063f4
add esp, 0xc
lea esi, [esp + 0x1e0]
call fcn.004e7046
or dword [esp + 0x228], 0xffffffff
cmp dword [esp + 0x10], edi
je 0x50eb03
cmp dword [esp + 0x10], 0xffffffff
je 0x50eb03
push dword [esp + 0x10]
jmp 0x50eafd
lea eax, [esp + 0x2c]
push eax
push str.S_1_5_18
mov dword [esp + 0x34], edi
call dword [sym.imp.ADVAPI32.dll_ConvertStringSidToSidW]
test eax, eax
jne 0x50e5e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x94]
push eax
call fcn.00403689
mov edi, eax
push str.ConvertStringSidToSidW_failed_with
push edi
mov byte [esp + 0x230], 6
call fcn.00405d65
pop ecx
pop ecx
push dword [esp + 0x14]
push edi
call fcn.0041058a
lea eax, [esp + 0x1c4]
push eax
mov eax, edi
call fcn.004036f3
mov byte [esp + 0x228], 7
cmp dword [esp + 0x1d8], 8
mov eax, dword [esp + 0x1c4]
jae 0x50e5ac
lea eax, [esp + 0x1c4]
push eax
mov ecx, esi
call fcn.00492cc7
pop ecx
push esi
xor edi, edi
lea esi, [esp + 0x1c8]
call fcn.0040412d
lea eax, [esp + 0x94]
mov byte [esp + 0x228], 3
call fcn.0040262a
push str.ConvertStringSidToSidW_failed
jmp 0x50e4ea
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x18], eax
push 0x40
lea eax, [esp + 0x58]
push edi
push eax
mov byte [esp + 0x234], 8
call fcn.00517bf0
mov edx, dword [esp + 0x1ec]
add esp, 0xc
push 2
pop eax
mov ecx, 0xc0000000
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], edi
mov dword [esp + 0x68], edi
mov dword [esp + 0x6c], esi
mov edx, dword [edx]
mov dword [esp + 0x74], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x90], ecx
lea ecx, [esp + 0x30]
push ecx
push edi
lea ecx, [esp + 0x5c]
push ecx
push eax
mov dword [esp + 0x80], edx
mov dword [esp + 0x70], edi
mov dword [esp + 0x74], edi
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], edi
mov dword [esp + 0x98], edi
mov dword [esp + 0x9c], esi
mov dword [esp + 0x90], edi
mov dword [esp + 0x94], edi
mov dword [esp + 0x40], edi
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
test eax, eax
je 0x50e6b1
push str.SetEntriesInAcl_failed
push esi
push dword [ebx - 0x50]
call fcn.005063f4
add esp, 0xc
mov byte [esp + 0x228], 3
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x50e4f7
mov eax, dword [esp + 0x30]
mov dword [esp + 0x1c], eax
mov byte [esp + 0x228], 9
xor eax, eax
mov byte [esp + 0x40], 0
lea edi, [esp + 0x41]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor edi, edi
inc edi
push edi
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
jne 0x50e7b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x94]
push eax
call fcn.00403689
mov esi, eax
push str.InitializeSecurityDescriptor_failed_with
push esi
mov byte [esp + 0x230], 0xa
call fcn.00405d65
pop ecx
pop ecx
push dword [esp + 0x14]
push esi
call fcn.0041058a
lea eax, [esp + 0x1c4]
push eax
mov eax, esi
call fcn.004036f3
mov byte [esp + 0x228], 0xb
cmp dword [esp + 0x1d8], 8
mov eax, dword [esp + 0x1c4]
jae 0x50e751
lea eax, [esp + 0x1c4]
push eax
mov ecx, edi
call fcn.00492cc7
pop ecx
push edi
xor edi, edi
lea esi, [esp + 0x1c8]
call fcn.0040412d
lea eax, [esp + 0x94]
mov byte [esp + 0x228], 9
call fcn.0040262a
push str.InitializeSecurityDescriptor_failed
push 1
push dword [ebx - 0x50]
call fcn.005063f4
add esp, 0xc
mov byte [esp + 0x228], 8
push dword [esp + 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
call esi
mov byte [esp + 0x228], 3
push dword [esp + 0x18]
call esi
jmp 0x50e4f7
xor esi, esi
push esi
push dword [esp + 0x34]
lea eax, [esp + 0x48]
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
jne 0x50e86e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x94]
push eax
call fcn.00403689
mov esi, eax
push str.SetSecurityDescriptorDacl_failed_with
push esi
mov byte [esp + 0x230], 0xc
call fcn.00405d65
pop ecx
pop ecx
push dword [esp + 0x14]
push esi
call fcn.0041058a
lea eax, [esp + 0x1c4]
push eax
mov eax, esi
call fcn.004036f3
mov byte [esp + 0x228], 0xd
cmp dword [esp + 0x1d8], 8
mov eax, dword [esp + 0x1c4]
jae 0x50e838
lea eax, [esp + 0x1c4]
push eax
mov ecx, edi
call fcn.00492cc7
pop ecx
push edi
xor edi, edi
lea esi, [esp + 0x1c8]
call fcn.0040412d
lea eax, [esp + 0x94]
mov byte [esp + 0x228], 9
call fcn.0040262a
push str.SetSecurityDescriptorDacl_failed
jmp 0x50e782
mov eax, dword [esp + 0x1e0]
push esi
push dword [eax]
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorOwner]
test eax, eax
jne 0x50e928
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x94]
push eax
call fcn.00403689
mov esi, eax
push str.SetSecurityDescriptorOwner_failed_with
push esi
mov byte [esp + 0x230], 0xe
call fcn.00405d65
pop ecx
pop ecx
push dword [esp + 0x14]
push esi
call fcn.0041058a
lea eax, [esp + 0x1c4]
push eax
mov eax, esi
call fcn.004036f3
mov byte [esp + 0x228], 0xf
cmp dword [esp + 0x1d8], 8
mov eax, dword [esp + 0x1c4]
jae 0x50e8f2
lea eax, [esp + 0x1c4]
push eax
mov ecx, edi
call fcn.00492cc7
pop ecx
push edi
xor edi, edi
lea esi, [esp + 0x1c8]
call fcn.0040412d
lea eax, [esp + 0x94]
mov byte [esp + 0x228], 9
call fcn.0040262a
push str.SetSecurityDescriptorOwner_failed
jmp 0x50e782
lea eax, [esp + 0x40]
mov dword [esp + 0x38], eax
lea eax, [esp + 0x1fc]
push eax
lea eax, [ebx - 0x8c]
mov dword [esp + 0x38], 0xc
mov dword [esp + 0x40], esi
call fcn.0050d795
mov byte [esp + 0x228], 0x10
cmp dword [eax + 0x14], 0x10
jb 0x50e961
mov ecx, dword [eax]
jmp 0x50e963
mov ecx, eax
lea eax, [esp + 0x34]
push eax
push esi
mov eax, 0x1000
push eax
push eax
push edi
push 6
push 0x40080003
push ecx
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x24]
push eax
lea esi, [esp + 0x18]
call fcn.0050ebe6
pop ecx
push 0
push edi
lea ecx, [esp + 0x204]
mov byte [esp + 0x230], 0x12
call fcn.00403fde
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
test ecx, ecx
je 0x50e9bc
cmp ecx, 0xffffffff
jne 0x50ea7e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x12c]
push eax
call fcn.00403689
mov esi, eax
push str.CreateNamedPipe_failed_with
push esi
mov byte [esp + 0x230], 0x13
call fcn.00405d65
pop ecx
pop ecx
push dword [esp + 0x24]
push esi
call fcn.0041058a
lea eax, [esp + 0x1c4]
push eax
mov eax, esi
call fcn.004036f3
mov byte [esp + 0x228], 0x14
cmp dword [esp + 0x1d8], 8
mov eax, dword [esp + 0x1c4]
jae 0x50ea23
lea eax, [esp + 0x1c4]
push eax
mov ecx, edi
call fcn.00492cc7
pop ecx
push edi
xor edi, edi
lea esi, [esp + 0x1c8]
call fcn.0040412d
lea eax, [esp + 0x12c]
mov byte [esp + 0x228], 0x12
call fcn.0040262a
push str.CreateNamedPipe_failed
push 1
push dword [ebx - 0x50]
call fcn.005063f4
mov byte [esp + 0x234], 9
mov esi, dword [esp + 0x20]
add esp, 0xc
call fcn.004595f3
push esi
call fcn.00515779
pop ecx
jmp 0x50e78f
mov dword [ebx + 8], eax
mov eax, dword [ebx - 0x50]
mov byte [esp + 0x228], 8
push dword [esp + 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebx + 0x14], eax
call esi
mov byte [esp + 0x228], 3
push dword [esp + 0x18]
call esi
lea esi, [esp + 0x1e0]
call fcn.004e7046
or dword [esp + 0x228], 0xffffffff
cmp dword [esp + 0x10], 0
je 0x50ead5
cmp dword [esp + 0x10], 0xffffffff
je 0x50ead5
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x50eb05
push str.GetTokenInformation_misbehaves...
push 1
push dword [ebx - 0x50]
call fcn.005063f4
or dword [esp + 0x234], 0xffffffff
add esp, 0xc
cmp esi, edi
je 0x50eb03
cmp esi, 0xffffffff
je 0x50eb03
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [esp + 0x220]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.005146df
mov esp, ebp
pop ebp
ret