Function at 0x1401117e0
Capabilities:
Set socket configuration

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xe0
mov rax, qword [0x140325ed8]
xor rax, rsp
mov qword [rsp + 0xd0], rax
mov dword [rsp + 0x54], 0
mov dword [rsp + 0x70], 0
mov qword [rsp + 0x60], 0
mov dword [rsp + 0x58], 0
mov qword [rsp + 0x68], 0
mov dword [rsp + 0x80], 0
mov dword [rsp + 0x84], 0
cmp dword [rsp + 0xf8], 0
jne 0x140111a0c
xor edx, edx
lea rcx, [rsp + 0x60]
call fcn.140112e40
mov dword [rsp + 0x70], eax
mov rax, qword [rsp + 0xf0]
mov eax, dword [rax + 0xb8]
cmp dword [rsp + 0x70], eax
je 0x140111882
mov dword [rsp + 0x54], 1
jmp 0x140111915
cmp qword [rsp + 0x60], 0
jne 0x1401118a6
mov rax, qword [rsp + 0xf0]
cmp qword [rax + 0xb0], 0
je 0x1401118a6
mov dword [rsp + 0x54], 1
jmp 0x140111915
cmp qword [rsp + 0x60], 0
je 0x1401118ca
mov rax, qword [rsp + 0xf0]
cmp qword [rax + 0xb0], 0
jne 0x1401118ca
mov dword [rsp + 0x54], 1
jmp 0x140111915
cmp qword [rsp + 0x60], 0
je 0x140111915
mov rax, qword [rsp + 0xf0]
cmp qword [rax + 0xb0], 0
je 0x140111915
movsxd rax, dword [rsp + 0x70]
imul rax, rax, 0x10
mov r8, rax
mov rax, qword [rsp + 0xf0]
mov rdx, qword [rax + 0xb0]
mov rcx, qword [rsp + 0x60]
call fcn.140270070
test eax, eax
je 0x140111915
mov dword [rsp + 0x54], 1
mov rax, qword [rsp + 0xf0]
cmp qword [rax + 0x48], 0
je 0x1401119ea
lea rcx, [rsp + 0x68]
call fcn.140113080
mov dword [rsp + 0x58], eax
mov rax, qword [rsp + 0xf0]
mov eax, dword [rax + 0xc8]
cmp dword [rsp + 0x58], eax
je 0x140111957
mov dword [rsp + 0x54], 1
jmp 0x1401119ea
cmp qword [rsp + 0x68], 0
je 0x14011197b
mov rax, qword [rsp + 0xf0]
cmp qword [rax + 0xc0], 0
jne 0x14011197b
mov dword [rsp + 0x54], 1
jmp 0x1401119ea
cmp qword [rsp + 0x68], 0
jne 0x14011199f
mov rax, qword [rsp + 0xf0]
cmp qword [rax + 0xc0], 0
je 0x14011199f
mov dword [rsp + 0x54], 1
jmp 0x1401119ea
cmp qword [rsp + 0x68], 0
je 0x1401119ea
mov rax, qword [rsp + 0xf0]
cmp qword [rax + 0xc0], 0
je 0x1401119ea
movsxd rax, dword [rsp + 0x58]
shl rax, 2
mov r8, rax
mov rax, qword [rsp + 0xf0]
mov rdx, qword [rax + 0xc0]
mov rcx, qword [rsp + 0x68]
call fcn.140270070
test eax, eax
je 0x1401119ea
mov dword [rsp + 0x54], 1
cmp dword [rsp + 0x54], 0
jne 0x140111a0c
mov rcx, qword [rsp + 0x60]
call fcn.14027a7c0
mov rcx, qword [rsp + 0x68]
call fcn.14027a7c0
xor eax, eax
jmp 0x140112110
mov rax, qword [rsp + 0xf0]
cmp qword [rax + 0xb0], 0
je 0x140111a45
mov rax, qword [rsp + 0xf0]
mov rcx, qword [rax + 0xb0]
call fcn.14027a7c0
mov rax, qword [rsp + 0xf0]
mov qword [rax + 0xb0], 0
mov rax, qword [rsp + 0xf0]
cmp qword [rax + 0xc0], 0
je 0x140111a7e
mov rax, qword [rsp + 0xf0]
mov rcx, qword [rax + 0xc0]
call fcn.14027a7c0
mov rax, qword [rsp + 0xf0]
mov qword [rax + 0xc0], 0
mov rax, qword [rsp + 0xf0]
cmp qword [rax + 0x50], 0
je 0x140111b1a
mov dword [rsp + 0x50], 0
jmp 0x140111aa5
mov eax, dword [rsp + 0x50]
inc eax
mov dword [rsp + 0x50], eax
mov rax, qword [rsp + 0xf0]
mov eax, dword [rax + 0xb8]
cmp dword [rsp + 0x50], eax
jge 0x140111af9
movsxd rax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0xf0]
mov rcx, qword [rcx + 0x50]
cmp qword [rcx + rax*8], 0
je 0x140111af7
movsxd rax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0xf0]
mov rcx, qword [rcx + 0x50]
mov rdx, qword [rcx + rax*8]
mov rax, qword [rsp + 0xf0]
mov rcx, qword [rax + 0x20]
call fcn.140114c70
jmp 0x140111a9b
mov rax, qword [rsp + 0xf0]
mov rcx, qword [rax + 0x50]
call fcn.14027a7c0
mov rax, qword [rsp + 0xf0]
mov qword [rax + 0x50], 0
cmp dword [rsp + 0xf8], 0
je 0x140111b2b
xor eax, eax
jmp 0x140112110
lea rax, [rsp + 0xa0]
mov rdi, rax
xor eax, eax
mov ecx, reloc.WS2_32.dll_recv
rep stosb byte [rdi], al
mov eax, 2
mov word [rsp + 0xa0], ax
mov rax, qword [rsp + 0xf0]
movzx ecx, word [rax + 0x70]
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0xa2], ax
lea rax, [rsp + 0xb0]
mov rdi, rax
xor eax, eax
mov ecx, 0x1c
rep stosb byte [rdi], al
mov eax, reloc.WS2_32.dll_socket
mov word [rsp + 0xb0], ax
mov rax, qword [rsp + 0xf0]
movzx ecx, word [rax + 0x70]
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0xb2], ax
cmp qword [rsp + 0x60], 0
je 0x14011201c
mov rax, qword [rsp + 0xf0]
movzx eax, word [rax + 0x80]
test eax, eax
je 0x14011201c
mov rax, qword [rsp + 0xf0]
mov ecx, dword [rsp + 0x70]
mov dword [rax + 0xb8], ecx
mov rax, qword [rsp + 0xf0]
mov rcx, qword [rsp + 0x60]
mov qword [rax + 0xb0], rcx
mov rax, qword [rsp + 0xf0]
cmp dword [rax + 0xb8], 0
jle 0x14011201a
mov rax, qword [rsp + 0xf0]
cmp qword [rax + 0xb0], 0
je 0x14011201a
mov rax, qword [rsp + 0xf0]
movsxd rax, dword [rax + 0xb8]
shl rax, 3
mov rcx, rax
call fcn.14027bb94
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0xf0]
mov rcx, qword [rsp + 0x88]
mov qword [rax + 0x50], rcx
cmp qword [rsp + 0x88], 0
jne 0x140111c9e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
mov r9d, 0xfe
mov r8d, 0x9c
lea rdx, str.D:WorkOpenSourceGithubMeshAgentmicrostackILibMulticastSocket.c
xor ecx, ecx
call fcn.140124df0
mov r8d, 0x9c
lea rdx, [0x1403aa0d0]
lea rcx, [0x1403a9af8]
call fcn.1400012d0
mov ecx, 0xfe
call fcn.1402742dc
mov dword [rsp + 0x50], 0
jmp 0x140111cb2
mov eax, dword [rsp + 0x50]
inc eax
mov dword [rsp + 0x50], eax
mov rax, qword [rsp + 0xf0]
mov eax, dword [rax + 0xb8]
cmp dword [rsp + 0x50], eax
jge 0x14011201a
mov rax, qword [rsp + 0xf0]
movzx ecx, word [rax + 0x70]
call qword [sym.imp.WS2_32.dll_htons]
movsxd rcx, dword [rsp + 0x50]
imul rcx, rcx, 0x10
mov rdx, qword [rsp + 0xf0]
mov rdx, qword [rdx + 0xb0]
mov word [rdx + rcx + 2], ax
movsxd rax, dword [rsp + 0x50]
imul rax, rax, 0x10
mov rcx, qword [rsp + 0xf0]
add rax, qword [rcx + 0xb0]
mov rcx, qword [rsp + 0xf0]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], 0
lea rcx, [0x1401116d0]
mov qword [rsp + 0x20], rcx
mov r9d, 1
mov r8, rax
xor edx, edx
mov rax, qword [rsp + 0xf0]
mov rcx, qword [rax + 0x20]
call fcn.14010f1b0
movsxd rcx, dword [rsp + 0x50]
mov rdx, qword [rsp + 0xf0]
mov rdx, qword [rdx + 0x50]
mov qword [rdx + rcx*8], rax
movsxd rax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0xf0]
mov rcx, qword [rcx + 0x50]
cmp qword [rcx + rax*8], 0
je 0x140112015
movsxd rax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0xf0]
mov rcx, qword [rcx + 0x50]
cmp qword [rcx + rax*8], 0
je 0x140111dd6
movsxd rax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0xf0]
mov rcx, qword [rcx + 0x50]
mov rax, qword [rcx + rax*8]
mov rcx, qword [rax + 0x30]
call fcn.140113b40
movsxd rax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0xf0]
mov rcx, qword [rcx + 0x50]
mov rax, qword [rcx + rax*8]
lea rcx, str.ILibMulticastSocket_v4
mov qword [rax + 0x30], rcx
movsxd rax, dword [rsp + 0x50]
imul rax, rax, 0x10
mov rcx, qword [rsp + 0xf0]
add rax, qword [rcx + 0xb0]
mov rcx, qword [rsp + 0xf0]
add rcx, 0x80
movsxd rdx, dword [rsp + 0x50]
mov qword [rsp + 0x90], rdx
mov rdi, qword [rsp + 0xf0]
mov rdi, qword [rdi + 0x50]
mov r8, rax
mov rdx, rcx
mov rax, qword [rsp + 0x90]
mov rcx, qword [rdi + rax*8]
call fcn.14010f5b0
movsxd rax, dword [rsp + 0x50]
imul rax, rax, 0x10
mov rcx, qword [rsp + 0xf0]
add rax, qword [rcx + 0xb0]
movsxd rcx, dword [rsp + 0x50]
mov rdx, qword [rsp + 0xf0]
mov rdx, qword [rdx + 0x50]
mov qword [rsp + 0x98], rdx
mov rdx, rax
mov rax, qword [rsp + 0x98]
mov rcx, qword [rax + rcx*8]
call fcn.14010ef20
movsxd rax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0xf0]
mov rcx, qword [rcx + 0x50]
mov rcx, qword [rcx + rax*8]
call fcn.14010f4c0
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0xf0]
add rax, 0x68
mov dword [rsp + 0x20], 4
mov r9, rax
mov r8d, 0xa
xor edx, edx
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x140111eee
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], 0
mov r9d, eax
mov r8d, 0xaa
lea rdx, [0x1403aa060]
xor ecx, ecx
call fcn.140124df0
mov ecx, 0xfd
call fcn.1402742dc
mov rax, qword [rsp + 0xf0]
add rax, 0x6c
mov dword [rsp + 0x20], 4
mov r9, rax
mov r8d, listen
xor edx, edx
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x140111f4b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], 0
mov r9d, eax
mov r8d, 0xab
lea rdx, [0x1403a9ff0]
xor ecx, ecx
call fcn.140124df0
mov ecx, 0xfd
call fcn.1402742dc
mov rax, qword [rsp + 0xf0]
add rax, 0x6c
mov dword [rsp + 0x20], 4
mov r9, rax
mov r8d, listen
xor edx, edx
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x140111fa8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], 0
mov r9d, eax
mov r8d, 0xac
lea rdx, [0x1403a9f80]
xor ecx, ecx
call fcn.140124df0
mov ecx, 0xfd
call fcn.1402742dc
movsxd rax, dword [rsp + 0x50]
imul rax, rax, 0x10
mov rcx, qword [rsp + 0xf0]
mov rcx, qword [rcx + 0xb0]
xor edx, edx
mov word [rcx + rax + 2], dx
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x80]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 4
lea r8, [rsp + 0x84]
mov edx, 0x9800000c
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.WS2_32.dll_WSAIoctl]
jmp 0x140111ca8
jmp 0x14011202e
cmp qword [rsp + 0x60], 0
je 0x14011202e
mov rcx, qword [rsp + 0x60]
call fcn.14027a7c0
cmp dword [rsp + 0x58], 0
je 0x1401120f9
cmp qword [rsp + 0x68], 0
je 0x1401120f9
mov rax, qword [rsp + 0xf0]
movzx eax, word [rax + 0x90]
test eax, eax
je 0x1401120f9
mov rax, qword [rsp + 0xf0]
cmp qword [rax + 0x48], 0
je 0x1401120f9
mov rax, qword [rsp + 0xf0]
mov ecx, dword [rsp + 0x58]
mov dword [rax + 0xc8], ecx
mov rax, qword [rsp + 0xf0]
mov rcx, qword [rsp + 0x68]
mov qword [rax + 0xc0], rcx
mov dword [rsp + 0x50], 0
jmp 0x1401120a9
mov eax, dword [rsp + 0x50]
inc eax
mov dword [rsp + 0x50], eax
mov rax, qword [rsp + 0xf0]
mov eax, dword [rax + 0xc8]
cmp dword [rsp + 0x50], eax
jge 0x1401120f7
movsxd rax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0xf0]
mov rcx, qword [rcx + 0xc0]
mov rdx, qword [rsp + 0xf0]
add rdx, 0x90
mov r8d, dword [rcx + rax*4]
mov rax, qword [rsp + 0xf0]
mov rcx, qword [rax + 0x48]
call fcn.14010f640
jmp 0x14011209f
jmp 0x14011210b
cmp qword [rsp + 0x68], 0
je 0x14011210b
mov rcx, qword [rsp + 0x68]
call fcn.14027a7c0
mov eax, 1
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.14026d940
add rsp, 0xe0
pop rdi
ret