Function at 0x1400bc304
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 0x1400bcdb4
cmp dword [rdi + 0x290], 2
jge 0x1400bcdb4
mov byte [r14 + 0x3a8], r13b
cmp dword [rdi + 0x290], r13d
jne 0x1400bc5f9
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.1400b3548
mov rcx, qword [rbx + 0x198]
call qword [fcn.1401109c8]
mov edx, 0x100000
mov qword [rbx + 0x198], r13
mov rcx, r12
call fcn.1400a8c40
mov al, byte [r14 + 0x3af]
cmp rsi, qword [r14 + 0x98]
je 0x1400bc3df
mov edx, 0x3a
mov rcx, rsi
call fcn.140101b54
test rax, rax
setne al
test al, al
lea rcx, [0x1401764ac]
mov eax, dword [rbp + 0x60]
lea r9, [0x14016eec1]
cmovne r9, rcx
mov dword [rsp + 0x20], eax
lea rcx, [0x1401764b0]
mov r8, rsi
lea rdx, [0x14016eec1]
cmovne rdx, rcx
lea rcx, str._s_s_s:_d
call fcn.1400c6f8c
mov r15, rax
test rax, rax
je 0x1400bcc28
mov r9d, 4
lea r8, str.Host
mov rdx, r14
mov rcx, rbx
call fcn.1400c05e4
test rax, rax
jne 0x1400bc45f
mov rdx, r15
lea rcx, str.Host:__s_r_n
call fcn.1400c6f8c
mov r13, rax
test rax, rax
je 0x1400bcc1f
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.1400c2578
mov esi, eax
test eax, eax
jne 0x1400bc5c6
cmp byte [r14 + 0x134], 1
lea rax, [0x140177940]
lea r9, [0x140177944]
mov r8, r15
cmove r9, rax
lea rcx, [0x14016eec1]
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, [0x14016eec1]
cmovne rax, r13
mov rcx, r12
mov qword [rsp + 0x20], rax
call fcn.1400a8be8
mov esi, eax
test eax, eax
jne 0x1400bc5b7
lea r9d, [rax + 0xa]
mov rdx, r14
lea r8, str.User_Agent
mov rcx, rbx
call fcn.1400c05e4
test rax, rax
jne 0x1400bc52b
mov r8, qword [rbx + 0x870]
test r8, r8
je 0x1400bc52b
lea rdx, str.User_Agent:__s_r_n
mov rcx, r12
call fcn.1400a8be8
mov esi, eax
test eax, eax
jne 0x1400bc5b7
mov r9d, 0x10
lea r8, str.Proxy_Connection
mov rdx, r14
mov rcx, rbx
call fcn.1400c05e4
test rax, rax
jne 0x1400bc561
lea r8d, [rax + 0x1e]
mov rcx, r12
lea rdx, str.Proxy_Connection:_Keep_Alive_r_n
call fcn.1400a8c10
mov esi, eax
test eax, eax
jne 0x1400bc5b7
mov r8, r12
mov dl, 1
mov rcx, rbx
call fcn.1400bfea8
mov esi, eax
test eax, eax
jne 0x1400bc5b7
lea r8d, [rax + 2]
mov rcx, r12
lea rdx, [0x140175980]
call fcn.1400a8c10
mov esi, eax
test eax, eax
jne 0x1400bc5b7
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.1400c0348
and qword [rdi + 0x278], 0
mov esi, eax
test eax, eax
je 0x1400bc5c6
lea rdx, str.Failed_sending_CONNECT_to_proxy
mov rcx, rbx
call fcn.1400b3474
mov rcx, r13
call qword [fcn.1401109c8]
mov rcx, r15
call qword [fcn.1401109c8]
xor r13d, r13d
test esi, esi
jne 0x1400bcc7f
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.1400b52fc
test rax, rax
jle 0x1400bcdce
mov edx, r15d
mov rcx, r14
call fcn.1400b4498
test al, al
jne 0x1400bc62b
cmp dword [rsi + 0x200], r13d
je 0x1400bcdb4
cmp dword [rsi + 0x200], 1
jne 0x1400bc68a
mov r9, qword [rdi + 0x270]
test r9, r9
jne 0x1400bcc32
mov rax, qword [rbx + 0xce0]
lea r8, [rbp - 0x20]
mov qword [rbx + 0x1a8], rax
mov rcx, rbx
mov edx, dword [rbx + 0x6f0]
call fcn.1400b9e6c
test eax, eax
jne 0x1400bcdb6
mov rax, qword [rbp - 0x20]
mov qword [rdi + 0x270], rax
mov r9, rax
test rax, rax
jne 0x1400bcc32
mov dword [rsi + 0x200], r13d
mov esi, r13d
mov dword [rbp - 0x48], r13d
cmp dword [rdi + 0x280], r13d
je 0x1400bc72d
lea rax, [rbp - 0x30]
mov r9d, 1
lea r8, [rbp + 0x48]
mov qword [rsp + 0x20], rax
mov rdx, r12
mov rcx, rbx
call fcn.1400b35e8
mov esi, eax
cmp eax, 0x51
je 0x1400bcdb4
mov rcx, rbx
call fcn.1400c4654
test eax, eax
jne 0x1400bcdc7
test esi, esi
jne 0x1400bc71f
cmp qword [rbp - 0x30], r13
jle 0x1400bcbc8
cmp dword [rdi + 0x280], 2
jne 0x1400bc824
mov rax, qword [rdi + 0x288]
test rax, rax
je 0x1400bc7d3
dec rax
mov qword [rdi + 0x288], rax
test rax, rax
jg 0x1400bcae2
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.1400c4654
test eax, eax
jne 0x1400bcdc7
test esi, esi
jne 0x1400bcc95
mov eax, dword [rbx + 0x1374]
sub eax, 0xc8
cmp eax, 0x64
jb 0x1400bc775
mov rcx, rbx
call fcn.1400c07ec
test eax, eax
jne 0x1400bcdb6
cmp byte [r14 + 0x3aa], r13b
je 0x1400bc775
mov byte [rdi + 0x295], 1
cmp byte [rdi + 0x295], r13b
je 0x1400bc78b
cmp qword [rbx + 0x198], r13
jne 0x1400bcc9f
mov rax, qword [rbx + 0x198]
test rax, rax
je 0x1400bccbe
cmp dword [rdi + 0x290], 2
mov rsi, qword [rbp - 0x40]
mov r9d, dword [rbp + 0x60]
jne 0x1400bc371
mov dl, 1
mov rcx, rbx
call fcn.1400bd184
mov rax, qword [rbx + 0x198]
test rax, rax
je 0x1400bccbe
mov r9d, dword [rbp + 0x60]
jmp 0x1400bc371
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.1400edc14
cmp eax, 0xffffffff
jne 0x1400bcae2
lea rdx, str.chunk_reading_DONE
mov rcx, rbx
call fcn.1400b3548
mov dword [rdi + 0x280], r13d
mov dword [rdi + 0x290], 2
jmp 0x1400bcae2
lea r13, [rdi + 0x230]
mov r8d, 1
mov rcx, r13
lea rdx, [rbp + 0x48]
call fcn.1400a8c10
test eax, eax
jne 0x1400bcc86
cmp byte [rbp + 0x48], 0xa
jne 0x1400bcadf
inc qword [rdi + 0x278]
mov rcx, r13
call fcn.1400a8c5c
mov rcx, r13
mov rsi, rax
call fcn.1400a8c54
mov r9, rax
mov r8, rsi
mov edx, 1
mov rcx, rbx
mov r15, rax
call fcn.1400b3398
cmp byte [rbx + 0xae7], 0
jne 0x1400bc8be
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.1400b3390
test eax, eax
jne 0x1400bcdb6
movsxd rax, r15d
add qword [rbx + 0x1388], rax
cmp byte [rsi], 0xd
je 0x1400bcaf4
cmp byte [rsi], 0xa
je 0x1400bcaf4
mov r8d, 0x11
lea rdx, str.WWW_Authenticate:
mov rcx, rsi
call fcn.1400b95ac
test eax, eax
je 0x1400bc903
mov r15d, dword [rbx + 0x158]
cmp r15d, 0x191
je 0x1400bc92c
mov r8d, 0x13
lea rdx, str.Proxy_authenticate:
mov rcx, rsi
call fcn.1400b95ac
test eax, eax
je 0x1400bc971
mov r15d, dword [rbx + 0x158]
cmp r15d, 0x197
jne 0x1400bc971
mov rcx, rsi
call fcn.1400c070c
mov r12, rax
test rax, rax
je 0x1400bcc28
cmp r15d, 0x197
mov r8, rax
mov rcx, rbx
sete dl
call fcn.1400c21b4
mov rcx, r12
mov esi, eax
call qword [fcn.1401109c8]
test esi, esi
jne 0x1400bcc7f
mov r12, qword [rbp - 0x38]
jmp 0x1400bcad7
mov r8d, 0xf
lea rdx, str.Content_Length:
mov rcx, rsi
call fcn.1400b95ac
test eax, eax
je 0x1400bc9cc
mov r8d, dword [rbx + 0x158]
lea eax, [r8 - 0xc8]
cmp eax, 0x64
jae 0x1400bc9b1
lea rdx, str.Ignoring_Content_Length_in_CONNECT__03d_response
mov rcx, rbx
call fcn.1400b3548
jmp 0x1400bcad7
xor edx, edx
lea r9, [rdi + 0x288]
lea rcx, [rsi + 0xf]
lea r8d, [rdx + 0xa]
call fcn.1400c9fec
jmp 0x1400bcad7
lea r9, str.close
mov qword [rsp + 0x20], 5
mov r8d, 0xb
lea rdx, str.Connection:
mov rcx, rsi
call fcn.1400c065c
test al, al
jne 0x1400bcad0
mov r15d, 0x12
lea rdx, str.Transfer_Encoding:
mov r8d, r15d
mov rcx, rsi
call fcn.1400b95ac
test eax, eax
je 0x1400bca7a
mov r8d, dword [rbx + 0x158]
lea eax, [r8 - 0xc8]
cmp eax, 0x64
jae 0x1400bca34
lea rdx, str.Ignoring_Transfer_Encoding_in_CONNECT__03d_response
jmp 0x1400bc9a4
lea r9, str.chunked
mov qword [rsp + 0x20], 7
mov r8, r15
lea rdx, str.Transfer_Encoding:
mov rcx, rsi
call fcn.1400c065c
test al, al
je 0x1400bcad7
lea rdx, str.CONNECT_responded_chunked
mov rcx, rbx
call fcn.1400b3548
mov rcx, rbx
mov byte [rdi + 0x294], 1
call fcn.1400edbf4
jmp 0x1400bcad7
lea r9, str.close
mov qword [rsp + 0x20], 5
mov r8d, 0x11
lea rdx, str.Proxy_Connection:
mov rcx, rsi
call fcn.1400c065c
test al, al
jne 0x1400bcad0
lea r15, [rbx + 0x158]
mov rcx, rsi
mov r9, r15
lea r8, [rbp - 0x44]
lea rdx, str.HTTP_1._d__d
call fcn.1400a7a80
cmp eax, 2
jne 0x1400bcad7
mov eax, dword [r15]
mov dword [rbx + 0x1374], eax
jmp 0x1400bcad7
mov byte [rdi + 0x295], 1
mov rcx, r13
call fcn.1400a8c60
xor r13d, r13d
cmp dword [rdi + 0x280], r13d
je 0x1400bc726
jmp 0x1400bc69e
xor r13d, r13d
cmp dword [rbx + 0x158], 0x197
jne 0x1400bcba2
cmp byte [rbx + 0x130d], r13b
jne 0x1400bcba2
mov r8, qword [rdi + 0x288]
mov dword [rdi + 0x280], 2
test r8, r8
je 0x1400bcb3b
lea rdx, str.Ignore__I64d_bytes_of_response_body
mov rcx, rbx
call fcn.1400b3548
jmp 0x1400bcba9
cmp byte [rdi + 0x294], r13b
je 0x1400bcba2
lea rdx, str.Ignore_chunked_response_body
mov rcx, rbx
call fcn.1400b3548
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.1400edc14
cmp eax, 0xffffffff
jne 0x1400bcba9
lea rdx, str.chunk_reading_DONE
mov rcx, rbx
call fcn.1400b3548
mov dword [rdi + 0x290], 2
mov dword [rdi + 0x280], r13d
cmp dword [rdi + 0x280], r13d
jne 0x1400bc69e
cmp qword [rdi + 0x288], r13
jne 0x1400bcae2
jmp 0x1400bc815
cmp dword [rbx + 0x210], r13d
je 0x1400bcbff
cmp dword [rbx + 0xe18], r13d
je 0x1400bcbff
cmp qword [rbx + 0x1298], r13
je 0x1400bcbff
lea rdx, str.Proxy_CONNECT_connection_closed
mov byte [r14 + 0x3a8], 1
mov rcx, rbx
call fcn.1400b3548
mov esi, dword [rbp - 0x48]
jmp 0x1400bcc13
lea rdx, str.Proxy_CONNECT_aborted
mov rcx, rbx
mov esi, 1
call fcn.1400b3474
mov dword [rdi + 0x280], r13d
jmp 0x1400bc729
mov rcx, r15
call qword [fcn.1401109c8]
mov eax, 0x1b
jmp 0x1400bcdb6
mov r8, qword [rbx + 0x1a8]
lea rax, [rbp + 0x48]
mov rdx, qword [r14 + 0x410]
mov rcx, rbx
mov qword [rsp + 0x20], rax
call fcn.1400b3a5c
mov esi, eax
test eax, eax
jne 0x1400bcc6d
mov r9, qword [rbp + 0x48]
lea edx, [rax + 2]
mov r8, qword [rbx + 0x1a8]
mov rcx, rbx
call fcn.1400b3398
mov rcx, qword [rbp + 0x48]
sub qword [rdi + 0x270], rcx
add qword [rbx + 0x1a8], rcx
mov eax, esi
jmp 0x1400bcdb6
lea rdx, str.CONNECT_response_too_large
mov rcx, rbx
call fcn.1400b3474
mov eax, 0x38
jmp 0x1400bcdb6
movsxd rsi, r15d
mov rdx, r14
mov rcx, rbx
mov r8, qword [r14 + rsi*8 + 0x1d0]
call fcn.1400b43b8
or qword [r14 + rsi*8 + 0x1d0], 0xffffffffffffffff
mov eax, dword [rbx + 0x1374]
sub eax, 0xc8
cmp eax, 0x64
jb 0x1400bcd5d
cmp byte [rdi + 0x295], r13b
je 0x1400bcd05
cmp qword [rbx + 0x198], r13
je 0x1400bcd05
lea rdx, str.Connect_me_again_please
mov byte [r14 + 0x3a8], 1
mov rcx, rbx
call fcn.1400b3548
mov rcx, rbx
call fcn.1400bcef8
jmp 0x1400bcd26
mov rcx, qword [rbx + 0x198]
call qword [fcn.1401109c8]
mov edx, 2
mov qword [rbx + 0x198], r13
mov rcx, r14
call fcn.1400b4598
mov dword [rdi + 0x290], r13d
cmp byte [r14 + 0x3a8], r13b
jne 0x1400bcdb4
lea rcx, [rdi + 0x230]
call fcn.1400a8c18
mov r8d, dword [rbx + 0x158]
lea rdx, str.Received_HTTP_code__d_from_proxy_after_CONNECT
mov rcx, rbx
call fcn.1400b3474
jmp 0x1400bcc95
mov dword [rdi + 0x290], 2
mov rcx, qword [rbx + 0x1298]
call qword [fcn.1401109c8]
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.1400b3548
mov byte [rbx + 0x1c4], r13b
lea rcx, [rdi + 0x230]
mov byte [r14 + 0x3b5], r13b
call fcn.1400a8c18
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 0x1400bcdb6
lea rdx, str.Proxy_CONNECT_aborted_due_to_timeout
mov rcx, rbx
call fcn.1400b3474
mov eax, 0x1c
jmp 0x1400bcdb6