Function at 0x6407d560
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x640fe3b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
lea ecx, [ebp - 0x24]
push eax
call sym.Qt5NetworkKso.dll_public:_void___thiscall_kso_qt::QDnsDomainNameRecord::constructor_class_kso_qt::QDnsDomainNameRecord_const__
lea ecx, [ebp - 0x24]
call sym.Qt5NetworkKso.dll_public:_enum_kso_qt::QAbstractSocket::NetworkLayerProtocol___thiscall_kso_qt::QHostAddress::protocol_void_
test eax, eax
jne 0x6407d5bc
lea ecx, [ebp - 0x24]
call sym.Qt5NetworkKso.dll_public:_enum_kso_qt::QSsl::SslProtocol___thiscall_kso_qt::QSslConfiguration::sessionProtocol_void_
and eax, 0xffff0000
cmp eax, 0xefff0000
jne 0x6407d5bc
push 6
lea ecx, [ebp - 0x28]
call sym.Qt5NetworkKso.dll_public:_void___thiscall_kso_qt::QHostAddress::constructor_enum_kso_qt::QHostAddress::SpecialAddress_
mov edx, dword [ebp - 0x24]
mov ecx, dword [eax]
mov dword [ebp - 0x24], ecx
lea ecx, [ebp - 0x28]
mov dword [eax], edx
call sym.Qt5NetworkKso.dll_public:_void___thiscall_kso_qt::QHostAddress::destructor_void_
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x28], 0
push eax
lea eax, [ebp - 0x24]
mov ecx, esi
push eax
push ebx
call fcn.6407ee70
cmp word [ebp - 0x20], 0x17
jne 0x6407d613
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x2c], 0
call sym.Qt5NetworkKso.dll_public:_enum_kso_qt::QAbstractSocket::NetworkLayerProtocol___thiscall_kso_qt::QHostAddress::protocol_void_
mov ecx, dword [ebp - 0x2c]
mov edx, 1
push 4
cmp eax, edx
lea eax, [ebp - 0x2c]
push eax
push 0x1b
push 0x29
push dword [esi + 0x74]
cmove ecx, edx
mov dword [ebp - 0x2c], ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
push dword [ebp - 0x28]
lea eax, [ebp - 0x20]
push eax
push dword [esi + 0x74]
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x6407d6c6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x273f
jne 0x6407d67b
lea ecx, [ebp - 0x24]
call sym.Qt5NetworkKso.dll_public:_enum_kso_qt::QAbstractSocket::NetworkLayerProtocol___thiscall_kso_qt::QHostAddress::protocol_void_
cmp eax, 2
jne 0x6407d67b
push ebx
mov word [ebp - 0x20], ax
call dword [sym.imp.WS2_32.dll_htons]
lea ecx, [ebp - 0x24]
mov word [ebp - 0x1e], ax
call sym.Qt5NetworkKso.dll_public:_enum_kso_qt::QSsl::SslProtocol___thiscall_kso_qt::QSslConfiguration::sessionProtocol_void_
push eax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x20]
push 0x10
push eax
push dword [esi + 0x74]
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x6407d6c6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, 0xffffd8e3
cmp eax, 0x24
ja case.0x6407d692.10014
movzx eax, byte [eax + 0x6407d6fc]
jmp dword [eax*4 + 0x6407d6ec]
push 0xe
push 8
mov ecx, esi
call fcn.6407c150
xor bl, bl
jmp 0x6407d6cf
push 0x10
push 3
mov ecx, esi
call fcn.6407c150
xor bl, bl
jmp 0x6407d6cf
push 0xf
push 9
mov ecx, esi
call fcn.6407c150
xor bl, bl
jmp 0x6407d6cf
mov dword [esi + 0x4c], 4
mov bl, 1
lea ecx, [ebp - 0x24]
call sym.Qt5NetworkKso.dll_public:_void___thiscall_kso_qt::QHostAddress::destructor_void_
mov ecx, dword [ebp - 4]
mov al, bl
pop esi
xor ecx, ebp
pop ebx
call fcn.640ad545
mov esp, ebp
pop ebp
ret 8