Function at 0x1800d0920
Capabilities:
Set socket configuration

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x60]
sub rsp, 0x160
mov rdi, qword [rcx + 0x10]
mov r13, rcx
lea rcx, [rsp + 0x50]
mov rsi, rdx
call fcn.18009c2b0
lea r14, [rdi + 0x98]
mov rcx, rsi
lea rdx, [rdi + 8]
mov r8, r14
movups xmm0, xmmword [rax]
movups xmmword [rdi + 0x148], xmm0
call fcn.1800d1170
mov ebx, eax
test eax, eax
jne 0x1800d09df
mov rbx, qword [r13 + 0x10]
mov edx, dword [rbx + 0x14]
lea r9, [rbx + 0x13c]
lea r8, [rbx + 0xe0]
lea rcx, [rbx + 0x18]
call fcn.1800ad2c0
test al, al
jne 0x1800d0a33
call fcn.1800f43c8
mov ecx, dword [rax]
mov dword [rbx + 0x178], ecx
call fcn.1800f43c8
mov ebx, dword [rax]
call fcn.1800f43c8
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, ebx
mov rdi, rax
call fcn.1800bf6f0
mov r8d, dword [rdi]
lea rdx, str.sa_addr_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rsi
call fcn.1800aa8a0
mov ebx, 2
mov rdi, qword [r14]
cmp rdi, 0xffffffffffffffff
je 0x1800d0dc1
mov r15, qword [r13 + 0x18]
test r15, r15
je 0x1800d0db1
cmp qword [r15 + 0x18], 0
mov rdx, rdi
mov rcx, rsi
je 0x1800d0dac
call fcn.180096660
mov dl, 1
mov rcx, rsi
call fcn.180096ae0
mov rcx, qword [r15 + 0x20]
mov rdx, rdi
call qword [r15 + 0x18]
xor edx, edx
mov rcx, rsi
call fcn.180096ae0
jmp 0x1800d0dba
xor ebx, ebx
mov qword [rsp + 0x1a8], r12
cmp dword [rdi + 8], 0x17
jne 0x1800d0a75
mov rcx, qword [r14]
lea r9, [rbp + 0xa0]
mov edx, 0x29
mov dword [rbp + 0xa0], ebx
mov r8d, 0x1b
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
lea rdx, str.__Trying___s_:_d...
jmp 0x1800d0a7c
lea rdx, str.__Trying__s:_d...
mov r9d, dword [rdi + 0x13c]
lea r8, [rdi + 0xe0]
mov rcx, rsi
call fcn.1800aa960
mov eax, dword [rdi + 8]
cmp eax, 2
je 0x1800d0a9f
cmp eax, 0x17
jne 0x1800d0b0d
cmp dword [rdi + 0xc], 1
jne 0x1800d0b0d
mov r15b, 1
cmp byte [rsi + 0xa34], bl
je 0x1800d0b10
mov rcx, qword [r14]
lea r9, [rbp + 0xa0]
mov edx, 6
mov dword [rbp + 0xa0], 1
mov r8d, 1
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x1800d0b10
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.1800bf6f0
mov r8, rax
lea rdx, str.Could_not_set_TCP_NODELAY:__s
mov rcx, rsi
call fcn.1800aa960
jmp 0x1800d0b10
xor r15b, r15b
mov eax, dword [0x1802c7ee0]
mov r12, qword [r14]
mov dword [rbp + 0xb0], 0x4020
mov dword [rbp + 0xa0], 0
mov dword [rbp + 0xb8], 4
test eax, eax
jne 0x1800d0b74
mov r9d, 2
mov dword [rsp + 0x20], 3
xor r8d, r8d
xor edx, edx
mov ecx, 6
call fcn.1800d2110
test al, al
je 0x1800d0b68
mov dword [0x1802c7ee0], 2
jmp 0x1800d0bd5
mov dword [0x1802c7ee0], 1
jmp 0x1800d0b79
cmp eax, 2
je 0x1800d0bd5
lea rax, [rbp + 0xb8]
mov edx, 0xffff
lea r9, [rbp + 0xa0]
mov qword [rsp + 0x20], rax
mov r8d, 0x1001
mov rcx, r12
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x1800d0bb2
mov eax, dword [rbp + 0xb0]
cmp dword [rbp + 0xa0], eax
jg 0x1800d0bd5
lea r9, [rbp + 0xb0]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, r12
call qword [sym.imp.WS2_32.dll_setsockopt]
mov r12, qword [rsp + 0x1a8]
test r15b, r15b
je 0x1800d0cd0
cmp byte [rsi + 0xa3b], 0
je 0x1800d0cd0
mov r15, qword [r14]
lea r9, [rbp + 0xa0]
mov rcx, r15
mov dword [rbp + 0xa0], 1
mov edx, 0xffff
mov dword [rsp + 0x20], 4
mov r8d, 8
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x1800d0c39
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Failed_to_set_SO_KEEPALIVE_on_fd__qd:_errno__d
jmp 0x1800d0cc2
mov ecx, dword [rsi + 0x9c0]
mov dword [rsp + 0x50], 1
call fcn.1800ae910
imul ecx, eax, 0x3e8
mov dword [rbp + 0xa0], ecx
mov dword [rsp + 0x54], ecx
mov ecx, dword [rsi + 0x9c4]
call fcn.1800ae910
imul ecx, eax, 0x3e8
lea r8, [rsp + 0x50]
lea rax, [rbp + 0xb0]
mov r9d, ntohs
mov edx, 0x98000004
mov dword [rbp + 0xa0], ecx
mov dword [rsp + 0x58], ecx
xor ecx, ecx
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rcx
mov rcx, r15
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x1800d0cd0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__qd:_errno__d
mov r9d, eax
mov r8, r15
mov rcx, rsi
call fcn.1800aa960
cmp qword [rsi + 0x288], 0
je 0x1800d0d1e
mov dl, 1
mov rcx, rsi
call fcn.180096ae0
mov rdx, qword [r14]
xor r8d, r8d
mov rcx, qword [rsi + 0x290]
call qword [rsi + 0x288]
xor edx, edx
mov rcx, rsi
mov r15d, eax
call fcn.180096ae0
cmp r15d, 2
jne 0x1800d0d0f
mov r15b, 1
jmp 0x1800d0d21
test r15d, r15d
je 0x1800d0d1e
mov ebx, 0x2a
jmp 0x1800d09df
xor r15b, r15b
mov eax, dword [rdi + 8]
cmp eax, 2
je 0x1800d0d2e
cmp eax, 0x17
jne 0x1800d0d67
lea rcx, [rdi + 0x18]
call fcn.1800db850
mov r9d, dword [rdi + 8]
mov rcx, rsi
mov r8, qword [r14]
mov rdx, qword [r13 + 0x18]
mov dword [rsp + 0x20], eax
call fcn.1800d0310
mov ebx, eax
test eax, eax
je 0x1800d0d67
cmp eax, 1
jne 0x1800d09df
mov ebx, 7
jmp 0x1800d09df
mov rcx, qword [r14]
mov edx, 1
call fcn.1800d59f0
cmp dword [rdi + 0xc], 2
setne al
mov byte [rdi + 0x17e], al
test r15b, r15b
je 0x1800d0dc1
mov rdx, rsi
mov rcx, r13
call fcn.1800d0ef0
lea rcx, [rsp + 0x50]
call fcn.18009c2b0
movups xmm0, xmmword [rax]
movups xmmword [rdi + 0x158], xmm0
mov byte [r13 + 0x24], 1
jmp 0x1800d0dc1
call fcn.180096660
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [r14], 0xffffffffffffffff
mov rax, qword [r14]
lea r8, str.cf_socket_open_______d__fd_qd
mov r9d, ebx
mov qword [rsp + 0x20], rax
mov rdx, r13
mov rcx, rsi
call fcn.1800aaa40
mov eax, ebx
add rsp, 0x160
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbx
pop rbp
ret