Function at 0x5c6370
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.0059e630
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.005c6a30
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x5c6430
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.005abaa0
add esp, 0x10
test al, al
jne 0x5c6486
call fcn.006fef52
mov eax, dword [eax]
mov dword [esi + 0x158], eax
call fcn.006fef52
mov esi, dword [eax]
call fcn.006fef52
mov edi, eax
lea eax, [ebp - 0x12c]
push 0x100
push eax
push esi
call fcn.005956b0
push eax
push dword [edi]
push str.sa_addr_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.005aa770
mov edi, dword [ebp - 8]
add esp, 0x1c
mov esi, 2
mov eax, dword [edi]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x5c6789
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0xc]
mov dword [ebp - 0x18], ecx
test ecx, ecx
je 0x5c677c
cmp dword [ecx + 0xc], 0
push eax
push ebx
je 0x5c6771
call fcn.005996c0
push 1
push ebx
call fcn.00599850
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.00599850
add esp, 0x20
jmp 0x5c6783
mov eax, dword [ebp - 0x10]
xor esi, esi
cmp dword [eax + 8], 0x17
lea ecx, [eax + 0xbc]
mov dword [ebp - 0xc], ecx
jne 0x5c64b9
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 0x5c64be
mov ecx, str.__Trying__s:_d...
mov eax, dword [eax + 0xec]
push eax
push dword [ebp - 0xc]
push ecx
push ebx
call fcn.005aa810
mov eax, dword [ebp - 0x1c]
add esp, 0x10
mov eax, dword [eax]
cmp eax, 2
je 0x5c64e1
cmp eax, 0x17
jne 0x5c653d
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0xc], 1
jne 0x5c653d
cmp byte [ebx + 0x678], 0
mov byte [ebp - 1], 1
je 0x5c6541
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 0x5c6541
push 0x100
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.005956b0
push eax
push str.Could_not_set_TCP_NODELAY:__s
push ebx
call fcn.005aa810
add esp, 0x18
jmp 0x5c6541
mov byte [ebp - 1], 0
mov eax, dword [edi]
mov dword [ebp - 8], eax
mov eax, dword [0x154e9e8]
mov dword [ebp - 0x14], 0x4020
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x18], 4
test eax, eax
jne 0x5c658c
push 3
push 2
push eax
push eax
push 6
call fcn.005ca940
add esp, 0x14
test al, al
je 0x5c6580
mov dword [0x154e9e8], 2
jmp 0x5c65d1
mov dword [0x154e9e8], 1
jmp 0x5c6591
cmp eax, 2
je 0x5c65d1
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 0x5c65b8
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
jg 0x5c65d1
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 0x5c6691
cmp byte [ebx + 0x67e], 0
je 0x5c6691
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 0x5c661d
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 0x5c6688
push dword [ebx + 0x628]
mov dword [ebp - 0x28], 1
call fcn.005accd0
push dword [ebx + 0x62c]
imul eax, eax, 0x3e8
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x24], eax
call fcn.005accd0
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 0x5c6691
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.005aa810
add esp, 0x10
cmp dword [ebx + 0x1a4], esi
je 0x5c66cd
push 1
push ebx
call fcn.00599850
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.00599850
mov eax, dword [ebp - 0x18]
add esp, 0x1c
cmp eax, 2
jne 0x5c6716
mov byte [ebp - 2], 1
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
cmp eax, 2
je 0x5c66dc
cmp eax, 0x17
jne 0x5c6724
mov eax, dword [ebp - 0x10]
add eax, 0x18
push eax
call fcn.005ced40
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.005c5e30
mov esi, eax
add esp, 0x18
test esi, esi
je 0x5c6724
cmp esi, 1
jne 0x5c6430
lea esi, [eax + 6]
jmp 0x5c6430
test eax, eax
je 0x5c66cd
mov esi, 0x2a
jmp 0x5c6430
push 1
push dword [edi]
call fcn.005ce5f0
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 0x5c6789
push ebx
push dword [ebp + 8]
call fcn.005c6860
lea eax, [ebp - 0x2c]
push eax
call fcn.0059e630
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 0x5c678c
call fcn.005996c0
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.005aa870
add esp, 0x14
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret