Function at 0x140041c40
Capabilities:
Connect socket
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov rdi, rcx
lea r14, str.C:UsersAdmin_vcpkg_buildtreeszeromq_src_v4.3.5_37c87b6b8c.clean_src_tcp_connecter.cpp
cmp qword [rcx + 0x4f0], 0xffffffffffffffff
je 0x140041cb2
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
mov dword [rsp + 0x20], 0x95
mov r9, r14
lea r8, str._s__retired_fd
lea rdx, str.Assertion_failed:__s___s:_d__n
call fcn.14000f4d0
mov ecx, 2
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]
lea rcx, str._s__retired_fd
call fcn.1400102a0
mov rax, qword [rdi + 0x4e8]
mov rcx, qword [rax + 0x48]
xor ebx, ebx
test rcx, rcx
je 0x140041cd7
lea edx, [rbx + 0x3c]
call fcn.140053810
mov rax, qword [rdi + 0x4e8]
mov qword [rax + 0x48], rbx
lea rdx, [0x1400613b8]
mov ecx, 0x3c
call fcn.140053ddc
mov qword [rsp + 0x50], rax
test rax, rax
je 0x140041cff
mov rcx, rax
call fcn.1400289e0
mov rcx, rax
jmp 0x140041d02
mov rcx, rbx
mov rax, qword [rdi + 0x4e8]
mov qword [rax + 0x48], rcx
mov rax, qword [rdi + 0x4e8]
cmp qword [rax + 0x48], 0
jne 0x140041d5e
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
mov r9d, 0x9d
mov r8, r14
lea rdx, str.FATAL_ERROR:_OUT_OF_MEMORY___s:_d__n
call fcn.14000f4d0
mov ecx, 2
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]
lea rcx, str.FATAL_ERROR:_OUT_OF_MEMORY
call fcn.1400102a0
mov rax, qword [rdi + 0x4e8]
lea rcx, [rax + 0x20]
cmp qword [rcx + 0x18], 0xf
jbe 0x140041d73
mov rcx, qword [rcx]
lea rdx, [rdi + 0x18]
mov rax, qword [rax + 0x48]
mov qword [rsp + 0x20], rax
mov r9b, 1
xor r8d, r8d
call fcn.14003b730
mov qword [rdi + 0x4f0], rax
mov rcx, qword [rdi + 0x4e8]
cmp rax, 0xffffffffffffffff
jne 0x140041dbb
lea edx, [rax + 0x3d]
mov rcx, qword [rcx + 0x48]
call fcn.140053810
mov rax, qword [rdi + 0x4e8]
mov qword [rax + 0x48], rbx
jmp 0x140041f4b
cmp qword [rcx + 0x48], 0
jne 0x140041e0e
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
mov dword [rsp + 0x20], 0xa6
mov r9, r14
lea r8, str._addr__resolved.tcp_addr___NULL
lea rdx, str.Assertion_failed:__s___s:_d__n
call fcn.14000f4d0
mov ecx, 2
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]
lea rcx, str._addr__resolved.tcp_addr___NULL
call fcn.1400102a0
mov rcx, qword [rdi + 0x4f0]
call fcn.140020cd0
mov rax, qword [rdi + 0x4e8]
mov rsi, qword [rax + 0x48]
mov rcx, rsi
call fcn.140028a80
test al, al
je 0x140041eef
mov dword [rsp + 0x50], 1
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x50]
mov edx, 0xffff
mov r8d, 4
mov rcx, qword [rdi + 0x4f0]
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x140041ec5
call fcn.14000fcc0
mov rbp, rax
test rax, rax
je 0x140041ec5
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
mov dword [rsp + 0x28], 0xb7
mov qword [rsp + 0x20], r14
mov r9d, ebx
mov r8, rbp
lea rdx, str.Assertion_failed:__s___i____s:_d__n
call fcn.14000f4d0
mov ecx, 2
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 rcx, rsi
call fcn.140029160
mov ebx, eax
mov rcx, rsi
call fcn.140029150
mov rdx, rax
mov r8d, ebx
mov rcx, qword [rdi + 0x4f0]
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x140041f4b
mov rcx, rsi
call fcn.140028a60
mov ebx, eax
mov rcx, rsi
call fcn.140028a50
mov rdx, rax
mov r8d, ebx
mov rcx, qword [rdi + 0x4f0]
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x140041f50
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
lea ecx, [rax - 0x2733]
cmp ecx, 1
jbe 0x140041f3f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov rbx, rax
mov ecx, edi
call fcn.14000fff0
mov dword [rbx], eax
jmp 0x140041f4b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], WSACleanup
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret