Function at 0x140001000
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x200
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
lea rcx, str.Ws2_32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
test rax, rax
jne 0x14000105d
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Failed_to_load_Ws2_32.dll
call fcn.1400012e0
mov rcx, rax
lea rdx, [0x1400014c0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov eax, 1
jmp 0x1400012b9
mov qword [rsp + 0x210], rbp
lea rdx, str.WSAStartup
mov qword [rsp + 0x218], rsi
mov rcx, rbx
mov qword [rsp + 0x220], rdi
mov qword [rsp + 0x1f8], r12
mov qword [rsp + 0x1f0], r13
mov qword [rsp + 0x1e8], r14
mov qword [rsp + 0x1e0], r15
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.WSACleanup
mov rcx, rbx
mov r12, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.socket
mov rcx, rbx
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.connect
mov rcx, rbx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.closesocket
mov rcx, rbx
mov r14, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.htons
mov rcx, rbx
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.inet_addr
mov rcx, rbx
mov r15, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r13, rax
test r12, r12
je 0x140001250
test rsi, rsi
je 0x140001250
test rdi, rdi
je 0x140001250
test r14, r14
je 0x140001250
test rbp, rbp
je 0x140001250
test r15, r15
je 0x140001250
mov ecx, 0x202
lea rdx, [rsp + 0x30]
call r12
test eax, eax
je 0x14000116d
lea rdx, str.WSAStartup_failed
jmp 0x140001257
mov r12d, 2
mov edx, 1
mov ecx, r12d
mov r8d, 6
call rdi
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400011b6
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Failed_to_create_socket
call fcn.1400012e0
mov rcx, rax
lea rdx, [0x1400014c0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
call rsi
jmp 0x140001273
mov ecx, 0x2329
mov word [rsp + 0x20], r12w
call r15
lea rcx, str.127.0.0.1
mov word [rsp + 0x22], ax
call r13
mov r8d, 0x10
mov dword [rsp + 0x24], eax
lea rdx, [rsp + 0x20]
mov rcx, rdi
call r14
cmp eax, 0xffffffff
jne 0x140001219
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Failed_to_connect_to_server
call fcn.1400012e0
mov rcx, rax
lea rdx, [0x1400014c0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, rdi
call rbp
call rsi
jmp 0x140001273
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.Connected_to_the_server_successfully_
call fcn.1400012e0
mov rcx, rax
lea rdx, [0x1400014c0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, rdi
call rbp
call rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
jmp 0x140001281
lea rdx, str.Failed_to_get_one_or_more_function_pointers
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400012e0
lea rdx, [0x1400014c0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 1
mov r14, qword [rsp + 0x1e8]
mov r13, qword [rsp + 0x1f0]
mov r12, qword [rsp + 0x1f8]
mov rdi, qword [rsp + 0x220]
mov rsi, qword [rsp + 0x218]
mov rbp, qword [rsp + 0x210]
mov r15, qword [rsp + 0x1e0]
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.140001580
add rsp, 0x200
pop rbx
ret