Function at 0x14008fbe0
Capabilities:
Connect pipe

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rdi
push r14
sub rsp, 0x250
mov rax, qword [0x140164030]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbx, rcx
lea rcx, str._Aws_PipeServer__PipeListener_Start_n
call fcn.1400959a0
mov rdi, 0xffffffffffffffff
xor bpl, bpl
mov r14, rdi
mov qword [rsp + 0x20], rdi
cmp byte [rbx + 0x18], bpl
je 0x14008fee5
mov qword [rsp + 0x280], r15
xor r15d, r15d
mov qword [rsp + 0x278], rsi
mov rcx, qword [rbx + 8]
mov edx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x14008fea5
test bpl, bpl
jne 0x14008fea9
mov rcx, qword [rbx + 0x10]
xor sil, sil
cmp rcx, 0xffffffffffffffff
je 0x14008fc7b
mov edx, 0xffffffff
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
cmp rdi, 0xffffffffffffffff
jne 0x14008fcb1
lea rcx, str._Aws_PipeServer__CreateConnection___start_n
call fcn.140095ab0
mov r8b, 1
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.14008fab0
lea rcx, str._Aws_PipeServer__CreateConnection___end_n
movzx esi, al
call fcn.140095ab0
mov rdi, qword [rsp + 0x20]
mov rcx, qword [rbx + 0x10]
cmp rcx, 0xffffffffffffffff
je 0x14008fcc1
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseMutex]
cmp sil, 1
jne 0x14008fea9
cmp rdi, 0xffffffffffffffff
je 0x14008fea9
lea rcx, str._Aws_PipeServer__PipeListener_ConnectNamedPipe_Start_n
call fcn.1400959a0
xor edx, edx
mov byte [rbx + 0x19], sil
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_namedpipe_l1_1_0.dll_ConnectNamedPipe]
test eax, eax
je 0x14008fd0f
mov edx, 1
mov byte [rbx + 0x19], r15b
lea rcx, str._Aws_PipeServer__PipeListener_ConnectNamedPipe_end:_d_n
movzx ebp, sil
call fcn.1400959a0
jmp 0x14008fd3c
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
lea rcx, str._Aws_PipeServer__PipeListener_ConnectNamedPipe_end:_d_n
mov byte [rbx + 0x19], r15b
cmp eax, 0x217
sete bpl
movzx edx, bpl
call fcn.1400959a0
cmp bpl, 1
jne 0x14008fe7d
lea rdx, [rsp + 0x28]
mov dword [rsp + 0x28], r15d
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_kernel32_legacy_l1_1_0.dll_GetNamedPipeClientProcessId]
test eax, eax
jne 0x14008fd6c
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edx, eax
lea rcx, str._Aws_PipeServer__PipeListener_GetNamedPipeClientProcessId_fail_:0x_I64X_n
call fcn.1400959a0
jmp 0x14008fdf5
mov r8d, dword [rsp + 0x28]
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_1.dll_OpenProcess]
mov rsi, rax
test rax, rax
je 0x14008fde1
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x208
call fcn.1400c5120
mov r9d, 0x104
lea r8, [rsp + 0x30]
xor edx, edx
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_psapi_l1_1_0.dll_K32GetModuleFileNameExW]
test eax, eax
je 0x14008fdc8
lea rdx, [rsp + 0x30]
lea rcx, str._Aws_PipeServer__GetProcessHandleByID_Find_:_s_n
call fcn.140095ab0
mov r14, rsi
jmp 0x14008fdf5
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edx, eax
lea rcx, str._Aws_PipeServer__GetProcessHandleByID_GetModuleFileNameExW_fail_:0x_I64X_n
call fcn.140095ab0
mov r14, rsi
jmp 0x14008fdf5
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edx, eax
lea rcx, str._Aws_PipeServer__GetProcessHandleByID_OpenProcess_fail_:0x_I64X_n
call fcn.140095ab0
cmp qword [rbx + 0x48], r15
je 0x14008fe5a
mov ecx, 0x68
call fcn.1400c2704
mov qword [rsp + 0x20], rax
xorps xmm0, xmm0
xor ecx, ecx
mov rdx, rdi
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax + 0x20], xmm0
movups xmmword [rax + 0x30], xmm0
movups xmmword [rax + 0x40], xmm0
movups xmmword [rax + 0x50], xmm0
mov qword [rax + 0x60], rcx
mov rcx, rax
call fcn.14008f340
mov rcx, qword [rbx + 0x20]
mov rdx, rax
mov rax, qword [rbx + 0x48]
mov r8, r14
call qword [0x1400fac68]
mov rdi, 0xffffffffffffffff
mov qword [rsp + 0x20], rdi
mov r14, rdi
jmp 0x14008fea9
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.14008f9d0
cmp r14, 0xffffffffffffffff
je 0x14008fe9e
mov rcx, r14
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov rdi, qword [rsp + 0x20]
jmp 0x14008fea9
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edx, eax
lea rcx, str._Aws_PipeServer__PipeListener_ConnectNamedPipe_fail_:0x_I64X_n
call fcn.1400959a0
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.14008f9d0
mov rdi, qword [rsp + 0x20]
jmp 0x14008fea9
test eax, eax
je 0x14008feb3
cmp byte [rbx + 0x18], r15b
jne 0x14008fc40
mov r15, qword [rsp + 0x280]
mov rsi, qword [rsp + 0x278]
cmp rdi, 0xffffffffffffffff
je 0x14008fed6
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.14008f9d0
cmp r14, 0xffffffffffffffff
je 0x14008fee5
mov rcx, r14
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
lea rcx, str._Aws_PipeServer__PipeListener_End_n
call fcn.1400959a0
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1400c2450
mov rbx, qword [rsp + 0x288]
add rsp, 0x250
pop r14
pop rdi
pop rbp
ret