Function at 0x4718c0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x34
mov eax, dword [0x49c100]
xor eax, esp
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x44]
push ebx
push ebp
mov ebp, dword [esp + 0x40]
mov ebx, ecx
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 8], eax
push esi
push edi
mov edi, dword [esp + 0x5c]
cmp ecx, 2
je 0x4718fe
cmp ecx, 0x17
jne 0x471a55
mov eax, dword [esp + 0x50]
cmp eax, 1
je 0x471913
cmp eax, 5
je 0x471913
xor esi, esi
jmp 0x471993
lea edx, [ebx + 0xc]
xor ecx, ecx
xor eax, eax
lock cmpxchg dword [edx], ecx
mov esi, eax
mov dword [esp + 0x14], esi
test esi, esi
jne 0x471988
push eax
push eax
mov dword [esp + 0x20], eax
lea eax, [esp + 0x20]
push eax
push 4
lea eax, [esp + 0x24]
mov dword [esp + 0x34], 0x25a207b9
push eax
push 0x10
lea eax, [esp + 0x3c]
mov dword [esp + 0x40], 0x4660ddf3
push eax
push 0xc8000006
push dword [ebp]
mov dword [esp + 0x50], 0xe576e98e
mov dword [esp + 0x54], 0x3e06748c
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x47197b
mov eax, ebx
mov dword [esp + 0x14], eax
jmp 0x47197f
mov eax, dword [esp + 0x14]
lea ecx, [ebx + 0xc]
xchg dword [ecx], eax
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x4c]
xor eax, eax
cmp esi, ebx
cmove esi, eax
test esi, esi
je 0x471a55
lea eax, [edi + 0x20]
mov dword [esp + 0x3c], 0
push eax
cmp ecx, 2
mov edx, 0x10
mov eax, 0x1c
xorps xmm0, xmm0
cmove eax, edx
movq qword [esp + 0x38], xmm0
push eax
lea eax, [esp + 0x2c]
push eax
push dword [ebp]
movups xmmword [esp + 0x34], xmm0
mov word [esp + 0x34], cx
call fcn.00451510
add esp, 0x10
cmp dword [edi + 0x20], 0
je 0x471a02
call fcn.00433040
mov ecx, dword [edi + 0x24]
mov edx, dword [ecx + 4]
cmp edx, dword [eax + 4]
jne 0x4719fa
cmp dword [edi + 0x20], 0x2726
je 0x471a02
mov ecx, dword [ebx + 4]
jmp 0x471ac4
mov byte [edi + 0x38], 1
mov eax, dword [ebx + 4]
add eax, 0x18
lock inc dword [eax]
mov edi, dword [esp + 0x10]
push edi
push 0
push 0
push 0
push dword [esp + 0x68]
push dword [esp + 0x34]
push dword [ebp]
call esi
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test esi, esi
jne 0x471a4a
cmp eax, 0x3e5
je 0x471a4a
mov ecx, dword [ebx + 4]
push esi
push eax
push edi
call fcn.00465a70
jmp 0x471acc
mov ecx, dword [ebx + 4]
push edi
call fcn.00466710
jmp 0x471acc
lea edx, [ebx + 8]
xor ecx, ecx
mov dword [esp + 0x10], edx
xor eax, eax
lock cmpxchg dword [edx], ecx
mov ecx, eax
test ecx, ecx
jne 0x471aa2
mov eax, dword [ebx]
push ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
mov esi, dword [eax]
lea eax, [esp + 0x1c]
push eax
call fcn.00443cd0
add esp, 8
lea eax, [esp + 0x18]
mov ecx, esi
push dword [esi + 0x18]
push 0x441af0
push eax
call fcn.00432ad0
mov ecx, dword [esp + 0x10]
mov ebx, eax
xchg dword [ecx], eax
jmp 0x471aa4
mov ebx, eax
test byte [ebp + 4], 3
jne 0x471b10
mov eax, dword [ebp]
cmp eax, 0xffffffff
jne 0x471ae4
call fcn.00433040
mov dword [edi + 0x20], 0x2719
mov dword [edi + 0x24], eax
mov ecx, dword [ebx + 0x14]
push 0
push edi
call fcn.00433e90
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.00475cb4
add esp, 0x34
ret 0x1c
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], 1
push ecx
push 0x8004667e
push eax
call dword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
js 0x471b9f
mov dword [edi + 0x20], 0
or byte [ebp + 4], 2
lea esi, [edi + 0x20]
push esi
push dword [esp + 0x5c]
push dword [esp + 0x28]
push dword [ebp]
call fcn.004536a0
add esp, 0x10
test eax, eax
je 0x471ac1
call fcn.00433040
mov ecx, dword [esi + 4]
mov ecx, dword [ecx + 4]
cmp ecx, dword [eax + 4]
jne 0x471b43
cmp dword [esi], 0x2734
je 0x471b63
call fcn.00433040
mov ecx, dword [esi + 4]
mov ecx, dword [ecx + 4]
cmp ecx, dword [eax + 4]
jne 0x471ac1
cmp dword [esi], 0x2733
jne 0x471ac1
push 0
push 0
push edi
lea eax, [ebp + 0x10]
mov dword [esi], 0
push eax
mov dword [esi + 4], 0x49c034
mov ecx, ebx
push dword [ebp]
push 3
call fcn.00471bc0
mov ecx, dword [esp + 0x40]
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00475cb4
add esp, 0x34
ret 0x1c
call fcn.00433040
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [edi + 0x20], eax
mov dword [edi + 0x24], esi
jmp 0x471ac1