Function at 0x4f316d
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 0x4f3188
mov dword [ebp - 8], 1
jmp 0x4f31ae
cmp dword [ebp + 0x14], 1
jne 0x4f3197
mov dword [ebp - 8], 2
jmp 0x4f31ae
cmp dword [ebp + 0x14], 2
jne 0x4f31a6
mov dword [ebp - 8], 1
jmp 0x4f31ae
or eax, 0xffffffff
jmp 0x4f34f0
cmp dword [ebp + 0x10], 0
je 0x4f31bc
mov edx, dword [ebp + 0x10]
mov word [edx], 0
cmp dword [ebp + 0x18], 0
jne 0x4f31d9
cmp dword [0x56cdcc], 0
je 0x4f342d
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 0x4f3228
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.004f2f34
add esp, 0xfffffff4
fstp xword [esp]
call fcn.00556980
add esp, 0x18
mov dword [ebp - 0x30], ebx
fild dword [ebp - 0x30]
faddp st(1)
call fcn.005569e8
mov ebx, eax
mov edi, ebx
jmp 0x4f322e
mov bx, word [ebp + 8]
mov edi, ebx
mov word [ebp - 2], 0
cmp word [ebp - 2], 0x32
jae 0x4f342d
inc word [ebp - 2]
cmp dword [ebp + 0x18], 0
jne 0x4f3299
cmp bx, word [0x563c10]
jb 0x4f3299
cmp bx, word [0x563c12]
ja 0x4f3299
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.004f2f34
add esp, 0xfffffff4
fstp xword [esp]
call fcn.00556980
add esp, 0x18
movzx ecx, word [ebp + 8]
mov dword [ebp - 0x30], ecx
fild dword [ebp - 0x30]
faddp st(1)
call fcn.005569e8
mov ebx, eax
mov edi, ebx
jmp 0x4f3234
mov eax, dword [0x561210]
test eax, eax
je 0x4f32d8
cmp dword [eax + 0x520], 0
je 0x4f32ce
cmp bx, word [eax + 0x51c]
jne 0x4f32ce
inc ebx
cmp si, bx
jae 0x4f32be
mov bx, word [ebp + 8]
cmp di, bx
je 0x4f342d
mov eax, dword [0x561210]
jmp 0x4f329e
mov eax, dword [eax + 0x88c]
test eax, eax
jne 0x4f32a2
mov eax, dword [0x56d9cc]
test eax, eax
je 0x4f3317
cmp dword [eax + 0x33c], 0
je 0x4f330d
cmp bx, word [eax + 0x350]
jne 0x4f330d
inc ebx
cmp si, bx
jae 0x4f32fd
mov bx, word [ebp + 8]
cmp di, bx
je 0x4f342d
mov eax, dword [0x56d9cc]
jmp 0x4f32dd
mov eax, dword [eax + 0x3cc]
test eax, eax
jne 0x4f32e1
mov eax, dword [0x566350]
test eax, eax
je 0x4f3356
cmp dword [eax + 0x33c], 0
je 0x4f334c
cmp bx, word [eax + 0x34c]
jne 0x4f334c
inc ebx
cmp si, bx
jae 0x4f333c
mov bx, word [ebp + 8]
cmp di, bx
je 0x4f342d
mov eax, dword [0x566350]
jmp 0x4f331c
mov eax, dword [eax + 0x3b4]
test eax, eax
jne 0x4f3320
mov eax, dword [0x56ddbc]
test eax, eax
je 0x4f338c
cmp bx, word [eax + 0xc8]
jne 0x4f3382
inc ebx
cmp si, bx
jae 0x4f3372
mov bx, word [ebp + 8]
cmp di, bx
je 0x4f342d
mov eax, dword [0x56ddbc]
jmp 0x4f335b
mov eax, dword [eax + 0x194]
test eax, eax
jne 0x4f335f
push 0
push dword [ebp - 8]
push 2
call sub.WSOCK32.dll_socket
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x4f342d
push ebx
push dword [ebp - 0x10]
call fcn.004f30ad
test eax, eax
je 0x4f340b
cmp dword [ebp + 0x14], 0
jne 0x4f33c6
push 5
push dword [ebp - 0x10]
call sub.WSOCK32.dll_listen
test eax, eax
jne 0x4f340b
cmp dword [ebp + 0x10], 0
je 0x4f33d2
mov edx, dword [ebp + 0x10]
mov word [edx], bx
cmp dword [ebp + 0x10], 0
je 0x4f3403
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 0x4f3403
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 0x4f34f0
push dword [ebp - 0x10]
call sub.WSOCK32.dll_closesocket
inc ebx
cmp si, bx
jae 0x4f341d
mov bx, word [ebp + 8]
cmp di, bx
je 0x4f342d
cmp word [ebp - 2], 0x32
jb 0x4f323f
cmp dword [ebp + 0x18], 2
jne 0x4f343b
or eax, 0xffffffff
jmp 0x4f34f0
push 0
push dword [ebp - 8]
push 2
call sub.WSOCK32.dll_socket
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x4f3458
mov eax, dword [ebp - 0x10]
jmp 0x4f34f0
cmp dword [ebp + 0x14], 1
je 0x4f3464
cmp dword [ebp + 0x14], 2
jne 0x4f3481
cmp dword [0x56cdd0], 0
je 0x4f3476
cmp byte [0x5864bc], 0
jne 0x4f3481
cmp dword [ebp + 0x10], 0
jne 0x4f3481
mov eax, dword [ebp - 0x10]
jmp 0x4f34f0
push 0
push dword [ebp - 0x10]
call fcn.004f30ad
test eax, eax
je 0x4f34e5
cmp dword [ebp + 0x14], 1
je 0x4f34af
cmp dword [ebp + 0x14], 2
je 0x4f34af
cmp dword [ebp + 0x14], 0
jne 0x4f34e5
push 5
push dword [ebp - 0x10]
call sub.WSOCK32.dll_listen
test eax, eax
jne 0x4f34e5
cmp dword [ebp + 0x10], 0
je 0x4f34e0
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 0x4f34e0
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 0x4f34f0
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