Function at 0x14003f150
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rax, qword [rcx + 0x2b8]
xor esi, esi
mov rdi, qword [rcx + 0x2a8]
mov rbx, rcx
cmp qword [rax + 0x508], rsi
je 0x14003f1e0
cmp byte [0x14026aca8], 2
jb 0x14003f23f
mov rcx, qword [rdi + 0x10]
lea r9, [rsp + 0x40]
mov edx, 0xffff
mov dword [rsp + 0x40], esi
mov r8d, 0x1006
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x14003f23f
mov rcx, qword [rdi + 0x10]
lea r9, [rsp + 0x40]
mov edx, 0xffff
mov dword [rsp + 0x20], 4
mov r8d, 0x1005
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x14003f23f
jmp 0x14003f25d
cmp byte [0x14026aca8], 2
jb 0x14003f23f
mov rcx, qword [rdi + 0x10]
lea r9, [rsp + 0x40]
mov edx, 0xffff
mov dword [rsp + 0x40], 0x7530
mov r8d, 0x1006
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x14003f23f
mov rcx, qword [rdi + 0x10]
lea r9, [rsp + 0x40]
mov edx, 0xffff
mov dword [rsp + 0x20], 4
mov r8d, 0x1005
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x14003f25d
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, str.vncClientThread::InitSocket_:_failed_to_set_socket_timeout__d__n
xor edx, edx
mov r9d, eax
lea rcx, vtable.VNCLog.0
call fcn.140018d00
mov rcx, qword [rbx + 0x2b0]
mov rax, qword [rcx]
call qword [rax + 0x210]
test rax, rax
je 0x14003f3e4
mov rcx, qword [rbx + 0x2b0]
mov rax, qword [rcx]
call qword [rax + 0x210]
mov rdi, qword [rbx + 0x2a8]
mov rcx, qword [rdi + 0x28]
mov qword [rdi + 0x20], rax
test rcx, rcx
je 0x14003f2b0
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov rax, qword [rdi + 0x20]
mov qword [rdi + 0x28], rsi
mov qword [rdi + 8], rsi
test rax, rax
je 0x14003f2ef
cmp qword [rax + 0x2f8], rsi
jne 0x14003f2c7
cmp qword [rax + 0x300], rsi
je 0x14003f2ef
mov rcx, qword [rax + 0x300]
test rcx, rcx
je 0x14003f2db
call rcx
mov qword [rdi + 8], rax
jmp 0x14003f2f6
mov qword [rdi + 8], rsi
mov rcx, qword [rax + 0x2f8]
test rcx, rcx
je 0x14003f2f3
call rcx
jmp 0x14003f2f6
mov qword [rdi + 8], rsi
mov rax, rsi
lea r8, str.vncClientThread::InitSocket_:_DSMPlugin_Pointer_to_socket_OK_n
mov qword [rdi + 0x28], rax
mov edx, 9
lea rcx, vtable.VNCLog.0
call fcn.140018d00
mov rcx, qword [rbx + 0x2b0]
mov rax, qword [rcx]
call qword [rax + 0x210]
cmp byte [rax + 0x39], sil
je 0x14003f3c1
mov rcx, qword [rbx + 0x2b0]
mov rax, qword [rcx]
call qword [rax + 0x210]
cmp qword [rax + 0x2f8], rsi
jne 0x14003f370
cmp qword [rax + 0x300], rsi
jne 0x14003f370
mov rcx, qword [rbx + 0x2b0]
mov rax, qword [rcx]
call qword [rax + 0x40]
test eax, eax
je 0x14003f370
lea r8, str.vncClientThread::InitSocket_:_A_connection_using_DSM_already_exist___client_rejected_to_avoid_crash__n
mov edx, 1
jmp 0x14003f3f0
mov rcx, qword [rbx + 0x2b0]
mov rax, qword [rcx]
call qword [rax + 0x40]
test eax, eax
jne 0x14003f397
mov rcx, qword [rbx + 0x2b0]
mov rax, qword [rcx]
call qword [rax + 0x210]
call qword [rax + 0x2f0]
mov rax, qword [rbx + 0x2a8]
mov byte [rax + 0x30], 1
mov rax, qword [rbx + 0x2b8]
mov dword [rax + 0x49c], esi
mov al, 1
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov rax, qword [rbx + 0x2b8]
mov dword [rax + 0x49c], 1
mov al, 1
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
lea r8, str.vncClientThread::InitSocket_:_Invalid_DSMPlugin_Pointer_n
mov edx, 9
lea rcx, vtable.VNCLog.0
call fcn.140018d00
mov rbx, qword [rsp + 0x48]
xor al, al
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret