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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x676300]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push edi
or edi, 0xffffffff
cmp dword [ebp + 0x10], 0
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edi
jne 0x4d3e13
cmp dword [ebp + 8], 1
jne 0x4d3e13
test eax, eax
jne 0x4d3c81
push 0x2726
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, edi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00534bba
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push 0
push ebx
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
test esi, esi
js 0x4d3dff
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov eax, 2
push 0x7f000001
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_htonl]
push 0x10
lea edx, [ebp - 0x14]
push edx
xor ecx, ecx
push esi
mov dword [ebp - 0x10], eax
mov word [ebp - 0x12], cx
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x4d3dc3
push 1
push esi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x4d3dc3
push 0
push ebx
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
test edi, edi
js 0x4d3dc3
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x24]
push ecx
mov ebx, 0x10
push esi
mov dword [ebp - 0x28], ebx
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x4d3dc3
cmp dword [ebp - 0x28], ebx
jne 0x4d3db7
push ebx
lea edx, [ebp - 0x24]
push edx
push edi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x4d3dc3
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x14]
push ecx
push esi
mov dword [ebp - 0x28], ebx
call dword [sym.imp.WS2_32.dll_accept]
mov ebx, eax
test ebx, ebx
js 0x4d3dc6
cmp dword [ebp - 0x28], 0x10
jne 0x4d3dba
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x24]
push eax
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x4d3dc6
cmp dword [ebp - 0x28], 0x10
jne 0x4d3dba
mov cx, word [ebp - 0x14]
cmp cx, word [ebp - 0x24]
jne 0x4d3dba
mov edx, dword [ebp - 0x10]
cmp edx, dword [ebp - 0x20]
jne 0x4d3dba
mov ax, word [ebp - 0x12]
cmp ax, word [ebp - 0x22]
jne 0x4d3dba
mov eax, dword [ebp - 0x30]
pop esi
mov dword [eax + 4], ebx
mov dword [eax], edi
pop ebx
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00534bba
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0x2c]
mov dword [ebp - 0x2c], 0x2745
jmp 0x4d3dcf
mov ebx, dword [ebp - 0x2c]
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x2c], eax
cmp esi, 0xffffffff
je 0x4d3ddf
push esi
mov esi, dword [sym.imp.WS2_32.dll_closesocket]
call esi
jmp 0x4d3de5
mov esi, dword [sym.imp.WS2_32.dll_closesocket]
cmp edi, 0xffffffff
je 0x4d3ded
push edi
call esi
cmp ebx, 0xffffffff
je 0x4d3df5
push ebx
call esi
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
pop esi
pop ebx
or eax, 0xffffffff
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00534bba
mov esp, ebp
pop ebp
ret
push 0x273f
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov ecx, dword [ebp - 4]
mov eax, edi
xor ecx, ebp
pop edi
call fcn.00534bba
mov esp, ebp
pop ebp
ret