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

Disassembly:
sub esp, 0x2c
mov eax, dword [0x469a54]
xor eax, esp
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x30]
push ebx
push ebp
mov ebp, dword [esp + 0x44]
push edi
or edi, 0xffffffff
or ebx, edi
cmp eax, 2
je 0x4192fd
cmp eax, 1
je 0x4192fd
lea eax, [edi + 2]
jmp 0x4192ff
xor eax, eax
cmp dword [esp + 0x44], 0
jne 0x4194dd
test eax, eax
jne 0x4194dd
test ebp, ebp
jne 0x419336
push 0x2726
call dword [sym.imp.WS2_32.dll_WSASetLastError]
pop edi
pop ebp
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.0042eefa
add esp, 0x2c
ret
push esi
push 0
push dword [esp + 0x48]
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
test esi, esi
js 0x4194c7
xorps xmm0, xmm0
mov eax, 2
movups xmmword [esp + 0x18], xmm0
push 0x7f000001
mov word [esp + 0x1c], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [esp + 0x1c], eax
xor eax, eax
mov word [esp + 0x1a], ax
lea eax, [esp + 0x18]
push 0x10
push eax
push esi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x419495
push 1
push esi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x419495
push 0
push dword [esp + 0x48]
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
test edi, edi
js 0x419495
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x10
push eax
lea eax, [esp + 0x2c]
xorps xmm0, xmm0
push eax
push esi
movups xmmword [esp + 0x34], xmm0
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x419495
cmp dword [esp + 0x10], 0x10
jne 0x41948b
push 0x10
lea eax, [esp + 0x2c]
push eax
push edi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x419495
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x10
push eax
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.WS2_32.dll_accept]
mov ebx, eax
test ebx, ebx
js 0x419495
cmp dword [esp + 0x10], 0x10
jne 0x41948b
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x2c]
push eax
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x419495
cmp dword [esp + 0x10], 0x10
jne 0x41948b
mov ax, word [esp + 0x18]
cmp ax, word [esp + 0x28]
jne 0x41948b
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x2c]
jne 0x41948b
mov ax, word [esp + 0x1a]
cmp ax, word [esp + 0x2a]
jne 0x41948b
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
pop esi
mov dword [ebp], edi
xor eax, eax
pop edi
mov dword [ebp + 4], ebx
pop ebp
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.0042eefa
add esp, 0x2c
ret
mov dword [esp + 0x14], 0x2745
jmp 0x41949f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esp + 0x14], eax
mov ebp, dword [sym.imp.WS2_32.dll_closesocket]
cmp esi, 0xffffffff
je 0x4194ad
push esi
call ebp
cmp edi, 0xffffffff
je 0x4194b5
push edi
call ebp
cmp ebx, 0xffffffff
je 0x4194bd
push ebx
call ebp
push dword [esp + 0x14]
call dword [sym.imp.WS2_32.dll_WSASetLastError]
pop esi
pop edi
pop ebp
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.0042eefa
add esp, 0x2c
ret
push 0x273f
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov ecx, dword [esp + 0x34]
or eax, 0xffffffff
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.0042eefa
add esp, 0x2c
ret