Function at 0x327a200
Capabilities:
Connect socket
Connect udp socket
Create udp socket
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x28
mov eax, dword [0x3415a34]
xor eax, esp
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x2c]
push ebx
push ebp
mov ebp, dword [esp + 0x40]
push esi
or esi, 0xffffffff
or ebx, esi
cmp eax, 2
je 0x327a22d
cmp eax, 1
je 0x327a22d
lea eax, [esi + 2]
jmp 0x327a22f
xor eax, eax
cmp dword [esp + 0x40], 0
jne 0x327a401
test eax, eax
jne 0x327a401
test ebp, ebp
jne 0x327a266
push 0x2726
call dword [sym.imp.WS2_32.dll_WSASetLastError]
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.0338ca36
add esp, 0x28
ret
push edi
push 0
push dword [esp + 0x44]
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
test edi, edi
js 0x327a3eb
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
mov word [esp + 0x16], ax
lea eax, [esp + 0x14]
push 0x10
push eax
push edi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x327a3c3
push 1
push edi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x327a3c3
push 0
push dword [esp + 0x44]
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
test esi, esi
js 0x327a3c3
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x10
push eax
lea eax, [esp + 0x28]
xorps xmm0, xmm0
push eax
push edi
movups xmmword [esp + 0x30], xmm0
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x327a3c3
cmp dword [esp + 0x10], 0x10
jne 0x327a3bc
push 0x10
lea eax, [esp + 0x28]
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x327a3c3
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x10
push eax
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.WS2_32.dll_accept]
mov ebx, eax
test ebx, ebx
js 0x327a3c3
cmp dword [esp + 0x10], 0x10
jne 0x327a3bc
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x28]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x327a3c3
cmp dword [esp + 0x10], 0x10
jne 0x327a3bc
mov ax, word [esp + 0x14]
cmp ax, word [esp + 0x24]
jne 0x327a3bc
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x28]
jne 0x327a3bc
mov ax, word [esp + 0x16]
cmp ax, word [esp + 0x26]
jne 0x327a3bc
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
mov dword [ebp], esi
xor eax, eax
pop esi
mov dword [ebp + 4], ebx
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.0338ca36
add esp, 0x28
ret
mov ebp, 0x2745
jmp 0x327a3cb
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
push edi
mov edi, dword [sym.imp.WS2_32.dll_closesocket]
call edi
cmp esi, 0xffffffff
je 0x327a3dc
push esi
call edi
cmp ebx, 0xffffffff
je 0x327a3e4
push ebx
call edi
push ebp
call dword [sym.imp.WS2_32.dll_WSASetLastError]
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.0338ca36
add esp, 0x28
ret
push 0x273f
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov ecx, dword [esp + 0x30]
or eax, 0xffffffff
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0338ca36
add esp, 0x28
ret