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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
cmp dword [ebp + 0x14], 0
jne 0x4f1988
mov dword [ebp - 8], 1
jmp 0x4f19ae
cmp dword [ebp + 0x14], 1
jne 0x4f1997
mov dword [ebp - 8], 2
jmp 0x4f19ae
cmp dword [ebp + 0x14], 2
jne 0x4f19a6
mov dword [ebp - 8], 1
jmp 0x4f19ae
or eax, 0xffffffff
jmp 0x4f1cf0
cmp dword [ebp + 0x10], 0
je 0x4f19bc
mov edx, dword [ebp + 0x10]
mov word [edx], 0
cmp dword [ebp + 0x18], 0
jne 0x4f19d9
cmp dword [0x56aca8], 0
je 0x4f1c2d
mov word [ebp + 8], 0x400
mov si, 0xfde8
movzx eax, si
movzx ebx, word [ebp + 8]
sub eax, ebx
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jbe 0x4f1a28
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x2c], eax
xor edx, edx
mov dword [ebp - 0x28], edx
fild qword [ebp - 0x2c]
add esp, 0xfffffff4
fstp xword [esp]
call fcn.004f1734
add esp, 0xfffffff4
fstp xword [esp]
call fcn.005549c4
add esp, 0x18
mov dword [ebp - 0x30], ebx
fild dword [ebp - 0x30]
faddp st(1)
call fcn.00554a2c
mov ebx, eax
mov edi, ebx
jmp 0x4f1a2e
mov bx, word [ebp + 8]
mov edi, ebx
mov word [ebp - 2], 0
cmp word [ebp - 2], 0x32
jae 0x4f1c2d
inc word [ebp - 2]
cmp dword [ebp + 0x18], 0
jne 0x4f1a99
cmp bx, word [0x561bec]
jb 0x4f1a99
cmp bx, word [0x561bee]
ja 0x4f1a99
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x2c], eax
xor edx, edx
mov dword [ebp - 0x28], edx
fild qword [ebp - 0x2c]
add esp, 0xfffffff4
fstp xword [esp]
call fcn.004f1734
add esp, 0xfffffff4
fstp xword [esp]
call fcn.005549c4
add esp, 0x18
movzx ecx, word [ebp + 8]
mov dword [ebp - 0x30], ecx
fild dword [ebp - 0x30]
faddp st(1)
call fcn.00554a2c
mov ebx, eax
mov edi, ebx
jmp 0x4f1a34
mov eax, dword [0x55f1e0]
test eax, eax
je 0x4f1ad8
cmp dword [eax + 0x520], 0
je 0x4f1ace
cmp bx, word [eax + 0x51c]
jne 0x4f1ace
inc ebx
cmp si, bx
jae 0x4f1abe
mov bx, word [ebp + 8]
cmp di, bx
je 0x4f1c2d
mov eax, dword [0x55f1e0]
jmp 0x4f1a9e
mov eax, dword [eax + 0x88c]
test eax, eax
jne 0x4f1aa2
mov eax, dword [0x56b89c]
test eax, eax
je 0x4f1b17
cmp dword [eax + 0x33c], 0
je 0x4f1b0d
cmp bx, word [eax + 0x350]
jne 0x4f1b0d
inc ebx
cmp si, bx
jae 0x4f1afd
mov bx, word [ebp + 8]
cmp di, bx
je 0x4f1c2d
mov eax, dword [0x56b89c]
jmp 0x4f1add
mov eax, dword [eax + 0x3cc]
test eax, eax
jne 0x4f1ae1
mov eax, dword [0x5642cc]
test eax, eax
je 0x4f1b56
cmp dword [eax + 0x33c], 0
je 0x4f1b4c
cmp bx, word [eax + 0x34c]
jne 0x4f1b4c
inc ebx
cmp si, bx
jae 0x4f1b3c
mov bx, word [ebp + 8]
cmp di, bx
je 0x4f1c2d
mov eax, dword [0x5642cc]
jmp 0x4f1b1c
mov eax, dword [eax + 0x3b4]
test eax, eax
jne 0x4f1b20
mov eax, dword [0x56bc8c]
test eax, eax
je 0x4f1b8c
cmp bx, word [eax + 0xc8]
jne 0x4f1b82
inc ebx
cmp si, bx
jae 0x4f1b72
mov bx, word [ebp + 8]
cmp di, bx
je 0x4f1c2d
mov eax, dword [0x56bc8c]
jmp 0x4f1b5b
mov eax, dword [eax + 0x194]
test eax, eax
jne 0x4f1b5f
push 0
push dword [ebp - 8]
push 2
call sub.WSOCK32.dll_socket
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x4f1c2d
push ebx
push dword [ebp - 0x10]
call fcn.004f18ad
test eax, eax
je 0x4f1c0b
cmp dword [ebp + 0x14], 0
jne 0x4f1bc6
push 5
push dword [ebp - 0x10]
call sub.WSOCK32.dll_listen
test eax, eax
jne 0x4f1c0b
cmp dword [ebp + 0x10], 0
je 0x4f1bd2
mov edx, dword [ebp + 0x10]
mov word [edx], bx
cmp dword [ebp + 0x10], 0
je 0x4f1c03
mov dword [ebp - 0xc], 0x10
lea ecx, [ebp - 0xc]
push ecx
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x10]
call sub.WSOCK32.dll_getsockname
test eax, eax
jne 0x4f1c03
mov dx, word [ebp - 0x22]
push edx
call sub.WSOCK32.dll_ntohs
mov ecx, dword [ebp + 0x10]
mov word [ecx], ax
mov eax, dword [ebp - 0x10]
jmp 0x4f1cf0
push dword [ebp - 0x10]
call sub.WSOCK32.dll_closesocket
inc ebx
cmp si, bx
jae 0x4f1c1d
mov bx, word [ebp + 8]
cmp di, bx
je 0x4f1c2d
cmp word [ebp - 2], 0x32
jb 0x4f1a3f
cmp dword [ebp + 0x18], 2
jne 0x4f1c3b
or eax, 0xffffffff
jmp 0x4f1cf0
push 0
push dword [ebp - 8]
push 2
call sub.WSOCK32.dll_socket
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x4f1c58
mov eax, dword [ebp - 0x10]
jmp 0x4f1cf0
cmp dword [ebp + 0x14], 1
je 0x4f1c64
cmp dword [ebp + 0x14], 2
jne 0x4f1c81
cmp dword [0x56acac], 0
je 0x4f1c76
cmp byte [0x58465c], 0
jne 0x4f1c81
cmp dword [ebp + 0x10], 0
jne 0x4f1c81
mov eax, dword [ebp - 0x10]
jmp 0x4f1cf0
push 0
push dword [ebp - 0x10]
call fcn.004f18ad
test eax, eax
je 0x4f1ce5
cmp dword [ebp + 0x14], 1
je 0x4f1caf
cmp dword [ebp + 0x14], 2
je 0x4f1caf
cmp dword [ebp + 0x14], 0
jne 0x4f1ce5
push 5
push dword [ebp - 0x10]
call sub.WSOCK32.dll_listen
test eax, eax
jne 0x4f1ce5
cmp dword [ebp + 0x10], 0
je 0x4f1ce0
mov dword [ebp - 0xc], 0x10
lea edx, [ebp - 0xc]
push edx
lea ecx, [ebp - 0x24]
push ecx
push dword [ebp - 0x10]
call sub.WSOCK32.dll_getsockname
test eax, eax
jne 0x4f1ce0
mov ax, word [ebp - 0x22]
push eax
call sub.WSOCK32.dll_ntohs
mov edx, dword [ebp + 0x10]
mov word [edx], ax
mov eax, dword [ebp - 0x10]
jmp 0x4f1cf0
push dword [ebp - 0x10]
call sub.WSOCK32.dll_closesocket
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14