Function at 0x140258d80
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 r12
push r14
sub rsp, 0x60
mov rax, qword [0x140398b38]
xor rax, rsp
mov qword [rsp + 0x58], rax
movsx rax, byte [rcx + 0x4ad]
xor edi, edi
mov rsi, rdx
mov rbx, rcx
lea rbp, [rax + rax*8]
lea rax, [0x1402f0cd0]
shl rbp, 5
add rbp, qword [rcx]
lea edx, [rdi + 5]
lea r8d, [rdi + 0x5d]
mov qword [rsp + 0x40], rax
call fcn.140240eb0
lea r12d, [rdi + 1]
mov rdx, rax
test rax, rax
je 0x140258e0d
xor eax, eax
lea r8, [0x1403415a0]
nop word [rax + rax]
movzx ecx, byte [rdx + rax]
inc rax
cmp cl, byte [r8 + rax - 1]
jne 0x140258e09
cmp rax, 4
jne 0x140258df0
cmp cl, byte [r8 + rax - 1]
cmove edi, r12d
mov r14d, 0x119
test rsi, rsi
jne 0x140258fbf
mov rax, qword [rbx + 8]
cmp dword [rax + 0x138], esi
je 0x140258f64
xor edx, edx
lea r8d, [rsi + 0x59]
mov rcx, rbx
call fcn.140240eb0
mov r9, rax
test rax, rax
je 0x14025914a
movzx eax, word [rbx + 0x4a0]
lea r8, str.CONNECT__s:_u_HTTP_1.1_r_nHost:__s:_u_r_nUser_agent:_lws_r_n
mov rcx, qword [rbp + 0x248]
lea edx, [r14 - 0x19]
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r9
mov dword [rsp + 0x20], eax
call fcn.14023f470
mov r9, qword [rbx + 8]
movsxd rdi, eax
cmp byte [r9], sil
je 0x140258e9d
mov rcx, qword [rbp + 0x248]
lea r8, str.Proxy_authorization:_basic__s_r_n
add rcx, rdi
lea edx, [r14 - 0x19]
call fcn.14023f470
movsxd rcx, eax
add rdi, rcx
mov rcx, qword [rbp + 0x248]
lea r8, [0x140334040]
add rcx, rdi
mov edx, 5
call fcn.14023f470
mov r8, qword [rbx + 8]
movsxd rcx, eax
add r8, 0xa8
mov rax, qword [rbx + 0x368]
add rdi, rcx
test rax, rax
je 0x140258eda
mov qword [rax], r8
jmp 0x140258eef
mov edx, 0x59
mov rcx, rbx
call fcn.1402462d0
test eax, eax
jne 0x14025914a
mov rax, qword [rbx + 8]
xor r9d, r9d
mov r8d, edi
movzx ecx, word [rax + 0x138]
mov word [rbx + 0x4a2], cx
mov rdx, qword [rbp + 0x248]
mov rcx, qword [rbx + 0x470]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x140258f30
lea rdx, str.proxy_write_failed
mov qword [rsp + 0x40], rdx
jmp 0x14025914f
mov rcx, qword [rbx]
mov edx, r12d
mov r8d, dword [rcx + 0xd08]
mov rcx, rbx
call fcn.14023fd90
movzx ecx, word [rbx + 0x4a2]
mov eax, 0x203
mov word [rbx + 0x4a4], cx
mov word [rbx + 0x478], ax
jmp 0x14025918c
cmp qword [rbx + 0x10], 0
je 0x1402590f8
movzx eax, word [rbx + 0x478]
cmp eax, r14d
je 0x140258f9a
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.140256b10
cmp eax, 0xffffffff
je 0x14025914a
cmp eax, r12d
je 0x14025918c
movzx eax, word [rbx + 0x478]
test edi, edi
jne 0x140258fe8
cmp eax, 0x13
je 0x1402590a8
mov eax, reloc.WS2_32.dll_select
mov word [rbx + 0x478], ax
jmp 0x1402590a8
lea rcx, [rbx + 0x290]
call fcn.14023ef70
test eax, eax
jne 0x140258f9a
mov edx, 0x10f
mov rcx, rsi
mov word [rbx + 0x478], dx
call fcn.140241c40
jmp 0x14025918c
cmp eax, 0x202
jne 0x1402590ff
test byte [rbx + 0x450], r12b
je 0x1402590ff
mov r8d, r12d
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.14024ff20
test eax, eax
je 0x140259022
cmp eax, r12d
je 0x14025918c
jmp 0x14025914a
mov esi, dword [rbx + 0x498]
mov rcx, rbx
movzx edi, word [rbx + 0x478]
shr esi, 0x1c
and esi, r12d
call fcn.140241350
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, [0x140240a30]
lea rax, str.lws_client_connect_4_established
mov r9d, 4
mov r8, rbx
mov qword [rsp + 0x20], rax
call fcn.14023ac90
movzx eax, word [rbx + 0x478]
mov edx, 0x10f
cmp eax, edx
je 0x140259091
mov eax, reloc.WS2_32.dll_send
mov word [rbx + 0x478], ax
mov rax, qword [rbx]
mov edx, reloc.WS2_32.dll_inet_addr
mov rcx, rbx
mov r8d, dword [rax + 0xd08]
call fcn.14023fd90
mov rax, qword [rbx]
mov edx, 8
mov rcx, rbx
mov r8d, dword [rax + 0xd08]
call fcn.14023fd90
mov rax, qword [rbx + 0x470]
lea rdx, [rsp + 0x48]
mov rcx, qword [rbx]
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x50], 0x3000300
call fcn.14023e410
test eax, eax
jns 0x1402590f2
lea rdx, str.first_service_failed
mov qword [rsp + 0x40], rdx
jmp 0x14025914f
je 0x14025918c
xor eax, eax
jmp 0x14025918f
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call fcn.14023fd90
mov rax, qword [rbx + 0x340]
movzx r8d, byte [rax + 0x22]
test r8d, r8d
je 0x14025917d
mov rcx, qword [rbx + 0x10]
mov rdx, rbx
mov r9, qword [rbx + 0x3b8]
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov rcx, qword [rcx + 8]
call fcn.140241360
test eax, eax
jns 0x14025917d
mov rdx, qword [rsp + 0x40]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], 0
jne 0x140259156
mov rcx, rbx
call fcn.14024cee0
lea r8, str.client_connect4
xor edx, edx
mov rcx, rbx
call fcn.14024cea0
xor eax, eax
jmp 0x14025918f
or dword [rbx + 0x494], r12d
mov word [rbx + 0x478], r14w
mov rax, rbx
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14025e930
mov rbx, qword [rsp + 0xa0]
add rsp, 0x60
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret