Function at 0x14006e7e0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov rbx, rcx
xor ebp, ebp
mov ecx, dword [rcx + 0xcca0]
test ecx, ecx
jne 0x14006e8b7
cmp rdx, 0xffffffffffffffff
jne 0x14006e822
lea r8, str.Bad_socket_provided
mov rcx, rbx
lea edx, [rbp - 0x2d]
call fcn.140072f30
jmp 0x14006ec0c
movsxd rcx, edx
lea rax, [rsp + 0x60]
lea r14, [rbx + 0x238]
mov dword [rsp + 0x60], 4
mov qword [r14], rdx
lea r9, [rsp + 0x70]
mov edx, 0xffff
mov qword [rsp + 0x20], rax
mov r8d, 0x1007
call qword [sym.imp.ws2_32.dll_getsockopt]
test eax, eax
je 0x14006e86d
mov dword [rbx + 0x248], ebp
mov dword [rbx + 0xcca0], 2
jmp 0x14006e8c7
mov ecx, dword [rsp + 0x70]
mov eax, ebp
test ecx, ecx
sete al
mov dword [rbx + 0x248], eax
test ecx, ecx
jne 0x14006e861
mov rcx, qword [r14]
lea r8, [rsp + 0x60]
mov edx, 0x8004667e
mov dword [rsp + 0x60], 1
call qword [sym.imp.ws2_32.dll_ioctlsocket]
test eax, eax
je 0x14006e861
lea r8, str.Failed_changing_sockets_blocking_state_to_non_blocking
mov edx, eax
mov rcx, rbx
call fcn.140072f30
jmp 0x14006ec0c
lea r14, [rbx + 0x238]
cmp ecx, 2
jne 0x14006e9f5
lea rsi, str.SSH_2.0_libssh2_1.10.1_DEV_r_n
mov ecx, 0x1c
cmp dword [rbx + 0xcb78], ebp
jne 0x14006e906
mov rax, qword [rbx + 0x190]
test rax, rax
je 0x14006e8fc
mov rcx, 0xffffffffffffffff
nop
inc rcx
cmp byte [rax + rcx], bpl
jne 0x14006e8f0
mov rsi, rax
mov dword [rbx + 0xcb78], 2
mov rax, qword [rbx + 0xcc80]
xor r9d, r9d
and dword [rbx + 0x244], 0xfffffffd
movsxd rdi, ecx
mov rcx, qword [r14]
mov r8, rdi
lea rdx, [rax + rsi]
mov qword [rsp + 0x20], rbx
sub r8, rax
call qword [rbx + 0x48]
mov r9, rax
test rax, rax
js 0x14006e967
mov rcx, qword [rbx + 0xcc80]
lea r8, str.Sent__d__d_bytes_at__p_d
mov qword [rsp + 0x30], rcx
mov rdx, rdi
sub rdx, rcx
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rdx
mov rcx, rbx
mov edx, 0x200
call fcn.14006b310
mov rcx, qword [rbx + 0xcc80]
sub rdi, rcx
cmp r9, rdi
je 0x14006e9dc
movabs rdx, 0x8000000000000000
add rax, rdx
test rdx, rax
jne 0x14006e9b4
cmp r9, 0xfffffffffffffff5
je 0x14006e9b4
lea r8, str.Failed_sending_banner
mov dword [rbx + 0xcb78], ebp
mov edx, 0xffffffd5
mov qword [rbx + 0xcc80], rbp
mov rcx, rbx
call fcn.140072f30
jmp 0x14006ec0c
mov dword [rbx + 0x244], 2
test r9, r9
jle 0x14006eb07
lea rax, [rcx + r9]
mov qword [rbx + 0xcc80], rax
mov eax, 0xffffffdb
jmp 0x14006ec0c
mov dword [rbx + 0xcb78], ebp
mov qword [rbx + 0xcc80], rbp
mov dword [rbx + 0xcca0], 3
jmp 0x14006ea00
cmp ecx, 3
jne 0x14006ea52
nop word [rax + rax]
mov rcx, rbx
call fcn.14006dd30
cmp eax, 0xffffffdb
je 0x14006eb07
test eax, eax
jne 0x14006ea3c
mov rdx, qword [rbx + 0x120]
lea r8d, [rax + 4]
lea rcx, str.SSH_
call fcn.14008b050
test eax, eax
jne 0x14006ea00
mov dword [rbx + 0xcca0], 4
jmp 0x14006ea57
lea r8, str.Failed_getting_banner
mov edx, eax
mov rcx, rbx
call fcn.140072f30
jmp 0x14006ec0c
cmp ecx, 4
jne 0x14006ea9e
lea r8, [rbx + 0xcce8]
xor edx, edx
mov rcx, rbx
call fcn.14006fe90
cmp eax, 0xffffffdb
je 0x14006eb07
test eax, eax
je 0x14006ea8b
lea r8, str.Unable_to_exchange_encryption_keys
mov edx, eax
mov rcx, rbx
call fcn.140072f30
jmp 0x14006ec0c
mov dword [rbx + 0xcca0], 5
lea rdi, [rbx + 0xccb8]
jmp 0x14006eaaa
lea rdi, [rbx + 0xccb8]
cmp ecx, 5
jne 0x14006eae6
lea rcx, [rbx + 0xccb9]
mov byte [rdi], 5
mov edx, 0xc
call fcn.1400731e0
movsd xmm0, qword [str.ssh_userauth]
movsd qword [rbx + 0xccbd], xmm0
mov eax, dword [0x1400b0310]
mov dword [rbx + 0xccc5], eax
mov dword [rbx + 0xcca0], 6
jmp 0x14006eaeb
cmp ecx, 6
jne 0x14006eb37
xor r9d, r9d
mov qword [rsp + 0x20], rbp
mov rdx, rdi
mov rcx, rbx
lea r8d, [r9 + 0x11]
call fcn.140077b60
cmp eax, 0xffffffdb
jne 0x14006eb11
mov eax, 0xffffffdb
jmp 0x14006ec0c
test eax, eax
je 0x14006eb2b
lea r8, str.Unable_to_ask_for_ssh_userauth_service
mov edx, eax
mov rcx, rbx
call fcn.140072f30
jmp 0x14006ec0c
mov dword [rbx + 0xcca0], 7
jmp 0x14006eb40
cmp ecx, 7
jne 0x14006ec07
lea rax, [rbx + 0xccd8]
mov dl, 6
mov qword [rsp + 0x38], rax
lea rdi, [rbx + 0xcca8]
mov qword [rsp + 0x30], rbp
lea r9, [rbx + 0xccb0]
mov qword [rsp + 0x28], rbp
mov r8, rdi
mov rcx, rbx
mov dword [rsp + 0x20], ebp
call fcn.140076b40
test eax, eax
jne 0x14006ec0c
cmp qword [rbx + 0xccb0], 5
jae 0x14006eb9b
lea r8, str.Unexpected_packet_length
mov rcx, rbx
lea edx, [rax - 0xe]
call fcn.140072f30
jmp 0x14006ec0c
mov rcx, qword [rdi]
inc rcx
call fcn.140073370
mov eax, eax
mov qword [rbx + 0xccd0], rax
cmp rax, 0xc
jne 0x14006ebe5
mov rdx, qword [rdi]
lea rcx, str.ssh_userauth
add rdx, 5
mov r8d, eax
call fcn.14008b050
test eax, eax
jne 0x14006ebe5
mov rcx, qword [rdi]
mov rdx, rbx
call qword [rbx + 0x18]
xor eax, eax
mov qword [rdi], rbp
mov dword [rbx + 0xcca0], ebp
jmp 0x14006ec0c
mov rcx, qword [rdi]
mov rdx, rbx
call qword [rbx + 0x18]
lea r8, str.Invalid_response_received_from_server
mov qword [rdi], rbp
mov edx, 0xfffffff2
mov rcx, rbx
call fcn.140072f30
jmp 0x14006ec0c
mov eax, 0xffffffde
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret