Function at 0x140067ccc
Capabilities:
Set socket configuration

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov dword [rax + 0x10], edx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
xor ebx, ebx
mov rdi, rcx
mov qword [rax - 0x40], rbx
mov esi, ebx
mov qword [rax - 0x48], rbx
mov r15d, ebx
mov dword [rax + 0x18], ebx
mov r14d, ebx
mov dword [rax + 0x20], ebx
lea r13d, [rbx + 1]
mov r12d, ebx
mov ebp, ebx
test edx, edx
jne 0x140067dce
lea rcx, [rax - 0x40]
call fcn.1400686fc
mov r14, qword [rsp + 0x58]
movsxd r15, eax
cmp r15d, dword [rdi + 0xa0]
jne 0x140067d47
test r14, r14
jne 0x140067d3b
cmp qword [rdi + 0x98], rbx
je 0x140067d61
jmp 0x140067d47
mov rdx, qword [rdi + 0x98]
test rdx, rdx
jne 0x140067d4c
mov esi, r13d
jmp 0x140067d61
mov r8, r15
mov rcx, r14
shl r8, 4
call fcn.14015dad0
test eax, eax
cmovne esi, r13d
cmp qword [rdi + 0x30], rbx
je 0x140067db3
lea rcx, [rsp + 0x50]
call fcn.1400688ac
mov rbp, qword [rsp + 0x50]
movsxd r12, eax
cmp r12d, dword [rdi + 0xb0]
jne 0x140067dce
test rbp, rbp
je 0x140067daa
mov rdx, qword [rdi + 0xa8]
test rdx, rdx
je 0x140067dce
mov r8, r12
mov rcx, rbp
shl r8, 2
call fcn.14015dad0
test eax, eax
cmovne esi, r13d
jmp 0x140067db3
cmp qword [rdi + 0xa8], rbx
jne 0x140067dce
test esi, esi
jne 0x140067dce
mov rcx, r14
call fcn.140163938
mov rcx, rbp
call fcn.140163938
xor eax, eax
jmp 0x1400680c1
mov rcx, qword [rdi + 0x98]
test rcx, rcx
je 0x140067de6
call fcn.140163938
mov qword [rdi + 0x98], rbx
mov rcx, qword [rdi + 0xa8]
test rcx, rcx
je 0x140067dfe
call fcn.140163938
mov qword [rdi + 0xa8], rbx
cmp qword [rdi + 0x38], rbx
je 0x140067e59
mov r13d, ebx
cmp dword [rdi + 0xa0], ebx
jle 0x140067e46
mov rsi, rbx
mov rax, qword [rdi + 0x38]
mov r8, qword [rsi + rax]
test r8, r8
je 0x140067e36
mov rcx, qword [rdi + 0x18]
cmp dword [rcx], ebx
jne 0x140067e36
xor r9d, r9d
lea rdx, [fcn.140068f0c]
call fcn.140068dd0
inc r13d
add rsi, 8
cmp r13d, dword [rdi + 0xa0]
jl 0x140067e12
mov rcx, qword [rdi + 0x38]
call fcn.140163938
mov qword [rdi + 0x38], rbx
mov r13d, 1
cmp dword [rsp + 0xa8], ebx
jne 0x140067dc7
movzx ecx, word [rdi + 0x58]
call qword [sym.imp.WS2_32.dll_htons]
movzx ecx, word [rdi + 0x58]
call qword [sym.imp.WS2_32.dll_htons]
test r14, r14
je 0x14006805c
cmp word [rdi + 0x68], bx
je 0x140068054
mov dword [rdi + 0xa0], r15d
mov qword [rdi + 0x98], r14
test r15d, r15d
jle 0x14006805c
movsxd rcx, r15d
shl rcx, 3
call fcn.140164d80
mov qword [rdi + 0x38], rax
test rax, rax
je 0x1400680d9
mov r14d, ebx
cmp dword [rdi + 0xa0], ebx
jle 0x14006805c
mov rsi, rbx
mov r15, rbx
movzx ecx, word [rdi + 0x58]
call qword [sym.imp.WS2_32.dll_htons]
mov rcx, qword [rdi + 0x98]
xor edx, edx
mov qword [rsp + 0x30], rdi
movsxd r13, r14d
shl r13, 4
mov word [rsi + rcx + 2], ax
lea r9d, [rdx + 1]
mov r8, qword [rdi + 0x98]
lea rax, [0x140067c30]
mov rcx, qword [rdi + 0x18]
add r8, r13
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
call fcn.140066b18
mov rcx, qword [rdi + 0x38]
mov qword [r15 + rcx], rax
mov rax, qword [rdi + 0x38]
mov rcx, qword [r15 + rax]
test rcx, rcx
je 0x140068035
mov r8, qword [rdi + 0x98]
lea rdx, [rdi + 0x68]
add r8, r13
call fcn.140066d40
mov r8, qword [rdi + 0x98]
mov r9d, reloc.WS2_32.dll_recv
mov rax, qword [rdi + 0x38]
add r8, rsi
lea edx, [r9 + 0xc]
cmp word [r8], 0x17
mov rcx, qword [rax + r15]
cmove r9d, edx
add rcx, 0x7c
call section..text
mov rax, qword [rdi + 0x38]
lea r9, [rdi + 0x50]
xor edx, edx
mov dword [rsp + 0x20], 4
mov rcx, qword [rax + r15]
lea r8d, [rdx + 0xa]
mov r13, qword [rcx + 0x50]
mov rcx, r13
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x140068175
lea r9, [rdi + 0x54]
mov dword [rsp + 0x20], 4
xor edx, edx
lea r8d, [rax + 0xb]
mov rcx, r13
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x140068149
lea r9, [rdi + 0x54]
mov dword [rsp + 0x20], 4
xor edx, edx
lea r8d, [rax + 0xb]
mov rcx, r13
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x14006811d
mov rax, qword [rdi + 0x98]
lea r8, [rsp + 0xb8]
mov qword [rsp + 0x40], rbx
mov r9d, 4
mov qword [rsp + 0x38], rbx
mov edx, 0x9800000c
mov rcx, r13
mov word [rsi + rax + 2], bx
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.WS2_32.dll_WSAIoctl]
mov r13d, 1
add r15, 8
add r14d, r13d
add rsi, 0x10
cmp r14d, dword [rdi + 0xa0]
jge 0x14006805c
jmp 0x140067ed2
mov rcx, r14
call fcn.140163938
test r12d, r12d
je 0x1400680b1
test rbp, rbp
je 0x1400680be
cmp word [rdi + 0x78], bx
je 0x1400680b1
cmp qword [rdi + 0x30], rbx
je 0x1400680b1
mov dword [rdi + 0xb0], r12d
mov qword [rdi + 0xa8], rbp
test r12d, r12d
jle 0x1400680be
mov rsi, rbx
mov rax, qword [rdi + 0xa8]
lea rdx, [rdi + 0x78]
mov rcx, qword [rdi + 0x30]
mov r8d, dword [rsi + rax]
call fcn.140066d98
add ebx, r13d
lea rsi, [rsi + 4]
cmp ebx, dword [rdi + 0xb0]
jl 0x140068088
jmp 0x1400680be
test rbp, rbp
je 0x1400680be
mov rcx, rbp
call fcn.140163938
mov eax, r13d
mov rbx, qword [rsp + 0xa0]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, 0xfe
lea rdx, str...microstackILibMulticastSocket.c
mov r9d, edi
mov dword [rsp + 0x20], eax
xor ecx, ecx
lea ebx, [rdi - 0x62]
mov r8d, ebx
call fcn.14006e59c
mov r8d, ebx
lea rdx, str...microstackILibMulticastSocket.c
lea rcx, str.CRITICALEXIT__FILE:__s__LINE:__d_r_n
call fcn.140001090
mov ecx, edi
call fcn.14015ecf8
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0xab
mov dword [rsp + 0x20], ebx
mov r9d, eax
lea rdx, str...microstackILibMulticastSocket.c
xor ecx, ecx
call fcn.14006e59c
mov ecx, 0xfd
call fcn.14015ecf8
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0xaa
mov dword [rsp + 0x20], ebx
mov r9d, eax
lea rdx, str...microstackILibMulticastSocket.c
xor ecx, ecx
call fcn.14006e59c
mov ecx, 0xfd
call fcn.14015ecf8
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0xa9
mov dword [rsp + 0x20], ebx
mov r9d, eax
lea rdx, str...microstackILibMulticastSocket.c
xor ecx, ecx
call fcn.14006e59c
mov ecx, 0xfd
call fcn.14015ecf8
int3