Function at 0xa50450
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, 0x68
mov eax, dword [0xac62f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_socket]
push esi
push edi
mov edi, dword [ebp + 0x14]
push 6
push 1
push 2
mov dword [ebp - 0x3c], 0x10
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0xa5069f
xorps xmm0, xmm0
mov eax, 2
movq qword [ebp - 0x2c], xmm0
push 0x7f000001
movq qword [ebp - 0x24], xmm0
mov word [ebp - 0x2c], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebp - 0x28], eax
xor eax, eax
push 4
mov word [ebp - 0x2a], ax
lea eax, [ebp - 0x30]
push eax
push 0xfffffffffffffffb
push 0xffff
push esi
mov dword [edi + 4], 0xffffffff
mov dword [edi], 0xffffffff
mov dword [ebp - 0x30], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0xa5068d
push 0x10
lea eax, [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0xa5068d
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0xa5068d
cmp dword [ebp - 0x3c], 0x10
jl 0xa5068d
push 1
push esi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0xa5068d
push 0
push 1
push 2
call ebx
mov dword [edi], eax
cmp eax, 0xffffffff
je 0xa5068d
push 0x10
lea ecx, [ebp - 0x2c]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0xa5068d
push 1
push esi
call fcn.00a73640
add esp, 8
test eax, eax
js 0xa5068d
push 0
push 0x3e8
lea eax, [ebp - 0x38]
push 1
push eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], 0x300
call fcn.00a4c8d0
add esp, 0x10
push 0
push 0
push esi
call dword [sym.imp.WS2_32.dll_accept]
mov dword [edi + 4], eax
cmp eax, 0xffffffff
je 0xa5068d
lea eax, [ebp - 0x58]
push eax
call fcn.00a337f0
movq xmm0, qword [eax]
movq qword [ebp - 0x48], xmm0
movq xmm0, qword [eax + 8]
push 9
lea eax, [ebp - 0x10]
push eax
push 0
movq qword [ebp - 0x50], xmm0
lea ebx, [ebp - 0x1c]
mov dword [ebp - 0x30], 9
call fcn.00a50c80
add esp, 0x10
test eax, eax
jne 0xa5068d
push eax
push 9
lea eax, [ebp - 0x10]
push eax
push dword [edi]
call dword [sym.imp.WS2_32.dll_send]
lea ebx, [ebx]
mov eax, dword [edi + 4]
push 0
push 0x3e8
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
push 1
push eax
mov dword [ebp - 0x34], 0x300
call fcn.00a4c8d0
add esp, 0x10
push 0
push dword [ebp - 0x30]
push ebx
push dword [edi + 4]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0xa506b3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x68]
push eax
call fcn.00a337f0
movq xmm0, qword [ebp - 0x48]
sub esp, 0xc
mov ecx, esp
sub esp, 0x10
movq qword [ecx], xmm0
movq xmm0, qword [ebp - 0x50]
movq qword [ecx + 8], xmm0
movq xmm0, qword [eax]
mov ecx, esp
movq qword [ecx], xmm0
movq xmm0, qword [eax + 8]
movq qword [ecx + 8], xmm0
call fcn.00a33890
add esp, 0x20
test edx, edx
jg 0xa5068d
jl 0xa50680
cmp eax, 0xea60
ja 0xa5068d
cmp dword [ebp - 0x40], 0x2733
je 0xa505f0
push esi
mov esi, dword [sym.imp.WS2_32.dll_closesocket]
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.009fe024
mov esp, ebp
pop ebp
ret
sub dword [ebp - 0x30], eax
je 0xa506bf
add ebx, eax
jmp 0xa505f0
lea ecx, [ebp - 0x10]
lea edx, [ebp - 0x1c]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0xa5068d
mov eax, dword [ecx + 4]
cmp eax, dword [edx + 4]
jne 0xa5068d
movzx eax, byte [ecx + 8]
cmp al, byte [edx + 8]
jne 0xa5068d
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.009fe024
mov esp, ebp
pop ebp
ret