Function at 0x14000df60
Capabilities:
Connect socket
Initialize winsock library
Receive data
Receive data on socket
Resolve dns
Send data
Send data on socket

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x560]
sub rsp, 0x660
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x6a0], rbx
mov rax, qword [0x140043100]
xor rax, rsp
mov qword [rbp + 0x550], rax
mov r14, rdx
mov rsi, rcx
mov qword [rsp + 0x48], rcx
xor r15d, r15d
mov dword [rsp + 0x20], r15d
mov ecx, 0x202
lea rdx, [rbp - 0x50]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x14000e216
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x78], r15
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x78], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x68], xmm1
mov dword [rbp - 0x80], 1
mov dword [rbp - 0x7c], 6
lea rdx, [r14 + 0x20]
cmp qword [rdx + 0x18], 0xf
jbe 0x14000dff9
mov rdx, qword [rdx]
mov rcx, r14
cmp qword [r14 + 0x18], 0xf
jbe 0x14000e006
mov rcx, qword [r14]
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x78]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x14000e239
mov rdi, 0xffffffffffffffff
mov rbx, qword [rsp + 0x50]
test rbx, rbx
je 0x14000e080
nop
mov r8d, dword [rbx + 0xc]
mov edx, dword [rbx + 8]
mov ecx, dword [rbx + 4]
call qword [sym.imp.WS2_32.dll_socket]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14000e262
mov r8d, dword [rbx + 0x10]
mov rdx, qword [rbx + 0x20]
mov rcx, rax
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x14000e07b
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov rbx, qword [rbx + 0x28]
test rbx, rbx
je 0x14000e1b3
jmp 0x14000e030
mov rbx, qword [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp rdi, 0xffffffffffffffff
je 0x14000e1be
lea r8, [r14 + 0x40]
lea rdx, str.down
lea rcx, [rsp + 0x58]
call fcn.14000e900
mov dword [rsp + 0x20], 2
lea rdx, [rsp + 0x58]
cmp qword [rsp + 0x70], 0xf
cmova rdx, qword [rsp + 0x58]
xor r9d, r9d
mov r8d, dword [rsp + 0x68]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x14000e296
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi], r15
mov qword [rsi + 8], r15
mov qword [rsi + 0x10], r15
mov dword [rsp + 0x20], 3
nop dword [rax]
nop dword [rax + rax]
xor r9d, r9d
mov r8d, 0x400
lea rdx, [rbp + 0x150]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x14000e135
movsxd r9, eax
mov rdx, qword [rsi + 8]
lea r8, [rbp + 0x150]
mov rcx, rsi
call fcn.14000e530
jmp 0x14000e100
mov rcx, rdi
jne 0x14000e1e7
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
nop
mov rdx, qword [rsp + 0x70]
cmp rdx, 0xf
jbe 0x14000e184
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000e17f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000e1ad
call fcn.140010ac4
mov rax, rsi
mov rcx, qword [rbp + 0x550]
xor rcx, rsp
call fcn.140010750
mov rbx, qword [rsp + 0x6a0]
add rsp, 0x660
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.140016a90
int3
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
call qword [sym.imp.WS2_32.dll_WSACleanup]
lea rdx, str.Unable_to_connect_to_server
lea rcx, [rsp + 0x28]
call fcn.140006ff0
lea rdx, [0x140041298]
lea rcx, [rsp + 0x28]
call fcn.1400127b8
nop
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
lea rdx, str.recv_failed
lea rcx, [rsp + 0x28]
call fcn.140006ff0
lea rdx, [0x140041298]
lea rcx, [rsp + 0x28]
call fcn.1400127b8
nop
lea rdx, str.WSAStartup_failed
lea rcx, [rsp + 0x28]
call fcn.140006ff0
lea rdx, [0x140041298]
lea rcx, [rsp + 0x28]
call fcn.1400127b8
int3
call qword [sym.imp.WS2_32.dll_WSACleanup]
lea rdx, str.getaddrinfo_failed
lea rcx, [rsp + 0x28]
call fcn.140006ff0
lea rdx, [0x140041298]
lea rcx, [rsp + 0x28]
call fcn.1400127b8
int3
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
call qword [sym.imp.WS2_32.dll_WSACleanup]
lea rdx, str.Error_at_socket__
lea rcx, [rsp + 0x28]
call fcn.140006ff0
lea rdx, [0x140041298]
lea rcx, [rsp + 0x28]
call fcn.1400127b8
nop
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
lea rdx, str.send_failed
lea rcx, [rsp + 0x28]
call fcn.140006ff0
lea rdx, [0x140041298]
lea rcx, [rsp + 0x28]
call fcn.1400127b8
int3