Function at 0x14003e170
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 0x14003e200
cmp byte [0x14023e518], 2
jb 0x14003e25f
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 0x14003e25f
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 0x14003e25f
jmp 0x14003e27d
cmp byte [0x14023e518], 2
jb 0x14003e25f
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 0x14003e25f
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 0x14003e27d
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.140018c00
mov rcx, qword [rbx + 0x2b0]
mov rax, qword [rcx]
call qword [rax + 0x210]
test rax, rax
je 0x14003e404
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 0x14003e2d0
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 0x14003e30f
cmp qword [rax + 0x2f8], rsi
jne 0x14003e2e7
cmp qword [rax + 0x300], rsi
je 0x14003e30f
mov rcx, qword [rax + 0x300]
test rcx, rcx
je 0x14003e2fb
call rcx
mov qword [rdi + 8], rax
jmp 0x14003e316
mov qword [rdi + 8], rsi
mov rcx, qword [rax + 0x2f8]
test rcx, rcx
je 0x14003e313
call rcx
jmp 0x14003e316
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.140018c00
mov rcx, qword [rbx + 0x2b0]
mov rax, qword [rcx]
call qword [rax + 0x210]
cmp byte [rax + 0x39], sil
je 0x14003e3e1
mov rcx, qword [rbx + 0x2b0]
mov rax, qword [rcx]
call qword [rax + 0x210]
cmp qword [rax + 0x2f8], rsi
jne 0x14003e390
cmp qword [rax + 0x300], rsi
jne 0x14003e390
mov rcx, qword [rbx + 0x2b0]
mov rax, qword [rcx]
call qword [rax + 0x40]
test eax, eax
je 0x14003e390
lea r8, str.vncClientThread::InitSocket_:_A_connection_using_DSM_already_exist___client_rejected_to_avoid_crash__n
mov edx, 1
jmp 0x14003e410
mov rcx, qword [rbx + 0x2b0]
mov rax, qword [rcx]
call qword [rax + 0x40]
test eax, eax
jne 0x14003e3b7
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.140018c00
mov rbx, qword [rsp + 0x48]
xor al, al
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret