Function at 0x1400a97f0
Capabilities:
Check http status code

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0x88
mov r13, qword [rcx + 0x18]
mov rbx, rcx
mov r14, qword [rcx + 0x1b0]
mov r12d, r9d
mov dword [rbp - 0x21], 0
mov rcx, r13
movsxd r15, edx
mov rdi, qword [r13 + 0x6d0]
mov qword [rbp - 0x39], r14
lea rax, [r15*8 + 0x1d0]
add rax, r13
mov qword [rbp + 7], rax
mov rsi, qword [rax]
mov qword [rbp - 0x31], rsi
call fcn.1400a93f0
test al, al
jne 0x1400aa2d7
mov byte [r13 + 0x3a8], al
nop dword [rax]
cmp dword [rdi + 0x290], 0
jne 0x1400a9a94
mov r8, qword [rbp + 0x77]
lea rdx, str.Establish_HTTP_proxy_tunnel_to__s:_d
xor r15d, r15d
lea r14, [rdi + 0x250]
mov r9d, r12d
mov qword [rbp - 0x19], r15
mov rcx, rbx
mov qword [rbp - 0x29], r15
call fcn.1400a0140
mov rcx, qword [rbx + 0x198]
call qword [str.D_r_]
mov edx, 0x100000
mov qword [rbx + 0x198], r15
mov rcx, r14
call fcn.140094b30
mov r8, qword [rbp + 0x77]
lea rax, [rbp - 0x29]
mov qword [rsp + 0x28], rax
mov r9d, r12d
lea rax, [rbp - 0x19]
mov rdx, r13
mov rcx, rbx
mov qword [rsp + 0x20], rax
call fcn.1400a96e0
test eax, eax
jne 0x1400aa2d9
mov r15, qword [rbp - 0x19]
lea r8, str.CONNECT
mov byte [rsp + 0x28], 1
xor r9d, r9d
mov rdx, r13
mov qword [rsp + 0x20], r15
mov rcx, rbx
call fcn.1400b0c10
mov r12, qword [rbp - 0x29]
mov esi, eax
test eax, eax
jne 0x1400a9a64
cmp byte [r13 + 0x134], 1
lea rax, [0x140123524]
lea r9, [0x140123534]
mov r8, r15
cmove r9, rax
lea rcx, [0x14012c881]
mov rax, qword [rbx + 0x1228]
lea rdx, str.CONNECT__s_HTTP__s_r_n_s_s
test rax, rax
cmovne rcx, rax
test r12, r12
mov qword [rsp + 0x28], rcx
lea rax, [0x14012c882]
cmovne rax, r12
mov rcx, r14
mov qword [rsp + 0x20], rax
call fcn.140094bc0
mov esi, eax
test eax, eax
jne 0x1400a9a55
lea r9d, [rax + 0xa]
mov rdx, r13
lea r8, [0x140123588]
mov rcx, rbx
call fcn.1400acae0
test rax, rax
jne 0x1400a99c6
mov r8, qword [rbx + 0x858]
test r8, r8
je 0x1400a99c6
lea rdx, str.User_Agent:__s_r_n
mov rcx, r14
call fcn.140094bc0
mov esi, eax
test eax, eax
jne 0x1400a9a55
mov r9d, 0x10
lea r8, [0x1401235b8]
mov rdx, r13
mov rcx, rbx
call fcn.1400acae0
test rax, rax
jne 0x1400a99fc
lea r8d, [rax + 0x1e]
mov rcx, r14
lea rdx, [0x1401235d8]
call fcn.140094b80
mov esi, eax
test eax, eax
jne 0x1400a9a55
mov r8, r14
mov dl, 1
mov rcx, rbx
call fcn.1400acfb0
mov esi, eax
test eax, eax
jne 0x1400a9a55
lea r8d, [rax + 2]
mov rcx, r14
lea rdx, [0x140123584]
call fcn.140094b80
mov esi, eax
test eax, eax
jne 0x1400a9a55
mov eax, dword [rbp + 0x6f]
lea r8, [rbx + 0x12d0]
xor r9d, r9d
mov dword [rsp + 0x20], eax
mov rdx, rbx
mov rcx, r14
call fcn.1400acb80
mov qword [rdi + 0x278], 0
mov esi, eax
test eax, eax
je 0x1400a9a64
lea rdx, str.Failed_sending_CONNECT_to_proxy
mov rcx, rbx
call fcn.1400a01f0
mov rcx, r12
call qword [str.D_r_]
mov rcx, r15
call qword [str.D_r_]
test esi, esi
jne 0x1400aa1eb
mov rsi, qword [rbp - 0x31]
mov r14, qword [rbp - 0x39]
mov r15d, dword [rbp + 0x6f]
mov dword [rdi + 0x290], 1
mov r8b, 1
xor edx, edx
mov rcx, rbx
call fcn.1400a1e60
test rax, rax
jle 0x1400aa2f4
mov edx, r15d
mov rcx, r13
call fcn.1400a28c0
test al, al
jne 0x1400a9ac7
cmp dword [r14 + 0x200], 0
je 0x1400aa2d7
cmp dword [r14 + 0x200], 1
jne 0x1400a9b27
mov r9, qword [rdi + 0x270]
test r9, r9
jne 0x1400aa19e
mov rax, qword [rbx + 0xc80]
lea r8, [rbp - 1]
mov qword [rbx + 0x1a8], rax
mov rcx, rbx
mov edx, dword [rbx + 0x6e0]
call fcn.1400a7db0
test eax, eax
jne 0x1400aa2d9
mov rax, qword [rbp - 1]
mov qword [rdi + 0x270], rax
mov r9, rax
test rax, rax
jne 0x1400aa19e
mov dword [r14 + 0x200], eax
xor r12d, r12d
cmp dword [rdi + 0x280], r12d
je 0x1400a9bd0
nop word [rax + rax]
lea rax, [rbp - 0x11]
mov r9d, 1
lea r8, [rbp + 0x67]
mov qword [rsp + 0x20], rax
mov rdx, rsi
mov rcx, rbx
call fcn.1400a0560
mov esi, eax
cmp eax, 0x51
je 0x1400aa2d7
mov rcx, rbx
call fcn.1400b1cf0
test eax, eax
jne 0x1400aa2ed
test esi, esi
jne 0x1400a9bc1
cmp qword [rbp - 0x11], r12
jle 0x1400aa0ed
cmp dword [rdi + 0x280], 2
jne 0x1400a9ce6
mov rax, qword [rdi + 0x288]
test rax, rax
je 0x1400a9ca0
dec rax
mov qword [rdi + 0x288], rax
test rax, rax
jg 0x1400aa0d7
mov dword [rdi + 0x290], 2
mov dword [rdi + 0x280], r12d
mov r15d, dword [rbp + 0x6f]
mov r14, qword [rbp - 0x39]
mov rcx, rbx
call fcn.1400b1cf0
test eax, eax
jne 0x1400aa2ed
test r12d, r12d
jne 0x1400aa20b
mov eax, dword [rbx + 0x12b4]
sub eax, 0xc8
cmp eax, 0x64
jb 0x1400a9c19
mov rcx, rbx
call fcn.1400aff40
test eax, eax
jne 0x1400aa2d9
cmp byte [r13 + 0x3aa], al
je 0x1400a9c19
mov byte [rdi + 0x295], 1
cmp byte [rdi + 0x295], 0
je 0x1400aa152
cmp qword [rbx + 0x198], 0
je 0x1400aa181
mov rsi, qword [rbp + 7]
mov rdx, r13
mov rcx, rbx
mov r8, qword [rsi]
call fcn.1400a2680
mov qword [rsi], 0xffffffffffffffff
mov eax, dword [rbx + 0x12b4]
sub eax, 0xc8
cmp eax, 0x64
jb 0x1400aa27b
cmp byte [rdi + 0x295], 0
je 0x1400aa215
cmp qword [rbx + 0x198], 0
je 0x1400aa215
lea rdx, str.Connect_me_again_please
mov byte [r13 + 0x3a8], 1
mov rcx, rbx
call fcn.1400a0140
mov rcx, rbx
call fcn.1400a9480
jmp 0x1400aa23a
xor esi, esi
lea rax, [rbp - 9]
lea r9, [rbp - 0x29]
mov qword [rbp - 0x29], rsi
lea rdx, [rbp + 0x67]
mov qword [rsp + 0x20], rax
mov rcx, rbx
lea r8d, [rsi + 1]
call fcn.1400c6540
cmp eax, 0xffffffff
jne 0x1400aa0d7
lea rdx, [0x140123678]
mov rcx, rbx
call fcn.1400a0140
mov dword [rdi + 0x280], esi
jmp 0x1400aa0cd
mov r8d, 1
lea rdx, [rbp + 0x67]
lea rcx, [rdi + 0x230]
call fcn.140094b80
test eax, eax
jne 0x1400aa1fc
cmp byte [rbp + 0x67], 0xa
jne 0x1400aa0d7
inc qword [rdi + 0x278]
lea rcx, [rdi + 0x230]
call fcn.140094cd0
lea rcx, [rdi + 0x230]
mov rsi, rax
call fcn.140094cf0
mov r9, rax
mov r8, rsi
mov edx, 1
mov rcx, rbx
mov r14, rax
call fcn.1400a06a0
cmp byte [rbx + 0xa88], r12b
jne 0x1400a9d87
xor edx, edx
mov ecx, 0xa
cmp byte [rbx + 0xa72], dl
mov eax, 0xe
mov r9, r14
mov r8, rsi
setne dl
cmp qword [rdi + 0x278], 1
cmove ecx, eax
or edx, ecx
mov rcx, rbx
call fcn.1400a02e0
test eax, eax
jne 0x1400aa2d9
movsxd rax, r14d
add qword [rbx + 0x12c8], rax
movzx eax, byte [rsi]
cmp al, 0xd
je 0x1400aa005
cmp al, 0xa
je 0x1400aa005
mov r8d, 0x11
lea rdx, [0x140123710]
mov rcx, rsi
call fcn.1400a5f90
test eax, eax
je 0x1400a9dcd
mov r14d, dword [rbx + 0x158]
cmp r14d, 0x191
je 0x1400a9df6
mov r8d, 0x13
lea rdx, [0x140123728]
mov rcx, rsi
call fcn.1400a5f90
test eax, eax
je 0x1400a9e3c
mov r14d, dword [rbx + 0x158]
cmp r14d, 0x197
jne 0x1400a9e3c
mov rcx, rsi
call fcn.1400ac9d0
mov rsi, rax
test rax, rax
je 0x1400aa1f2
cmp r14d, 0x197
mov r8, rax
mov rcx, rbx
sete dl
call fcn.1400afc20
mov rcx, rsi
mov r14d, eax
call qword [str.D_r_]
test r14d, r14d
je 0x1400a9ff4
mov eax, r14d
jmp 0x1400aa2d9
mov r8d, 0xf
lea rdx, [0x140123740]
mov rcx, rsi
call fcn.1400a5f90
test eax, eax
je 0x1400a9eaf
mov r8d, dword [rbx + 0x158]
lea eax, [r8 - 0xc8]
cmp eax, 0x64
jae 0x1400a9e88
lea rdx, str.Ignoring_Content_Length_in_CONNECT__03d_response
mov rcx, rbx
call fcn.1400a0140
lea rcx, [rdi + 0x230]
call fcn.140094c10
jmp 0x1400aa0d7
xor edx, edx
lea r9, [rdi + 0x288]
lea rcx, [rsi + 0xf]
lea r8d, [rdx + 0xa]
call fcn.1400b7b90
lea rcx, [rdi + 0x230]
call fcn.140094c10
jmp 0x1400aa0d7
lea r9, [0x1401235ac]
mov qword [rsp + 0x20], 5
mov r8d, 0xb
lea rdx, [0x140123788]
mov rcx, rsi
call fcn.1400ac900
test al, al
jne 0x1400a9fed
mov r8d, 0x12
lea rdx, [0x140123798]
mov rcx, rsi
call fcn.1400a5f90
test eax, eax
je 0x1400a9f88
mov r8d, dword [rbx + 0x158]
lea eax, [r8 - 0xc8]
cmp eax, 0x64
jae 0x1400a9f2c
lea rdx, str.Ignoring_Transfer_Encoding_in_CONNECT__03d_response
mov rcx, rbx
call fcn.1400a0140
lea rcx, [rdi + 0x230]
call fcn.140094c10
jmp 0x1400aa0d7
lea r9, [0x1401237e8]
mov qword [rsp + 0x20], 7
mov r8d, 0x12
lea rdx, [0x1401237f0]
mov rcx, rsi
call fcn.1400ac900
test al, al
je 0x1400a9ff4
lea rdx, str.CONNECT_responded_chunked
mov rcx, rbx
call fcn.1400a0140
mov rcx, rbx
mov byte [rdi + 0x294], 1
call fcn.1400c6510
lea rcx, [rdi + 0x230]
call fcn.140094c10
jmp 0x1400aa0d7
lea r9, [0x1401235cc]
mov qword [rsp + 0x20], 5
mov r8d, 0x11
lea rdx, [0x140123828]
mov rcx, rsi
call fcn.1400ac900
test al, al
jne 0x1400a9fed
lea r9, [rbx + 0x158]
mov rcx, rsi
lea r8, [rbp - 0x21]
lea rdx, str.HTTP_1._d__d
call fcn.140093ba0
cmp eax, 2
jne 0x1400a9ff4
mov eax, dword [rbx + 0x158]
lea rcx, [rdi + 0x230]
mov dword [rbx + 0x12b4], eax
call fcn.140094c10
jmp 0x1400aa0d7
mov byte [rdi + 0x295], 1
lea rcx, [rdi + 0x230]
call fcn.140094c10
jmp 0x1400aa0d7
cmp dword [rbx + 0x158], 0x197
jne 0x1400aa0bd
cmp byte [rbx + 0x129d], r12b
jne 0x1400aa0bd
mov r8, qword [rdi + 0x288]
mov dword [rdi + 0x280], 2
test r8, r8
je 0x1400aa056
lea rdx, str.Ignore__I64d_bytes_of_response_body
mov rcx, rbx
call fcn.1400a0140
cmp dword [rdi + 0x280], r12d
jne 0x1400aa0e4
jmp 0x1400aa0c4
cmp byte [rdi + 0x294], r12b
je 0x1400aa0bd
lea rdx, str.Ignore_chunked_response_body
mov rcx, rbx
call fcn.1400a0140
lea rax, [rsi + 1]
mov byte [rbx + 0x1c4], 1
cmp byte [rax], 0xa
lea r9, [rbp - 0x11]
mov r8d, 1
mov rcx, rbx
cmove rsi, rax
lea rax, [rbp - 5]
mov qword [rsp + 0x20], rax
lea rdx, [rsi + 1]
call fcn.1400c6540
cmp eax, 0xffffffff
jne 0x1400aa047
lea rdx, str.chunk_reading_DONE
mov rcx, rbx
call fcn.1400a0140
mov dword [rdi + 0x290], 2
mov dword [rdi + 0x280], r12d
cmp qword [rdi + 0x288], r12
jne 0x1400aa0d7
mov dword [rdi + 0x290], 2
cmp dword [rdi + 0x280], r12d
je 0x1400a9bc8
mov rsi, qword [rbp - 0x31]
jmp 0x1400a9b40
cmp dword [rbx + 0x210], r12d
je 0x1400aa12e
cmp dword [rbx + 0xdb8], r12d
je 0x1400aa12e
cmp qword [rbx + 0x1228], r12
je 0x1400aa12e
lea rdx, str.Proxy_CONNECT_connection_closed
mov byte [r13 + 0x3a8], 1
mov rcx, rbx
call fcn.1400a0140
mov dword [rdi + 0x280], 0
jmp 0x1400a9bc8
lea rdx, str.Proxy_CONNECT_aborted
mov rcx, rbx
mov r12d, 1
call fcn.1400a01f0
mov dword [rdi + 0x280], 0
jmp 0x1400a9bc8
mov rax, qword [rbx + 0x198]
test rax, rax
je 0x1400a9c4d
cmp dword [rdi + 0x290], 2
mov rsi, qword [rbp - 0x31]
mov r12d, dword [rbp + 0x7f]
jne 0x1400a9870
mov dl, 1
mov rcx, rbx
call fcn.1400a95c0
mov rax, qword [rbx + 0x198]
test rax, rax
je 0x1400a9c4d
mov rsi, qword [rbp - 0x31]
mov r12d, dword [rbp + 0x7f]
jmp 0x1400a9870
mov r8, qword [rbx + 0x1a8]
lea rax, [rbp + 0x67]
mov rdx, qword [r13 + 0x408]
mov rcx, rbx
mov qword [rsp + 0x20], rax
call fcn.1400a05f0
mov esi, eax
test eax, eax
jne 0x1400aa1d9
mov r9, qword [rbp + 0x67]
lea edx, [rax + 2]
mov r8, qword [rbx + 0x1a8]
mov rcx, rbx
call fcn.1400a06a0
mov rcx, qword [rbp + 0x67]
sub qword [rdi + 0x270], rcx
add qword [rbx + 0x1a8], rcx
mov eax, esi
jmp 0x1400aa2d9
mov eax, 0x1b
jmp 0x1400aa2d9
lea rdx, str.CONNECT_response_too_large
mov rcx, rbx
call fcn.1400a01f0
mov eax, 0x38
jmp 0x1400aa2d9
mov rcx, qword [rbx + 0x198]
call qword [str.D_r_]
mov edx, 2
mov qword [rbx + 0x198], 0
mov rcx, r13
call fcn.1400a2860
mov dword [rdi + 0x290], 0
cmp byte [r13 + 0x3a8], 0
jne 0x1400aa2d7
lea rcx, [rdi + 0x230]
call fcn.140094b50
mov r8d, dword [rbx + 0x158]
lea rdx, str.Received_HTTP_code__d_from_proxy_after_CONNECT
mov rcx, rbx
call fcn.1400a01f0
mov eax, 0x38
jmp 0x1400aa2d9
mov dword [rdi + 0x290], 2
mov rcx, qword [rbx + 0x1228]
call qword [str.D_r_]
mov qword [rbx + 0x1228], 0
lea rdx, str.Proxy_replied__d_to_CONNECT_request
mov r8d, dword [rbx + 0x12b4]
mov rcx, rbx
mov word [rbx + 0xdbc], 1
call fcn.1400a0140
mov byte [rbx + 0x1c4], 0
lea rcx, [rdi + 0x230]
mov byte [r13 + 0x3b5], 0
call fcn.140094b50
xor eax, eax
add rsp, 0x88
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov eax, 0x2a
jmp 0x1400aa2d9
lea rdx, str.Proxy_CONNECT_aborted_due_to_timeout
mov rcx, rbx
call fcn.1400a01f0
mov eax, 0x1c
jmp 0x1400aa2d9