Function at 0x1401e8740
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 0x1401e8817
cmp rdx, 0xffffffffffffffff
jne 0x1401e8782
lea r8, str.Bad_socket_provided
mov rcx, rbx
lea edx, [rbp - 0x2d]
call fcn.1401ecea0
jmp 0x1401e8b6e
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 0x1401e87cd
mov dword [rbx + 0x248], ebp
mov dword [rbx + 0xcca0], 2
jmp 0x1401e8827
mov ecx, dword [rsp + 0x70]
mov eax, ebp
test ecx, ecx
sete al
mov dword [rbx + 0x248], eax
test ecx, ecx
jne 0x1401e87c1
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 0x1401e87c1
lea r8, str.Failed_changing_sockets_blocking_state_to_non_blocking
mov edx, eax
mov rcx, rbx
call fcn.1401ecea0
jmp 0x1401e8b6e
lea r14, [rbx + 0x238]
cmp ecx, 2
jne 0x1401e8955
lea rsi, str.SSH_2.0_libssh2_1.10.1_DEV_r_n
mov ecx, 0x1c
cmp dword [rbx + 0xcb78], ebp
jne 0x1401e8866
mov rax, qword [rbx + 0x190]
test rax, rax
je 0x1401e885c
mov rcx, 0xffffffffffffffff
nop
inc rcx
cmp byte [rax + rcx], bpl
jne 0x1401e8850
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 0x1401e88c7
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.1401e5260
mov rcx, qword [rbx + 0xcc80]
sub rdi, rcx
cmp r9, rdi
je 0x1401e893c
movabs rdx, 0x8000000000000000
add rax, rdx
test rdx, rax
jne 0x1401e8914
cmp r9, 0xfffffffffffffff5
je 0x1401e8914
lea r8, str.Failed_sending_banner
mov dword [rbx + 0xcb78], ebp
mov edx, 0xffffffd5
mov qword [rbx + 0xcc80], rbp
mov rcx, rbx
call fcn.1401ecea0
jmp 0x1401e8b6e
mov dword [rbx + 0x244], 2
test r9, r9
jle 0x1401e8a68
lea rax, [rcx + r9]
mov qword [rbx + 0xcc80], rax
mov eax, 0xffffffdb
jmp 0x1401e8b6e
mov dword [rbx + 0xcb78], ebp
mov qword [rbx + 0xcc80], rbp
mov dword [rbx + 0xcca0], 3
jmp 0x1401e8960
cmp ecx, 3
jne 0x1401e89b3
nop word [rax + rax]
mov rcx, rbx
call fcn.1401e7c90
cmp eax, 0xffffffdb
je 0x1401e8a68
test eax, eax
jne 0x1401e899d
mov rdx, qword [rbx + 0x120]
lea r8d, [rax + 4]
lea rcx, str.SSH_
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
jne 0x1401e8960
mov dword [rbx + 0xcca0], 4
jmp 0x1401e89b8
lea r8, str.Failed_getting_banner
mov edx, eax
mov rcx, rbx
call fcn.1401ecea0
jmp 0x1401e8b6e
cmp ecx, 4
jne 0x1401e89ff
lea r8, [rbx + 0xcce8]
xor edx, edx
mov rcx, rbx
call fcn.1401e9e00
cmp eax, 0xffffffdb
je 0x1401e8a68
test eax, eax
je 0x1401e89ec
lea r8, str.Unable_to_exchange_encryption_keys
mov edx, eax
mov rcx, rbx
call fcn.1401ecea0
jmp 0x1401e8b6e
mov dword [rbx + 0xcca0], 5
lea rdi, [rbx + 0xccb8]
jmp 0x1401e8a0b
lea rdi, [rbx + 0xccb8]
cmp ecx, 5
jne 0x1401e8a47
lea rcx, [rbx + 0xccb9]
mov byte [rdi], 5
mov edx, 0xc
call fcn.1401ed150
movsd xmm0, qword [str.ssh_userauth]
movsd qword [rbx + 0xccbd], xmm0
mov eax, dword [0x1402bdc50]
mov dword [rbx + 0xccc5], eax
mov dword [rbx + 0xcca0], 6
jmp 0x1401e8a4c
cmp ecx, 6
jne 0x1401e8a98
xor r9d, r9d
mov qword [rsp + 0x20], rbp
mov rdx, rdi
mov rcx, rbx
lea r8d, [r9 + 0x11]
call fcn.1401f1ae0
cmp eax, 0xffffffdb
jne 0x1401e8a72
mov eax, 0xffffffdb
jmp 0x1401e8b6e
test eax, eax
je 0x1401e8a8c
lea r8, str.Unable_to_ask_for_ssh_userauth_service
mov edx, eax
mov rcx, rbx
call fcn.1401ecea0
jmp 0x1401e8b6e
mov dword [rbx + 0xcca0], 7
jmp 0x1401e8aa1
cmp ecx, 7
jne 0x1401e8b69
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.1401f0ac0
test eax, eax
jne 0x1401e8b6e
cmp qword [rbx + 0xccb0], 5
jae 0x1401e8afc
lea r8, str.Unexpected_packet_length
mov rcx, rbx
lea edx, [rax - 0xe]
call fcn.1401ecea0
jmp 0x1401e8b6e
mov rcx, qword [rdi]
inc rcx
call fcn.1401ed2e0
mov eax, eax
mov qword [rbx + 0xccd0], rax
cmp rax, 0xc
jne 0x1401e8b47
mov rdx, qword [rdi]
lea rcx, str.ssh_userauth
add rdx, 5
mov r8d, eax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
jne 0x1401e8b47
mov rcx, qword [rdi]
mov rdx, rbx
call qword [rbx + 0x18]
xor eax, eax
mov qword [rdi], rbp
mov dword [rbx + 0xcca0], ebp
jmp 0x1401e8b6e
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.1401ecea0
jmp 0x1401e8b6e
mov eax, 0xffffffde
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret