Function at 0x140020330
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 [0x1400711c0]
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 0x14002047a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.14000fff0
mov dword [rbx], eax
mov qword [rsp + 0x40], r13
call fcn.14000fcc0
mov rdi, rax
test rax, rax
je 0x140020482
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, r14d
mov ebx, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov dword [rsp + 0x28], 0x18f
lea rdx, str.Assertion_failed:__s___i____s:_d__n
mov rcx, rax
mov qword [rsp + 0x20], r15
mov r9d, ebx
mov r8, rdi
call fcn.14000f4d0
mov ecx, r14d
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
mov rcx, rdi
call fcn.1400102a0
jmp 0x140020482
mov rcx, rax
call fcn.1400209b0
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 0x14002050a
call fcn.14000fcc0
mov rdi, rax
test rax, rax
je 0x14002050a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, r14d
mov ebx, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov dword [rsp + 0x28], 0x196
lea rdx, str.Assertion_failed:__s___i____s:_d__n
mov rcx, rax
mov qword [rsp + 0x20], r15
mov r9d, ebx
mov r8, rdi
call fcn.14000f4d0
mov ecx, r14d
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
mov rcx, rdi
call fcn.1400102a0
mov rcx, r13
call fcn.140020c10
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 0x1400205e9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.14000fff0
mov dword [rbx], eax
mov qword [r12], 0xffffffffffffffff
call fcn.14000fcc0
mov rdi, rax
test rax, rax
je 0x1400205f5
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, r14d
mov ebx, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov dword [rsp + 0x28], 0x1a3
lea rdx, str.Assertion_failed:__s___i____s:_d__n
mov rcx, rax
mov qword [rsp + 0x20], r15
mov r9d, ebx
mov r8, rdi
call fcn.14000f4d0
mov ecx, r14d
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
mov rcx, rdi
call fcn.1400102a0
jmp 0x1400205f5
mov rcx, rbx
call fcn.1400209b0
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 0x14002067f
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 0x14002067f
mov edx, 1
mov rcx, r13
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x14002067f
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 0x14002067f
mov rcx, qword [r12]
call fcn.140020c10
xor r8d, r8d
xor edx, edx
mov rcx, r13
call qword [sym.imp.WS2_32.dll_accept]
mov qword [rbp], rax
cmp qword [rbp], 0xffffffffffffffff
je 0x140020742
mov ecx, 0x100000
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r15, rax
test rax, rax
jne 0x1400206fe
call fcn.14000fcc0
mov rdi, rax
test rax, rax
je 0x1400206fe
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, r14d
mov ebx, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov dword [rsp + 0x28], 0x1d0
lea rdx, str.Assertion_failed:__s___i____s:_d__n
mov rcx, rax
mov r9d, ebx
lea rax, str.C:UsersAdmin_vcpkg_buildtreeszeromq_src_v4.3.5_37c87b6b8c.clean_srcip.cpp
mov r8, rdi
mov qword [rsp + 0x20], rax
call fcn.14000f4d0
mov ecx, r14d
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
mov rcx, rdi
call fcn.1400102a0
mov edi, 0x100000
lea r13, str.C:UsersAdmin_vcpkg_buildtreeszeromq_src_v4.3.5_37c87b6b8c.clean_srcip.cpp
mov esi, edi
nop dword [rax]
test edi, edi
jne 0x1400207dc
test esi, esi
jne 0x14002086e
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov r13, qword [rsp + 0x40]
lea r14d, [rdi + 2]
xor esi, esi
lea r15, str.C:UsersAdmin_vcpkg_buildtreeszeromq_src_v4.3.5_37c87b6b8c.clean_srcip.cpp
cmp qword [rbp], 0xffffffffffffffff
jne 0x14002074a
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 0x1400207ba
call fcn.14000fcc0
mov rdi, rax
test rax, rax
je 0x1400207ba
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, r14d
mov ebx, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov dword [rsp + 0x28], 0x1ef
lea rdx, str.Assertion_failed:__s___i____s:_d__n
mov rcx, rax
mov qword [rsp + 0x20], r15
mov r9d, ebx
mov r8, rdi
call fcn.14000f4d0
mov ecx, r14d
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
mov rcx, rdi
call fcn.1400102a0
mov rcx, qword [rbp]
mov rbp, qword [rsp + 0xf0]
cmp rcx, 0xffffffffffffffff
je 0x1400208ff
call fcn.1400209b0
xor eax, eax
jmp 0x14002098d
jle 0x14002086e
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 0x14002086b
call fcn.14000fcc0
mov rbp, rax
test rax, rax
je 0x140020866
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea ecx, [r14 + 3]
mov ebx, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov dword [rsp + 0x28], 0x1db
lea rdx, str.Assertion_failed:__s___i____s:_d__n
mov rcx, rax
mov qword [rsp + 0x20], r13
mov r9d, ebx
mov r8, rbp
call fcn.14000f4d0
lea ecx, [r14 + 3]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
mov rcx, rbp
call fcn.1400102a0
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 0x1400208f7
call fcn.14000fcc0
mov rbp, rax
test rax, rax
je 0x1400208f2
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea ecx, [r14 + 3]
mov ebx, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov dword [rsp + 0x28], 0x1e2
lea rdx, str.Assertion_failed:__s___i____s:_d__n
mov rcx, rax
mov qword [rsp + 0x20], r13
mov r9d, ebx
mov r8, rbp
call fcn.14000f4d0
lea ecx, [r14 + 3]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
mov rcx, rbp
call fcn.1400102a0
mov rbp, qword [rsp + 0x30]
sub esi, r14d
jmp 0x140020710
mov rcx, qword [r12]
cmp rcx, 0xffffffffffffffff
je 0x140020976
call qword [sym.imp.WS2_32.dll_closesocket]
cmp eax, 0xffffffff
jne 0x14002096e
call fcn.14000fcc0
mov rdi, rax
test rax, rax
je 0x14002096e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, r14d
mov ebx, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov dword [rsp + 0x28], 0x206
lea rdx, str.Assertion_failed:__s___i____s:_d__n
mov rcx, rax
mov qword [rsp + 0x20], r15
mov r9d, ebx
mov r8, rdi
call fcn.14000f4d0
mov ecx, r14d
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
mov rcx, rdi
call fcn.1400102a0
mov qword [r12], 0xffffffffffffffff
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, esi
mov rbx, rax
call fcn.14000fff0
mov dword [rbx], eax
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140053e80
add rsp, 0xa8
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
ret