Function at 0x1401a2770
Capabilities:
Set socket configuration

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x68
mov rax, qword [0x14036a040]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbx, r9
movzx r15d, r8b
mov rbp, rdx
mov rdi, rcx
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x48], rax
movzx r9d, byte [r9 + 0x169]
lea r8, str.createSocket_ipv6
mov rdx, rbx
lea rcx, [rsp + 0x38]
call fcn.1400d96a0
nop
call fcn.1401a1530
test al, al
jne 0x1401a27d6
xor sil, sil
jmp 0x1401a2a31
mov rcx, rdi
call fcn.1401a2dd0
cmp byte [rbx + 0x169], 0
je 0x1401a27fa
movzx r8d, r15b
lea rdx, str.doClientBind
mov rcx, rbx
call fcn.1400d9ba0
mov sil, 1
xor r14d, r14d
xor r8d, r8d
lea edx, [r14 + 1]
lea ecx, [rdx + 0x16]
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rdi + 0x298], rax
cmp rax, 0xffffffffffffffff
jne 0x1401a2857
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r14d, eax
cmp eax, 0x2726
jne 0x1401a2857
mov r8, qword [rbx]
lea rdx, str.Retry_with_IPPROTO_TCP_explicitly_specified...
mov rcx, rbx
call qword [r8 + 0x30]
mov edx, 1
lea ecx, [rdx + 0x16]
lea r8d, [rdx + 5]
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rdi + 0x298], rax
cmp qword [rdi + 0x298], 0xffffffffffffffff
jne 0x1401a28d4
cmp r14d, 0x276d
jne 0x1401a28af
mov rcx, rbx
call fcn.1401a5ad0
test al, al
jne 0x1401a287f
lea rdx, str.startupWSA_failed__D_
jmp 0x1401a28c8
xor r8d, r8d
lea edx, [r8 + 1]
lea ecx, [rdx + 0x16]
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rdi + 0x298], rax
cmp rax, 0xffffffffffffffff
jne 0x1401a28d4
mov rdx, rbx
xor ecx, ecx
call fcn.1401a4570
lea rdx, str.Failed_to_create_TCP_socket__AF_INET6_SOCK_STREAM_
jmp 0x1401a28c8
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8, rbx
xor edx, edx
mov ecx, eax
call fcn.1401a3fd0
lea rdx, str.Failed_to_create_TCP_socket__AF_INET6___SOCK_STREAM_
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x28]
xor sil, sil
mov dword [rdi + 0x2a0], reloc.WS2_32.dll_socket
cmp qword [rdi + 0x298], 0xffffffffffffffff
je 0x1401a2a31
cmp byte [rbp + 0xf44], 0
jne 0x1401a2900
mov rdx, rbx
mov rcx, rdi
call fcn.1401a1480
cmp byte [rbp + 0xf4c], 0
jne 0x1401a2914
mov rdx, rbx
mov rcx, rdi
call fcn.1401a13d0
test r15b, r15b
jne 0x1401a2984
cmp byte [rbx + 0x169], r15b
je 0x1401a2932
mov rax, qword [rbx]
lea rdx, str.Enabling_dual_stack_support...
mov rcx, rbx
call qword [rax + 0x30]
mov dword [rsp + 0x34], 0
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov edx, 0x29
lea r8d, [rdx - 0xe]
mov rcx, qword [rdi + 0x298]
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x1401a2984
mov rax, qword [rbx]
lea rdx, str.Failed_to_set_the_socket_option_for_IPv6_IPv4_dual_stack_support.
mov rcx, rbx
call qword [rax + 0x28]
mov r8, rbx
mov dl, 1
mov rcx, rdi
call fcn.1401a0e90
jmp 0x1401a2a31
mov r8, rbx
mov dl, 1
mov rcx, rdi
call fcn.1401a0e90
test r15b, r15b
je 0x1401a2a31
lea rcx, [rbp + 0xf50]
call fcn.1400bcf80
test eax, eax
jne 0x1401a29b2
cmp dword [rbp + 0xfe0], eax
je 0x1401a2a31
lea r8, [rbp + 0xf50]
lea rdx, str.bindIpAddr2
mov rcx, rbx
call fcn.1400da210
mov r8d, dword [rbp + 0xfe0]
test r8d, r8d
je 0x1401a29e3
lea rdx, str.bindPort
mov rcx, rbx
call fcn.1400d9e50
mov byte [rsp + 0x30], 0
lea rcx, [rbp + 0xf50]
call fcn.1400bcff0
mov r8, rax
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x30]
movzx edx, word [rbp + 0xfe0]
mov rcx, rdi
call fcn.1401a1250
movzx esi, al
test al, al
jne 0x1401a2a31
mov r8, qword [rbx]
lea rdx, str.Failed_to_bind_to_local_IP_address
mov rcx, rbx
call qword [r8 + 0x28]
mov rcx, rdi
call fcn.1401a2dd0
nop
lea rcx, [rsp + 0x38]
call fcn.1400d9770
movzx eax, sil
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14008b8a0
add rsp, 0x68
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret