Function at 0x14008bb20
Capabilities:
Connect socket
Set socket configuration

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xe8
mov rax, qword [0x140285110]
mov r13d, dword [rsp + 0x158]
mov rbp, rcx
mov r14, rdx
mov esi, r8d
mov r12, r9
mov rdi, qword [rax]
mov qword [rsp + 0xd8], rdi
xor edi, edi
test r9, r9
je 0x14008bb6a
cmp byte [r9], 0
jne 0x14008bd40
lea r15, [rsp + 0xa0]
xor eax, eax
mov ecx, 6
test r14, r14
lea r12, [0x14018b637]
mov rdi, r15
rep stosq qword [rdi], rax
mov dword [rsp + 0xa0], 1
mov dword [rsp + 0xa8], 2
mov dword [rsp + 0xac], r13d
je 0x14008bbb6
cmp byte [r14], 0
mov r12, r14
je 0x14008bd2b
lea r8, str.net:_opening__s_datagram_port__d
lea rdi, str.net_ListenSingle
lea r9, str._builds_videolan_vlc_extras_package_win32_.._.._.._src_network_udp.c
mov edx, 3
mov rcx, rbp
mov dword [rsp + 0x40], esi
mov qword [rsp + 0x30], r8
mov r8, qword [str.main]
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], 0x9d
call sym.libvlccore.dll_vlc_Log
lea r9, [rsp + 0x90]
mov r8, r15
mov edx, esi
mov rcx, r14
call sym.libvlccore.dll_vlc_getaddrinfo
test eax, eax
jne 0x14008c23c
mov rbx, qword [rsp + 0x90]
test rbx, rbx
je 0x14008c1cb
lea r13, [rsp + 0x88]
lea r15, [0x14018b687]
mov edx, dword [rbx + 4]
mov r9d, dword [rbx + 0xc]
mov rcx, rbp
mov r8d, dword [rbx + 8]
call fcn.140088c20
cmp eax, 0xffffffff
mov esi, eax
je 0x14008c121
cmp dword [rbx + 4], 0x17
je 0x14008c172
lea r9, [rbx + 0x20]
lea r8, [rbx + 0x10]
mov edx, esi
mov rcx, rbp
call fcn.14008b0a0
cmp eax, 0xffffffff
mov r14d, eax
je 0x14008bd0b
mov r10, qword [rbx + 0x20]
mov r9, qword [rbx + 0x10]
movzx r11d, word [r10]
cmp r11w, 2
je 0x14008c0ea
cmp r11w, 0x17
je 0x14008bcd9
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov rbp, qword [0x140285110]
mov eax, r14d
mov rcx, qword [rsp + 0xd8]
xor rcx, qword [rbp]
jne 0x14008c2d5
add rsp, 0xe8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
cmp r9d, 0x1b
jbe 0x14008bc9b
cmp byte [r10 + 8], 0xff
sete dl
test dl, dl
je 0x14008bc9b
mov r9d, dword [rbx + 0x10]
mov r8, qword [rbx + 0x20]
mov edx, r14d
mov rcx, rbp
call fcn.14008b2c0
test eax, eax
je 0x14008bc9b
movsxd rcx, r14d
call qword [sym.imp.WS2_32.dll_closesocket]
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x14008bc37
mov rcx, qword [rsp + 0x90]
mov r14d, 0xffffffff
jmp 0x14008bca3
xor r14d, r14d
lea r12, [0x14018b637]
jmp 0x14008bbb6
mov qword [rsp + 0x48], rdx
mov edx, dword [rsp + 0x150]
lea rcx, str.net:_connecting_to___s_:_d_from___s_:_d
mov dword [rsp + 0x50], r8d
lea rdi, str.net_OpenDgram
mov r8, qword [str.main]
mov qword [rsp + 0x38], r9
lea r9, str._builds_videolan_vlc_extras_package_win32_.._.._.._src_network_udp.c
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x40], edx
mov qword [rsp + 0x28], rdi
mov edx, 3
mov rcx, rbp
lea r15, [rsp + 0xa0]
mov dword [rsp + 0x20], 0x262
call sym.libvlccore.dll_vlc_Log
mov edx, dword [rsp + 0x150]
xor eax, eax
mov ecx, 6
mov rdi, r15
lea r9, [rsp + 0x88]
mov r8, r15
rep stosq qword [rdi], rax
mov rcx, r12
mov dword [rsp + 0xa8], 2
mov dword [rsp + 0xac], r13d
call sym.libvlccore.dll_vlc_getaddrinfo
test eax, eax
jne 0x14008c1d8
lea r9, [rsp + 0x80]
mov r8, r15
mov edx, esi
mov rcx, r14
or dword [rsp + 0xa0], 1
call sym.libvlccore.dll_vlc_getaddrinfo
test eax, eax
jne 0x14008c26c
mov rsi, qword [rsp + 0x80]
test rsi, rsi
je 0x14008c092
mov rbx, qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rdi, qword [sym.imp.WS2_32.dll_closesocket]
mov qword [rsp + 0x78], r12
mov qword [rsp + 0x70], rbx
nop dword [rax]
mov edx, dword [rsi + 4]
mov r9d, dword [rsi + 0xc]
mov rcx, rbp
mov r8d, dword [rsi + 8]
call fcn.140088c20
cmp eax, 0xffffffff
je 0x14008c085
lea r9, [rsi + 0x20]
lea r8, [rsi + 0x10]
mov edx, eax
mov rcx, rbp
call fcn.14008b0a0
cmp eax, 0xffffffff
mov r14d, eax
je 0x14008c085
mov rbx, qword [rsp + 0x88]
test rbx, rbx
je 0x14008c080
mov r13, qword [sym.imp.msvcrt.dll__errno]
jmp 0x14008be91
mov rbx, qword [rbx + 0x28]
test rbx, rbx
je 0x14008c080
mov r8d, dword [rsi + 4]
cmp dword [rbx + 4], r8d
jne 0x14008be84
mov r9, qword [rsi + 8]
cmp qword [rbx + 8], r9
jne 0x14008be84
mov r11, qword [rsi + 0x20]
mov r10, qword [rsi + 0x10]
movzx r12d, word [r11]
cmp r12w, 2
je 0x14008c0a0
cmp r12w, 0x17
jne 0x14008c0aa
cmp r10d, 0x1b
jbe 0x14008c0aa
cmp byte [r11 + 8], 0xff
sete dl
test dl, dl
je 0x14008c0aa
mov rcx, qword [rbx + 0x20]
mov r12, qword [rsi + 0x20]
mov r15, qword [rsi + 0x10]
movzx eax, word [rcx]
cmp ax, word [r12]
jne 0x14008c1bd
cmp ax, 2
jne 0x14008c110
mov qword [rsp + 0x90], 0
mov dword [rsp + 0x98], 0
xor edx, edx
mov r8d, dword [r12 + 4]
mov r9d, dword [rcx + 4]
movsxd rcx, r14d
mov dword [rsp + 0x20], 0xc
mov dword [rsp + 0x90], r8d
mov dword [rsp + 0x94], r9d
mov r8d, 0xf
lea r9, [rsp + 0x90]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x14008c0ca
mov rax, qword [rsp + 0x70]
call rax
mov ecx, eax
call sym.libvlccore.dll_vlc_strerror_c
lea r11, str.net_SourceSubscribe
lea r10, str.cannot_join_source_multicast_group:__s
mov r8, qword [str.main]
lea r9, str._builds_videolan_vlc_extras_package_win32_.._.._.._src_network_udp.c
mov qword [rsp + 0x38], rax
mov edx, 1
mov qword [rsp + 0x30], r10
mov qword [rsp + 0x28], r11
mov rcx, rbp
mov dword [rsp + 0x20], 0x185
mov qword [rsp + 0x68], r11
call sym.libvlccore.dll_vlc_Log
mov rcx, qword [rsp + 0x68]
lea rdx, str.trying_ASM_instead_of_SSM...
mov r8, qword [str.main]
lea r9, str._builds_videolan_vlc_extras_package_win32_.._.._.._src_network_udp.c
mov dword [rsp + 0x20], 0x186
mov qword [rsp + 0x30], rdx
mov edx, 2
mov qword [rsp + 0x28], rcx
mov rcx, rbp
call sym.libvlccore.dll_vlc_Log
mov r9d, r15d
mov r8, r12
mov edx, r14d
mov rcx, rbp
call fcn.14008b2c0
test eax, eax
setne r15b
test r15b, r15b
je 0x14008c0ca
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call sym.libvlccore.dll_vlc_strerror_c
mov r8, qword [rsp + 0x78]
mov r12d, dword [rsp + 0x150]
lea r9, str.cannot_connect_to__s_port__d:__s
mov qword [rsp + 0x48], rax
lea rax, str.net_OpenDgram
mov dword [rsp + 0x20], 0x296
mov qword [rsp + 0x30], r9
lea r9, str._builds_videolan_vlc_extras_package_win32_.._.._.._src_network_udp.c
mov edx, 1
mov qword [rsp + 0x38], r8
mov r8, qword [str.main]
mov rcx, rbp
mov dword [rsp + 0x40], r12d
mov qword [rsp + 0x28], rax
call sym.libvlccore.dll_vlc_Log
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x14008be91
nop dword [rax + rax]
movsxd rcx, r14d
call rdi
mov rsi, qword [rsi + 0x28]
test rsi, rsi
jne 0x14008be30
mov r14d, 0xffffffff
jmp 0x14008c0ca
cmp r10d, 0xf
ja 0x14008c1a1
mov rdx, qword [rbx + 0x20]
movsxd rcx, r14d
mov r8d, dword [rbx + 0x10]
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
setne r15b
test r15b, r15b
jne 0x14008c00a
mov rcx, qword [rsp + 0x88]
mov rbp, qword [sym.imp.WS2_32.dll_freeaddrinfo]
call rbp
mov rcx, qword [rsp + 0x80]
call rbp
jmp 0x14008bca9
cmp r9d, 0xf
jbe 0x14008bc9b
mov ecx, dword [r10 + 4]
call qword [sym.imp.WS2_32.dll_ntohl]
and eax, 0xf0000000
cmp eax, 0xe0000000
sete dl
jmp 0x14008bce7
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rax], 0x273f
jmp 0x14008bf5e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call sym.libvlccore.dll_vlc_strerror_c
mov r8, qword [str.main]
lea r9, str._builds_videolan_vlc_extras_package_win32_.._.._.._src_network_udp.c
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], rdi
mov edx, 3
mov dword [rsp + 0x20], 0xaf
mov rcx, rbp
call sym.libvlccore.dll_vlc_Log
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x14008bc37
jmp 0x14008bd18
mov dword [rsp + 0x88], 0
movsxd rcx, eax
mov dword [rsp + 0x20], 4
mov r9, r13
mov r8d, 0x1b
mov edx, 0x29
call qword [sym.imp.WS2_32.dll_setsockopt]
jmp 0x14008bc5f
mov ecx, dword [r11 + 4]
call qword [sym.imp.WS2_32.dll_ntohl]
and eax, 0xf0000000
cmp eax, 0xe0000000
sete dl
jmp 0x14008bed9
call r13
mov dword [rax], 0x273f
jmp 0x14008c00a
xor ecx, ecx
mov r14d, 0xffffffff
jmp 0x14008bca3
mov ecx, eax
call fcn.1400e7ef0
mov r10d, dword [rsp + 0x150]
lea r11, str.cannot_resolve__s_port__d_:__s
lea rdx, str.net_OpenDgram
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r11
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x40], r10d
mov dword [rsp + 0x20], 0x26e
mov r8, qword [str.main]
lea r9, str._builds_videolan_vlc_extras_package_win32_.._.._.._src_network_udp.c
mov edx, 1
mov rcx, rbp
mov r14d, 0xffffffff
call sym.libvlccore.dll_vlc_Log
jmp 0x14008bca9
mov ecx, eax
call fcn.1400e7ef0
lea rcx, str.Cannot_resolve__s_port__d_:__s
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x40], esi
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x20], 0xa3
jmp 0x14008c216
mov ecx, eax
lea rdi, str.cannot_resolve__s_port__d_:__s
lea r13, str.net_OpenDgram
call fcn.1400e7ef0
mov r8, qword [str.main]
lea r9, str._builds_videolan_vlc_extras_package_win32_.._.._.._src_network_udp.c
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x38], r14
mov edx, 1
mov rcx, rbp
mov dword [rsp + 0x40], esi
mov qword [rsp + 0x30], rdi
mov r14d, 0xffffffff
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], 0x277
call sym.libvlccore.dll_vlc_Log
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
jmp 0x14008bca9
call fcn.1400c4ec0
nop
nop dword [rax + rax]