Function at 0x460b90
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
mov eax, dword [0x4c0980]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [eax + 8]
mov dword [ebp - 0x120], eax
lea eax, [ebp - 0x114]
push edi
push eax
mov dword [ebp - 0x130], esi
mov byte [ebp - 0x116], 0
call fcn.00433180
lea edi, [esi + 0x98]
push edi
mov dword [ebp - 0x138], edi
movups xmm0, xmmword [eax]
lea eax, [esi + 8]
push eax
push ebx
movups xmmword [esi + 0x120], xmm0
mov dword [ebp - 0x13c], eax
call fcn.00461380
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x460c75
mov eax, dword [ebp - 0x120]
mov esi, dword [eax + 8]
lea eax, [esi + 0x118]
push eax
lea eax, [esi + 0xbc]
push eax
push dword [esi + 0x14]
lea eax, [esi + 0x18]
push eax
call fcn.004421f0
add esp, 0x10
test al, al
jne 0x460ccf
call fcn.00471dad
mov eax, dword [eax]
mov dword [esi + 0x150], eax
call fcn.00471dad
mov esi, dword [eax]
call fcn.00471dad
mov edi, eax
lea eax, [ebp - 0x104]
push 0x100
push eax
push esi
call fcn.00429e70
push eax
push dword [edi]
push str.sa_addr_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.0043ffa0
mov edi, dword [ebp - 0x138]
add esp, 0x1c
mov esi, 2
mov edi, dword [edi]
mov eax, dword [ebp - 0x120]
cmp edi, 0xffffffff
je 0x461064
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x12c], eax
test eax, eax
je 0x461026
cmp dword [eax + 0xc], 0
push edi
push ebx
je 0x46101e
call fcn.0042da40
push 1
push ebx
call fcn.0042ddc0
mov eax, dword [ebp - 0x12c]
push edi
push dword [eax + 0x10]
mov eax, dword [eax + 0xc]
call eax
push 0
push ebx
call fcn.0042ddc0
add esp, 0x20
jmp 0x46102d
mov eax, dword [ebp - 0x130]
xor esi, esi
mov dword [ebp - 0x11c], esi
push dword [eax + 0x118]
add eax, 0xbc
push eax
push str.__Trying__s:_d...
push ebx
call fcn.00440060
mov eax, dword [ebp - 0x13c]
add esp, 0x10
cmp dword [eax], 2
jne 0x460d88
mov eax, dword [ebp - 0x130]
cmp dword [eax + 0xc], 1
jne 0x460d88
mov cl, 1
mov eax, esi
mov byte [ebp - 0x121], cl
mov byte [ebp - 0x115], cl
cmp byte [ebx + 0x61a], al
je 0x460d8f
push 4
lea eax, [ebp - 0x134]
mov dword [ebp - 0x134], 1
push eax
push 1
push 6
push dword [edi]
mov byte [ebp - 0x115], cl
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x460d8f
push 0x100
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.00429e70
push eax
push str.Could_not_set_TCP_NODELAY:__s
push ebx
call fcn.00440060
mov al, byte [ebp - 0x121]
add esp, 0x18
mov byte [ebp - 0x115], al
jmp 0x460d8f
mov byte [ebp - 0x115], 0
mov eax, dword [edi]
mov dword [ebp - 0x134], eax
mov eax, dword [0x4c1da8]
mov dword [ebp - 0x128], 0x4020
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x12c], 4
test eax, eax
jne 0x460dea
push 3
push 2
push eax
push eax
push 6
call fcn.00462560
add esp, 0x14
test al, al
je 0x460dde
mov dword [0x4c1da8], 2
jmp 0x460e44
mov dword [0x4c1da8], 1
jmp 0x460def
cmp eax, 2
je 0x460e44
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x11c]
push eax
push 0x1001
push 0xffff
push dword [ebp - 0x134]
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x460e25
mov eax, dword [ebp - 0x11c]
cmp eax, dword [ebp - 0x128]
jg 0x460e44
push 4
lea eax, [ebp - 0x128]
push eax
push 0x1001
push 0xffff
push dword [ebp - 0x134]
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp byte [ebp - 0x115], 0
je 0x460f31
cmp byte [ebx + 0x621], 0
je 0x460f31
mov eax, dword [edi]
lea ecx, [ebp - 0x128]
push 4
push ecx
push 8
push 0xffff
push eax
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x128], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x460ea2
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push dword [ebp - 0x11c]
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d:_errno__d
jmp 0x460f28
push dword [ebx + 0x5cc]
mov dword [ebp - 0x110], 1
call fcn.00443250
push dword [ebx + 0x5d0]
imul eax, eax, 0x3e8
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x10c], eax
call fcn.00443250
add esp, 8
imul eax, eax, 0x3e8
push 0
push 0
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x108], eax
lea eax, [ebp - 0x12c]
push eax
push 0
push 0
push 0xc
lea eax, [ebp - 0x110]
push eax
push 0x98000004
push dword [ebp - 0x11c]
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x460f31
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push dword [ebp - 0x11c]
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:_errno__d
push ebx
call fcn.00440060
add esp, 0x10
cmp dword [ebx + 0x19c], 0
je 0x460f77
push 1
push ebx
call fcn.0042ddc0
mov eax, dword [ebx + 0x19c]
push 0
push dword [edi]
push dword [ebx + 0x1a0]
call eax
push 0
push ebx
mov dword [ebp - 0x12c], eax
call fcn.0042ddc0
mov eax, dword [ebp - 0x12c]
add esp, 0x1c
cmp eax, 2
jne 0x460fb1
mov byte [ebp - 0x116], 1
mov eax, dword [ebp - 0x13c]
cmp dword [eax], 2
jne 0x460fbf
mov eax, dword [ebp - 0x120]
push 0
push 2
push dword [edi]
push dword [eax + 0xc]
push ebx
call fcn.004606d0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x460fbf
cmp esi, 1
jne 0x460c75
lea esi, [eax + 6]
jmp 0x460c75
test eax, eax
je 0x460f77
mov esi, 0x2a
jmp 0x460c75
push 1
push dword [edi]
call fcn.00465c70
mov ecx, dword [ebp - 0x130]
add esp, 8
cmp dword [ecx + 0xc], 2
setne al
cmp byte [ebp - 0x116], 0
mov byte [ecx + 0x156], al
je 0x461039
push ebx
push dword [ebp - 0x120]
call fcn.00461140
lea eax, [ebp - 0x114]
push eax
call fcn.00433180
add esp, 0xc
movups xmm0, xmmword [eax]
mov eax, dword [ebp - 0x130]
movups xmmword [eax + 0x130], xmm0
mov eax, dword [ebp - 0x120]
mov byte [eax + 0x14], 1
jmp 0x46103f
call fcn.0042da40
add esp, 8
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov edi, dword [ebp - 0x138]
mov dword [edi], 0xffffffff
mov eax, dword [ebp - 0x120]
push dword [edi]
push esi
push str.cf_socket_open_______d__fd_d
push eax
push ebx
call fcn.004400a0
mov ecx, dword [ebp - 4]
add esp, 0x14
mov eax, esi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0046ca44
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x138]
jmp 0x46103f