Function at 0x3209830
Capabilities:
Create pipe

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rsi
push rbp
lea rbp, [r11 - 0x5f]
sub rsp, 0xa0
mov rax, qword [0x03260b88]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov qword [r11 + 0x10], rdi
mov rbx, rcx
xor esi, esi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rbp - 1]
lea edx, [rsi + 0x28]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x32098cf
lea r8, [rbp + 7]
xor ecx, ecx
lea rdx, str.SeSecurityPrivilege
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x32098cf
mov rax, qword [rbp + 7]
lea r9d, [rsi + 0x10]
mov rcx, qword [rbp - 1]
lea r8, [rbp + 0x27]
mov qword [rbp + 0x2b], rax
xor edx, edx
lea rax, [rbp - 9]
mov dword [rbp + 0x27], 1
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x37]
mov qword [rsp + 0x20], rax
mov dword [rbp + 0x33], 2
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x32098e2
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x32099c9
mov edi, dword [rbp - 9]
jmp 0x32098f4
mov edi, dword [rbp + 0x43]
mov rcx, qword [rbp - 1]
shr edi, 1
and edi, 1
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xorps xmm0, xmm0
lea rcx, [rbp + 0xf]
xor eax, eax
movups xmmword [rbp + 0xf], xmm0
mov qword [rbp + 0x1f], rax
call fcn.032095c0
lea rax, [rbp + 0xf]
mov r9d, 0xff
mov qword [rsp + 0x38], rax
lea rcx, [rbx + 0x40]
mov dword [rsp + 0x30], esi
xor r8d, r8d
mov dword [rsp + 0x28], 0x10000
mov edx, 0x40000003
mov dword [rsp + 0x20], 0x10000
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov qword [rbx + 0x190], rax
test edi, edi
jne 0x32099c9
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rbp - 1]
lea edx, [rdi + 0x28]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x32099c3
lea r8, [rbp + 7]
xor ecx, ecx
lea rdx, str.SeSecurityPrivilege
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x32099c3
mov rax, qword [rbp + 7]
lea r9d, [rdi + 0x10]
mov rcx, qword [rbp - 1]
lea r8, [rbp + 0x27]
mov qword [rbp + 0x2b], rax
xor edx, edx
lea rax, [rbp - 9]
mov dword [rbp + 0x27], 1
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x37]
mov qword [rsp + 0x20], rax
mov dword [rbp + 0x33], esi
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x32099c3
mov rcx, qword [rbp - 1]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x32099c9
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp qword [rbx + 0x190], 0xffffffffffffffff
mov rdi, qword [rsp + 0xb8]
jne 0x3209a21
mov qword [rsp + 0x38], rsi
lea rcx, [rbx + 0x40]
mov dword [rsp + 0x30], esi
mov r9d, 0xff
mov dword [rsp + 0x28], 0x10000
xor r8d, r8d
mov edx, 0x40000003
mov dword [rsp + 0x20], 0x10000
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov qword [rbx + 0x190], rax
cmp rax, 0xffffffffffffffff
jne 0x3209a21
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x3209a7c
mov edx, 1
xor r9d, r9d
mov r8d, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0x18], rax
test rax, rax
je 0x3209a19
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0x38], rax
test rax, rax
je 0x3209a19
lea rcx, [0x0320a260]
xor r8d, r8d
mov qword [rsp + 0x20], rcx
lea r9, [0x0320a2e0]
mov rcx, qword [rbx + 0x18]
mov rdx, rbx
call fcn.032091c0
mov eax, esi
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.03229100
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret