Function at 0x4173d0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x560eca
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x640040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 0x1c], ebx
xorps xmm0, xmm0
movlpd qword [ebp - 0x24], xmm0
push 1
lea eax, [ebx + 0x24]
push eax
lea ecx, [ebp - 0x24]
call fcn.004f6560
mov dword [ebp - 4], 0
mov byte [ebp - 4], 1
mov ecx, dword [ebx + 0x1b08]
test ecx, ecx
je 0x417b3a
xor eax, eax
cmp byte [0x641c8c], al
sete al
add eax, 0x3eb
mov dword [ebp - 0x28], eax
cmp byte [ebp + 8], 0
je 0x417512
mov dword [ebp - 0x18], 0
mov eax, 1
mov word [ebp - 0x18], ax
xor eax, eax
mov word [ebp - 0x16], ax
push 4
lea eax, [ebp - 0x18]
push eax
push 0x80
push 0xffff
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x417512
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
mov ecx, dword [ebx + 0x40]
cmp eax, ecx
mov al, byte [0x641c8c]
jne 0x41749d
test al, al
je 0x417518
test al, al
je 0x417518
mov ebx, dword [ebx + 0x78]
mov esi, dword [ebp - 0x1c]
mov eax, dword [esi]
push ecx
lea ecx, [ebp - 0x30]
push ecx
mov ecx, esi
call dword [eax + 0x48]
mov edi, eax
mov byte [ebp - 4], 2
lea eax, [ebp - 0x2c]
push eax
mov ecx, esi
call fcn.00418820
mov byte [ebp - 4], 3
mov esi, dword [eax]
push dword [edi]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x80]
push eax
push esi
push str.Failed_to_configured_TCP_socket_SO_LINGER_for__s_on_port__s____s
push 0x3e9
mov eax, dword [0x641a88]
add eax, 0x32c
push eax
call fcn.004ec2c0
add esp, 0x18
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov ebx, dword [ebp - 0x1c]
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
push 2
push dword [ebx + 0x1b08]
call dword [sym.imp.WS2_32.dll_shutdown]
mov dword [ebp - 0x18], eax
cmp eax, 0x2742
jg 0x41768d
je 0x417643
cmp eax, 0x2734
jg 0x4175ee
je 0x4175a4
test eax, eax
je 0x41783b
cmp eax, 0x2726
jne case.0x4176a2.10055
mov edi, dword [ebx + 0x78]
lea eax, [ebp - 0x34]
push eax
mov ecx, ebx
call fcn.0041a3d0
mov byte [ebp - 4], 9
mov esi, dword [eax]
push dword [ebp - 0x18]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x80]
push eax
push esi
push str.TCP_Socket_shutdown_for__s_on_port__s_returned_WSAEINVAL___d_
push dword [ebp - 0x28]
mov eax, dword [0x641a88]
add eax, 0x32c
push eax
call fcn.004ec2c0
add esp, 0x18
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
jmp 0x417835
mov edi, dword [ebx + 0x78]
lea eax, [ebp - 0x38]
push eax
mov ecx, ebx
call fcn.0041a3d0
mov byte [ebp - 4], 8
mov esi, dword [eax]
push dword [ebp - 0x18]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x80]
push eax
push esi
push str.TCP_Socket_shutdown_for__s_on_port__s_returned_WSAEINPROGRESS___d_
push dword [ebp - 0x28]
mov eax, dword [0x641a88]
add eax, 0x32c
push eax
call fcn.004ec2c0
add esp, 0x18
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x38]
jmp 0x417835
cmp eax, 0x2736
jne case.0x4176a2.10055
mov edi, dword [ebx + 0x78]
lea eax, [ebp - 0x3c]
push eax
mov ecx, ebx
call fcn.0041a3d0
mov byte [ebp - 4], 0xc
mov esi, dword [eax]
push dword [ebp - 0x18]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x80]
push eax
push esi
push str.TCP_Socket_shutdown_for__s_on_port__s_returned_WSAENOTSOCK___d_
push dword [ebp - 0x28]
mov eax, dword [0x641a88]
add eax, 0x32c
push eax
call fcn.004ec2c0
add esp, 0x18
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x3c]
jmp 0x417835
mov edi, dword [ebx + 0x78]
lea eax, [ebp - 0x40]
push eax
mov ecx, ebx
call fcn.0041a3d0
mov byte [ebp - 4], 0xa
mov esi, dword [eax]
push dword [ebp - 0x18]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x80]
push eax
push esi
push str.TCP_Socket_shutdown_for__s_on_port__s_returned_WSAENETDOWN___d_
push dword [ebp - 0x28]
mov eax, dword [0x641a88]
add eax, 0x32c
push eax
call fcn.004ec2c0
add esp, 0x18
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
jmp 0x417835
add eax, 0xffffd8bb
cmp eax, 0x28
ja case.0x4176a2.10055
movzx eax, byte [eax + 0x417c0c]
jmp dword [eax*4 + 0x417bf8]
mov edi, dword [ebx + 0x78]
lea eax, [ebp - 0x44]
push eax
mov ecx, ebx
call fcn.0041a3d0
mov byte [ebp - 4], 6
mov esi, dword [eax]
push dword [ebp - 0x18]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x80]
push eax
push esi
push str.TCP_Socket_shutdown_for__s_on_port__s_returned_WSAECONNABORTED___d_
push dword [ebp - 0x28]
mov eax, dword [0x641a88]
add eax, 0x32c
push eax
call fcn.004ec2c0
add esp, 0x18
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x44]
jmp 0x417835
mov edi, dword [ebx + 0x78]
lea eax, [ebp - 0x48]
push eax
mov ecx, ebx
call fcn.0041a3d0
mov byte [ebp - 4], 7
mov esi, dword [eax]
push dword [ebp - 0x18]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x80]
push eax
push esi
push str.TCP_Socket_shutdown_for__s_on_port__s_returned_WSAECONNRESET___d_
push dword [ebp - 0x28]
mov eax, dword [0x641a88]
add eax, 0x32c
push eax
call fcn.004ec2c0
add esp, 0x18
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
jmp 0x417835
mov edi, dword [ebx + 0x78]
lea eax, [ebp - 0x4c]
push eax
mov ecx, ebx
call fcn.0041a3d0
mov byte [ebp - 4], 0xb
mov esi, dword [eax]
push dword [ebp - 0x18]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x80]
push eax
push esi
push str.TCP_Socket_shutdown_for__s_on_port__s_returned_WSAENOTCONN___d_
push dword [ebp - 0x28]
mov eax, dword [0x641a88]
add eax, 0x32c
push eax
call fcn.004ec2c0
add esp, 0x18
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4c]
jmp 0x417835
mov edi, dword [ebx + 0x78]
lea eax, [ebp - 0x50]
push eax
mov ecx, ebx
call fcn.0041a3d0
mov byte [ebp - 4], 0xd
mov esi, dword [eax]
push dword [ebp - 0x18]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x80]
push eax
push esi
push str.TCP_Socket_shutdown_for__s_on_port__s_returned_WSANOTINITIALISED___d_
push dword [ebp - 0x28]
mov eax, dword [0x641a88]
add eax, 0x32c
push eax
call fcn.004ec2c0
add esp, 0x18
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x50]
jmp 0x417835
call esi
mov edx, dword [ebx]
push eax
lea eax, [ebp - 0x1c]
push eax
mov ecx, ebx
call dword [edx + 0x48]
mov byte [ebp - 4], 4
mov edi, dword [ebx + 0x78]
lea eax, [ebp - 0x54]
push eax
mov ecx, ebx
call fcn.0041a3d0
mov byte [ebp - 4], 5
mov esi, dword [eax]
push dword [ebp - 0x1c]
push dword [ebp - 0x18]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x80]
push eax
push esi
push str.TCP_Socket_shutdown_for__s_on_port__s_returned_0x_08X____s
push dword [ebp - 0x28]
mov eax, dword [0x641a88]
add eax, 0x32c
push eax
call fcn.004ec2c0
add esp, 0x1c
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x54]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov eax, dword [ebx + 0x1b08]
mov dword [ebx + 0x1b08], 0
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [ebp - 0x18], eax
cmp eax, 0x2734
jg 0x41795d
je 0x417913
sub eax, 0
je 0x417a9c
sub eax, 0x2714
je 0x4178c9
sub eax, 0x1f
jne 0x417976
mov edi, dword [ebx + 0x78]
lea eax, [ebp - 0x58]
push eax
mov ecx, ebx
call fcn.0041a3d0
mov byte [ebp - 4], 0x14
mov esi, dword [eax]
push dword [ebp - 0x18]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x80]
push eax
push esi
push str.TCP_Socket_Close_for__s_on_port__s_returned_WSAEWOULDBLOCK___d_
push dword [ebp - 0x28]
mov eax, dword [0x641a88]
add eax, 0x32c
push eax
call fcn.004ec2c0
add esp, 0x18
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
jmp 0x417a96
mov edi, dword [ebx + 0x78]
lea eax, [ebp - 0x5c]
push eax
mov ecx, ebx
call fcn.0041a3d0
mov byte [ebp - 4], 0x13
mov esi, dword [eax]
push dword [ebp - 0x18]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x80]
push eax
push esi
push str.TCP_Socket_Close_for__s_on_port__s_returned_WSAEINTR___d_
push dword [ebp - 0x28]
mov eax, dword [0x641a88]
add eax, 0x32c
push eax
call fcn.004ec2c0
add esp, 0x18
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x5c]
jmp 0x417a96
mov edi, dword [ebx + 0x78]
lea eax, [ebp - 0x60]
push eax
mov ecx, ebx
call fcn.0041a3d0
mov byte [ebp - 4], 0x12
mov esi, dword [eax]
push dword [ebp - 0x18]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x80]
push eax
push esi
push str.TCP_Socket_Close_for__s_on_port__s_returned_WSAEINPROGRESS___d_
push dword [ebp - 0x28]
mov eax, dword [0x641a88]
add eax, 0x32c
push eax
call fcn.004ec2c0
add esp, 0x18
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x60]
jmp 0x417a96
sub eax, 0x2736
je 0x417a51
sub eax, 0xc
je 0x417a0a
sub eax, 0x2b
je 0x4179c0
mov edi, dword [ebx + 0x78]
lea eax, [ebp - 0x64]
push eax
mov ecx, ebx
call fcn.0041a3d0
mov byte [ebp - 4], 0xe
mov esi, dword [eax]
push dword [ebp - 0x18]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x80]
push eax
push esi
push str.TCP_Socket_closesocket_for__s_on_port__s_returned__d
push dword [ebp - 0x28]
mov eax, dword [0x641a88]
add eax, 0x32c
push eax
call fcn.004ec2c0
add esp, 0x18
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x64]
jmp 0x417a96
mov edi, dword [ebx + 0x78]
lea eax, [ebp - 0x68]
push eax
mov ecx, ebx
call fcn.0041a3d0
mov byte [ebp - 4], 0xf
mov esi, dword [eax]
push dword [ebp - 0x18]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x80]
push eax
push esi
push str.TCP_Socket_Close_for__s_on_port__s_returned_WSANOTINITIALISED___d_
push dword [ebp - 0x28]
mov eax, dword [0x641a88]
add eax, 0x32c
push eax
call fcn.004ec2c0
add esp, 0x18
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x68]
jmp 0x417a96
mov edi, dword [ebx + 0x78]
lea eax, [ebp - 0x6c]
push eax
mov ecx, ebx
call fcn.0041a3d0
mov byte [ebp - 4], 0x10
mov esi, dword [eax]
push dword [ebp - 0x18]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x80]
push eax
push esi
push str.TCP_Socket_Close_for__s_on_port__s_returned_WSAENETDOWN___d_
push dword [ebp - 0x28]
mov eax, dword [0x641a88]
add eax, 0x32c
push eax
call fcn.004ec2c0
add esp, 0x18
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x6c]
jmp 0x417a96
mov edi, dword [ebx + 0x78]
lea eax, [ebp - 0x70]
push eax
mov ecx, ebx
call fcn.0041a3d0
mov byte [ebp - 4], 0x11
mov esi, dword [eax]
push dword [ebp - 0x18]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x80]
push eax
push esi
push str.TCP_Socket_Close_for__s_on_port__s_returned_WSAENOTSOCK___d_
push dword [ebp - 0x28]
mov eax, dword [0x641a88]
add eax, 0x32c
push eax
call fcn.004ec2c0
add esp, 0x18
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x70]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
cmp byte [0x641c8c], 0
je 0x417b3a
mov edi, dword [ebx + 0x78]
mov ecx, ebx
cmp byte [ebp + 8], 0
je 0x417af5
lea eax, [ebp - 0x28]
push eax
call fcn.0041a3d0
mov byte [ebp - 4], 0x15
mov esi, dword [eax]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x80]
push eax
push esi
push str.TCP_Socket_force_closed_for__s_on_port__s
push 0x3eb
mov eax, dword [0x641a88]
add eax, 0x32c
push eax
call fcn.004ec2c0
add esp, 0x14
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
jmp 0x417b34
lea eax, [ebp - 0x74]
push eax
call fcn.0041a3d0
mov byte [ebp - 4], 0x16
mov esi, dword [eax]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x80]
push eax
push esi
push str.TCP_Socket_closed_for__s_on_port__s
push 0x3eb
mov eax, dword [0x641a88]
add eax, 0x32c
push eax
call fcn.004ec2c0
add esp, 0x14
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x74]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov eax, dword [ebx + 0x1ad8]
test eax, eax
je 0x417b4b
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebx + 0x1ad8], 0
mov dword [ebx + 0x1adc], 0
mov dword [ebx + 0x1ae0], 0
mov dword [ebx + 0x1ae4], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.004f6620
mov al, 1
jmp 0x417bd9
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0055c86d
mov esp, ebp
pop ebp
ret 4