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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x228
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x130], 1
mov ecx, dword [eax]
lea eax, [ebp - 0x130]
push eax
push 0x8004667e
mov dword [ebp - 0x10], ecx
push ecx
call sub.WS2_32.dll_ioctlsocket
cmp eax, 0xffffffff
je 0x1004e127
mov eax, dword [ebp + 0x10]
cmp word [eax], 0
je 0x1004e04f
movups xmm0, xmmword [eax + 4]
mov edx, dword [eax + 0x18]
lea ecx, [eax + 0x14]
mov bx, 0x17
mov esi, 0x1c
mov edi, 0x1c
jmp 0x1004e063
lea ecx, [eax + 2]
xorps xmm0, xmm0
mov edi, 0x10
mov bx, 2
mov esi, 6
movzx eax, word [eax + esi]
mov ecx, dword [ecx]
mov word [ebp - 0x130], bx
rol ax, 8
mov word [ebp - 0x12e], ax
mov dword [ebp - 0x12c], ecx
movups xmmword [ebp - 0x128], xmm0
mov dword [ebp - 0x118], edx
push edi
lea ebx, [ebp - 0x130]
push ebx
mov esi, dword [ebp - 0x10]
push esi
call sub.WS2_32.dll_connect
cmp eax, 0xffffffff
je 0x1004e0c8
mov byte [ebp - 0x18], 4
mov dword [ebp - 0x130], 0
push ebx
push 0x8004667e
push esi
call sub.WS2_32.dll_ioctlsocket
mov esi, dword [ebp + 8]
cmp eax, 0xffffffff
jne 0x1004e137
jmp 0x1004e127
call sub.WS2_32.dll_WSAGetLastError
mov edi, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x130], 0
push ebx
push 0x8004667e
push esi
call sub.WS2_32.dll_ioctlsocket
mov esi, dword [ebp + 8]
cmp eax, 0xffffffff
je 0x1004e127
mov ecx, edi
call fcn.10057080
cmp al, 0xd
jne 0x1004e137
mov edi, dword [ebp + 0x14]
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x1c]
mov edx, edi
or edx, eax
jne 0x1004e14d
test ecx, ecx
jne 0x1004e14d
mov eax, dword [0x100c7ca8]
mov ecx, dword [0x100c7cac]
mov dword [esi + 4], ecx
mov dword [esi], eax
jmp 0x1004e140
call sub.WS2_32.dll_WSAGetLastError
mov dword [esi + 4], eax
mov dword [esi], 0
jmp 0x1004e140
movsd xmm0, qword [ebp - 0x18]
movsd qword [esi], xmm0
mov eax, esi
add esp, 0x228
pop esi
pop edi
pop ebx
pop ebp
ret
cmp edi, 0x7fffffff
mov edx, 0x7fffffff
cmovae edi, edx
test eax, eax
mov eax, ecx
cmovne edi, edx
mov edx, 0x10624dd3
mul edx
mov eax, 1
mov dword [ebp - 0x20], edi
shr edx, 6
test edi, edi
cmovne eax, edx
cmp ecx, 0x3e8
cmovae eax, edx
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x128]
push 0xfc
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov edi, dword [ebp - 0x10]
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x234], 1
mov dword [ebp - 0x230], edi
push 0xfc
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20]
mov dword [ebp - 0x130], 1
mov dword [ebp - 0x12c], edi
lea ecx, [ebp - 0x234]
push eax
push ebx
push ecx
push 0
push 1
call sub.WS2_32.dll_select
test eax, eax
je 0x1004e20c
cmp eax, 0xffffffff
jne 0x1004e218
call sub.WS2_32.dll_WSAGetLastError
mov byte [esi], 0
mov byte [esi + 3], 0
mov word [esi + 1], 0
mov dword [esi + 4], eax
jmp 0x1004e140
mov byte [esi], 2
mov dword [esi + 4], 0x100c7cc4
jmp 0x1004e243
cmp dword [ebp - 0x234], 1
je 0x1004e240
lea eax, [ebp - 0x2c]
push dword [ebp + 0xc]
push eax
call fcn.1004eb80
add esp, 8
cmp dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
jne 0x1004e254
cmp al, 4
jne 0x1004e254
mov byte [esi], 4
lea eax, [ebp - 0x18]
push eax
call fcn.1000f4d0
add esp, 4
jmp 0x1004e140
mov dword [esi], eax
mov dword [esi + 4], ecx
jmp 0x1004e140