Function at 0x48a503
Capabilities:
Connect socket
Connect udp socket
Create udp socket
Get socket status
Set socket configuration

Disassembly:
push 0xffffffffffffffff
push 0x533c5d
mov eax, dword fs:[0]
push eax
sub esp, 0x160
mov eax, dword [0x58e700]
xor eax, esp
mov dword [esp + 0x158], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x58e700]
xor eax, esp
push eax
lea eax, [esp + 0x174]
mov dword fs:[0], eax
mov ebp, ecx
call fcn.0048a7e3
push 6
xor ebx, ebx
inc ebx
push ebx
push 2
pop eax
push eax
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x48a58e
cmp dword [0x59535c], 0
je 0x48a587
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str._ERROR___d___socket__create_failed___err__d_
push ebx
push dword [0x59535c]
call fcn.0047fca4
add esp, 0x14
xor al, al
jmp 0x48a7b9
lea eax, [esp + 0x18]
mov dword [esp + 0x18], ebx
push eax
push 0x8004667e
push esi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x48a5de
cmp dword [0x59535c], 0
je 0x48a5d5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str._ERROR___d___socket__ioctl_failed__ret__d___err__d_
push ebx
push dword [0x59535c]
call fcn.0047fca4
add esp, 0x18
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x48a587
push dword [esp + 0x184]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov ebx, eax
lea edi, [esp + 0x24]
xor eax, eax
stosd dword es:[edi], eax
push 2
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
pop eax
push dword [esp + 0x188]
mov word [esp + 0x28], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x26], ax
mov eax, dword [esp + 0x184]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x24]
push 0x10
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test edi, edi
jns 0x48a670
cmp eax, 0x2733
je 0x48a670
cmp dword [0x59535c], 0
je 0x48a587
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str._WARN___d___socket__connect_failed__ip__s___ret__d___err__d_
push 2
pop eax
push eax
push dword [0x59535c]
call fcn.0047fca4
add esp, 0x1c
jmp 0x48a587
and dword [esp + 0x20], 0
push 5
pop eax
mov dword [esp + 0x1c], eax
mov edi, eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x68], esi
push eax
push 0
lea eax, [esp + 0x6c]
mov dword [esp + 0x6c], 1
push eax
push 0
push 0
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jne 0x48a6a7
dec edi
jne 0x48a67e
cmp dword [esp + 0x64], 0
jne 0x48a6d6
cmp dword [0x59535c], 0
je 0x48a5d5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str._ERROR___d___socket__ip__s___fd_count_0__err__d_
push 1
jmp 0x48a5c7
lea eax, [esp + 0x18]
xor edi, edi
push eax
push 0x8004667e
push esi
mov dword [esp + 0x24], edi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x48a729
cmp dword [0x59535c], edi
je 0x48a5d5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str._ERROR___d___socket__ioctl_failed__ip__s___ret__d___err__d_
push 1
push dword [0x59535c]
call fcn.0047fca4
add esp, 0x1c
jmp 0x48a5d5
mov eax, dword [esp + 0x184]
lea ecx, [esp + 0x34]
push ebx
mov dword [ebp + 4], esi
mov dword [ebp + 0x38], eax
mov byte [ebp + 0xc], 1
call fcn.0044e9d1
mov edx, eax
mov dword [esp + 0x17c], edi
lea ecx, [esp + 0x4c]
call fcn.0048071a
push eax
lea ecx, [ebp + 0x20]
call fcn.00460dfd
push edi
push 1
lea ecx, [esp + 0x54]
call fcn.004510a8
or dword [esp + 0x17c], 0xffffffff
lea ecx, [esp + 0x34]
push edi
push 1
call fcn.0044ea00
cmp dword [0x59535c], 0
mov eax, dword [esp + 0x188]
mov word [ebp + 0x18], ax
mov dword [ebp + 0x1c], 5
je 0x48a7b7
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str._INFO___d___socket__connect_ok__ip__s_
push 3
push dword [0x59535c]
call fcn.0047fca4
add esp, 0x14
mov al, 1
mov ecx, dword [esp + 0x174]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x158]
xor ecx, esp
call fcn.00501f3e
add esp, 0x16c
ret 0xc