Function at 0x140183170
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x60
mov rbx, qword [rsp + 0xa0]
movzx ebp, r9b
movzx r9d, byte [rdx + 0x168]
mov rsi, rdx
mov rdx, rcx
mov r15, rcx
mov rcx, rbx
movzx r14d, r8b
call fcn.14016e170
test eax, eax
jne 0x1401833d9
mov rcx, rbx
call fcn.14016dca0
mov edx, 1
movzx ecx, ax
lea r8d, [rdx + 5]
call fcn.140164bc0
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140183247
test bpl, bpl
je 0x1401833d9
mov rcx, rbx
call fcn.14016dca0
cmp ax, 0x17
jne 0x1401833d9
call fcn.14032e13c
cmp dword [rax], 0x66
jne 0x1401833d9
cmp byte [rsi + 0x168], 0
je 0x1401833d9
xor r9d, r9d
movzx r8d, r14b
mov rdx, r15
mov rcx, rbx
call fcn.14016e170
test eax, eax
jne 0x1401833d9
lea edx, [rdi + 2]
lea ecx, [rdi + 3]
lea r8d, [rdi + 7]
call fcn.140164bc0
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1401833d9
mov rcx, rbx
call fcn.14016dca0
cmp ax, 0x17
jne 0x14018325d
mov rcx, rdi
call fcn.140163bd0
mov edx, dword [rsi + 0x12c]
test edx, edx
je 0x14018326f
mov rcx, rdi
call fcn.140164c20
mov edx, dword [rsi + 0x130]
test edx, edx
je 0x140183281
mov rcx, rdi
call fcn.140164ce0
cmp byte [rsi + 0x351], 0
lea r14, str.C:UsersAdmin_vcpkg_buildtreeszeromq_src_v4.3.5_37c87b6b8c.clean_src_tcp.cpp
je 0x14018334a
xor ecx, ecx
mov dword [rsp + 0x50], 1
mov qword [rsp + 0x40], rcx
lea rax, [rsp + 0x88]
mov qword [rsp + 0x38], rcx
lea r8, [rsp + 0x50]
mov qword [rsp + 0x30], rax
mov edx, 0x98000010
mov dword [rsp + 0x28], ecx
lea r9d, [rcx + 4]
mov qword [rsp + 0x20], rcx
mov dword [rsp + 0x88], ecx
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_WSAIoctl]
cmp eax, 0xffffffff
jne 0x14018334a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x273d
je 0x14018334a
call fcn.140150b40
mov rbp, rax
test rax, rax
je 0x14018334a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, 2
mov ebx, eax
call fcn.140337dc0
mov rcx, rax
mov dword [rsp + 0x28], 0x135
mov r9d, ebx
mov qword [rsp + 0x20], r14
mov r8, rbp
lea rdx, str.Assertion_failed:__s___i____s:_d__n
call fcn.140150370
mov ecx, 2
call fcn.140337dc0
mov rcx, rax
call fcn.140338218
mov rcx, rbp
call fcn.140151120
cmp qword [rsi + 0x340], 0
je 0x1401833fa
lea rdx, [rsi + 0x330]
mov rcx, rdi
call fcn.140163860
cmp eax, 0xffffffff
jne 0x1401833fa
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
cmp eax, 0xffffffff
jne 0x1401833d9
call fcn.140150b40
mov rdi, rax
test rax, rax
je 0x1401833d9
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, 2
mov ebx, eax
call fcn.140337dc0
mov rcx, rax
mov dword [rsp + 0x28], 0x18d
mov r9d, ebx
mov qword [rsp + 0x20], r14
mov r8, rdi
lea rdx, str.Assertion_failed:__s___i____s:_d__n
call fcn.140150370
mov ecx, 2
call fcn.140337dc0
mov rcx, rax
call fcn.140338218
mov rcx, rdi
call fcn.140151120
mov rax, 0xffffffffffffffff
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
mov eax, dword [rsi + 0x124]
test eax, eax
js 0x140183439
lea r9, [rsp + 0x88]
mov dword [rsp + 0x88], eax
mov edx, 0xffff
mov dword [rsp + 0x20], 4
mov r8d, 0x1001
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
mov edx, eax
mov rcx, rdi
call fcn.140163720
mov eax, dword [rsi + 0x128]
test eax, eax
js 0x140183478
lea r9, [rsp + 0x88]
mov dword [rsp + 0x88], eax
mov edx, 0xffff
mov dword [rsp + 0x20], 4
mov r8d, 0x1002
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
mov edx, eax
mov rcx, rdi
call fcn.140163720
mov rax, rdi
jmp 0x1401833e0