Function at 0x5741b0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x5fad8c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x20]
push esi
mov esi, ecx
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x24], esi
push edi
mov edi, dword [ebp + 0x1c]
cmp eax, 2
je 0x5741ee
cmp eax, 0x17
jne 0x5742c1
push ecx
push ebx
mov ecx, esi
call fcn.0055f530
mov dword [ebp - 0x28], eax
test eax, eax
je 0x5742c1
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 [ebx]
movups xmmword [ebp - 0x20], xmm0
mov word [ebp - 0x20], cx
call fcn.00557c60
add esp, 0x10
cmp dword [edi + 0x20], 0
je 0x57426e
call fcn.00574ea0
mov ecx, dword [edi + 0x24]
mov edx, dword [ecx + 4]
cmp edx, dword [eax + 4]
jne 0x57425e
cmp dword [edi + 0x20], 0x2726
je 0x57426e
mov ecx, dword [esi + 4]
push 0
push edi
call fcn.0056ae50
jmp 0x574331
mov byte [edi + 0x38], 1
mov eax, dword [esi + 4]
add eax, 0x18
lock inc dword [eax]
mov edi, dword [ebp - 0x2c]
push edi
push 0
push 0
push 0
push dword [ebp + 0x18]
push dword [ebp - 0x34]
push dword [ebx]
call dword [ebp - 0x28]
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test esi, esi
jne 0x5742b3
cmp eax, 0x3e5
je 0x5742b3
mov ecx, dword [ebp - 0x24]
push esi
push eax
push edi
mov ecx, dword [ecx + 4]
call fcn.0056a100
jmp 0x574331
mov ecx, dword [ebp - 0x24]
push edi
mov ecx, dword [ecx + 4]
call fcn.0056a180
jmp 0x574331
lea edx, [esi + 8]
xor ecx, ecx
mov dword [ebp - 0x28], edx
xor eax, eax
lock cmpxchg dword [edx], ecx
mov ecx, eax
mov dword [ebp - 0x24], ecx
test ecx, ecx
jne 0x57430a
mov eax, dword [esi]
push ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ecx
mov esi, dword [eax]
lea eax, [ebp - 0x30]
push eax
call fcn.00542610
add esp, 8
lea eax, [ebp - 0x30]
mov ecx, esi
push dword [esi + 0x18]
push 0x53f670
push eax
call fcn.0055e1f0
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
xchg dword [ecx], eax
test byte [ebx + 4], 3
jne 0x57438c
mov eax, dword [ebx]
cmp eax, 0xffffffff
jne 0x574347
call fcn.00574ea0
mov dword [edi + 0x20], 0x2719
mov dword [edi + 0x24], eax
mov ecx, dword [ebp - 0x24]
push 0
push edi
call fcn.0056ade0
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053658e
mov esp, ebp
pop ebp
ret 0x1c
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x28], 1
push ecx
push 0x8004667e
push eax
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov dword [ebp - 0x2c], eax
test eax, eax
js 0x57436e
mov dword [edi + 0x20], 0
jmp 0x574384
call fcn.00574ea0
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [edi + 0x20], eax
mov eax, dword [ebp - 0x2c]
mov dword [edi + 0x24], esi
test eax, eax
js 0x574326
or byte [ebx + 4], 2
lea esi, [edi + 0x20]
push esi
push dword [ebp + 0x18]
push dword [ebp - 0x34]
push dword [ebx]
call fcn.00559480
add esp, 0x10
test eax, eax
je 0x574326
call fcn.00574ea0
mov ecx, dword [esi + 4]
mov ecx, dword [ecx + 4]
cmp ecx, dword [eax + 4]
jne 0x5743bc
cmp dword [esi], 0x2734
je 0x5743dc
call fcn.00574ea0
mov ecx, dword [esi + 4]
mov ecx, dword [ecx + 4]
cmp ecx, dword [eax + 4]
jne 0x574326
cmp dword [esi], 0x2733
jne 0x574326
call fcn.0053ad60
mov ecx, dword [ebp - 0x24]
push 0
push 0
mov dword [esi + 4], eax
lea eax, [ebx + 0x10]
push edi
push eax
mov dword [esi], 0
push dword [ebx]
push 3
call fcn.00574420
mov ecx, dword [ebp - 4]
mov eax, 3
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0053658e
mov esp, ebp
pop ebp
ret 0x1c