Function at 0x4f0de0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x686300]
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 0x4f0e18
cmp eax, 0x17
jne 0x4f0f0b
push ecx
push esi
mov ecx, ebx
call fcn.004de170
mov dword [ebp - 0x24], eax
test eax, eax
je 0x4f0f0b
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.004d33b0
add esp, 0x10
cmp byte [edi + 0x24], 0
je 0x4f0e9b
push 0
push 0x2726
lea ecx, [ebp - 0x30]
call fcn.0048c240
lea eax, [ebp - 0x30]
push eax
lea eax, [edi + 0x20]
push eax
call fcn.004c6e30
add esp, 8
test al, al
je 0x4f0e9b
mov ecx, dword [ebx + 4]
jmp 0x4f0f80
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 0x4f0eef
cmp eax, 0x3e5
je 0x4f0eef
mov ecx, dword [ebx + 4]
push esi
push eax
push edi
call fcn.004e37c0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b7dc4
mov esp, ebp
pop ebp
ret 0x18
mov ecx, dword [ebx + 4]
push edi
call fcn.004e3870
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b7dc4
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 0x4f0f57
mov esi, dword [ebx]
push eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x2c]
push eax
call fcn.004aa970
mov ecx, dword [esi]
lea eax, [ebp - 0x2c]
add esp, 8
push esi
push 0x4a3650
push eax
call fcn.004dc430
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 0x4f0fe4
mov eax, dword [esi]
lea ebx, [edi + 0x20]
mov dword [ebp - 0x28], eax
cmp eax, 0xffffffff
jne 0x4f0f9b
push 0x2719
mov ecx, ebx
call fcn.0048c390
mov ecx, dword [ebp - 0x24]
mov ecx, dword [ecx + 0x14]
push 0
push edi
call fcn.004e87c0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b7dc4
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.004a4ba0
add esp, 8
test eax, eax
js 0x4f0f7a
lea ecx, [ebp - 0x30]
call fcn.00487ec0
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.004d52e0
add esp, 0x10
test eax, eax
je 0x4f0f7a
push 0
push 0x2734
lea ecx, [ebp - 0x30]
call fcn.0048c240
mov eax, dword [ebx]
cmp eax, dword [ebp - 0x30]
jne 0x4f103f
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebx + 8]
mov eax, dword [edx + 8]
or eax, dword [edx + 0xc]
jne 0x4f102f
cmp ecx, edx
sete al
test al, al
jne 0x4f1063
jmp 0x4f103f
mov eax, dword [edx + 8]
cmp dword [ecx + 8], eax
jne 0x4f103f
mov eax, dword [edx + 0xc]
cmp dword [ecx + 0xc], eax
je 0x4f1063
push 0
push 0x2733
lea ecx, [ebp - 0x30]
call fcn.0048c240
lea eax, [ebp - 0x30]
push eax
push ebx
call fcn.004c6d30
add esp, 8
test al, al
je 0x4f0f7a
lea ecx, [ebp - 0x30]
call fcn.00487ec0
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.004f10b0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005b7dc4
mov esp, ebp
pop ebp
ret 0x18