Function at 0x1401e7820
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 0x1401e78f7
cmp rdx, 0xffffffffffffffff
jne 0x1401e7862
lea r8, str.Bad_socket_provided
mov rcx, rbx
lea edx, [rbp - 0x2d]
call fcn.1401ebf70
jmp 0x1401e7c4c
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 0x1401e78ad
mov dword [rbx + 0x248], ebp
mov dword [rbx + 0xcca0], 2
jmp 0x1401e7907
mov ecx, dword [rsp + 0x70]
mov eax, ebp
test ecx, ecx
sete al
mov dword [rbx + 0x248], eax
test ecx, ecx
jne 0x1401e78a1
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 0x1401e78a1
lea r8, str.Failed_changing_sockets_blocking_state_to_non_blocking
mov edx, eax
mov rcx, rbx
call fcn.1401ebf70
jmp 0x1401e7c4c
lea r14, [rbx + 0x238]
cmp ecx, 2
jne 0x1401e7a35
lea rsi, str.SSH_2.0_libssh2_1.10.1_DEV_r_n
mov ecx, 0x1c
cmp dword [rbx + 0xcb78], ebp
jne 0x1401e7946
mov rax, qword [rbx + 0x190]
test rax, rax
je 0x1401e793c
mov rcx, 0xffffffffffffffff
nop
inc rcx
cmp byte [rax + rcx], bpl
jne 0x1401e7930
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 0x1401e79a7
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.1401e4350
mov rcx, qword [rbx + 0xcc80]
sub rdi, rcx
cmp r9, rdi
je 0x1401e7a1c
movabs rdx, 0x8000000000000000
add rax, rdx
test rdx, rax
jne 0x1401e79f4
cmp r9, 0xfffffffffffffff5
je 0x1401e79f4
lea r8, str.Failed_sending_banner
mov dword [rbx + 0xcb78], ebp
mov edx, 0xffffffd5
mov qword [rbx + 0xcc80], rbp
mov rcx, rbx
call fcn.1401ebf70
jmp 0x1401e7c4c
mov dword [rbx + 0x244], 2
test r9, r9
jle 0x1401e7b47
lea rax, [rcx + r9]
mov qword [rbx + 0xcc80], rax
mov eax, 0xffffffdb
jmp 0x1401e7c4c
mov dword [rbx + 0xcb78], ebp
mov qword [rbx + 0xcc80], rbp
mov dword [rbx + 0xcca0], 3
jmp 0x1401e7a40
cmp ecx, 3
jne 0x1401e7a92
nop word [rax + rax]
mov rcx, rbx
call fcn.1401e6d70
cmp eax, 0xffffffdb
je 0x1401e7b47
test eax, eax
jne 0x1401e7a7c
mov rdx, qword [rbx + 0x120]
lea r8d, [rax + 4]
lea rcx, str.SSH_
call fcn.140204080
test eax, eax
jne 0x1401e7a40
mov dword [rbx + 0xcca0], 4
jmp 0x1401e7a97
lea r8, str.Failed_getting_banner
mov edx, eax
mov rcx, rbx
call fcn.1401ebf70
jmp 0x1401e7c4c
cmp ecx, 4
jne 0x1401e7ade
lea r8, [rbx + 0xcce8]
xor edx, edx
mov rcx, rbx
call fcn.1401e8ed0
cmp eax, 0xffffffdb
je 0x1401e7b47
test eax, eax
je 0x1401e7acb
lea r8, str.Unable_to_exchange_encryption_keys
mov edx, eax
mov rcx, rbx
call fcn.1401ebf70
jmp 0x1401e7c4c
mov dword [rbx + 0xcca0], 5
lea rdi, [rbx + 0xccb8]
jmp 0x1401e7aea
lea rdi, [rbx + 0xccb8]
cmp ecx, 5
jne 0x1401e7b26
lea rcx, [rbx + 0xccb9]
mov byte [rdi], 5
mov edx, 0xc
call fcn.1401ec220
movsd xmm0, qword [str.ssh_userauth]
movsd qword [rbx + 0xccbd], xmm0
mov eax, dword [0x1402d8f70]
mov dword [rbx + 0xccc5], eax
mov dword [rbx + 0xcca0], 6
jmp 0x1401e7b2b
cmp ecx, 6
jne 0x1401e7b77
xor r9d, r9d
mov qword [rsp + 0x20], rbp
mov rdx, rdi
mov rcx, rbx
lea r8d, [r9 + 0x11]
call fcn.1401f0ba0
cmp eax, 0xffffffdb
jne 0x1401e7b51
mov eax, 0xffffffdb
jmp 0x1401e7c4c
test eax, eax
je 0x1401e7b6b
lea r8, str.Unable_to_ask_for_ssh_userauth_service
mov edx, eax
mov rcx, rbx
call fcn.1401ebf70
jmp 0x1401e7c4c
mov dword [rbx + 0xcca0], 7
jmp 0x1401e7b80
cmp ecx, 7
jne 0x1401e7c47
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.1401efb80
test eax, eax
jne 0x1401e7c4c
cmp qword [rbx + 0xccb0], 5
jae 0x1401e7bdb
lea r8, str.Unexpected_packet_length
mov rcx, rbx
lea edx, [rax - 0xe]
call fcn.1401ebf70
jmp 0x1401e7c4c
mov rcx, qword [rdi]
inc rcx
call fcn.1401ec3b0
mov eax, eax
mov qword [rbx + 0xccd0], rax
cmp rax, 0xc
jne 0x1401e7c25
mov rdx, qword [rdi]
lea rcx, str.ssh_userauth
add rdx, 5
mov r8d, eax
call fcn.140204080
test eax, eax
jne 0x1401e7c25
mov rcx, qword [rdi]
mov rdx, rbx
call qword [rbx + 0x18]
xor eax, eax
mov qword [rdi], rbp
mov dword [rbx + 0xcca0], ebp
jmp 0x1401e7c4c
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.1401ebf70
jmp 0x1401e7c4c
mov eax, 0xffffffde
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret