Function at 0xa7d420
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get local ipv4 addresses
Get socket information
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration
Start tcp server

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0xaf1008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.WS2_32.dll_socket]
push edi
mov edi, dword [ebp + 0xc]
push 6
push 1
push 2
mov dword [ebp - 0x48], 0x10
call esi
mov ebx, eax
cmp ebx, 0xffffffff
je 0xa7d629
xorps xmm0, xmm0
mov eax, 2
push 0x7f000001
movlpd qword [ebp - 0xc], xmm0
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebp - 0x10], eax
xor eax, eax
push 4
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x3c]
push eax
push 0xfffffffffffffffb
push 0xffff
push ebx
mov dword [edi + 4], 0xffffffff
mov dword [edi], 0xffffffff
mov dword [ebp - 0x3c], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0xa7d617
push 0x10
lea eax, [ebp - 0x14]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0xa7d617
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0xa7d617
cmp dword [ebp - 0x48], 0x10
jl 0xa7d617
push 1
push ebx
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0xa7d617
push 0
push 1
push 2
call esi
mov dword [edi], eax
cmp eax, 0xffffffff
je 0xa7d617
push 0x10
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0xa7d617
mov edx, 1
mov ecx, ebx
call fcn.00a84ab0
test eax, eax
js 0xa7d617
push 0
push 0x3e8
mov edx, 1
mov dword [ebp - 0x44], ebx
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x40], 0x300
call fcn.00a58b10
add esp, 8
push 0
push 0
push ebx
call dword [sym.imp.WS2_32.dll_accept]
mov dword [edi + 4], eax
cmp eax, 0xffffffff
je 0xa7d617
lea eax, [ebp - 0x60]
push eax
call fcn.00a4e8d0
add esp, 4
mov dword [ebp - 0x3c], 0x10
lea esi, [ebp - 0x38]
movups xmm0, xmmword [eax]
push 0
push 0x10
lea eax, [ebp - 0x28]
push eax
push dword [edi]
movups xmmword [ebp - 0x28], xmm0
call dword [sym.imp.WS2_32.dll_send]
mov eax, dword [edi + 4]
lea ecx, [ebp - 0x44]
push 0
push 0x3e8
mov edx, 1
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], 0x300
call fcn.00a58b10
add esp, 8
push 0
push dword [ebp - 0x3c]
push esi
push dword [edi + 4]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0xa7d63d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x60]
push eax
call fcn.00a4e8d0
movups xmm0, xmmword [ebp - 0x28]
sub esp, 0xc
mov ecx, esp
sub esp, 0x10
movups xmmword [ecx], xmm0
mov ecx, esp
movups xmm0, xmmword [eax]
movups xmmword [ecx], xmm0
call fcn.00a4e980
add esp, 0x20
test edx, edx
jg 0xa7d617
jl 0xa7d60e
cmp eax, 0xea60
ja 0xa7d617
cmp dword [ebp - 0x4c], 0x2733
je 0xa7d598
mov esi, dword [sym.imp.WS2_32.dll_closesocket]
push ebx
call esi
push dword [edi]
call esi
push dword [edi + 4]
call esi
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00a87983
mov esp, ebp
pop ebp
ret
sub dword [ebp - 0x3c], eax
je 0xa7d649
add esi, eax
jmp 0xa7d598
lea ecx, [ebp - 0x28]
mov esi, 0xc
lea edx, [ebp - 0x38]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0xa7d617
add ecx, 4
add edx, 4
sub esi, 4
jae 0xa7d654
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00a87983
mov esp, ebp
pop ebp
ret