Function at 0x14001d530
Capabilities:
Create pipe

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x1b0
mov rax, qword [0x1400761f0]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
mov qword [rsp + 0x58], 0xffffffffffffffff
mov qword [rsp + 0x60], 0xffffffffffffffff
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0
cmp qword [rsp + 0x1c0], 0
jne 0x14001d5a3
call fcn.1400318f4
mov dword [rax], reloc.WS2_32.dll_shutdown
lea rcx, str.pipe___ERROR_invalid_parameter
call fcn.140003a10
mov eax, 0xffffffff
jmp 0x14001d86f
mov eax, dword [0x140077998]
mov dword [rsp + 0x68], eax
mov eax, dword [0x140077998]
inc eax
mov dword [0x140077998], eax
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcessId]
mov ecx, dword [rsp + 0x68]
mov dword [rsp + 0x20], ecx
mov r9d, eax
lea r8, str..PipeW32PosixPipe._08x._08x
mov edx, 0x104
lea rcx, [rsp + 0x90]
call fcn.14001f3b0
cmp eax, 0xffffffff
jne 0x14001d60d
call fcn.1400318f4
mov dword [rax], 0x83
call fcn.1400318f4
mov edx, dword [rax]
lea rcx, str.pipe___ERROR_sprintf_s__d
call fcn.140003a10
jmp 0x14001d820
mov dword [rsp + 0x88], 1
mov qword [rsp + 0x80], 0
mov dword [rsp + 0x78], 0
cmp dword [rsp + 0x1c8], 0
je 0x14001d640
mov dword [rsp + 0x50], 3
jmp 0x14001d648
mov dword [rsp + 0x50], 2
mov eax, dword [rsp + 0x50]
bts eax, 0x1e
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x1000
mov dword [rsp + 0x20], 0x1000
mov r9d, 1
xor r8d, r8d
mov edx, eax
lea rcx, [rsp + 0x90]
call qword [sym.imp.api_ms_win_core_kernel32_legacy_l1_1_0.dll_CreateNamedPipeA]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0xffffffffffffffff
jne 0x14001d6cc
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, eax
call fcn.14001eaa0
mov dword [rsp + 0x6c], eax
call fcn.1400318f4
mov ecx, dword [rsp + 0x6c]
mov dword [rax], ecx
call fcn.1400318f4
mov edx, dword [rax]
lea rcx, str.pipe___CreateNamedPipe___ERROR:_d
call fcn.140003a10
jmp 0x14001d820
cmp dword [rsp + 0x1c8], 0
je 0x14001d6e0
mov dword [rsp + 0x54], 0xc0000000
jmp 0x14001d6e8
mov dword [rsp + 0x54], 0x80000000
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x40000080
mov dword [rsp + 0x20], 3
lea r9, [rsp + 0x78]
xor r8d, r8d
mov edx, dword [rsp + 0x54]
lea rcx, [rsp + 0x90]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateFileA]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0xffffffffffffffff
jne 0x14001d75c
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, eax
call fcn.14001eaa0
mov dword [rsp + 0x70], eax
call fcn.1400318f4
mov ecx, dword [rsp + 0x70]
mov dword [rax], ecx
call fcn.1400318f4
mov edx, dword [rax]
lea rcx, str.pipe___ERROR_CreateFile___:_d
call fcn.140003a10
jmp 0x14001d820
mov ecx, 0xc0
call fcn.140031834
mov qword [rsp + 0x40], rax
mov ecx, 0xc0
call fcn.140031834
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x40], 0
je 0x14001d78a
cmp qword [rsp + 0x48], 0
jne 0x14001d7aa
call fcn.1400318f4
mov dword [rax], listen
call fcn.1400318f4
mov edx, dword [rax]
lea rcx, str.pip___ERROR:_d
call fcn.140003a10
jmp 0x14001d820
mov rdi, qword [rsp + 0x40]
xor eax, eax
mov ecx, 0xc0
rep stosb byte [rdi], al
mov rdi, qword [rsp + 0x48]
xor eax, eax
mov ecx, 0xc0
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x58]
mov qword [rax + 0x90], rcx
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x60]
mov qword [rax + 0x90], rcx
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x1c0]
mov rdx, qword [rsp + 0x40]
mov qword [rcx + rax], rdx
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rsp + 0x1c0]
mov rdx, qword [rsp + 0x48]
mov qword [rcx + rax], rdx
xor eax, eax
jmp 0x14001d86f
cmp qword [rsp + 0x58], 0
je 0x14001d833
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
cmp qword [rsp + 0x60], 0
je 0x14001d846
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
cmp qword [rsp + 0x40], 0
je 0x14001d858
mov rcx, qword [rsp + 0x40]
call fcn.140031820
cmp qword [rsp + 0x48], 0
je 0x14001d86a
mov rcx, qword [rsp + 0x48]
call fcn.140031820
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.14002a0e0
add rsp, 0x1b0
pop rdi
ret