Function at 0x1401ae910
Capabilities:
Connect socket
Receive data
Receive data on socket
Resolve dns
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x588]
sub rsp, 0x660
mov qword [rbp + 0x40], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov r12, rdx
mov rbx, rcx
xor r8d, r8d
lea edx, [r8 + 1]
lea ecx, [rdx + 1]
call qword [sym.imp.WS2_32.dll_socket]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x1401ae96a
call qword [sym.imp.WS2_32.dll_WSACleanup]
xor al, al
jmp 0x1401aedc7
mov qword [rsp + 0x48], send
xor r13d, r13d
mov qword [rsp + 0x40], r13
mov byte [rsp + 0x30], r13b
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.140004ed0
nop
lea r9d, [r13 + 3]
xor r8d, r8d
lea rdx, [0x1402261bc]
lea rcx, [rsp + 0x30]
call fcn.140005210
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x1401aeda1
add r15, 3
mov rdi, qword [rsp + 0x40]
cmp r15, rdi
jae 0x1401aeda1
sub rdi, r15
cmp rdi, 1
jb 0x1401aeda1
lea rax, [rsp + 0x30]
cmp qword [rsp + 0x48], 0x10
cmovae rax, qword [rsp + 0x30]
lea rsi, [rax + r15]
nop
test rdi, rdi
je 0x1401aeda1
mov r8, rdi
mov edx, 0x2f
mov rcx, rsi
call fcn.14018143c
mov rbx, rax
test rax, rax
je 0x1401aeda1
cmp byte [rax], 0x2f
je 0x1401aea29
sub rsi, rax
dec rsi
add rdi, rsi
lea rsi, [rax + 1]
jmp 0x1401ae9f0
lea rax, [rsp + 0x30]
cmp qword [rsp + 0x48], 0x10
cmovae rax, qword [rsp + 0x30]
sub rbx, rax
cmp rbx, 0xffffffffffffffff
je 0x1401aeda1
mov r9, rbx
sub r9, r15
mov r8, r15
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.140003980
nop
or r9, 0xffffffffffffffff
mov r8, rbx
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x30]
call fcn.140003980
nop
lea rcx, [rsp + 0x50]
cmp qword [rsp + 0x68], 0x10
cmovae rcx, qword [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov rbx, rax
test rax, rax
je 0x1401aeace
mov eax, 2
mov word [rbp - 0x70], ax
lea ecx, [rax + 0x4e]
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp - 0x6e], ax
mov rax, qword [rbx + 0x18]
mov rcx, qword [rax]
mov eax, dword [rcx]
mov dword [rbp - 0x6c], eax
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rbp - 0x70]
mov rcx, r14
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
jns 0x1401aeae4
mov rcx, r14
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
xor bl, bl
jmp 0x1401aed5a
lea r8, [rbp - 0x40]
lea rcx, [rbp]
call fcn.140006230
nop
lea r8, str._HTTP_1.1_r_nHost:
mov rdx, rax
lea rcx, [rbp - 0x20]
call fcn.1400062f0
nop
lea r8, [rsp + 0x50]
mov rdx, rax
lea rcx, [rbp + 0x20]
call fcn.140006340
nop
lea r8, str._r_nConnection:_close_r_n_r_n
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.1400062f0
nop
cmp qword [rbp + 0x38], 0x10
jb 0x1401aeb3d
mov rcx, qword [rbp + 0x20]
call fcn.140007b08
mov qword [rbp + 0x38], send
mov qword [rbp + 0x30], r13
mov byte [rbp + 0x20], 0
cmp qword [rbp - 8], 0x10
jb 0x1401aeb5d
mov rcx, qword [rbp - 0x20]
call fcn.140007b08
mov qword [rbp - 8], send
mov qword [rbp - 0x10], r13
mov byte [rbp - 0x20], 0
cmp qword [rbp + 0x18], 0x10
jb 0x1401aeb7d
mov rcx, qword [rbp]
call fcn.140007b08
mov qword [rbp + 0x18], send
mov qword [rbp + 0x10], r13
mov byte [rbp], 0
lea rdx, [rsp + 0x70]
cmp qword [rbp - 0x78], 0x10
cmovae rdx, qword [rsp + 0x70]
xor r9d, r9d
mov r8d, dword [rbp - 0x80]
mov rcx, r14
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x1401aebc7
mov rcx, r14
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
xor bl, bl
jmp 0x1401aed38
mov rdx, r12
lea rcx, [rbp + 0x50]
call fcn.140003d60
nop
mov rax, qword [rbp + 0x50]
movsxd rcx, dword [rax + 4]
test byte [rbp + rcx + 0x60], 6
mov rcx, r14
je 0x1401aebf9
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
xor bl, bl
jmp 0x1401aed11
xor dil, dil
xor r9d, r9d
mov r8d, 0x400
lea rdx, [rbp + 0x160]
call qword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
test eax, eax
jle 0x1401aeccd
nop dword [rax]
movsxd r8, ebx
lea rdx, [rbp + 0x160]
test dil, dil
jne 0x1401aeca1
mov qword [rbp - 0x48], send
mov qword [rbp - 0x50], r13
mov byte [rbp - 0x60], dil
lea rcx, [rbp - 0x60]
call fcn.140005000
nop
mov r9d, 4
xor r8d, r8d
lea rdx, str._r_n_r_n
lea rcx, [rbp - 0x60]
call fcn.140005210
cmp rax, 0xffffffffffffffff
je 0x1401aec8f
mov dil, 1
mov ecx, 0xfffffffc
sub ecx, eax
add ebx, ecx
test ebx, ebx
jle 0x1401aec8f
movsxd r8, ebx
lea rdx, [rbp + 0x164]
add rdx, rax
lea rcx, [rbp + 0x50]
call fcn.140003c30
nop
cmp qword [rbp - 0x48], 0x10
jb 0x1401aecaa
mov rcx, qword [rbp - 0x60]
call fcn.140007b08
jmp 0x1401aecaa
lea rcx, [rbp + 0x50]
call fcn.140003c30
xor r9d, r9d
mov r8d, 0x400
lea rdx, [rbp + 0x160]
mov rcx, r14
call qword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
test eax, eax
jg 0x1401aec20
lea rcx, [rbp + 0x58]
call fcn.1400055a0
test rax, rax
jne 0x1401aed00
mov rax, qword [rbp + 0x50]
movsxd rcx, dword [rax + 4]
lea rcx, [rbp + rcx + 0x50]
mov edx, dword [rcx + 0x10]
or edx, 2
cmp qword [rcx + 0x48], 0
jne 0x1401aecf8
or edx, 4
xor r8d, r8d
call fcn.140003480
mov rcx, r14
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov bl, 1
lea rcx, [rbp + 0xf8]
call fcn.140003e70
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0xf8], rax
lea rcx, [rbp + 0xf8]
call fcn.1401a0ca8
nop
cmp qword [rbp - 0x78], 0x10
jb 0x1401aed49
mov rcx, qword [rsp + 0x70]
call fcn.140007b08
mov qword [rbp - 0x78], send
mov qword [rbp - 0x80], r13
mov byte [rsp + 0x70], 0
cmp qword [rbp - 0x28], 0x10
jb 0x1401aed6a
mov rcx, qword [rbp - 0x40]
call fcn.140007b08
mov qword [rbp - 0x28], send
mov qword [rbp - 0x30], r13
mov byte [rbp - 0x40], 0
cmp qword [rsp + 0x68], 0x10
jb 0x1401aed8c
mov rcx, qword [rsp + 0x50]
call fcn.140007b08
mov qword [rsp + 0x68], send
mov qword [rsp + 0x60], r13
mov byte [rsp + 0x50], 0
jmp 0x1401aedb2
mov rcx, r14
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
xor bl, bl
cmp qword [rsp + 0x48], 0x10
jb 0x1401aedc4
mov rcx, qword [rsp + 0x30]
call fcn.140007b08
movzx eax, bl
lea r11, [rsp + 0x660]
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