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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x14100f500]
xor rax, rsp
mov qword [rsp + 0x58], rax
movsx rax, byte [rcx + 0x4ed]
mov rbp, rdx
xor r14d, r14d
mov edx, 5
mov r8d, 0x5d
mov rbx, rcx
mov edi, r14d
lea rsi, [rax + rax*2]
lea rax, [0x140ec18ff]
shl rsi, 7
add rsi, qword [rcx]
mov qword [rsp + 0x40], rax
call fcn.140ca7920
mov rdx, rax
mov r15d, 1
test rax, rax
je 0x140cc911f
mov eax, r14d
lea r8, [0x140e77c98]
movzx ecx, byte [rdx + rax]
inc rax
cmp cl, byte [r8 + rax - 1]
jne 0x140cc911b
cmp rax, 4
jne 0x140cc9102
cmp cl, byte [r8 + rax - 1]
cmove edi, r15d
test rbp, rbp
jne 0x140cc927f
mov rax, qword [rbx + 8]
cmp dword [rax + 0x138], r14d
je 0x140cc9272
xor edx, edx
mov r8d, 0x59
mov rcx, rbx
call fcn.140ca7920
mov r9, rax
test rax, rax
je 0x140cc941a
movzx eax, word [rbx + 0x4e0]
lea r8, str.CONNECT__s:_u_HTTP_1.1_r_nHost:__s:_u_r_nUser_agent:_lws_r_n
mov rcx, qword [rsi + 0x308]
mov edx, 0x100
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r9
mov dword [rsp + 0x20], eax
call fcn.140ca62f0
mov r9, qword [rbx + 8]
movsxd rdi, eax
cmp byte [r9], r14b
je 0x140cc91ae
mov rcx, qword [rsi + 0x308]
lea r8, str.Proxy_authorization:_basic__s_r_n
add rcx, rdi
mov edx, 0x100
call fcn.140ca62f0
movsxd rcx, eax
add rdi, rcx
mov rcx, qword [rsi + 0x308]
lea r8, [0x140ec2824]
add rcx, rdi
mov edx, 5
call fcn.140ca62f0
mov r8, qword [rbx + 8]
movsxd rcx, eax
add r8, 0xa8
mov rax, qword [rbx + 0x3d0]
add rdi, rcx
test rax, rax
je 0x140cc91eb
mov qword [rax], r8
jmp 0x140cc9200
mov edx, 0x59
mov rcx, rbx
call fcn.140cb0230
test eax, eax
jne 0x140cc941a
mov rax, qword [rbx + 8]
xor r9d, r9d
mov r8d, edi
movzx ecx, word [rax + 0x138]
mov word [rbx + 0x4e2], cx
mov rdx, qword [rsi + 0x308]
mov rcx, qword [rbx + 0x4b0]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x140cc9241
lea rdx, str.proxy_write_failed
mov qword [rsp + 0x40], rdx
jmp 0x140cc941f
mov r8, qword [rbx]
mov edx, r15d
mov rcx, rbx
mov r8d, dword [r8 + 0x898]
call fcn.140cb9d70
movzx ecx, word [rbx + 0x4e2]
mov word [rbx + 0x4e4], cx
mov word [rbx + 0x4b8], 0x203
jmp 0x140cc945c
cmp qword [rbx + 0x10], r14
jne 0x140cc92a5
xor eax, eax
jmp 0x140cc945f
lea rcx, [rbx + 0x2e0]
call fcn.140cb9a90
test eax, eax
jne 0x140cc92a5
mov rcx, rbp
mov word [rbx + 0x4b8], 0x10f
call fcn.140cad060
jmp 0x140cc945c
movzx eax, word [rbx + 0x4b8]
test edi, edi
jne 0x140cc92c7
cmp eax, 0x13
je 0x140cc9384
mov word [rbx + 0x4b8], 0x12
jmp 0x140cc9384
cmp eax, 0x202
jne 0x140cc93d7
test byte [rbx + 0x490], r15b
je 0x140cc93d7
mov r8d, r15d
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.140cb8750
test eax, eax
je 0x140cc9301
cmp eax, r15d
jne 0x140cc941a
jmp 0x140cc945c
mov esi, dword [rbx + 0x4d8]
mov rcx, rbx
movzx edi, word [rbx + 0x4b8]
shr esi, 0x1c
and esi, r15d
call fcn.140ca7dc0
mov rcx, rax
mov dword [rsp + 0x38], esi
lea rax, str.tls_established_st_0x_x__client_h2_alpn__d
mov dword [rsp + 0x30], edi
mov qword [rsp + 0x28], rax
lea rdx, [0x140ca7400]
lea rax, str.lws_client_connect_4_established
mov r9d, 4
mov r8, rbx
mov qword [rsp + 0x20], rax
call fcn.140ca8530
movzx eax, word [rbx + 0x4b8]
mov edx, 0x10f
cmp eax, edx
je 0x140cc936d
mov word [rbx + 0x4b8], 0x13
mov r8, qword [rbx]
mov edx, reloc.WS2_32.dll_inet_addr
mov rcx, rbx
mov r8d, dword [r8 + 0x898]
call fcn.140cb9d70
mov r8, qword [rbx]
mov edx, 8
mov rcx, rbx
mov r8d, dword [r8 + 0x898]
call fcn.140cb9d70
mov rax, qword [rbx + 0x4b0]
lea rdx, [rsp + 0x48]
mov rcx, qword [rbx]
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x50], 0x3000300
call fcn.140cabdd0
test eax, eax
jns 0x140cc93ce
lea rdx, str.first_service_failed
mov qword [rsp + 0x40], rdx
jmp 0x140cc941f
cmovne rbx, r14
jmp 0x140cc945c
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call fcn.140cb9d70
mov rax, qword [rbx + 0x3a8]
movzx r8d, byte [rax + 0x22]
test r8d, r8d
je 0x140cc944c
mov rcx, qword [rbx + 0x10]
mov rdx, rbx
mov r9, qword [rbx + 0x428]
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
mov rcx, qword [rcx + 8]
call fcn.140ca7dd0
test eax, eax
jns 0x140cc944c
mov rdx, qword [rsp + 0x40]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], r14b
jne 0x140cc9426
mov rcx, rbx
call fcn.140caefc0
lea r8, str.client_connect4
xor edx, edx
mov rcx, rbx
call fcn.140caef80
xor eax, eax
jmp 0x140cc945f
or dword [rbx + 0x4d4], r15d
mov word [rbx + 0x4b8], 0x119
mov rax, rbx
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140cd9320
mov rbx, qword [rsp + 0xa0]
add rsp, 0x60
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret