Function at 0x4a0a64
Capabilities:
Create tcp socket
Create udp socket
Get socket status
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff674
mov dword [ebp - 0x2c], eax
mov eax, 0x4ce8c4
call fcn.004a44b4
mov word [ebp - 0x18], 8
lea eax, [ebp - 4]
call fcn.00401ed0
inc dword [ebp - 0xc]
mov word [ebp - 0x18], 0x14
mov dword [ebp - 0x40], 1
mov edx, dword [0x4ce350]
mov dword [ebp - 0x48], edx
mov edx, dword [0x4ce354]
mov dword [ebp - 0x44], edx
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ecx + 0x2f4]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x64]
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax + 0x2f0]
mov eax, dword [edx + 0x22c]
call fcn.00492760
mov edx, dword [0x4d3af4]
mov eax, dword [edx]
call fcn.0046b1f8
push 0x20
call sub.WSOCK32.DLL_htons
mov word [ebp - 0x68], ax
push 1
call sub.WSOCK32.DLL_htons
mov word [ebp - 0x66], ax
push 1
call sub.WSOCK32.DLL_htons
mov word [ebp - 0x64], ax
mov byte [ebp - 0x62], 8
mov byte [ebp - 0x61], 0
push 2
call sub.WSOCK32.DLL_htons
mov word [ebp - 0x60], ax
push 0
call sub.WSOCK32.DLL_htons
mov word [ebp - 0x5e], ax
mov edx, dword [ebp - 0x2c]
mov cx, word [edx + 0x324]
push ecx
call sub.WSOCK32.DLL_htons
movzx eax, ax
mov dword [ebp - 0x5c], eax
push 6
push 0
lea edx, [ebp - 0x58]
push edx
call fcn.004a405c
add esp, 0xc
mov byte [ebp - 0x58], 1
push 6
push 0xff
lea ecx, [ebp - 0x52]
push ecx
call fcn.004a405c
add esp, 0xc
push 0
call sub.WSOCK32.DLL_htons
mov word [ebp - 0x4c], ax
push 0
call sub.WSOCK32.DLL_htons
mov word [ebp - 0x4a], ax
push 0
push 2
push 2
call sub.WSOCK32.DLL_socket
mov dword [ebp - 0x3c], eax
cmp eax, 0xffffffff
jne 0x4a0baf
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 0x2f4]
mov dl, 1
mov ecx, dword [eax]
call dword [ecx + 0x64]
dec dword [ebp - 0xc]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004af354
mov ecx, dword [ebp - 0x28]
mov dword fs:[0], ecx
jmp 0x4a0dc4
push 4
lea eax, [ebp - 0x40]
push eax
push 0x20
push 0xffff
push dword [ebp - 0x3c]
call sub.WSOCK32.DLL_setsockopt
mov word [ebp - 0x888], 2
push 0x5760
call sub.WSOCK32.DLL_htons
mov word [ebp - 0x886], ax
mov dword [ebp - 0x884], 0xffffffff
push 0x10
lea edx, [ebp - 0x888]
push edx
push 0
push 0x20
lea ecx, [ebp - 0x68]
push ecx
push dword [ebp - 0x3c]
call sub.WSOCK32.DLL_sendto
push 0
call sub.WSOCK32.DLL_htons
mov word [ebp - 0x886], ax
xor eax, eax
mov dword [ebp - 0x884], eax
mov dword [ebp - 0x34], 0x10
xor edx, edx
mov dword [ebp - 0x98c], edx
mov ecx, dword [ebp - 0x98c]
cmp ecx, 0x40
jae 0x4a0c47
mov eax, dword [ebp - 0x98c]
inc dword [ebp - 0x98c]
mov edx, dword [ebp - 0x3c]
mov dword [ebp + eax*4 - 0x988], edx
lea ecx, [ebp - 0x48]
push ecx
push 0
push 0
lea eax, [ebp - 0x98c]
push eax
push 0
call sub.WSOCK32.DLL_select
test eax, eax
jle 0x4a0ca3
lea edx, [ebp - 0x34]
push edx
lea ecx, [ebp - 0x878]
push ecx
push 0
push 0x800
lea eax, [ebp - 0x868]
push eax
push dword [ebp - 0x3c]
call sub.WSOCK32.DLL_recvfrom
mov dword [ebp - 0x30], eax
mov edx, dword [ebp - 0x30]
cmp edx, 0x20
jl 0x4a0c1e
lea edx, [ebp - 0x868]
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
call fcn.004a05bc
jmp 0x4a0c1e
mov word [ebp - 0x888], 2
push 0x5760
call sub.WSOCK32.DLL_htons
mov word [ebp - 0x886], ax
push str.224.0.0.251
call fcn.004a0088
pop ecx
mov dword [ebp - 0x884], eax
push 0x10
lea eax, [ebp - 0x888]
push eax
push 0
push 0x20
lea edx, [ebp - 0x68]
push edx
push dword [ebp - 0x3c]
call sub.WSOCK32.DLL_sendto
push 0
call sub.WSOCK32.DLL_htons
mov word [ebp - 0x886], ax
xor ecx, ecx
mov dword [ebp - 0x884], ecx
mov dword [ebp - 0x34], 0x10
xor eax, eax
mov dword [ebp - 0x98c], eax
mov edx, dword [ebp - 0x98c]
cmp edx, 0x40
jae 0x4a0d2d
mov ecx, dword [ebp - 0x98c]
inc dword [ebp - 0x98c]
mov eax, dword [ebp - 0x3c]
mov dword [ebp + ecx*4 - 0x988], eax
lea edx, [ebp - 0x48]
push edx
push 0
push 0
lea ecx, [ebp - 0x98c]
push ecx
push 0
call sub.WSOCK32.DLL_select
test eax, eax
jle 0x4a0d89
lea eax, [ebp - 0x34]
push eax
lea edx, [ebp - 0x878]
push edx
push 0
push 0x800
lea ecx, [ebp - 0x868]
push ecx
push dword [ebp - 0x3c]
call sub.WSOCK32.DLL_recvfrom
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
cmp eax, 0x20
jl 0x4a0d04
lea edx, [ebp - 0x868]
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
call fcn.004a05bc
jmp 0x4a0d04
push dword [ebp - 0x3c]
call sub.WSOCK32.DLL_closesocket
mov edx, dword [ebp - 0x2c]
inc dword [edx + 0x324]
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ecx + 0x2f4]
mov dl, 1
mov ecx, dword [eax]
call dword [ecx + 0x64]
dec dword [ebp - 0xc]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004af354
mov ecx, dword [ebp - 0x28]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret