Function at 0x1003a190
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, 0x54
mov eax, dword [0x1006a744]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
push ebp
push esi
mov esi, dword [sym.imp.WS2_32.dll_socket]
push edi
mov edi, dword [esp + 0x74]
push 6
push 1
push 2
mov dword [esp + 0x28], 0x10
call esi
mov ebp, eax
cmp ebp, 0xffffffff
je 0x1003a3ad
xorps xmm0, xmm0
mov eax, 2
push 0x7f000001
movlpd qword [esp + 0x3c], xmm0
mov word [esp + 0x34], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [esp + 0x34], eax
xor eax, eax
push 4
mov word [esp + 0x36], ax
lea eax, [esp + 0x14]
push eax
push 0xfffffffffffffffb
push 0xffff
push ebp
mov dword [edi + 4], 0xffffffff
mov dword [edi], 0xffffffff
mov dword [esp + 0x24], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x1003a39b
push 0x10
lea eax, [esp + 0x34]
push eax
push ebp
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x1003a39b
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x34]
push eax
push ebp
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x1003a39b
cmp dword [esp + 0x1c], 0x10
jl 0x1003a39b
push 1
push ebp
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x1003a39b
push 0
push 1
push 2
call esi
mov dword [edi], eax
cmp eax, 0xffffffff
je 0x1003a39b
push 0x10
lea ecx, [esp + 0x34]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x1003a39b
push 1
push ebp
call fcn.1002e5e0
add esp, 8
test eax, eax
js 0x1003a39b
push 0
push 0x3e8
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], ebp
push 1
push eax
mov dword [esp + 0x28], 0x300
call fcn.10033210
add esp, 0x10
push 0
push 0
push ebp
call dword [sym.imp.WS2_32.dll_accept]
mov dword [edi + 4], eax
cmp eax, 0xffffffff
je 0x1003a39b
lea eax, [esp + 0x20]
push eax
call fcn.10041a10
add esp, 4
lea esi, [esp + 0x50]
mov ebx, 0x10
movups xmm0, xmmword [eax]
push 0
push ebx
lea eax, [esp + 0x48]
push eax
push dword [edi]
movups xmmword [esp + 0x50], xmm0
call dword [sym.imp.WS2_32.dll_send]
mov eax, dword [edi + 4]
push 0
push 0x3e8
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push 1
push eax
mov dword [esp + 0x28], 0x300
call fcn.10033210
add esp, 0x10
push 0
push ebx
push esi
push dword [edi + 4]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x1003a3c3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x20]
push eax
call fcn.10041a10
movups xmm0, xmmword [esp + 0x44]
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.10041ac0
add esp, 0x20
test edx, edx
jg 0x1003a39b
jl 0x1003a38d
cmp eax, 0xea60
ja 0x1003a39b
cmp dword [esp + 0x10], 0x2733
je 0x1003a315
mov esi, dword [sym.imp.WS2_32.dll_closesocket]
push ebp
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 + 0x50]
xor ecx, esp
call fcn.10056613
add esp, 0x54
ret
sub ebx, eax
je 0x1003a3ce
add esi, eax
jmp 0x1003a315
lea ecx, [esp + 0x40]
mov esi, 0xc
lea edx, [esp + 0x50]
nop dword [eax + eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x1003a39b
add ecx, 4
add edx, 4
sub esi, 4
jae 0x1003a3e0
push ebp
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [esp + 0x60]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10056613
add esp, 0x54
ret