Function at 0x140001e75
Capabilities:
Connect socket

Disassembly:
push rbp
push rbx
sub rsp, 0xc8
lea rbp, [rsp + 0xc0]
mov qword [rbp + 0x20], rcx
mov dword [rbp + 0x28], edx
lea rax, [rbp - 0x50]
mov rcx, rax
call sym.get_local_ip_abi:cxx11___
lea rax, [rbp - 0x50]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::empty___const
test al, al
je 0x140001ede
lea rax, str.Failed_to_get_local_IP_address.
mov rdx, rax
mov rax, qword [sym.imp.libstdc_6.dll_std::cerr]
mov rcx, rax
call sym.std::basic_ostream_char__std::char_traits_char____std::operator____std::char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov rcx, rax
mov rax, qword [0x1400075e0]
mov rdx, rax
call sym.std::ostream::operator___std::ostream____std::ostream__
mov ebx, 0
jmp 0x140002084
lea rax, [rbp - 0x50]
mov r8, 0xffffffffffffffff
mov edx, 0x2e
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::find_last_of_char__unsigned_long_long__const
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
lea rcx, [rax + 1]
lea rax, [rbp - 0x70]
lea rdx, [rbp - 0x50]
mov r9, rcx
mov r8d, 0
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::substr_unsigned_long_long__unsigned_long_long__const
mov dword [rbp - 4], 1
jmp 0x14000202a
lea rax, [rbp - 0x30]
mov edx, dword [rbp - 4]
mov rcx, rax
call method.std::__cxx11.to_string_int_
lea rax, [rbp - 0xa0]
lea rcx, [rbp - 0x30]
lea rdx, [rbp - 0x70]
mov r8, rcx
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____std::operator_char__std::char_traits_char___std.allocator_char____std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const__std::__cxx11:
lea rax, [rbp - 0x30]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
mov word [rbp - 0x80], 2
lea rax, [rbp - 0xa0]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::c_str___const
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_inet_addr]
call rax
mov dword [rbp - 0x7c], eax
mov eax, dword [rbp + 0x28]
movzx eax, ax
mov ecx, eax
mov rax, qword [sym.imp.WS2_32.dll_htons]
call rax
mov word [rbp - 0x7e], ax
mov rax, qword [rbp + 0x20]
mov rax, qword [rax]
lea rdx, [rbp - 0x80]
mov r8d, 0x10
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_connect]
call rax
test eax, eax
sete al
test al, al
je 0x140001fff
lea rax, str.Connected_to
mov rdx, rax
mov rax, qword [sym.imp.libstdc_6.dll_std::cout]
mov rcx, rax
call sym.std::basic_ostream_char__std::char_traits_char____std::operator____std::char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov rcx, rax
lea rax, [rbp - 0xa0]
mov rdx, rax
call sym.std::basic_ostream_char__std::char_traits_char____std::operator____char__std::char_traits_char___std::allocator_char____std::basic_ostream_char__std::char_traits_char_____std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const_
mov rcx, rax
mov rax, qword [0x1400075e0]
mov rdx, rax
call sym.std::ostream::operator___std::ostream____std::ostream__
mov ebx, 0
jmp 0x140002009
call sym.random_delay__
mov ebx, 1
lea rax, [rbp - 0xa0]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
cmp ebx, 1
jne 0x140002023
add dword [rbp - 4], 1
jmp 0x14000202a
mov ebx, 0
jmp 0x140002067
cmp dword [rbp - 4], 0xfe
jle 0x140001f27
lea rax, str.Failed_to_connect_to_any_device_on_the_local_network.
mov rdx, rax
mov rax, qword [sym.imp.libstdc_6.dll_std::cerr]
mov rcx, rax
call sym.std::basic_ostream_char__std::char_traits_char____std::operator____std::char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov rcx, rax
mov rax, qword [0x1400075e0]
mov rdx, rax
call sym.std::ostream::operator___std::ostream____std::ostream__
mov ebx, 1
lea rax, [rbp - 0x70]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
cmp ebx, 1
jne 0x14000207f
mov ebx, 1
jmp 0x140002084
mov ebx, 0
lea rax, [rbp - 0x50]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
cmp ebx, 1
jmp 0x1400020e6
add rsp, 0xc8
pop rbx
pop rbp
ret