Function at 0x1801b7730
Capabilities:
Create pipe

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x118
movaps xmmword [rsp + 0x100], xmm6
mov byte [rsp + 0x4f], r8b
mov qword [rsp + 0x50], rcx
mov byte [rsp + 0x4e], dl
movzx eax, dl
mov ecx, 0x40080002
sub ecx, eax
mov dword [rsp + 0x58], ecx
xor eax, eax
mov qword [rsp + 0x98], rax
mov r12d, 8
mov sil, 1
xorps xmm6, xmm6
lea r13, [rsp + 0x60]
mov r15, qword [sym.imp.bcryptprimitives.dll_ProcessPrng]
jmp 0x1801b7792
xor esi, esi
call qword [sym.imp.kernel32.dll_GetCurrentProcessId]
mov dword [rsp + 0x5c], eax
mov rax, qword [0x1802813e0]
test rax, rax
jne 0x1801b77d8
nop dword [rax + rax]
movaps xmmword [rsp + 0x60], xmm6
mov edx, 0x10
mov rcx, r13
call r15
mov rax, qword [rsp + 0x60]
mov qword [0x1802813e0], rax
mov rax, qword [0x1802813e0]
test rax, rax
je 0x1801b77b0
mov eax, 1
lock xadd qword [0x1802813e0], rax
mov qword [rsp + 0xc0], rax
lea rax, [rsp + 0x5c]
mov qword [rsp + 0xa0], rax
lea rax, [0x1801d4130]
mov qword [rsp + 0xa8], rax
lea rax, [rsp + 0xc0]
mov qword [rsp + 0xb0], rax
lea rax, [fcn.1801d4380]
mov qword [rsp + 0xb8], rax
lea rax, str..pipe__rust_anonymous_pipe1__..
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], 2
mov qword [rsp + 0x80], 0
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], 2
lea rcx, [rsp + 0xc8]
mov rdx, r13
call fcn.1801d2010
test rdi, rdi
sete al
or sil, al
test sil, 1
jne 0x1801b7890
mov r8d, 1
mov rcx, rbx
mov rdx, rdi
call fcn.180057680
mov rdi, qword [rsp + 0xc8]
mov rbx, qword [rsp + 0xd0]
mov rsi, qword [rsp + 0xd8]
lea rax, [rbx + rsi]
mov qword [rsp + 0xe0], rbx
mov qword [rsp + 0xe8], rax
mov word [rsp + 0xf0], 0
mov dword [rsp + 0xf8], 1
mov rcx, r13
lea rdx, [rsp + 0xe0]
call fcn.180059460
mov rbp, qword [rsp + 0x68]
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x10000
mov dword [rsp + 0x20], 0x10000
mov rcx, rbp
mov edx, dword [rsp + 0x58]
mov r8d, r12d
mov r9d, 1
call qword [sym.imp.kernel32.dll_CreateNamedPipeW]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x1801b7a08
mov rax, qword [rsp + 0x98]
lea esi, [rax + 1]
call qword [sym.imp.kernel32.dll_GetLastError]
cmp esi, 0xa
jge 0x1801b7991
cmp eax, 5
jne 0x1801b7960
mov eax, esi
mov qword [rsp + 0x98], rax
jmp 0x1801b796d
test r12d, r12d
je 0x1801b7991
xor r12d, r12d
cmp eax, 0x57
jne 0x1801b7991
mov rdx, qword [rsp + 0x60]
test rdx, rdx
je 0x1801b7790
add rdx, rdx
mov r8d, 2
mov rcx, rbp
call fcn.180057680
jmp 0x1801b7790
shl rax, 0x20
or rax, 2
mov rsi, qword [rsp + 0x50]
mov qword [rsi + 8], rax
mov qword [rsi], 1
mov rdx, qword [rsp + 0x60]
test rdx, rdx
je 0x1801b79c4
add rdx, rdx
mov r8d, 2
mov rcx, rbp
call fcn.180057680
test rdi, rdi
je 0x1801b79da
mov r8d, 1
mov rcx, rbx
mov rdx, rdi
call fcn.180057680
cmp r14, 0xffffffffffffffff
je 0x1801b79e9
mov rcx, r14
call qword [sym.imp.kernel32.dll_CloseHandle]
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x100]
add rsp, 0x118
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rdx, qword [rsp + 0x60]
test rdx, rdx
je 0x1801b7a23
add rdx, rdx
mov r8d, 2
mov rcx, rbp
call fcn.180057680
mov qword [rsp + 0x70], 0
mov dword [rsp + 0x60], 0
mov qword [rsp + 0x7c], 0
mov word [rsp + 0x84], 0
movzx eax, byte [rsp + 0x4e]
mov byte [rsp + 0x81], al
xor al, 1
mov byte [rsp + 0x80], al
mov dword [rsp + 0x78], 0
movzx eax, byte [rsp + 0x4f]
mov dword [rsp + 0xa0], 0x18
mov qword [rsp + 0xa8], 0
mov dword [rsp + 0xb0], eax
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x68], rax
lea r8, [rsp + 0x60]
mov rcx, rbx
mov rdx, rsi
call fcn.1801b47f0
test rax, rax
je 0x1801b7ac7
mov rsi, qword [rsp + 0x50]
mov qword [rsi + 8], rdx
mov qword [rsi], 1
test rdi, rdi
jne 0x1801b79c9
jmp 0x1801b79da
mov rsi, qword [rsp + 0x50]
mov qword [rsi + 8], r14
mov qword [rsi + 0x10], rdx
mov qword [rsi], 0
test rdi, rdi
je 0x1801b79e9
mov r8d, 1
mov rcx, rbx
mov rdx, rdi
call fcn.180057680
jmp 0x1801b79e9