Function at 0x140088c60
Capabilities:
Set socket configuration

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xf8
mov rax, qword [0x1402840b0]
mov r12, rdx
lea rbx, [rsp + 0x90]
mov edx, dword [rsp + 0x160]
mov r14, rcx
mov ecx, 6
mov esi, r8d
mov rdi, qword [rax]
mov qword [rsp + 0xe8], rdi
xor edi, edi
xor eax, eax
mov rdi, rbx
test r12, r12
rep stosq qword [rdi], rax
mov dword [rsp + 0x90], 1
mov dword [rsp + 0x98], r9d
mov dword [rsp + 0x9c], edx
je 0x1400891a0
lea r11, str.net_Listen
lea r10, str.net:_listening_to__s_port__d
mov dword [rsp + 0x40], r8d
mov r8, qword [str.main]
lea r9, str._builds_videolan_vlc_extras_package_win32_.._.._.._src_network_io.c
mov edx, 3
mov qword [rsp + 0x30], r10
mov qword [rsp + 0x28], r11
mov rcx, r14
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x20], 0x74
mov qword [rsp + 0x58], r11
call sym.libvlccore.dll_vlc_Log
lea r9, [rsp + 0x88]
mov r8, rbx
mov edx, esi
mov rcx, r12
call sym.libvlccore.dll_vlc_getaddrinfo
test eax, eax
jne 0x14008927a
mov r15, qword [rsp + 0x88]
test r15, r15
je 0x14008926a
mov rbx, qword [sym.imp.WS2_32.dll_closesocket]
mov r13, qword [sym.imp.WS2_32.dll_setsockopt]
xor ebp, ebp
xor r12d, r12d
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x60], rbx
mov edi, dword [r15 + 4]
mov edx, dword [r15 + 8]
mov r9d, 1
mov r8d, dword [r15 + 0xc]
mov ecx, edi
call sym.libvlccore.dll_vlc_socket
cmp eax, 0xffffffff
mov ebx, eax
je 0x140088ee5
movsxd rsi, eax
mov dword [rsp + 0x7c], 1
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x7c]
mov r8d, 4
mov edx, 0xffff
mov rcx, rsi
call r13
cmp edi, 0x17
je 0x1400890b0
mov rdx, qword [r15 + 0x20]
mov r8, qword [r15 + 0x10]
movzx ecx, word [rdx]
cmp cx, 2
je 0x140088f90
cmp cx, 0x17
jne 0x140088df3
cmp r8d, 0x1b
jbe 0x140088df3
cmp byte [rdx + 8], 0xff
sete al
test al, al
je 0x140088df3
cmp r8, 0x80
jbe 0x140089050
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
jne 0x140088ff0
mov r10, qword [r15 + 0x20]
mov r8, qword [r15 + 0x10]
movzx r11d, word [r10]
cmp r11w, 2
je 0x140088fc0
cmp r11w, 0x17
jne 0x140088e50
cmp r8d, 0x1b
jbe 0x140088e50
cmp byte [r10 + 8], 0xff
sete dil
test dil, dil
je 0x140088e50
mov r9d, dword [r15 + 0x10]
mov r8, qword [r15 + 0x20]
mov edx, ebx
mov rcx, r14
call fcn.14008b1b0
test eax, eax
jne 0x140089180
mov ecx, dword [r15 + 8]
cmp ecx, 5
ja 0x140088e69
mov eax, 1
shl rax, cl
test al, 0x32
jne 0x140089110
lea edx, [rbp + 2]
mov rcx, r12
shl rdx, 2
call sub.msvcrt.dll_realloc
test rax, rax
je 0x140089190
mov r12d, ebp
add ebp, 1
mov dword [rax + r12*4], ebx
mov r12, rax
mov r15, qword [r15 + 0x28]
test r15, r15
jne 0x140088d64
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test r12, r12
je 0x140088eb6
mov dword [r12 + rbp*4], 0xffffffff
mov r14, qword [0x1402840b0]
mov rax, r12
mov rsi, qword [rsp + 0xe8]
xor rsi, qword [r14]
jne 0x140089283
add rsp, 0xf8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rbx, qword [sym.imp.WS2_32.dll_WSAGetLastError]
call rbx
cmp eax, 0x66
je 0x140088f3c
call rbx
mov ecx, eax
call sym.libvlccore.dll_vlc_strerror_c
lea rcx, str.net_Socket
lea r11, str.cannot_create_socket:__s
mov r8, qword [str.main]
lea r9, str._builds_videolan_vlc_extras_package_win32_.._.._.._src_network_io.c
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x20], 0x3f
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x30], r11
mov edx, 1
mov rcx, r14
call sym.libvlccore.dll_vlc_Log
call rbx
mov ecx, eax
call sym.libvlccore.dll_vlc_strerror_c
mov r9, qword [rsp + 0x58]
mov qword [rsp + 0x38], rax
lea rax, [0x140189f3f]
mov r8, qword [str.main]
mov dword [rsp + 0x20], 0x88
mov edx, 3
mov qword [rsp + 0x30], rax
mov rcx, r14
mov qword [rsp + 0x28], r9
lea r9, str._builds_videolan_vlc_extras_package_win32_.._.._.._src_network_io.c
call sym.libvlccore.dll_vlc_Log
jmp 0x140088e8e
cmp r8d, 0xf
jbe 0x140088df3
mov ecx, dword [rdx + 4]
call qword [sym.imp.WS2_32.dll_ntohl]
and eax, 0xf0000000
mov r8, qword [r15 + 0x10]
mov rdx, qword [r15 + 0x20]
cmp eax, 0xe0000000
sete al
jmp 0x140088de2
cmp r8d, 0xf
jbe 0x140088e50
mov ecx, dword [r10 + 4]
call qword [sym.imp.WS2_32.dll_ntohl]
and eax, 0xf0000000
cmp eax, 0xe0000000
sete dil
jmp 0x140088e31
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
mov ecx, edi
call sym.libvlccore.dll_vlc_strerror_c
lea r8, [0x140189f50]
mov r10, qword [rsp + 0x58]
lea r9, str._builds_videolan_vlc_extras_package_win32_.._.._.._src_network_io.c
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x20], 0xb1
mov edx, 1
mov qword [rsp + 0x30], r8
mov r8, qword [str.main]
mov rcx, r14
mov qword [rsp + 0x28], r10
call sym.libvlccore.dll_vlc_Log
jmp 0x140088e8e
movzx r9d, word [rdx]
movzx edx, word [rdx + 2]
mov rcx, rsi
mov qword [rsp + 0xc0], 0
mov qword [rsp + 0xc8], 0
mov qword [rsp + 0xd0], 0
mov dword [rsp + 0xd8], 0
mov word [rsp + 0xc2], dx
mov word [rsp + 0xc0], r9w
lea rdx, [rsp + 0xc0]
call qword [sym.imp.WS2_32.dll_bind]
jmp 0x140088e04
lea r9, [rsp + 0x80]
mov rcx, rsi
mov dword [rsp + 0x80], 1
mov dword [rsp + 0x20], 4
mov r8d, 0x1b
mov edx, 0x29
call r13
mov dword [rsp + 0x84], 0xa
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x84]
mov r8d, 0x17
mov edx, 0x29
mov rcx, rsi
call r13
jmp 0x140088dba
mov edx, 0x7fffffff
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x140088e69
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call sym.libvlccore.dll_vlc_strerror_c
mov rdx, qword [rsp + 0x58]
lea r9, str.socket_listen_error:__s
mov r8, qword [str.main]
mov rcx, r14
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x20], 0xcb
mov qword [rsp + 0x30], r9
lea r9, str._builds_videolan_vlc_extras_package_win32_.._.._.._src_network_io.c
mov qword [rsp + 0x28], rdx
mov edx, 1
call sym.libvlccore.dll_vlc_Log
mov rcx, rsi
mov rsi, qword [rsp + 0x68]
call rsi
jmp 0x140088e8e
mov rcx, rsi
mov rbx, qword [rsp + 0x60]
call rbx
jmp 0x140088e8e
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x140088e8e
mov dword [rsp + 0x40], r8d
lea r8, str.net:_listening_to__s_port__d
lea r9, str.net_Listen
lea rbp, [0x140189f9b]
mov edx, 3
mov rcx, r14
mov qword [rsp + 0x30], r8
mov r8, qword [str.main]
mov qword [rsp + 0x58], r9
mov qword [rsp + 0x28], r9
lea r9, str._builds_videolan_vlc_extras_package_win32_.._.._.._src_network_io.c
mov qword [rsp + 0x38], rbp
mov dword [rsp + 0x20], 0x74
call sym.libvlccore.dll_vlc_Log
lea r9, [rsp + 0x88]
xor ecx, ecx
mov r8, rbx
mov edx, esi
call sym.libvlccore.dll_vlc_getaddrinfo
test eax, eax
je 0x140088d36
lea r12, [0x140189f1d]
mov ecx, eax
call fcn.1400e7de0
mov r13, qword [rsp + 0x58]
lea rbp, [0x140189f20]
mov r8, qword [str.main]
lea r9, str._builds_videolan_vlc_extras_package_win32_.._.._.._src_network_io.c
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x40], esi
mov qword [rsp + 0x30], rbp
mov edx, 1
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], 0x7b
mov rcx, r14
call sym.libvlccore.dll_vlc_Log
xor r12d, r12d
jmp 0x140088eb6
xor ecx, ecx
xor r12d, r12d
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
jmp 0x140088eb6
mov ecx, eax
call fcn.1400e7de0
jmp 0x14008921b
call fcn.1400c4db0
nop
nop dword [rax]