Function at 0x140001e90
Capabilities:
Connect socket
Create thread
Resolve dns
Send data
Send data on socket
Terminate thread

Disassembly:
mov r11, rsp
push rbx
push r14
push r15
sub rsp, 0x4a0
mov rax, qword [0x140006008]
xor rax, rsp
mov qword [rsp + 0x470], rax
lea eax, [rcx - 1]
mov r15d, r8d
mov r14, rdx
mov ebx, ecx
cmp eax, 0xfffe
ja 0x1400021a6
lea eax, [r8 - 1]
cmp eax, 0xfffe
ja 0x140002195
mov qword [r11 - 0x30], r12
lea rcx, [rsp + 0x70]
mov qword [r11 - 0x38], r13
xor edx, edx
mov r8d, 0x400
mov qword [r11 + 0x20], rbp
call sub.VCRUNTIME140.dll_memset
xor r8d, r8d
mov r13d, 2
mov ecx, r13d
lea edx, [r8 + 1]
call qword [sym.imp.WS2_32.dll_socket]
xor r12d, r12d
test eax, eax
jns 0x140001f25
lea rcx, str.____Create_socket_error._r_n
call fcn.140001060
mov eax, r12d
mov ebp, r12d
jmp 0x140001f27
mov ebp, eax
mov edx, ebx
mov ecx, eax
call fcn.140002690
test eax, eax
jne 0x140001f72
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_closesocket]
mov rbp, qword [rsp + 0x4d8]
mov r12, qword [rsp + 0x488]
mov r13, qword [rsp + 0x480]
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.1400027a0
add rsp, 0x4a0
pop r15
pop r14
pop rbx
ret
mov qword [rsp + 0x498], rsi
mov qword [rsp + 0x490], rdi
mov dword [rsp + 0x30], reloc.WS2_32.dll_recv
nop word [rax + rax]
lea rcx, str.___Waiting_for_Client_......_r_n
call fcn.140001060
lea r8, [rsp + 0x30]
mov rcx, rbp
lea rdx, [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_accept]
movzx ecx, word [rsp + 0x3a]
mov rsi, rax
call qword [sym.imp.WS2_32.dll_ntohs]
mov ecx, dword [rsp + 0x3c]
movzx ebx, ax
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov r8d, ebx
lea rcx, str.___Accept_a_Client_from__s:_d_......_r_n
mov rdx, rax
call fcn.140001060
xor r8d, r8d
mov ecx, r13d
lea edx, [r8 + 1]
call qword [sym.imp.WS2_32.dll_socket]
test eax, eax
jns 0x140001fff
lea rcx, str.____Create_socket_error._r_n
call fcn.140001060
mov eax, r12d
mov ebx, eax
test eax, eax
jne 0x140002010
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x140001f90
mov r8d, r15d
lea rcx, str.___Make_a_Connection_to__s:_d_......_r_n
mov rdx, r14
call fcn.140001060
mov ecx, 1
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, r14
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov rdi, rax
test rax, rax
jne 0x140002069
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror]
mov rdx, r14
lea rcx, str.____Gethostbyname__s__error:_s_n
mov r8, rax
call fcn.140001060
jmp 0x1400020b4
movzx ecx, r15w
mov qword [rsp + 0x50], r12
mov word [rsp + 0x48], r13w
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x4a], ax
mov r8d, reloc.WS2_32.dll_recv
mov rax, qword [rdi + 0x18]
mov rcx, rbx
mov rdx, qword [rax]
mov eax, dword [rdx]
lea rdx, [rsp + 0x48]
mov dword [rsp + 0x4c], eax
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
jns 0x14000211a
lea rcx, str.____Connect_error._r_n
call fcn.140001060
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
mov r9d, r15d
lea rdx, str._SERVER_connection_to__s:_d_error_r_n
mov r8, r14
lea rcx, [rsp + 0x70]
call fcn.1400010c0
lea rax, [rsp + 0x70]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], r12b
jne 0x1400020e0
xor r9d, r9d
lea rdx, [rsp + 0x70]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_send]
xor edx, edx
lea rcx, [rsp + 0x70]
mov r8d, 0x400
call sub.VCRUNTIME140.dll_memset
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x140001f90
lea rcx, str.___Connect_OK__r_n
call fcn.140001060
lea rax, [rsp + 0x34]
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x58]
lea r8, [0x1400014a0]
mov dword [rsp + 0x20], r12d
xor edx, edx
mov qword [rsp + 0x60], rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x140002176
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, str.___CreateThread_OK__r_n_n
call fcn.140001060
jmp 0x140001f90
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rdi, qword [rsp + 0x490]
mov rsi, qword [rsp + 0x498]
jmp 0x140001f3d
lea rcx, str.____TransmitPort_invalid._r_n
call fcn.140001060
jmp 0x140001f55
lea rcx, str.____ConnectPort_invalid._r_n
call fcn.140001060
jmp 0x140001f55