Function at 0x14006ff30
Capabilities:
Compare security identifiers

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rdi
push r14
sub rsp, 0x40
mov r14, rdx
mov r8d, 9
lea rdx, str..pipe_
mov rdi, rcx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
je 0x14006ff74
mov r8d, 0x16
lea rdx, str.C:Usersyangjun04Downloadsputty_srcwindows_named_pipe_client.c
lea rcx, str.strncmp_pipename___.pipe___9___0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
lea rcx, [rdi + 9]
mov edx, 0x5c
call sub.VCRUNTIME140.dll_strchr
test rax, rax
je 0x14006ffa1
mov r8d, 0x17
lea rdx, str.C:Usersyangjun04Downloadsputty_srcwindows_named_pipe_client.c
lea rcx, str.strchr_pipename__9_____NULL
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
xor ebp, ebp
xor r9d, r9d
mov qword [rsp + 0x30], rbp
xor r8d, r8d
mov dword [rsp + 0x28], 0x40000000
mov edx, 0xc0000000
mov rcx, rdi
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140070027
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe7
jne 0x1400700a5
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitNamedPipeA]
test eax, eax
je 0x14007006e
mov qword [rsp + 0x30], rbp
xor r9d, r9d
mov dword [rsp + 0x28], 0x40000000
xor r8d, r8d
mov edx, 0xc0000000
mov dword [rsp + 0x20], 3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14006ffd5
mov qword [rsp + 0x68], rsi
call fcn.1400a4400
mov rsi, rax
mov rcx, rbx
test rax, rax
jne 0x1400700dc
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400a42b0
mov rdx, rax
lea rcx, str.Unable_to_get_user_SID:__s
call fcn.1400a6690
mov qword [r14], rax
lea rax, [rsi - 1]
jmp 0x14007018d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400a42b0
mov r8, rax
lea rcx, str.Error_waiting_for_named_pipe__s:__s
mov rdx, rdi
call fcn.1400a6690
mov qword [r14], rax
mov rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop rdi
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400a42b0
mov r8, rax
lea rcx, str.Unable_to_open_named_pipe__s:__s
mov rdx, rdi
call fcn.1400a6690
mov qword [r14], rax
mov rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop rdi
pop rbp
ret
mov edx, 6
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x70]
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rbp
lea r8d, [rdx - 5]
mov qword [rsp + 0x20], rbp
call qword [0x14013ed68]
test eax, eax
je 0x14007013e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400a42b0
mov rdx, rax
lea rcx, str.Unable_to_get_named_pipe_security_information:__s
call fcn.1400a6690
mov qword [r14], rax
mov rax, 0xffffffffffffffff
jmp 0x14007018d
mov rcx, qword [rsp + 0x70]
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x14007017f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rdx, rdi
lea rcx, str.Owner_of_named_pipe__s_is_not_us
call fcn.1400a6690
mov qword [r14], rax
mov rax, 0xffffffffffffffff
jmp 0x14007018d
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rax, rbx
mov rsi, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop rdi
pop rbp
ret