Function at 0x140002280
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x460]
sub rsp, 0x560
mov rax, qword [0x140041020]
xor rax, rsp
mov qword [rbp + 0x450], rax
mov esi, r8d
mov rbx, rdx
mov rdi, rcx
xor r15d, r15d
mov dword [rsp + 0x20], r15d
xor edx, edx
mov r8d, 0xe8
lea rcx, [rsp + 0x60]
call fcn.14000d040
lea rcx, [rsp + 0x60]
call fcn.1400044f0
nop
lea rdx, str.CONNECT
lea rcx, [rsp + 0x60]
call fcn.140007420
mov rdx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x1400022f8
mov rdx, qword [rbx]
lea r14, [rbx + 0x10]
mov r8, qword [r14]
mov rcx, rax
call fcn.140008400
lea rdx, [0x14003b72c]
mov rcx, rax
call fcn.140007420
mov rcx, rax
mov edx, esi
call fcn.140004900
mov rcx, rax
lea rdx, str._HTTP_1.1_r_n
call fcn.140007420
lea rdx, str.Host:
lea rcx, [rsp + 0x60]
call fcn.140007420
cmp qword [rbx + 0x18], 0x10
jb 0x14000234a
mov rbx, qword [rbx]
mov r8, qword [r14]
mov rdx, rbx
mov rcx, rax
call fcn.140008400
lea rdx, [0x14003b72c]
mov rcx, rax
call fcn.140007420
mov rcx, rax
mov edx, esi
call fcn.140004900
mov rcx, rax
lea rdx, [0x14003b73c]
call fcn.140007420
lea rdx, str.Proxy_Connection:_Keep_Alive_r_n_r_n
lea rcx, [rsp + 0x60]
call fcn.140007420
nop
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x50], r15
mov r9d, recv
mov qword [rsp + 0x58], r9
mov byte [rsp + 0x40], 0
mov dword [rsp + 0x20], 2
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov rcx, qword [rbp - 0x28]
mov eax, ecx
and al, 0x22
cmp al, 2
je 0x1400023e9
mov rax, qword [rbp - 0x58]
mov r8, qword [rax]
test r8, r8
je 0x1400023e9
mov rax, qword [rbp - 0x78]
mov rdx, qword [rax]
cmp r8, qword [rbp - 0x30]
cmovb r8, qword [rbp - 0x30]
sub r8, rdx
jmp 0x14000241a
test cl, 4
jne 0x140002410
mov rax, qword [rbp - 0x60]
mov rcx, qword [rax]
test rcx, rcx
je 0x140002410
mov rax, qword [rbp - 0x80]
mov rdx, qword [rax]
mov rax, qword [rbp - 0x48]
movsxd r8, dword [rax]
sub r8, rdx
add r8, rcx
jmp 0x14000241a
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x28]
test rdx, rdx
je 0x14000242e
lea rcx, [rsp + 0x40]
call fcn.1400060c0
mov r9, qword [rsp + 0x58]
lea rdx, [rsp + 0x40]
cmp r9, 0x10
cmovae rdx, qword [rsp + 0x40]
xor r9d, r9d
mov r8d, dword [rsp + 0x50]
mov rcx, qword [rdi + 0x28]
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x140002558
lea rdx, str.Failed_to_send_CONNECT_request
lea rcx, [0x1400425f0]
call fcn.140007420
mov rcx, rax
call fcn.140007690
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x1400024b1
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400024ac
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000282c
call fcn.14000a960
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x58], socket
mov byte [rsp + 0x40], 0
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rsp + rcx + 0x60], rax
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rsp + rcx + 0x5c], edx
lea rcx, [rsp + 0x68]
call fcn.1400041e0
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x60], rax
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rsp + rcx + 0x5c], edx
lea rax, vtable.std::ios_base.0
mov qword [rbp - 0x18], rax
lea rcx, [rbp - 0x18]
call fcn.14000a0d8
nop
xor al, al
mov rcx, qword [rbp + 0x450]
xor rcx, rsp
call fcn.14000a940
mov rbx, qword [rsp + 0x5a8]
add rsp, 0x560
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
xor r9d, r9d
mov r8d, 0x3ff
lea rdx, [rbp + 0x50]
mov rcx, qword [rdi + 0x28]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x140002654
lea rdx, str.Failed_to_receive_CONNECT_response
lea rcx, [0x1400425f0]
call fcn.140007420
mov rcx, rax
call fcn.140007690
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x1400025d0
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400025cb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000282c
call fcn.14000a960
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x58], socket
mov byte [rsp + 0x40], 0
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rsp + rcx + 0x60], rax
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rsp + rcx + 0x5c], edx
lea rcx, [rsp + 0x68]
call fcn.1400041e0
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x60], rax
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rsp + rcx + 0x5c], edx
lea rax, vtable.std::ios_base.0
mov qword [rbp - 0x18], rax
lea rcx, [rbp - 0x18]
call fcn.14000a0d8
nop
jmp 0x140002530
cdqe
cmp rax, 0x400
jae 0x140002832
mov byte [rbp + rax + 0x50], 0
lea rdx, str.200_Connection_established
lea rcx, [rbp + 0x50]
call fcn.14000c6bc
test rax, rax
jne 0x140002769
lea rdx, str.CONNECT_request_failed:
lea rcx, [0x1400425f0]
call fcn.140007420
mov rcx, rax
lea rdx, [rbp + 0x50]
call fcn.140007420
mov rcx, rax
call fcn.140007690
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x1400026e5
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400026e0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000282c
call fcn.14000a960
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x58], socket
mov byte [rsp + 0x40], 0
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rsp + rcx + 0x60], rax
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rsp + rcx + 0x5c], edx
lea rcx, [rsp + 0x68]
call fcn.1400041e0
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x60], rax
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rsp + rcx + 0x5c], edx
lea rax, vtable.std::ios_base.0
mov qword [rbp - 0x18], rax
lea rcx, [rbp - 0x18]
call fcn.14000a0d8
nop
jmp 0x140002530
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x1400027a6
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400027a1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000282c
call fcn.14000a960
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x58], socket
mov byte [rsp + 0x40], 0
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rsp + rcx + 0x60], rax
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rsp + rcx + 0x5c], edx
lea rcx, [rsp + 0x68]
call fcn.1400041e0
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x60], rax
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rsp + rcx + 0x5c], edx
lea rax, vtable.std::ios_base.0
mov qword [rbp - 0x18], rax
lea rcx, [rbp - 0x18]
call fcn.14000a0d8
nop
mov al, 1
jmp 0x140002532
call fcn.140013530
nop
call fcn.14000aa70
int3