Function at 0x5760a0
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:
sub esp, 0x34
mov eax, dword [0x78a6d4]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
mov ebx, dword [esp + 0x48]
push edi
push 6
push 1
push 2
mov dword [esp + 0x18], 0x10
mov dword [esp + 0x14], 1
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
jne 0x5760ea
pop edi
or eax, eax
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.0058a893
add esp, 0x34
ret
push esi
xorps xmm0, xmm0
mov eax, 2
push 0x7f000001
movlpd qword [esp + 0x20], xmm0
mov word [esp + 0x18], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [esp + 0x18], eax
xor eax, eax
push 4
mov word [esp + 0x1a], ax
lea eax, [esp + 0x10]
push eax
push 4
push 0xffff
push edi
mov dword [ebx + 4], 0xffffffff
mov dword [ebx], 0xffffffff
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x576285
push 0x10
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x576285
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x576285
push 1
push edi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x576285
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebx], eax
cmp eax, 0xffffffff
je 0x576285
push 0x10
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x576285
push 0
push 0
push edi
call dword [sym.imp.WS2_32.dll_accept]
mov dword [ebx + 4], eax
cmp eax, 0xffffffff
je 0x576285
push ebx
push 0x7053c4
lea eax, [esp + 0x2c]
push 0xc
push eax
call fcn.0056b150
lea esi, [esp + 0x34]
add esp, 0x10
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x5761e3
push 0
sub esi, ecx
lea eax, [esp + 0x28]
push esi
push eax
push dword [ebx]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, esi
jne 0x576285
push 0
push 0xc
lea eax, [esp + 0x38]
push eax
push dword [ebx + 4]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, esi
jne 0x576285
lea ecx, [esp + 0x24]
lea edx, [esp + 0x30]
sub esi, 4
jb 0x576238
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x57623d
add ecx, 4
add edx, 4
sub esi, 4
jae 0x576227
cmp esi, 0xfffffffc
je 0x57626a
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x576285
cmp esi, 0xfffffffd
je 0x57626a
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x576285
cmp esi, 0xfffffffe
je 0x57626a
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x576285
cmp esi, 0xffffffff
je 0x57626a
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x576285
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.0058a893
add esp, 0x34
ret
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
push dword [ebx]
call dword [sym.imp.WS2_32.dll_closesocket]
push dword [ebx + 4]
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [esp + 0x3c]
or eax, 0xffffffff
pop esi
pop edi
pop ebx
xor ecx, esp
call fcn.0058a893
add esp, 0x34
ret