Function at 0x1400021c0
Capabilities:
Connect socket
Create thread
Get socket status
Receive data
Receive data on socket
Resolve dns
Send data
Send data on socket
Terminate thread

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x5298
call fcn.1400034a0
sub rsp, rax
mov rax, qword [0x140006008]
xor rax, rsp
mov qword [rsp + 0x5280], rax
mov r15d, r9d
mov qword [rsp + 0x38], rcx
mov r14, r8
mov r13d, edx
mov r12, rcx
xor esi, esi
mov eax, dword [0x140006624]
mov ebp, 2
test eax, eax
je 0x14000223d
nop
mov eax, dword [0x140006624]
cmp eax, 5
jb 0x140002232
mov ecx, 0x493e0
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x140006624]
test eax, eax
jne 0x140002210
jmp 0x14000223d
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
xor r8d, r8d
mov ecx, ebp
lea edx, [r8 + 1]
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
test eax, eax
jns 0x140002261
lea rcx, str.____Create_socket_error._r_n
call fcn.140001060
mov ebx, esi
mov edi, ebx
test ebx, ebx
je 0x1400025b6
xor r8d, r8d
mov ecx, ebp
lea edx, [r8 + 1]
call qword [sym.imp.WS2_32.dll_socket]
test eax, eax
jns 0x14000228c
lea rcx, str.____Create_socket_error._r_n
call fcn.140001060
mov eax, esi
mov ebp, eax
test eax, eax
je 0x1400025b6
mov r8d, r13d
lea rcx, str.___Make_a_Connection_to__s:_d...._r_n
mov rdx, r12
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, r12
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov rsi, rax
test rax, rax
jne 0x1400022ef
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, r12
lea rcx, str.____Gethostbyname__s__error:_s_n
mov r8, rax
call fcn.140001060
jmp 0x140002342
mov eax, 2
mov qword [rsp + 0x48], 0
movzx ecx, r13w
mov word [rsp + 0x40], ax
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x42], ax
mov r8d, reloc.WS2_32.dll_recv
mov rax, qword [rsi + 0x18]
mov rcx, rdi
mov rdx, qword [rax]
mov eax, dword [rdx]
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x44], eax
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
jns 0x140002364
lea rcx, str.____Connect_error._r_n
call fcn.140001060
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_closesocket]
mov ecx, 0xbb8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400021fd
xor edx, edx
lea rcx, [rsp + 0x280]
mov r8d, 0x5000
call sub.VCRUNTIME140.dll_memset
xor esi, esi
nop dword [rax + rax]
xor r9d, r9d
mov qword [rsp + 0x78], rdi
xor r8d, r8d
mov dword [rsp + 0x70], 1
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x20], rsi
lea ecx, [rbx + 1]
call qword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x1400023ca
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 0x2714
je 0x140002380
lea rcx, str.____There_is_a_error...Create_a_new_connection._r_n
call fcn.140001060
jmp 0x1400021ff
lea rdx, [rsp + 0x70]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
jne 0x1400023e7
lea ecx, [rax + 5]
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140002380
xor r9d, r9d
lea rdx, [rsp + 0x280]
mov r8d, 0x5000
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_recv]
mov esi, eax
test eax, eax
jg 0x14000241a
xor esi, esi
lea rcx, str.____There_is_a_error...Create_a_new_connection._r_n
call fcn.140001060
jmp 0x1400021ff
lea rcx, str.___Connect_OK__r_n
call fcn.140001060
mov r12d, 2
nop dword [rax]
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 rbx, rax
test rax, rax
jne 0x140002489
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 0x1400024d8
movzx ecx, r15w
mov qword [rsp + 0x58], 0
mov word [rsp + 0x50], r12w
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x52], ax
mov r8d, reloc.WS2_32.dll_recv
mov rax, qword [rbx + 0x18]
lea rdx, [rsp + 0x50]
mov rcx, qword [rax]
mov eax, dword [rcx]
mov rcx, rbp
mov dword [rsp + 0x54], eax
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
jns 0x1400024fa
lea rcx, str.____Connect_error._r_n
call fcn.140001060
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_closesocket]
mov ecx, 0xbb8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140002430
xor r9d, r9d
lea rdx, [rsp + 0x280]
mov r8d, esi
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x140002527
lea rcx, str.____Send_failed._r_n
call fcn.140001060
jmp 0x140002430
xor edx, edx
lea rcx, [rsp + 0x280]
mov r8d, 0x5000
call sub.VCRUNTIME140.dll_memset
lea rcx, str.___All_Connect_OK__r_n
call fcn.140001060
lea rax, [rsp + 0x30]
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x60]
xor esi, esi
mov qword [rsp + 0x68], rbp
lea r8, [0x1400014a0]
mov dword [rsp + 0x20], esi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov r12, qword [rsp + 0x38]
test rax, rax
je 0x1400025ac
mov eax, dword [0x140006624]
mov ecx, 0x3e8
inc eax
mov dword [0x140006624], eax
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, str.___CreateThread_OK__r_n
call fcn.140001060
jmp 0x1400021ff
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rsp + 0x5280]
xor rcx, rsp
call fcn.1400027a0
add rsp, 0x5298
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret