Function at 0x5d69a0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov ebx, dword [eax + 8]
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x10], ebx
mov byte [ebp - 2], 0
call fcn.005aec80
lea edi, [ebx + 0x98]
push edi
mov dword [ebp - 8], edi
movups xmm0, xmmword [eax]
lea eax, [ebx + 8]
push eax
movups xmmword [ebx + 0x128], xmm0
mov ebx, dword [ebp + 0xc]
push ebx
mov dword [ebp - 0x1c], eax
call fcn.005d7060
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x5d6a60
mov eax, dword [ebp + 8]
mov esi, dword [eax + 8]
lea eax, [esi + 0xec]
push eax
lea eax, [esi + 0xbc]
push eax
push dword [esi + 0x14]
lea eax, [esi + 0x18]
push eax
call fcn.005bc0d0
add esp, 0x10
test al, al
jne 0x5d6ab6
call fcn.0070f6a2
mov eax, dword [eax]
mov dword [esi + 0x158], eax
call fcn.0070f6a2
mov esi, dword [eax]
call fcn.0070f6a2
mov edi, eax
lea eax, [ebp - 0x12c]
push 0x100
push eax
push esi
call fcn.005a5cd0
push eax
push dword [edi]
push str.sa_addr_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.005bada0
mov edi, dword [ebp - 8]
add esp, 0x1c
mov esi, 2
mov eax, dword [edi]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x5d6db9
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0xc]
mov dword [ebp - 0x18], ecx
test ecx, ecx
je 0x5d6dac
cmp dword [ecx + 0xc], 0
push eax
push ebx
je 0x5d6da1
call fcn.005a9ce0
push 1
push ebx
call fcn.005a9e70
mov eax, dword [ebp - 0x18]
push dword [ebp - 8]
push dword [eax + 0x10]
mov eax, dword [eax + 0xc]
call eax
push 0
push ebx
call fcn.005a9e70
add esp, 0x20
jmp 0x5d6db3
mov eax, dword [ebp - 0x10]
xor esi, esi
cmp dword [eax + 8], 0x17
lea ecx, [eax + 0xbc]
mov dword [ebp - 0xc], ecx
jne 0x5d6ae9
push 4
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
push eax
push 0x1b
push 0x29
push dword [edi]
call dword [sym.imp.WS2_32.dll_setsockopt]
mov eax, dword [ebp - 0x10]
mov ecx, str.__Trying___s_:_d...
jmp 0x5d6aee
mov ecx, str.__Trying__s:_d...
mov eax, dword [eax + 0xec]
push eax
push dword [ebp - 0xc]
push ecx
push ebx
call fcn.005bae40
mov eax, dword [ebp - 0x1c]
add esp, 0x10
mov eax, dword [eax]
cmp eax, 2
je 0x5d6b11
cmp eax, 0x17
jne 0x5d6b6d
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0xc], 1
jne 0x5d6b6d
cmp byte [ebx + 0x678], 0
mov byte [ebp - 1], 1
je 0x5d6b71
push 4
lea eax, [ebp - 8]
mov dword [ebp - 8], 1
push eax
push 1
push 6
push dword [edi]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x5d6b71
push 0x100
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.005a5cd0
push eax
push str.Could_not_set_TCP_NODELAY:__s
push ebx
call fcn.005bae40
add esp, 0x18
jmp 0x5d6b71
mov byte [ebp - 1], 0
mov eax, dword [edi]
mov dword [ebp - 8], eax
mov eax, dword [0x1030c18]
mov dword [ebp - 0x14], 0x4020
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x18], 4
test eax, eax
jne 0x5d6bbc
push 3
push 2
push eax
push eax
push 6
call fcn.005daf70
add esp, 0x14
test al, al
je 0x5d6bb0
mov dword [0x1030c18], 2
jmp 0x5d6c01
mov dword [0x1030c18], 1
jmp 0x5d6bc1
cmp eax, 2
je 0x5d6c01
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x1001
push 0xffff
push dword [ebp - 8]
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x5d6be8
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
jg 0x5d6c01
push 4
lea eax, [ebp - 0x14]
push eax
push 0x1001
push 0xffff
push dword [ebp - 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp byte [ebp - 1], 0
je 0x5d6cc1
cmp byte [ebx + 0x67e], 0
je 0x5d6cc1
mov eax, dword [edi]
lea ecx, [ebp - 0x14]
push 4
push ecx
push 8
push 0xffff
push eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x14], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x5d6c4d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push dword [ebp - 0xc]
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d:_errno__d
jmp 0x5d6cb8
push dword [ebx + 0x628]
mov dword [ebp - 0x28], 1
call fcn.005bd300
push dword [ebx + 0x62c]
imul eax, eax, 0x3e8
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x24], eax
call fcn.005bd300
add esp, 8
imul eax, eax, 0x3e8
push 0
push 0
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0xc
lea eax, [ebp - 0x28]
push eax
push 0x98000004
push dword [ebp - 0xc]
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x5d6cc1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push dword [ebp - 0xc]
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:_errno__d
push ebx
call fcn.005bae40
add esp, 0x10
cmp dword [ebx + 0x1a4], esi
je 0x5d6cfd
push 1
push ebx
call fcn.005a9e70
mov eax, dword [ebx + 0x1a4]
push 0
push dword [edi]
push dword [ebx + 0x1a8]
call eax
push 0
push ebx
mov dword [ebp - 0x18], eax
call fcn.005a9e70
mov eax, dword [ebp - 0x18]
add esp, 0x1c
cmp eax, 2
jne 0x5d6d46
mov byte [ebp - 2], 1
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
cmp eax, 2
je 0x5d6d0c
cmp eax, 0x17
jne 0x5d6d54
mov eax, dword [ebp - 0x10]
add eax, 0x18
push eax
call fcn.005df370
push eax
mov eax, dword [ebp - 0x1c]
push dword [eax]
mov eax, dword [ebp + 8]
push dword [edi]
push dword [eax + 0xc]
push ebx
call fcn.005d6460
mov esi, eax
add esp, 0x18
test esi, esi
je 0x5d6d54
cmp esi, 1
jne 0x5d6a60
lea esi, [eax + 6]
jmp 0x5d6a60
test eax, eax
je 0x5d6cfd
mov esi, 0x2a
jmp 0x5d6a60
push 1
push dword [edi]
call fcn.005dec20
mov ecx, dword [ebp - 0x10]
add esp, 8
cmp dword [ecx + 0xc], 2
setne al
cmp byte [ebp - 2], 0
mov byte [ecx + 0x15e], al
je 0x5d6db9
push ebx
push dword [ebp + 8]
call fcn.005d6e90
lea eax, [ebp - 0x2c]
push eax
call fcn.005aec80
add esp, 0xc
movups xmm0, xmmword [eax]
mov eax, dword [ebp - 0x10]
movups xmmword [eax + 0x138], xmm0
mov eax, dword [ebp + 8]
mov byte [eax + 0x14], 1
jmp 0x5d6dbc
call fcn.005a9ce0
mov eax, dword [ebp - 8]
add esp, 8
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [edi], 0xffffffff
mov eax, dword [ebp + 8]
push dword [edi]
push esi
push str.cf_socket_open_______d__fd_d
push eax
push ebx
call fcn.005baea0
add esp, 0x14
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret