Function at 0x47b290
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x501040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov eax, dword [ebx]
sub eax, 2
je 0x47b30a
sub eax, 0x15
je 0x47b2c7
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047299a
mov esp, ebp
pop ebp
ret
xorps xmm0, xmm0
mov dword [ebp - 0x28], 0x1c
mov eax, 0x17
movq qword [ebp - 0x10], xmm0
movups xmmword [ebp - 0x20], xmm0
mov word [ebp - 0x20], ax
mov eax, dword [ebx + 0x18]
mov dword [ebp - 8], 0
test eax, eax
je 0x47b2f4
push eax
jmp 0x47b2f7
push dword [esi + 0x18]
call fcn.0047e290
movups xmm0, xmmword [ebx + 4]
mov word [ebp - 0x1e], ax
movups xmmword [ebp - 0x18], xmm0
jmp 0x47b33d
xorps xmm0, xmm0
mov dword [ebp - 0x28], 0x10
mov eax, 2
movups xmmword [ebp - 0x20], xmm0
mov word [ebp - 0x20], ax
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x47b32b
push eax
jmp 0x47b32e
push dword [esi + 0x18]
call fcn.0047e290
mov word [ebp - 0x1e], ax
mov eax, dword [ebx + 4]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x91b8]
add esp, 4
mov ecx, dword [ebx]
push edi
test eax, eax
je 0x47b361
push dword [esi + 0x91bc]
mov eax, dword [eax]
push 0
push 1
push ecx
call eax
add esp, 0x10
jmp 0x47b36c
push 0
push 1
push ecx
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
je 0x47b448
push esi
push dword [ebx]
push edi
call fcn.0047ad20
add esp, 0xc
test eax, eax
jns 0x47b3cf
mov eax, dword [esi + 0x91b8]
test eax, eax
je 0x47b3b4
push dword [esi + 0x91bc]
mov eax, dword [eax + 4]
push edi
call eax
add esp, 8
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047299a
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047299a
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x91b8], 0
mov dword [ebp - 0x2c], 1
jne 0x47b3f5
push 4
lea eax, [ebp - 0x2c]
push eax
push 1
push 6
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x47b43e
mov eax, dword [esi + 0x91b0]
test eax, eax
je 0x47b414
push dword [esi + 0x91b4]
push 1
push edi
call eax
add esp, 0xc
mov dword [ebp - 0x24], eax
test eax, eax
js 0x47b47b
push dword [ebp - 0x28]
lea eax, [ebp - 0x20]
push eax
push edi
push esi
call fcn.0047a9d0
add esp, 0x10
cmp eax, 0xffffffff
jne 0x47b45c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2734
je 0x47b45c
cmp eax, 0x2733
je 0x47b45c
push edi
push esi
call fcn.0047a9a0
add esp, 8
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047299a
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x91a8]
test eax, eax
je 0x47b499
push dword [esi + 0x91ac]
push 1
push edi
call eax
add esp, 0xc
mov dword [ebp - 0x24], eax
test eax, eax
jns 0x47b499
push edi
push esi
call fcn.0047a9a0
mov eax, dword [ebp - 0x24]
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047299a
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x91a0]
test eax, eax
je 0x47b4b3
push 0
push 1
push edi
push dword [esi + 0x91a4]
call eax
add esp, 0x10
mov ecx, dword [ebp - 4]
mov dword [ebx + 0x20], edi
xor ecx, ebp
mov dword [ebx + 0x34], 0
inc dword [esi + 0x180]
mov eax, dword [esi + 0x180]
pop edi
mov dword [ebx + 0x40], eax
xor eax, eax
pop esi
pop ebx
call fcn.0047299a
mov esp, ebp
pop ebp
ret