Function at 0x4f4c60
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x68a300]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x34], esi
push edi
mov edi, dword [ebp + 0x1c]
cmp eax, 2
je 0x4f4c98
cmp eax, 0x17
jne 0x4f4d8b
push ecx
push esi
mov ecx, ebx
call fcn.004e2070
mov dword [ebp - 0x24], eax
test eax, eax
je 0x4f4d8b
mov ecx, dword [ebp + 0xc]
lea eax, [edi + 0x20]
push eax
cmp ecx, 2
mov dword [ebp - 8], 0
mov edx, 0x10
mov eax, 0x1c
cmove eax, edx
xorps xmm0, xmm0
push eax
lea eax, [ebp - 0x20]
movq qword [ebp - 0x10], xmm0
push eax
push dword [esi]
movdqu xmmword [ebp - 0x20], xmm0
mov word [ebp - 0x20], cx
call fcn.004d72b0
add esp, 0x10
cmp byte [edi + 0x24], 0
je 0x4f4d1b
push 0
push 0x2726
lea ecx, [ebp - 0x30]
call fcn.0048fc20
lea eax, [ebp - 0x30]
push eax
lea eax, [edi + 0x20]
push eax
call fcn.004cab30
add esp, 8
test al, al
je 0x4f4d1b
mov ecx, dword [ebx + 4]
jmp 0x4f4e00
mov byte [edi + 0x38], 1
mov eax, dword [ebx + 4]
add eax, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push edi
push 0
push 0
push 0
push dword [ebp + 0x18]
push dword [ebp - 0x38]
push dword [esi]
call dword [ebp - 0x24]
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test esi, esi
jne 0x4f4d6f
cmp eax, 0x3e5
je 0x4f4d6f
mov ecx, dword [ebx + 4]
push esi
push eax
push edi
call fcn.004e7650
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005ba7b4
mov esp, ebp
pop ebp
ret 0x18
mov ecx, dword [ebx + 4]
push edi
call fcn.004e7700
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005ba7b4
mov esp, ebp
pop ebp
ret 0x18
push 0
lea eax, [ebx + 8]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
mov dword [ebp - 0x24], eax
test eax, eax
jne 0x4f4dd7
mov esi, dword [ebx]
push eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x2c]
push eax
call fcn.004ae4c0
mov ecx, dword [esi]
lea eax, [ebp - 0x2c]
add esp, 8
push esi
push 0x4a71b0
push eax
call fcn.004e0330
push eax
mov dword [ebp - 0x24], eax
lea eax, [ebx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov esi, dword [ebp - 0x34]
test byte [esi + 4], 3
jne 0x4f4e64
mov eax, dword [esi]
lea ebx, [edi + 0x20]
mov dword [ebp - 0x28], eax
cmp eax, 0xffffffff
jne 0x4f4e1b
push 0x2719
mov ecx, ebx
call fcn.0048fde0
mov ecx, dword [ebp - 0x24]
mov ecx, dword [ecx + 0x14]
push 0
push edi
call fcn.004ec650
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005ba7b4
mov esp, ebp
pop ebp
ret 0x18
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push ebx
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 1
push eax
push 0x8004667e
push dword [ebp - 0x28]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
push eax
call fcn.004a8700
add esp, 8
test eax, eax
js 0x4f4dfa
lea ecx, [ebp - 0x30]
call fcn.0048ba00
movq xmm0, qword [eax]
movq qword [ebx], xmm0
mov eax, dword [eax + 8]
mov dword [ebx + 8], eax
or byte [esi + 4], 2
lea ebx, [edi + 0x20]
push ebx
push dword [ebp + 0x18]
push dword [ebp - 0x38]
push dword [esi]
call fcn.004d91e0
add esp, 0x10
test eax, eax
je 0x4f4dfa
push 0
push 0x2734
lea ecx, [ebp - 0x30]
call fcn.0048fc20
mov eax, dword [ebx]
cmp eax, dword [ebp - 0x30]
jne 0x4f4ebf
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebx + 8]
mov eax, dword [edx + 8]
or eax, dword [edx + 0xc]
jne 0x4f4eaf
cmp ecx, edx
sete al
test al, al
jne 0x4f4ee3
jmp 0x4f4ebf
mov eax, dword [edx + 8]
cmp dword [ecx + 8], eax
jne 0x4f4ebf
mov eax, dword [edx + 0xc]
cmp dword [ecx + 0xc], eax
je 0x4f4ee3
push 0
push 0x2733
lea ecx, [ebp - 0x30]
call fcn.0048fc20
lea eax, [ebp - 0x30]
push eax
push ebx
call fcn.004caa30
add esp, 8
test al, al
je 0x4f4dfa
lea ecx, [ebp - 0x30]
call fcn.0048ba00
mov ecx, dword [ebp - 0x24]
push 0
push 0
movq xmm0, qword [eax]
movq qword [ebx], xmm0
mov eax, dword [eax + 8]
mov dword [ebx + 8], eax
lea eax, [esi + 0x10]
push edi
push eax
push dword [esi]
push 3
call fcn.004f4f30
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005ba7b4
mov esp, ebp
pop ebp
ret 0x18