Function at 0x10035220
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, 0x5c
mov eax, dword [0x100b9550]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_socket]
push ebp
push esi
push edi
mov edi, dword [esp + 0x7c]
push 6
push 1
push 2
mov dword [esp + 0x28], 0x10
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x1003545c
xorps xmm0, xmm0
mov eax, 2
movdqu xmmword [esp + 0x40], xmm0
push 0x7f000001
mov word [esp + 0x44], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [esp + 0x44], eax
xor eax, eax
push 4
mov word [esp + 0x46], ax
lea eax, [esp + 0x1c]
push eax
push 0xfffffffffffffffb
push 0xffff
push esi
mov dword [edi + 4], 0xffffffff
mov dword [edi], 0xffffffff
mov dword [esp + 0x2c], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x1003544a
push 0x10
lea eax, [esp + 0x44]
push eax
push esi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x1003544a
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x44]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x1003544a
cmp dword [esp + 0x1c], 0x10
jl 0x1003544a
push 1
push esi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x1003544a
push 0
push 1
push 2
call ebx
mov dword [edi], eax
cmp eax, 0xffffffff
je 0x1003544a
push 0x10
lea ecx, [esp + 0x44]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x1003544a
push 1
push esi
call fcn.1005cc90
add esp, 8
test eax, eax
js 0x1003544a
push 0
push 0x3e8
lea eax, [esp + 0x18]
mov dword [esp + 0x18], esi
push 1
push eax
mov dword [esp + 0x24], 0x300
call fcn.10032a20
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 0x1003544a
lea eax, [esp + 0x20]
push eax
call fcn.10013520
mov ebp, 9
lea ebx, [esp + 0x60]
push ebp
movdqu xmm0, xmmword [eax]
lea eax, [esp + 0x58]
push eax
push 0
movdqu xmmword [esp + 0x30], xmm0
call fcn.10035b10
add esp, 0x10
test eax, eax
jne 0x1003544a
push eax
push ebp
lea eax, [esp + 0x58]
push eax
push dword [edi]
call dword [sym.imp.WS2_32.dll_send]
jmp 0x100353c0
mov eax, dword [edi + 4]
push 0
push 0x3e8
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push 1
push eax
mov dword [esp + 0x24], 0x300
call fcn.10032a20
add esp, 0x10
push 0
push ebp
push ebx
push dword [edi + 4]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x10035472
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x30]
push eax
call fcn.10013520
movdqu xmm0, xmmword [esp + 0x24]
sub esp, 0xc
mov ecx, esp
sub esp, 0x10
movdqu xmmword [ecx], xmm0
mov ecx, esp
movdqu xmm0, xmmword [eax]
movdqu xmmword [ecx], xmm0
call fcn.100135c0
add esp, 0x20
test edx, edx
jg 0x1003544a
jl 0x1003543c
cmp eax, 0xea60
ja 0x1003544a
cmp dword [esp + 0x18], 0x2733
je 0x100353c0
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 ebp
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.100676f5
add esp, 0x5c
ret
sub ebp, eax
je 0x1003547d
add ebx, eax
jmp 0x100353c0
lea ecx, [esp + 0x50]
mov eax, dword [ecx]
lea edx, [esp + 0x5c]
cmp eax, dword [edx]
jne 0x1003544a
mov eax, dword [ecx + 4]
cmp eax, dword [edx + 4]
jne 0x1003544a
movzx eax, byte [ecx + 8]
cmp al, byte [edx + 8]
jne 0x1003544a
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [esp + 0x68]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100676f5
add esp, 0x5c
ret