Function at 0x1400bbd1c
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
mov rbp, rsp
sub rsp, 0x78
mov r14, qword [rcx + 0x18]
xor r13d, r13d
mov rsi, qword [rcx + 0x1b0]
mov rbx, rcx
mov dword [rbp - 0x44], r13d
movsxd r15, edx
mov rdi, qword [r14 + 0x7c8]
mov qword [rbp - 0x40], rsi
mov r12, qword [r14 + r15*8 + 0x1d0]
mov qword [rbp - 0x38], r12
test rdi, rdi
je 0x1400bc7cc
cmp dword [rdi + 0x290], 2
jge 0x1400bc7cc
mov byte [r14 + 0x3a8], r13b
cmp dword [rdi + 0x290], r13d
jne 0x1400bc011
mov rsi, qword [rbp + 0x58]
lea rdx, str.Establish_HTTP_proxy_tunnel_to__s:_d
mov r8, rsi
lea r12, [rdi + 0x250]
mov rcx, rbx
call fcn.1400b2f60
mov rcx, qword [rbx + 0x198]
call qword [fcn.1401103d8]
mov edx, 0x100000
mov qword [rbx + 0x198], r13
mov rcx, r12
call fcn.1400a8658
mov al, byte [r14 + 0x3af]
cmp rsi, qword [r14 + 0x98]
je 0x1400bbdf7
mov edx, 0x3a
mov rcx, rsi
call fcn.140101564
test rax, rax
setne al
test al, al
lea rcx, [0x14017550c]
mov eax, dword [rbp + 0x60]
lea r9, [0x14016dec1]
cmovne r9, rcx
mov dword [rsp + 0x20], eax
lea rcx, [0x140175510]
mov r8, rsi
lea rdx, [0x14016dec1]
cmovne rdx, rcx
lea rcx, str._s_s_s:_d
call fcn.1400c69a4
mov r15, rax
test rax, rax
je 0x1400bc640
mov r9d, 4
lea r8, str.Host
mov rdx, r14
mov rcx, rbx
call fcn.1400bfffc
test rax, rax
jne 0x1400bbe77
mov rdx, r15
lea rcx, str.Host:__s_r_n
call fcn.1400c69a4
mov r13, rax
test rax, rax
je 0x1400bc637
mov byte [rsp + 0x28], 1
lea r8, str.CONNECT
xor r9d, r9d
mov qword [rsp + 0x20], r15
mov rdx, r14
mov rcx, rbx
call fcn.1400c1f90
mov esi, eax
test eax, eax
jne 0x1400bbfde
cmp byte [r14 + 0x134], 1
lea rax, [0x1401769a0]
lea r9, [0x1401769a4]
mov r8, r15
cmove r9, rax
lea rcx, [0x14016dec1]
mov rax, qword [rbx + 0x1298]
lea rdx, str.CONNECT__s_HTTP__s_r_n_s_s
test rax, rax
cmovne rcx, rax
test r13, r13
mov qword [rsp + 0x28], rcx
lea rax, [0x14016dec1]
cmovne rax, r13
mov rcx, r12
mov qword [rsp + 0x20], rax
call fcn.1400a8600
mov esi, eax
test eax, eax
jne 0x1400bbfcf
lea r9d, [rax + 0xa]
mov rdx, r14
lea r8, str.User_Agent
mov rcx, rbx
call fcn.1400bfffc
test rax, rax
jne 0x1400bbf43
mov r8, qword [rbx + 0x870]
test r8, r8
je 0x1400bbf43
lea rdx, str.User_Agent:__s_r_n
mov rcx, r12
call fcn.1400a8600
mov esi, eax
test eax, eax
jne 0x1400bbfcf
mov r9d, 0x10
lea r8, str.Proxy_Connection
mov rdx, r14
mov rcx, rbx
call fcn.1400bfffc
test rax, rax
jne 0x1400bbf79
lea r8d, [rax + 0x1e]
mov rcx, r12
lea rdx, str.Proxy_Connection:_Keep_Alive_r_n
call fcn.1400a8628
mov esi, eax
test eax, eax
jne 0x1400bbfcf
mov r8, r12
mov dl, 1
mov rcx, rbx
call fcn.1400bf8c0
mov esi, eax
test eax, eax
jne 0x1400bbfcf
lea r8d, [rax + 2]
mov rcx, r12
lea rdx, [0x1401749e0]
call fcn.1400a8628
mov esi, eax
test eax, eax
jne 0x1400bbfcf
mov eax, dword [rbp + 0x50]
lea r8, [rbx + 0x1390]
xor r9d, r9d
mov dword [rsp + 0x20], eax
mov rdx, rbx
mov rcx, r12
call fcn.1400bfd60
and qword [rdi + 0x278], 0
mov esi, eax
test eax, eax
je 0x1400bbfde
lea rdx, str.Failed_sending_CONNECT_to_proxy
mov rcx, rbx
call fcn.1400b2e8c
mov rcx, r13
call qword [fcn.1401103d8]
mov rcx, r15
call qword [fcn.1401103d8]
xor r13d, r13d
test esi, esi
jne 0x1400bc697
mov rsi, qword [rbp - 0x40]
mov r15d, dword [rbp + 0x50]
mov r12, qword [rbp - 0x38]
mov dword [rdi + 0x290], 1
mov r8b, 1
xor edx, edx
mov rcx, rbx
call fcn.1400b4d14
test rax, rax
jle 0x1400bc7e6
mov edx, r15d
mov rcx, r14
call fcn.1400b3eb0
test al, al
jne 0x1400bc043
cmp dword [rsi + 0x200], r13d
je 0x1400bc7cc
cmp dword [rsi + 0x200], 1
jne 0x1400bc0a2
mov r9, qword [rdi + 0x270]
test r9, r9
jne 0x1400bc64a
mov rax, qword [rbx + 0xce0]
lea r8, [rbp - 0x20]
mov qword [rbx + 0x1a8], rax
mov rcx, rbx
mov edx, dword [rbx + 0x6f0]
call fcn.1400b9884
test eax, eax
jne 0x1400bc7ce
mov rax, qword [rbp - 0x20]
mov qword [rdi + 0x270], rax
mov r9, rax
test rax, rax
jne 0x1400bc64a
mov dword [rsi + 0x200], r13d
mov esi, r13d
mov dword [rbp - 0x48], r13d
cmp dword [rdi + 0x280], r13d
je 0x1400bc145
lea rax, [rbp - 0x30]
mov r9d, 1
lea r8, [rbp + 0x48]
mov qword [rsp + 0x20], rax
mov rdx, r12
mov rcx, rbx
call fcn.1400b3000
mov esi, eax
cmp eax, 0x51
je 0x1400bc7cc
mov rcx, rbx
call fcn.1400c406c
test eax, eax
jne 0x1400bc7df
test esi, esi
jne 0x1400bc137
cmp qword [rbp - 0x30], r13
jle 0x1400bc5e0
cmp dword [rdi + 0x280], 2
jne 0x1400bc23c
mov rax, qword [rdi + 0x288]
test rax, rax
je 0x1400bc1eb
dec rax
mov qword [rdi + 0x288], rax
test rax, rax
jg 0x1400bc4fa
mov dword [rdi + 0x290], 2
mov dword [rdi + 0x280], r13d
mov esi, dword [rbp - 0x48]
mov r15d, dword [rbp + 0x50]
mov rcx, rbx
call fcn.1400c406c
test eax, eax
jne 0x1400bc7df
test esi, esi
jne 0x1400bc6ad
mov eax, dword [rbx + 0x1374]
sub eax, 0xc8
cmp eax, 0x64
jb 0x1400bc18d
mov rcx, rbx
call fcn.1400c0204
test eax, eax
jne 0x1400bc7ce
cmp byte [r14 + 0x3aa], r13b
je 0x1400bc18d
mov byte [rdi + 0x295], 1
cmp byte [rdi + 0x295], r13b
je 0x1400bc1a3
cmp qword [rbx + 0x198], r13
jne 0x1400bc6b7
mov rax, qword [rbx + 0x198]
test rax, rax
je 0x1400bc6d6
cmp dword [rdi + 0x290], 2
mov rsi, qword [rbp - 0x40]
mov r9d, dword [rbp + 0x60]
jne 0x1400bbd89
mov dl, 1
mov rcx, rbx
call fcn.1400bcb9c
mov rax, qword [rbx + 0x198]
test rax, rax
je 0x1400bc6d6
mov r9d, dword [rbp + 0x60]
jmp 0x1400bbd89
lea rax, [rbp - 0x28]
mov qword [rbp - 0x18], r13
lea r9, [rbp - 0x18]
mov qword [rsp + 0x20], rax
mov r8d, 1
lea rdx, [rbp + 0x48]
mov rcx, rbx
call fcn.1400ed62c
cmp eax, 0xffffffff
jne 0x1400bc4fa
lea rdx, str.chunk_reading_DONE
mov rcx, rbx
call fcn.1400b2f60
mov dword [rdi + 0x280], r13d
mov dword [rdi + 0x290], 2
jmp 0x1400bc4fa
lea r13, [rdi + 0x230]
mov r8d, 1
mov rcx, r13
lea rdx, [rbp + 0x48]
call fcn.1400a8628
test eax, eax
jne 0x1400bc69e
cmp byte [rbp + 0x48], 0xa
jne 0x1400bc4f7
inc qword [rdi + 0x278]
mov rcx, r13
call fcn.1400a8674
mov rcx, r13
mov rsi, rax
call fcn.1400a866c
mov r9, rax
mov r8, rsi
mov edx, 1
mov rcx, rbx
mov r15, rax
call fcn.1400b2db0
cmp byte [rbx + 0xae7], 0
jne 0x1400bc2d6
xor edx, edx
mov ecx, 0xa
cmp byte [rbx + 0xad1], dl
mov r9, r15
mov r8, rsi
setne dl
cmp qword [rdi + 0x278], 1
lea eax, [rcx + 4]
cmove ecx, eax
or edx, ecx
mov rcx, rbx
call fcn.1400b2da8
test eax, eax
jne 0x1400bc7ce
movsxd rax, r15d
add qword [rbx + 0x1388], rax
cmp byte [rsi], 0xd
je 0x1400bc50c
cmp byte [rsi], 0xa
je 0x1400bc50c
mov r8d, 0x11
lea rdx, str.WWW_Authenticate:
mov rcx, rsi
call fcn.1400b8fc4
test eax, eax
je 0x1400bc31b
mov r15d, dword [rbx + 0x158]
cmp r15d, 0x191
je 0x1400bc344
mov r8d, 0x13
lea rdx, str.Proxy_authenticate:
mov rcx, rsi
call fcn.1400b8fc4
test eax, eax
je 0x1400bc389
mov r15d, dword [rbx + 0x158]
cmp r15d, 0x197
jne 0x1400bc389
mov rcx, rsi
call fcn.1400c0124
mov r12, rax
test rax, rax
je 0x1400bc640
cmp r15d, 0x197
mov r8, rax
mov rcx, rbx
sete dl
call fcn.1400c1bcc
mov rcx, r12
mov esi, eax
call qword [fcn.1401103d8]
test esi, esi
jne 0x1400bc697
mov r12, qword [rbp - 0x38]
jmp 0x1400bc4ef
mov r8d, 0xf
lea rdx, str.Content_Length:
mov rcx, rsi
call fcn.1400b8fc4
test eax, eax
je 0x1400bc3e4
mov r8d, dword [rbx + 0x158]
lea eax, [r8 - 0xc8]
cmp eax, 0x64
jae 0x1400bc3c9
lea rdx, str.Ignoring_Content_Length_in_CONNECT__03d_response
mov rcx, rbx
call fcn.1400b2f60
jmp 0x1400bc4ef
xor edx, edx
lea r9, [rdi + 0x288]
lea rcx, [rsi + 0xf]
lea r8d, [rdx + 0xa]
call fcn.1400c9a04
jmp 0x1400bc4ef
lea r9, str.close
mov qword [rsp + 0x20], 5
mov r8d, 0xb
lea rdx, str.Connection:
mov rcx, rsi
call fcn.1400c0074
test al, al
jne 0x1400bc4e8
mov r15d, 0x12
lea rdx, str.Transfer_Encoding:
mov r8d, r15d
mov rcx, rsi
call fcn.1400b8fc4
test eax, eax
je 0x1400bc492
mov r8d, dword [rbx + 0x158]
lea eax, [r8 - 0xc8]
cmp eax, 0x64
jae 0x1400bc44c
lea rdx, str.Ignoring_Transfer_Encoding_in_CONNECT__03d_response
jmp 0x1400bc3bc
lea r9, str.chunked
mov qword [rsp + 0x20], 7
mov r8, r15
lea rdx, str.Transfer_Encoding:
mov rcx, rsi
call fcn.1400c0074
test al, al
je 0x1400bc4ef
lea rdx, str.CONNECT_responded_chunked
mov rcx, rbx
call fcn.1400b2f60
mov rcx, rbx
mov byte [rdi + 0x294], 1
call fcn.1400ed60c
jmp 0x1400bc4ef
lea r9, str.close
mov qword [rsp + 0x20], 5
mov r8d, 0x11
lea rdx, str.Proxy_Connection:
mov rcx, rsi
call fcn.1400c0074
test al, al
jne 0x1400bc4e8
lea r15, [rbx + 0x158]
mov rcx, rsi
mov r9, r15
lea r8, [rbp - 0x44]
lea rdx, str.HTTP_1._d__d
call fcn.1400a7498
cmp eax, 2
jne 0x1400bc4ef
mov eax, dword [r15]
mov dword [rbx + 0x1374], eax
jmp 0x1400bc4ef
mov byte [rdi + 0x295], 1
mov rcx, r13
call fcn.1400a8678
xor r13d, r13d
cmp dword [rdi + 0x280], r13d
je 0x1400bc13e
jmp 0x1400bc0b6
xor r13d, r13d
cmp dword [rbx + 0x158], 0x197
jne 0x1400bc5ba
cmp byte [rbx + 0x130d], r13b
jne 0x1400bc5ba
mov r8, qword [rdi + 0x288]
mov dword [rdi + 0x280], 2
test r8, r8
je 0x1400bc553
lea rdx, str.Ignore__I64d_bytes_of_response_body
mov rcx, rbx
call fcn.1400b2f60
jmp 0x1400bc5c1
cmp byte [rdi + 0x294], r13b
je 0x1400bc5ba
lea rdx, str.Ignore_chunked_response_body
mov rcx, rbx
call fcn.1400b2f60
lea rax, [rsi + 1]
mov byte [rbx + 0x1c4], 1
cmp byte [rax], 0xa
lea r9, [rbp - 0x30]
mov r8d, 1
mov rcx, rbx
cmove rsi, rax
lea rax, [rbp - 0x24]
mov qword [rsp + 0x20], rax
lea rdx, [rsi + 1]
call fcn.1400ed62c
cmp eax, 0xffffffff
jne 0x1400bc5c1
lea rdx, str.chunk_reading_DONE
mov rcx, rbx
call fcn.1400b2f60
mov dword [rdi + 0x290], 2
mov dword [rdi + 0x280], r13d
cmp dword [rdi + 0x280], r13d
jne 0x1400bc0b6
cmp qword [rdi + 0x288], r13
jne 0x1400bc4fa
jmp 0x1400bc22d
cmp dword [rbx + 0x210], r13d
je 0x1400bc617
cmp dword [rbx + 0xe18], r13d
je 0x1400bc617
cmp qword [rbx + 0x1298], r13
je 0x1400bc617
lea rdx, str.Proxy_CONNECT_connection_closed
mov byte [r14 + 0x3a8], 1
mov rcx, rbx
call fcn.1400b2f60
mov esi, dword [rbp - 0x48]
jmp 0x1400bc62b
lea rdx, str.Proxy_CONNECT_aborted
mov rcx, rbx
mov esi, 1
call fcn.1400b2e8c
mov dword [rdi + 0x280], r13d
jmp 0x1400bc141
mov rcx, r15
call qword [fcn.1401103d8]
mov eax, 0x1b
jmp 0x1400bc7ce
mov r8, qword [rbx + 0x1a8]
lea rax, [rbp + 0x48]
mov rdx, qword [r14 + 0x410]
mov rcx, rbx
mov qword [rsp + 0x20], rax
call fcn.1400b3474
mov esi, eax
test eax, eax
jne 0x1400bc685
mov r9, qword [rbp + 0x48]
lea edx, [rax + 2]
mov r8, qword [rbx + 0x1a8]
mov rcx, rbx
call fcn.1400b2db0
mov rcx, qword [rbp + 0x48]
sub qword [rdi + 0x270], rcx
add qword [rbx + 0x1a8], rcx
mov eax, esi
jmp 0x1400bc7ce
lea rdx, str.CONNECT_response_too_large
mov rcx, rbx
call fcn.1400b2e8c
mov eax, 0x38
jmp 0x1400bc7ce
movsxd rsi, r15d
mov rdx, r14
mov rcx, rbx
mov r8, qword [r14 + rsi*8 + 0x1d0]
call fcn.1400b3dd0
or qword [r14 + rsi*8 + 0x1d0], 0xffffffffffffffff
mov eax, dword [rbx + 0x1374]
sub eax, 0xc8
cmp eax, 0x64
jb 0x1400bc775
cmp byte [rdi + 0x295], r13b
je 0x1400bc71d
cmp qword [rbx + 0x198], r13
je 0x1400bc71d
lea rdx, str.Connect_me_again_please
mov byte [r14 + 0x3a8], 1
mov rcx, rbx
call fcn.1400b2f60
mov rcx, rbx
call fcn.1400bc910
jmp 0x1400bc73e
mov rcx, qword [rbx + 0x198]
call qword [fcn.1401103d8]
mov edx, 2
mov qword [rbx + 0x198], r13
mov rcx, r14
call fcn.1400b3fb0
mov dword [rdi + 0x290], r13d
cmp byte [r14 + 0x3a8], r13b
jne 0x1400bc7cc
lea rcx, [rdi + 0x230]
call fcn.1400a8630
mov r8d, dword [rbx + 0x158]
lea rdx, str.Received_HTTP_code__d_from_proxy_after_CONNECT
mov rcx, rbx
call fcn.1400b2e8c
jmp 0x1400bc6ad
mov dword [rdi + 0x290], 2
mov rcx, qword [rbx + 0x1298]
call qword [fcn.1401103d8]
mov qword [rbx + 0x1298], r13
lea rdx, str.Proxy_replied__d_to_CONNECT_request
mov r8d, dword [rbx + 0x1374]
mov rcx, rbx
mov word [rbx + 0xe1c], 1
call fcn.1400b2f60
mov byte [rbx + 0x1c4], r13b
lea rcx, [rdi + 0x230]
mov byte [r14 + 0x3b5], r13b
call fcn.1400a8630
xor eax, eax
add rsp, 0x78
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov eax, 0x2a
jmp 0x1400bc7ce
lea rdx, str.Proxy_CONNECT_aborted_due_to_timeout
mov rcx, rbx
call fcn.1400b2e8c
mov eax, 0x1c
jmp 0x1400bc7ce