Function at 0x48efb0
Capabilities:
Connect socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x10]
sub esp, 0x30
cmp ecx, 0x10
jae 0x48efe2
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
mov eax, dword [eax + 0x28f0]
test eax, eax
jne 0x48efd5
call fcn.00596e90
mov dword [eax], 0x16
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
movups xmm1, xmmword [eax]
movups xmm0, xmmword [eax]
psrldq xmm1, 4
movd edi, xmm1
movups xmmword [ebp - 0x30], xmm0
bswap edi
cmp edi, 0x7f000001
jne 0x48f034
cmp dword [esi + 0x14], 6
jne 0x48f034
test byte [esi + 0x58], 0x80
je 0x48f034
cmp dword [0x654e14], 3
jne 0x48f034
push 0
push dword [esi]
mov dword [ebp - 8], 1
call fcn.0048d690
mov ecx, dword [ebp + 0x10]
add esp, 8
jmp 0x48f03b
mov dword [ebp - 8], 0
cmp edi, 0x7f000001
jne 0x48f051
cmp word [esi + 0x78], 0
mov dword [ebp + 0xc], 1
je 0x48f058
mov dword [ebp + 0xc], 0
push ebx
push ecx
lea eax, [ebp - 0x30]
xor ebx, ebx
push eax
push dword [esi + 0x60]
mov dword [ebp - 4], ebx
call dword [sym.imp.WS2_32.dll_connect]
push eax
call fcn.00590b90
mov edi, eax
add esp, 4
test edi, edi
je 0x48f18c
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx]
add eax, 0x28f0
mov dword [ebp - 0x10], eax
mov eax, dword [eax]
test eax, eax
jne 0x48f09b
call fcn.00596e90
cmp dword [eax], 0x2740
jne 0x48f188
cmp dword [ebp + 0xc], 0
je 0x48f188
cmp ebx, 2
jge 0x48f188
push dword [esi + 0x14]
mov edi, dword [esi + 0x58]
push dword [esi + 0x10]
mov eax, dword [esi + 0x60]
and edi, 0x80
push dword [esi + 0xc]
mov dword [ebp - 0xc], eax
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 0x60], eax
test eax, eax
js 0x48f17e
push 0
push 1
push eax
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
xor eax, eax
test edi, edi
setne al
push eax
push dword [esi]
call fcn.0048d690
add esp, 8
mov ebx, 2
xorps xmm0, xmm0
movups xmmword [ebp - 0x20], xmm0
mov word [ebp - 0x20], bx
call fcn.005928b0
cdq
mov ecx, 0xfa00
idiv ecx
push 0x10
add edx, 0x3e8
mov dword [ebp - 0x1c], 0x100007f
mov ah, dl
mov al, dh
mov word [ebp - 0x1e], ax
lea eax, [ebp - 0x20]
push eax
push dword [esi]
call fcn.0048e980
add esp, 0xc
test eax, eax
jne 0x48f105
push dword [ebp - 0xc]
call dword [sym.imp.WS2_32.dll_closesocket]
push dword [ebp + 0x10]
mov ebx, dword [ebp - 4]
lea eax, [ebp - 0x30]
push eax
push dword [esi + 0x60]
inc ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.WS2_32.dll_connect]
push eax
call fcn.00590b90
mov edi, eax
add esp, 4
mov eax, dword [ebp - 0x10]
test edi, edi
jne 0x48f090
jmp 0x48f18c
pop ebx
pop edi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
test edi, edi
jne 0x48f199
inc dword [0x668d1c]
mov dword [esi + 8], 1
cmp dword [ebp - 8], 0
je 0x48f263
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
mov eax, dword [eax + 0x28f0]
test eax, eax
jne 0x48f1ba
call fcn.00596e90
mov eax, dword [eax]
mov esi, dword [esi]
push 0x668d40
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x10], 1
call fcn.0047e9d0
mov eax, dword [0x668d6c]
push 0x668d40
mov ebx, dword [eax + esi*4]
call fcn.0047e9e0
add esp, 8
test byte [ebx + 0x58], 1
je 0x48f23f
push 0x668d40
call fcn.0047e9d0
mov eax, dword [0x668d6c]
push 0x668d40
mov esi, dword [eax + esi*4]
call fcn.0047e9e0
add esp, 8
lea eax, [ebp + 0x10]
push eax
push 0x8004667e
push dword [esi + 0x60]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
push eax
call fcn.00590b90
add esp, 4
test eax, eax
je 0x48f23f
push str.failed_ioctl_FIOBIO_:__m
push 0x360003
call fcn.00479a10
add esp, 8
jmp 0x48f246
or dword [ebx + 0x58], 0x80
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x28f0]
test eax, eax
jne 0x48f25e
call fcn.00596e90
mov ecx, dword [ebp + 0xc]
mov dword [eax], ecx
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret