Function at 0x5d2b20
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.005aae10
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.005d31e0
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x5d2be0
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.005b8260
add esp, 0x10
test al, al
jne 0x5d2c36
call fcn.0070b7d2
mov eax, dword [eax]
mov dword [esi + 0x158], eax
call fcn.0070b7d2
mov esi, dword [eax]
call fcn.0070b7d2
mov edi, eax
lea eax, [ebp - 0x12c]
push 0x100
push eax
push esi
call fcn.005a1e90
push eax
push dword [edi]
push str.sa_addr_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.005b6f30
mov edi, dword [ebp - 8]
add esp, 0x1c
mov esi, 2
mov eax, dword [edi]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x5d2f39
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0xc]
mov dword [ebp - 0x18], ecx
test ecx, ecx
je 0x5d2f2c
cmp dword [ecx + 0xc], 0
push eax
push ebx
je 0x5d2f21
call fcn.005a5ea0
push 1
push ebx
call fcn.005a6030
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.005a6030
add esp, 0x20
jmp 0x5d2f33
mov eax, dword [ebp - 0x10]
xor esi, esi
cmp dword [eax + 8], 0x17
lea ecx, [eax + 0xbc]
mov dword [ebp - 0xc], ecx
jne 0x5d2c69
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 0x5d2c6e
mov ecx, str.__Trying__s:_d...
mov eax, dword [eax + 0xec]
push eax
push dword [ebp - 0xc]
push ecx
push ebx
call fcn.005b6fd0
mov eax, dword [ebp - 0x1c]
add esp, 0x10
mov eax, dword [eax]
cmp eax, 2
je 0x5d2c91
cmp eax, 0x17
jne 0x5d2ced
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0xc], 1
jne 0x5d2ced
cmp byte [ebx + 0x678], 0
mov byte [ebp - 1], 1
je 0x5d2cf1
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 0x5d2cf1
push 0x100
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.005a1e90
push eax
push str.Could_not_set_TCP_NODELAY:__s
push ebx
call fcn.005b6fd0
add esp, 0x18
jmp 0x5d2cf1
mov byte [ebp - 1], 0
mov eax, dword [edi]
mov dword [ebp - 8], eax
mov eax, dword [0x155c6f0]
mov dword [ebp - 0x14], 0x4020
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x18], 4
test eax, eax
jne 0x5d2d3c
push 3
push 2
push eax
push eax
push 6
call fcn.005d70f0
add esp, 0x14
test al, al
je 0x5d2d30
mov dword [0x155c6f0], 2
jmp 0x5d2d81
mov dword [0x155c6f0], 1
jmp 0x5d2d41
cmp eax, 2
je 0x5d2d81
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 0x5d2d68
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
jg 0x5d2d81
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 0x5d2e41
cmp byte [ebx + 0x67e], 0
je 0x5d2e41
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 0x5d2dcd
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 0x5d2e38
push dword [ebx + 0x628]
mov dword [ebp - 0x28], 1
call fcn.005b9490
push dword [ebx + 0x62c]
imul eax, eax, 0x3e8
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x24], eax
call fcn.005b9490
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 0x5d2e41
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.005b6fd0
add esp, 0x10
cmp dword [ebx + 0x1a4], esi
je 0x5d2e7d
push 1
push ebx
call fcn.005a6030
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.005a6030
mov eax, dword [ebp - 0x18]
add esp, 0x1c
cmp eax, 2
jne 0x5d2ec6
mov byte [ebp - 2], 1
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
cmp eax, 2
je 0x5d2e8c
cmp eax, 0x17
jne 0x5d2ed4
mov eax, dword [ebp - 0x10]
add eax, 0x18
push eax
call fcn.005db4f0
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.005d25e0
mov esi, eax
add esp, 0x18
test esi, esi
je 0x5d2ed4
cmp esi, 1
jne 0x5d2be0
lea esi, [eax + 6]
jmp 0x5d2be0
test eax, eax
je 0x5d2e7d
mov esi, 0x2a
jmp 0x5d2be0
push 1
push dword [edi]
call fcn.005dada0
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 0x5d2f39
push ebx
push dword [ebp + 8]
call fcn.005d3010
lea eax, [ebp - 0x2c]
push eax
call fcn.005aae10
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 0x5d2f3c
call fcn.005a5ea0
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.005b7030
add esp, 0x14
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret