Function at 0x140159170
Capabilities:
Connect socket
Get local ipv4 addresses
Get socket information
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
mov r11, rsp
push rbx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0xa8
mov rax, qword [0x140431178]
xor rax, rsp
mov qword [rsp + 0x98], rax
xor eax, eax
mov qword [r11 + 0x18], rbp
xorps xmm0, xmm0
mov qword [rsp + 0x30], rcx
xor esi, esi
mov qword [r11 - 0x38], r13
mov r12, rdx
mov dword [rsp + 0x4c], esi
mov rbp, rcx
mov qword [r11 - 0x80], rsi
movups xmmword [rsp + 0x60], xmm0
lea edx, [rax + 1]
movups xmmword [rsp + 0x70], xmm0
lea rcx, [r11 - 0x78]
mov qword [r11 - 0x58], rax
call qword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
xor r9d, r9d
lea edx, [rsi + 1]
xor r8d, r8d
lea rcx, [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
lea rax, [rsp + 0x60]
mov qword [r12], 0xffffffffffffffff
mov r14d, 2
mov dword [rsp + 0x28], 0x81
mov ecx, r14d
mov qword [rsp + 0x50], rax
xor r9d, r9d
mov dword [rsp + 0x48], 0x18
xor r8d, r8d
mov qword [rbp], 0xffffffffffffffff
lea edx, [rsi + 1]
mov dword [rsp + 0x20], esi
call qword [sym.imp.WS2_32.dll_WSASocketA]
mov qword [rsp + 0x40], rax
mov r13, rax
lea r15, str.C:UsersAdmin_vcpkg_buildtreeszeromq_src_v4.3.5_37c87b6b8c.clean_srcip.cpp
cmp rax, 0xffffffffffffffff
jne 0x1401592b6
call fcn.14031577c
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.140146670
mov dword [rbx], eax
mov qword [rsp + 0x40], r13
call fcn.140146340
mov rdi, rax
test rax, rax
je 0x1401592be
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, r14d
mov ebx, eax
call fcn.14031c98c
mov rcx, rax
mov dword [rsp + 0x28], 0x18f
mov r9d, ebx
mov qword [rsp + 0x20], r15
mov r8, rdi
lea rdx, str.Assertion_failed:__s___i____s:_d__n
call fcn.140145b70
mov ecx, r14d
call fcn.14031c98c
mov rcx, rax
call fcn.14031cde4
mov rcx, rdi
call fcn.140146920
jmp 0x1401592be
mov rcx, rax
call fcn.1401597e0
lea r9, [rsp + 0x38]
mov dword [rsp + 0x38], 1
mov edx, 0xffff
mov dword [rsp + 0x20], 4
mov r8d, 4
mov rcx, r13
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x140159343
call fcn.140146340
mov rdi, rax
test rax, rax
je 0x140159343
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, r14d
mov ebx, eax
call fcn.14031c98c
mov rcx, rax
mov dword [rsp + 0x28], 0x196
mov r9d, ebx
mov qword [rsp + 0x20], r15
mov r8, rdi
lea rdx, str.Assertion_failed:__s___i____s:_d__n
call fcn.140145b70
mov ecx, r14d
call fcn.14031c98c
mov rcx, rax
call fcn.14031cde4
mov rcx, rdi
call fcn.140146920
mov rcx, r13
call fcn.140159a20
mov ecx, 0x7f000001
mov qword [rsp + 0x90], rsi
mov word [rsp + 0x88], r14w
call qword [sym.imp.WS2_32.dll_htonl]
xor ecx, ecx
mov dword [rsp + 0x8c], eax
call qword [sym.imp.WS2_32.dll_htons]
xor r9d, r9d
mov dword [rsp + 0x28], 0x81
xor r8d, r8d
mov word [rsp + 0x8a], ax
mov ecx, r14d
mov dword [rsp + 0x20], esi
lea edx, [r9 + 1]
call qword [sym.imp.WS2_32.dll_WSASocketA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14015941e
call fcn.14031577c
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.140146670
mov dword [rbx], eax
mov qword [r12], 0xffffffffffffffff
call fcn.140146340
mov rdi, rax
test rax, rax
je 0x14015942a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, r14d
mov ebx, eax
call fcn.14031c98c
mov rcx, rax
mov dword [rsp + 0x28], 0x1a3
mov r9d, ebx
mov qword [rsp + 0x20], r15
mov r8, rdi
lea rdx, str.Assertion_failed:__s___i____s:_d__n
call fcn.140145b70
mov ecx, r14d
call fcn.14031c98c
mov rcx, rax
call fcn.14031cde4
mov rcx, rdi
call fcn.140146920
jmp 0x14015942a
mov rcx, rbx
call fcn.1401597e0
mov qword [r12], rbx
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x88]
mov rcx, r13
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x1401594b4
lea r8, [rsp + 0x3c]
mov dword [rsp + 0x3c], reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x88]
mov rcx, r13
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x1401594b4
mov edx, 1
mov rcx, r13
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x1401594b4
mov rcx, qword [r12]
lea rdx, [rsp + 0x88]
mov r8d, reloc.WS2_32.dll_recv
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x1401594b4
mov rcx, qword [r12]
call fcn.140159a20
xor r8d, r8d
xor edx, edx
mov rcx, r13
call qword [sym.imp.WS2_32.dll_accept]
mov qword [rbp], rax
mov rax, qword [rbp]
cmp rax, 0xffffffffffffffff
je 0x140159574
mov ecx, 0x100000
call fcn.14031521c
mov r15, rax
test rax, rax
jne 0x140159532
call fcn.140146340
mov rdi, rax
test rax, rax
je 0x140159532
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, r14d
mov ebx, eax
call fcn.14031c98c
mov rcx, rax
mov dword [rsp + 0x28], 0x1d0
lea rax, str.C:UsersAdmin_vcpkg_buildtreeszeromq_src_v4.3.5_37c87b6b8c.clean_srcip.cpp
mov r9d, ebx
mov r8, rdi
mov qword [rsp + 0x20], rax
lea rdx, str.Assertion_failed:__s___i____s:_d__n
call fcn.140145b70
mov ecx, r14d
call fcn.14031c98c
mov rcx, rax
call fcn.14031cde4
mov rcx, rdi
call fcn.140146920
mov edi, 0x100000
lea r13, str.C:UsersAdmin_vcpkg_buildtreeszeromq_src_v4.3.5_37c87b6b8c.clean_srcip.cpp
mov esi, edi
test edi, edi
jne 0x14015960b
test esi, esi
jne 0x14015969a
mov rcx, r15
call fcn.140315208
mov rax, qword [rbp]
lea r14d, [rdi + 2]
mov r13, qword [rsp + 0x40]
lea r15, str.C:UsersAdmin_vcpkg_buildtreeszeromq_src_v4.3.5_37c87b6b8c.clean_srcip.cpp
xor esi, esi
cmp rax, 0xffffffffffffffff
jne 0x14015957c
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
mov rcx, r13
call qword [sym.imp.WS2_32.dll_closesocket]
mov r13, qword [rsp + 0xa0]
cmp eax, 0xffffffff
jne 0x1401595e9
call fcn.140146340
mov rdi, rax
test rax, rax
je 0x1401595e9
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, r14d
mov ebx, eax
call fcn.14031c98c
mov rcx, rax
mov dword [rsp + 0x28], 0x1ef
mov r9d, ebx
mov qword [rsp + 0x20], r15
mov r8, rdi
lea rdx, str.Assertion_failed:__s___i____s:_d__n
call fcn.140145b70
mov ecx, r14d
call fcn.14031c98c
mov rcx, rax
call fcn.14031cde4
mov rcx, rdi
call fcn.140146920
mov rcx, qword [rbp]
mov rbp, qword [rsp + 0xf0]
cmp rcx, 0xffffffffffffffff
je 0x140159728
call fcn.1401597e0
xor eax, eax
jmp 0x1401597b2
jle 0x14015969a
mov rcx, qword [r12]
mov rdx, r15
movsxd rax, edi
xor r9d, r9d
sub rdx, rax
mov r8d, edi
add rdx, 0x100000
call qword [sym.imp.WS2_32.dll_send]
mov r14d, eax
cmp eax, 0xffffffff
jne 0x140159697
call fcn.140146340
mov rbp, rax
test rax, rax
je 0x140159692
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea ecx, [r14 + 3]
mov ebx, eax
call fcn.14031c98c
mov rcx, rax
mov dword [rsp + 0x28], 0x1db
mov r9d, ebx
mov qword [rsp + 0x20], r13
mov r8, rbp
lea rdx, str.Assertion_failed:__s___i____s:_d__n
call fcn.140145b70
lea ecx, [r14 + 3]
call fcn.14031c98c
mov rcx, rax
call fcn.14031cde4
mov rcx, rbp
call fcn.140146920
mov rbp, qword [rsp + 0x30]
sub edi, r14d
mov rcx, qword [rbp]
mov rdx, r15
movsxd rax, esi
xor r9d, r9d
sub rdx, rax
mov r8d, esi
add rdx, 0x100000
call qword [sym.imp.WS2_32.dll_recv]
mov r14d, eax
cmp eax, 0xffffffff
jne 0x140159720
call fcn.140146340
mov rbp, rax
test rax, rax
je 0x14015971b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea ecx, [r14 + 3]
mov ebx, eax
call fcn.14031c98c
mov rcx, rax
mov dword [rsp + 0x28], 0x1e2
mov r9d, ebx
mov qword [rsp + 0x20], r13
mov r8, rbp
lea rdx, str.Assertion_failed:__s___i____s:_d__n
call fcn.140145b70
lea ecx, [r14 + 3]
call fcn.14031c98c
mov rcx, rax
call fcn.14031cde4
mov rcx, rbp
call fcn.140146920
mov rbp, qword [rsp + 0x30]
sub esi, r14d
jmp 0x140159540
mov rcx, qword [r12]
cmp rcx, 0xffffffffffffffff
je 0x14015979c
call qword [sym.imp.WS2_32.dll_closesocket]
cmp eax, 0xffffffff
jne 0x140159794
call fcn.140146340
mov rdi, rax
test rax, rax
je 0x140159794
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, r14d
mov ebx, eax
call fcn.14031c98c
mov rcx, rax
mov dword [rsp + 0x28], 0x206
mov r9d, ebx
mov qword [rsp + 0x20], r15
mov r8, rdi
lea rdx, str.Assertion_failed:__s___i____s:_d__n
call fcn.140145b70
mov ecx, r14d
call fcn.14031c98c
mov rcx, rax
call fcn.14031cde4
mov rcx, rdi
call fcn.140146920
mov qword [r12], 0xffffffffffffffff
call fcn.14031577c
mov ecx, esi
mov rbx, rax
call fcn.140146670
mov dword [rbx], eax
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.14030f0d0
add rsp, 0xa8
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
ret