Function at 0x140162200
Capabilities:
Resolve dns

Disassembly:
push rbp
push rsi
push r13
push r14
push r15
lea rbp, [rsp - 0x7d0]
sub rsp, 0x8d0
mov rax, qword [0x140431178]
xor rax, rsp
mov qword [rbp + 0x7b0], rax
mov rsi, rdx
mov r13, rcx
call fcn.140177250
cmp eax, 2
je 0x140162266
mov rcx, r13
call fcn.140177250
cmp eax, 0x17
je 0x140162266
xor r15d, r15d
mov qword [rsi + 0x10], r15
cmp qword [rsi + 0x18], 0x10
jb 0x140162257
mov rsi, qword [rsi]
mov byte [rsi], r15b
mov rax, 0xffffffffffffffff
jmp 0x14016247c
mov rcx, r13
mov qword [rsp + 0x910], rbx
call fcn.140178180
mov rcx, r13
mov ebx, eax
call fcn.14014b420
xor r15d, r15d
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], r15d
lea r8, [rbp + 0x3a0]
mov r9d, 0x401
mov qword [rsp + 0x20], r15
mov edx, ebx
mov rcx, rax
call qword [sym.imp.WS2_32.dll_getnameinfo]
test eax, eax
je 0x1401622c7
mov qword [rsi + 0x10], r15
cmp qword [rsi + 0x18], 0x10
jb 0x1401622bf
mov rsi, qword [rsi]
mov byte [rsi], r15b
jmp 0x140162474
mov eax, dword [str.tcp:__]
movabs rbx, 0x5b2f2f3a706374
mov dword [rsp + 0x44], eax
mov rcx, r13
movzx eax, word [0x14034b750]
mov word [rsp + 0x40], ax
movzx eax, byte [0x14034b752]
mov byte [rsp + 0x4e], al
mov qword [rsp + 0x8c8], rdi
movzx edi, word [0x14034b754]
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x8c0], r12
call fcn.140177250
lea rcx, [rbp + 0x3a0]
mov r14, 0xffffffffffffffff
inc r14
cmp byte [rcx + r14], r15b
jne 0x140162324
movzx r12d, word [r13 + 2]
mov r8, r14
lea rdx, [rbp + 0x3a0]
cmp eax, 0x17
jne 0x14016249b
movzx eax, word [rsp + 0x4c]
lea rcx, [rbp - 0x79]
mov word [rbp - 0x7c], ax
movzx eax, byte [rsp + 0x4e]
mov byte [rbp - 0x7a], al
mov dword [rbp - 0x80], ebx
call fcn.14030fae0
lea rbx, [rbp - 0x79]
movzx ecx, r12w
add rbx, r14
mov word [rbx], di
add rbx, 2
call qword [sym.imp.WS2_32.dll_ntohs]
movzx r9d, ax
lea r8, [0x14034b818]
mov edx, 6
mov rcx, rbx
call fcn.140145a38
movsxd rdi, eax
lea ecx, [rdi - 1]
cmp ecx, 4
jbe 0x1401623ea
mov ecx, 2
call fcn.14031c98c
mov rcx, rax
mov dword [rsp + 0x20], WSASetLastError
lea r9, str.C:UsersAdmin_vcpkg_buildtreeszeromq_src_v4.3.5_37c87b6b8c.clean_src_tcp_address.cpp
lea r8, str.res___0__res____int___max_port_str_length__1_
lea rdx, str.Assertion_failed:__s___s:_d__n
call fcn.140145b70
mov ecx, 2
call fcn.14031c98c
mov rcx, rax
call fcn.14031cde4
lea rcx, str.res___0__res____int___max_port_str_length__1_
call fcn.140146920
lea rax, [rbp - 0x80]
mov qword [rsp + 0x58], r15
mov r8, rdi
mov qword [rsp + 0x68], r15
sub r8, rax
mov qword [rsp + 0x70], reloc.WS2_32.dll_ntohs
add r8, rbx
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x58]
call fcn.1401433c8
lea rdx, [rsp + 0x58]
mov rcx, rsi
call fcn.14013da10
mov rdx, qword [rsp + 0x70]
cmp rdx, 0x10
jb 0x140162462
mov rcx, qword [rsp + 0x58]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14016245d
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401625b6
call fcn.14030e898
mov rdi, qword [rsp + 0x8c8]
xor eax, eax
mov r12, qword [rsp + 0x8c0]
mov rbx, qword [rsp + 0x910]
mov rcx, qword [rbp + 0x7b0]
xor rcx, rsp
call fcn.14030f0d0
add rsp, 0x8d0
pop r15
pop r14
pop r13
pop rsi
pop rbp
ret
mov eax, dword [rsp + 0x44]
lea rcx, [rbp - 0x7a]
mov dword [rbp - 0x80], eax
movzx eax, word [rsp + 0x40]
mov word [rbp - 0x7c], ax
call fcn.14030fae0
lea rbx, [rbp - 0x7a]
movzx ecx, r12w
add rbx, r14
mov byte [rbx], 0x3a
inc rbx
call qword [sym.imp.WS2_32.dll_ntohs]
movzx r9d, ax
lea r8, [0x14034b818]
mov edx, 6
mov rcx, rbx
call fcn.140145a38
movsxd rdi, eax
lea ecx, [rdi - 1]
cmp ecx, 4
jbe 0x14016253b
mov ecx, 2
call fcn.14031c98c
mov rcx, rax
mov dword [rsp + 0x20], WSASetLastError
lea r9, str.C:UsersAdmin_vcpkg_buildtreeszeromq_src_v4.3.5_37c87b6b8c.clean_src_tcp_address.cpp
lea r8, str.res___0__res____int___max_port_str_length__1_
lea rdx, str.Assertion_failed:__s___s:_d__n
call fcn.140145b70
mov ecx, 2
call fcn.14031c98c
mov rcx, rax
call fcn.14031cde4
lea rcx, str.res___0__res____int___max_port_str_length__1_
call fcn.140146920
lea rax, [rbp - 0x80]
mov qword [rsp + 0x58], r15
mov r8, rdi
mov qword [rsp + 0x68], r15
sub r8, rax
mov qword [rsp + 0x70], reloc.WS2_32.dll_ntohs
add r8, rbx
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x58]
call fcn.1401433c8
lea rdx, [rsp + 0x58]
mov rcx, rsi
call fcn.14013da10
mov rdx, qword [rsp + 0x70]
cmp rdx, 0x10
jb 0x140162462
mov rcx, qword [rsp + 0x58]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14016245d
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14016245d
call fcn.140315630
int3