Function at 0x14003daf0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rax, qword [rcx + 0x2c8]
xor esi, esi
mov rdi, qword [rcx + 0x2b8]
mov rbx, rcx
cmp qword [rax + 0x508], rsi
je 0x14003db80
cmp byte [0x14023e4f4], 2
jb 0x14003dbdf
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 0x14003dbdf
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 0x14003dbdf
jmp 0x14003dbfd
cmp byte [0x14023e4f4], 2
jb 0x14003dbdf
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 0x14003dbdf
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 0x14003dbfd
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.140017a50
mov rcx, qword [rbx + 0x2c0]
mov rax, qword [rcx]
call qword [rax + 0x210]
test rax, rax
je 0x14003dd84
mov rcx, qword [rbx + 0x2c0]
mov rax, qword [rcx]
call qword [rax + 0x210]
mov rdi, qword [rbx + 0x2b8]
mov rcx, qword [rdi + 0x28]
mov qword [rdi + 0x20], rax
test rcx, rcx
je 0x14003dc50
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 0x14003dc8f
cmp qword [rax + 0x2f8], rsi
jne 0x14003dc67
cmp qword [rax + 0x300], rsi
je 0x14003dc8f
mov rcx, qword [rax + 0x300]
test rcx, rcx
je 0x14003dc7b
call rcx
mov qword [rdi + 8], rax
jmp 0x14003dc96
mov qword [rdi + 8], rsi
mov rcx, qword [rax + 0x2f8]
test rcx, rcx
je 0x14003dc93
call rcx
jmp 0x14003dc96
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.140017a50
mov rcx, qword [rbx + 0x2c0]
mov rax, qword [rcx]
call qword [rax + 0x210]
cmp byte [rax + 0x39], sil
je 0x14003dd61
mov rcx, qword [rbx + 0x2c0]
mov rax, qword [rcx]
call qword [rax + 0x210]
cmp qword [rax + 0x2f8], rsi
jne 0x14003dd10
cmp qword [rax + 0x300], rsi
jne 0x14003dd10
mov rcx, qword [rbx + 0x2c0]
mov rax, qword [rcx]
call qword [rax + 0x40]
test eax, eax
je 0x14003dd10
lea r8, str.vncClientThread::InitSocket_:_A_connection_using_DSM_already_exist___client_rejected_to_avoid_crash__n
mov edx, 1
jmp 0x14003dd90
mov rcx, qword [rbx + 0x2c0]
mov rax, qword [rcx]
call qword [rax + 0x40]
test eax, eax
jne 0x14003dd37
mov rcx, qword [rbx + 0x2c0]
mov rax, qword [rcx]
call qword [rax + 0x210]
call qword [rax + 0x2f0]
mov rax, qword [rbx + 0x2b8]
mov byte [rax + 0x30], 1
mov rax, qword [rbx + 0x2c8]
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 + 0x2c8]
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.140017a50
mov rbx, qword [rsp + 0x48]
xor al, al
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret