Function at 0x1800a0050
Capabilities:
Set socket configuration

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x18012e760]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rbx, rcx
movzx esi, r8w
lea rcx, [rbp - 0x50]
call sym.Qt5Network.dll_public:_void___cdecl_QDnsDomainNameRecord::constructor_class_QDnsDomainNameRecord_const____ptr64____ptr64
lea rcx, [rbp - 0x50]
call sym.Qt5Network.dll_public:_enum_QAbstractSocket::NetworkLayerProtocol___cdecl_QHostAddress::protocol_void____ptr64
test eax, eax
jne 0x1800a00c6
lea rcx, [rbp - 0x50]
call sym.Qt5Network.dll_public:_int___cdecl_QHostInfo::lookupId_void_const___ptr64
and eax, 0xffff0000
cmp eax, 0xefff0000
jne 0x1800a00c6
mov edx, 6
lea rcx, [rbp - 0x48]
call sym.Qt5Network.dll_public:_void___cdecl_QHostAddress::constructor_enum_QHostAddress::SpecialAddress____ptr64
mov rdx, qword [rbp - 0x50]
mov rcx, qword [rax]
mov qword [rbp - 0x50], rcx
lea rcx, [rbp - 0x48]
mov qword [rax], rdx
call sym.Qt5Network.dll_public:_void___cdecl_QHostAddress::destructor_void____ptr64
lea rcx, [rbp - 0x50]
call sym.Qt5Network.dll_public:_enum_QAbstractSocket::NetworkLayerProtocol___cdecl_QHostAddress::protocol_void____ptr64
mov r14d, 2
cmp eax, 1
je 0x1800a012b
lea rcx, [rbp - 0x50]
call sym.Qt5Network.dll_public:_enum_QAbstractSocket::NetworkLayerProtocol___cdecl_QHostAddress::protocol_void____ptr64
cmp eax, r14d
je 0x1800a012b
mov eax, dword [rbx + 0x88]
dec eax
cmp eax, 1
jbe 0x1800a012b
xor eax, eax
movzx ecx, si
mov qword [rbp - 0x40], rax
mov word [rbp - 0x40], r14w
mov qword [rbp - 0x38], rax
call qword [sym.imp.WS2_32.dll_htons]
lea rcx, [rbp - 0x50]
mov word [rbp - 0x3e], ax
call sym.Qt5Network.dll_public:_int___cdecl_QHostInfo::lookupId_void_const___ptr64
mov ecx, eax
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rbp - 0x3c], eax
lea edi, [r14 + 0xe]
jmp 0x1800a018e
xor eax, eax
lea rdx, [rbp - 0x48]
mov qword [rbp - 0x40], rax
lea rcx, [rbp - 0x50]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], rax
mov dword [rbp - 0x28], eax
mov eax, 0x17
mov word [rbp - 0x40], ax
call sym.Qt5Network.dll_public:_class_QString___cdecl_QHostAddress::scopeId_void____ptr64
mov rcx, rax
call sym.Qt5Network.dll_public:_static_int___cdecl_QNetworkInterface::interfaceIndexFromName_class_QString_const____ptr64_
lea rcx, [rbp - 0x48]
mov dword [rbp - 0x28], eax
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
movzx ecx, si
call qword [sym.imp.WS2_32.dll_htons]
lea rdx, [rbp - 0x20]
mov word [rbp - 0x3e], ax
lea rcx, [rbp - 0x50]
call sym.Qt5Network.dll_public:_class_QDeadlineTimer___cdecl_QNetworkAddressEntry::preferredLifetime_void____ptr64
movups xmm0, xmmword [rbp - 0x20]
mov edi, 0x1c
movups xmmword [rbp - 0x38], xmm0
cmp word [rbp - 0x40], 0x17
jne 0x1800a01d7
lea rcx, [rbp - 0x50]
mov dword [rbp - 0x48], 0
call sym.Qt5Network.dll_public:_enum_QAbstractSocket::NetworkLayerProtocol___cdecl_QHostAddress::protocol_void____ptr64
mov ecx, dword [rbp - 0x48]
lea r9, [rbp - 0x48]
mov edx, 1
mov dword [rsp + 0x20], 4
cmp eax, edx
cmove ecx, edx
mov edx, 0x29
mov dword [rbp - 0x48], ecx
mov rcx, qword [rbx + 0xc0]
lea r8d, [rdx - 0xe]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rbx + 0xc0]
lea rdx, [rbp - 0x40]
mov r8d, edi
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x1800a02aa
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x273f
jne 0x1800a0251
lea rcx, [rbp - 0x50]
call sym.Qt5Network.dll_public:_enum_QAbstractSocket::NetworkLayerProtocol___cdecl_QHostAddress::protocol_void____ptr64
cmp eax, r14d
jne 0x1800a0251
movzx ecx, si
mov word [rbp - 0x40], r14w
call qword [sym.imp.WS2_32.dll_htons]
lea rcx, [rbp - 0x50]
mov word [rbp - 0x3e], ax
call sym.Qt5Network.dll_public:_int___cdecl_QHostInfo::lookupId_void_const___ptr64
mov ecx, eax
call qword [sym.imp.WS2_32.dll_htonl]
mov rcx, qword [rbx + 0xc0]
lea rdx, [rbp - 0x40]
mov r8d, setsockopt
mov dword [rbp - 0x3c], eax
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x1800a02aa
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x271d
je 0x1800a0295
sub eax, 9
je 0x1800a0280
sub eax, 0x1a
je 0x1800a0280
cmp eax, 1
jne 0x1800a02a6
lea edx, [rax + 8]
mov rcx, rbx
lea r8d, [rax + 0xe]
call fcn.18009e750
xor bl, bl
jmp 0x1800a02b6
mov edx, 8
mov rcx, rbx
lea r8d, [rdx + 6]
call fcn.18009e750
xor bl, bl
jmp 0x1800a02b6
mov edx, 3
mov rcx, rbx
lea r8d, [rdx + 0xd]
call fcn.18009e750
xor bl, bl
jmp 0x1800a02b6
mov dword [rbx + 0x80], 4
mov bl, 1
lea rcx, [rbp - 0x50]
call sym.Qt5Network.dll_public:_void___cdecl_QHostAddress::destructor_void____ptr64
movzx eax, bl
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1800d83b0
add rsp, 0x80
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret