Function at 0x5741c0
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 0x5741fe
cmp eax, 0x17
jne 0x5742d1
push ecx
push ebx
mov ecx, esi
call fcn.0055f520
mov dword [ebp - 0x28], eax
test eax, eax
je 0x5742d1
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.00557c90
add esp, 0x10
cmp dword [edi + 0x20], 0
je 0x57427e
call fcn.00574eb0
mov ecx, dword [edi + 0x24]
mov edx, dword [ecx + 4]
cmp edx, dword [eax + 4]
jne 0x57426e
cmp dword [edi + 0x20], 0x2726
je 0x57427e
mov ecx, dword [esi + 4]
push 0
push edi
call fcn.0056ae00
jmp 0x574341
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 0x5742c3
cmp eax, 0x3e5
je 0x5742c3
mov ecx, dword [ebp - 0x24]
push esi
push eax
push edi
mov ecx, dword [ecx + 4]
call fcn.0056a0b0
jmp 0x574341
mov ecx, dword [ebp - 0x24]
push edi
mov ecx, dword [ecx + 4]
call fcn.0056a130
jmp 0x574341
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 0x57431a
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.005423d0
add esp, 8
lea eax, [ebp - 0x30]
mov ecx, esi
push dword [esi + 0x18]
push 0x53f430
push eax
call fcn.0055e230
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
xchg dword [ecx], eax
test byte [ebx + 4], 3
jne 0x57439c
mov eax, dword [ebx]
cmp eax, 0xffffffff
jne 0x574357
call fcn.00574eb0
mov dword [edi + 0x20], 0x2719
mov dword [edi + 0x24], eax
mov ecx, dword [ebp - 0x24]
push 0
push edi
call fcn.0056ad90
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053649e
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 0x57437e
mov dword [edi + 0x20], 0
jmp 0x574394
call fcn.00574eb0
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 0x574336
or byte [ebx + 4], 2
lea esi, [edi + 0x20]
push esi
push dword [ebp + 0x18]
push dword [ebp - 0x34]
push dword [ebx]
call fcn.005594b0
add esp, 0x10
test eax, eax
je 0x574336
call fcn.00574eb0
mov ecx, dword [esi + 4]
mov ecx, dword [ecx + 4]
cmp ecx, dword [eax + 4]
jne 0x5743cc
cmp dword [esi], 0x2734
je 0x5743ec
call fcn.00574eb0
mov ecx, dword [esi + 4]
mov ecx, dword [ecx + 4]
cmp ecx, dword [eax + 4]
jne 0x574336
cmp dword [esi], 0x2733
jne 0x574336
call fcn.0053ac90
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.00574430
mov ecx, dword [ebp - 4]
mov eax, 3
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0053649e
mov esp, ebp
pop ebp
ret 0x1c