Function at 0x583f80
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62babd
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x717f80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 0x10]
lea ecx, [ebp - 0x20]
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
mov dword [ebp - 0x28], eax
movq qword [ebp - 0x20], xmm0
movzx eax, byte [esi + 0x129]
push eax
push str.createSocket_ipv6
push esi
mov dword [ebp - 0x18], 0
call fcn.004b24c0
cmp byte [0x715908], 0
mov dword [ebp - 4], 0
je 0x583fff
push esi
call fcn.00587150
add esp, 4
test al, al
jne 0x583fff
xor bl, bl
jmp 0x584216
mov ecx, edi
call fcn.00584580
cmp byte [esi + 0x129], 0
je 0x58401e
push dword [ebp + 0xc]
mov ecx, esi
push str.doClientBind
call fcn.004b2b10
push 0
push 1
push 0x17
mov bl, 1
call dword [sym.imp.WS2_32.dll_socket]
mov ecx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [edi + 0x28c], eax
cmp eax, 0xffffffff
jne 0x58409a
call ecx
mov dword [ebp - 0x14], eax
cmp eax, 0x2726
jne 0x58406a
mov eax, dword [esi]
mov ecx, esi
push str.Retry_with_IPPROTO_TCP_explicitly_specified...
call dword [eax + 0x18]
push 6
push 1
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
mov dword [edi + 0x28c], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp dword [edi + 0x28c], 0xffffffff
jne 0x5840e3
cmp eax, 0x276d
jne 0x5840c7
push esi
mov byte [0x715908], bl
call fcn.00587150
add esp, 4
test al, al
jne 0x58409e
push str.startupWSA_failed__D_
jmp 0x5840da
xor eax, eax
jmp 0x584070
push 0
push 1
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
mov dword [edi + 0x28c], eax
cmp eax, 0xffffffff
jne 0x5840e3
push esi
push 0
call fcn.00585bf0
add esp, 8
push str.Failed_to_create_TCP_socket__AF_INET6_SOCK_STREAM_
jmp 0x5840da
call ecx
push esi
push 0
push eax
call fcn.00585780
add esp, 0xc
push str.Failed_to_create_TCP_socket__AF_INET6___SOCK_STREAM_
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x14]
xor bl, bl
cmp dword [edi + 0x28c], 0xffffffff
mov dword [edi + 0x290], 0x17
je 0x584216
mov eax, dword [ebp - 0x28]
cmp byte [eax + 0xb9c], 0
jne 0x584111
push esi
mov ecx, edi
call fcn.00582ba0
mov eax, dword [ebp - 0x28]
cmp byte [eax + 0xba4], 0
jne 0x584122
push esi
mov ecx, edi
call fcn.00582b20
cmp byte [ebp + 0xc], 0
jne 0x58417a
cmp byte [esi + 0x129], 0
je 0x58413d
mov eax, dword [esi]
mov ecx, esi
push str.Enabling_dual_stack_support...
call dword [eax + 0x18]
push 4
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 0x1b
push 0x29
push dword [edi + 0x28c]
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x58417a
mov eax, dword [esi]
mov ecx, esi
push str.Failed_to_set_the_socket_option_for_IPv6_IPv4_dual_stack_support.
call dword [eax + 0x14]
push esi
push 1
mov ecx, edi
call fcn.00582640
jmp 0x584216
push esi
push 1
mov ecx, edi
call fcn.00582640
cmp byte [ebp + 0xc], 0
je 0x584216
mov eax, dword [ebp - 0x28]
add eax, 0xba8
mov ecx, eax
mov dword [ebp - 0x14], eax
call fcn.004992a0
test eax, eax
jne 0x5841b0
mov eax, dword [ebp - 0x28]
cmp dword [eax + 0xc1c], 0
je 0x584216
push dword [ebp - 0x14]
mov ecx, esi
push str.bindIpAddr2
call fcn.004b3100
mov ebx, dword [ebp - 0x28]
mov eax, dword [ebx + 0xc1c]
test eax, eax
je 0x5841d9
push eax
push str.bindPort
mov ecx, esi
call fcn.004b2d90
push esi
lea eax, [ebp - 0x21]
mov byte [ebp - 0x21], 0
push eax
lea ecx, [ebx + 0xba8]
call fcn.00499300
push eax
movzx eax, word [ebx + 0xc1c]
mov ecx, edi
push eax
call fcn.00582a50
mov bl, al
test bl, bl
jne 0x584216
mov eax, dword [esi]
mov ecx, esi
push str.Failed_to_bind_to_local_IP_address
call dword [eax + 0x14]
mov ecx, edi
call fcn.00584580
lea ecx, [ebp - 0x20]
call fcn.004b2630
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00622073
mov esp, ebp
pop ebp
ret 0xc