Function at 0x4ce770
Capabilities:
Connect socket
Get socket status
Set socket configuration

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x23c
mov eax, dword [esp + 0x254]
mov ebx, dword [esp + 0x250]
lea esi, [esp + 0x34]
mov dword [esp + 0x34], 1
mov ebp, dword [eax]
push esi
push 0x8004667e
push ebp
call dword [sym.imp.ws2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
je 0x4ce821
mov eax, dword [esp + 0x258]
cmp word [eax], 0
je 0x4ce82c
mov ecx, dword [eax + 0x1c]
movsd xmm0, qword [eax + 0x14]
movsd xmm2, qword [eax + 4]
movsd xmm1, qword [eax + 0xc]
mov dword [esp + 0x4c], ecx
movsd qword [esp + 0x44], xmm0
movsd qword [esp + 0x3c], xmm1
movsd qword [esp + 0x34], xmm2
push esi
call fcn.004debd0
add esp, 4
mov edi, eax
rol di, 8
push esi
call fcn.0041db40
add esp, 4
movups xmm0, xmmword [eax]
movups xmmword [esp + 0x24], xmm0
push esi
call fcn.004a1f70
add esp, 4
mov ebx, eax
push esi
call fcn.004debe0
movups xmm0, xmmword [esp + 0x28]
add esp, 4
mov ecx, 0x1c
mov dx, 0x17
jmp 0x4ce862
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
jmp 0x4ce936
movzx ecx, word [eax + 6]
mov eax, dword [eax + 2]
mov word [esp + 0x38], cx
mov dword [esp + 0x34], eax
push esi
call fcn.004deb80
add esp, 4
mov edi, eax
rol di, 8
push esi
call fcn.0041db40
add esp, 4
mov ebx, dword [eax]
xorps xmm0, xmm0
mov ecx, 0x10
mov dx, 2
mov word [esp + 0x34], dx
mov word [esp + 0x36], di
mov dword [esp + 0x38], ebx
movups xmmword [esp + 0x3c], xmm0
mov dword [esp + 0x4c], eax
push ecx
push esi
push ebp
call dword [sym.imp.ws2_32.dll_connect]
cmp eax, 0xffffffff
je 0x4ce8bc
mov byte [esp], 4
mov dword [esp + 0x34], 0
push esi
push 0x8004667e
push ebp
call dword [sym.imp.ws2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
je 0x4ce929
mov eax, dword [esp]
mov edi, dword [esp + 4]
mov ebx, dword [esp + 0x250]
jmp 0x4ce954
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov edi, eax
mov dword [esp + 4], eax
mov dword [esp], 0
mov dword [esp + 0x34], 0
push esi
push 0x8004667e
push ebp
call dword [sym.imp.ws2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
je 0x4ce929
push edi
call fcn.004c9430
add esp, 4
mov ebx, dword [esp + 0x250]
cmp al, 0xd
jne 0x4ce952
mov edi, dword [esp + 0x25c]
mov eax, dword [esp + 0x260]
mov ecx, dword [esp + 0x264]
or eax, edi
jne 0x4ce966
test ecx, ecx
jne 0x4ce966
mov dword [ebx], 2
mov dword [ebx + 4], 0x565128
jmp 0x4ce959
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov ebx, dword [esp + 0x250]
mov ecx, eax
mov edx, eax
shr ecx, 8
shl edx, 0x18
shr eax, 0x18
mov byte [ebx], 0
mov dword [ebx + 1], edx
mov word [ebx + 5], cx
mov byte [ebx + 7], al
jmp 0x4ce959
xor eax, eax
mov dword [ebx], eax
mov dword [ebx + 4], edi
mov eax, ebx
add esp, 0x23c
pop esi
pop edi
pop ebx
pop ebp
ret
mov edx, 0x10624dd3
mov eax, ecx
mov dword [esp + 8], edi
mul edx
mov eax, 1
shr edx, 6
cmp ecx, 0x3e8
cmovae eax, edx
test edi, edi
cmovne eax, edx
mov dword [esp + 0xc], eax
lea eax, [esp + 0x3c]
push 0xfc
push 0
push eax
call fcn.004f7770
add esp, 0xc
lea eax, [esp + 0x140]
mov dword [esp + 0x138], 1
mov dword [esp + 0x13c], ebp
push 0xfc
push 0
push eax
call fcn.004f7770
add esp, 0xc
lea eax, [esp + 8]
mov dword [esp + 0x34], 1
mov dword [esp + 0x38], ebp
lea ecx, [esp + 0x138]
push eax
push esi
push ecx
push 0
push 1
call dword [sym.imp.ws2_32.dll_select]
test eax, eax
je 0x4cea12
cmp eax, 0xffffffff
jne 0x4cea21
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov byte [ebx], 0
mov byte [ebx + 3], 0
mov word [ebx + 1], 0
mov dword [ebx + 4], eax
jmp 0x4ce959
mov dword [ebx], 2
mov dword [ebx + 4], 0x565148
jmp 0x4cea2e
cmp dword [esp + 0x138], 1
jne 0x4cea3a
mov byte [ebx], 4
mov ecx, esp
call fcn.00435a00
jmp 0x4ce959
lea eax, [esp + 0x18]
push dword [esp + 0x254]
push eax
call fcn.004cea80
add esp, 8
cmp dword [esp + 0x18], 0
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
jne 0x4cea75
cmp cl, 4
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
jne 0x4cea75
lea ecx, [esp + 0x10]
call fcn.00435a00
jmp 0x4cea2b
mov dword [ebx], ecx
mov dword [ebx + 4], eax
jmp 0x4ce959