Function at 0x1400bb000
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 0x1400bbab0
cmp dword [rdi + 0x290], 2
jge 0x1400bbab0
mov byte [r14 + 0x3a8], r13b
cmp dword [rdi + 0x290], r13d
jne 0x1400bb2f5
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.1400b2244
mov rcx, qword [rbx + 0x198]
call qword [fcn.14010f6c8]
mov edx, 0x100000
mov qword [rbx + 0x198], r13
mov rcx, r12
call fcn.1400a793c
mov al, byte [r14 + 0x3af]
cmp rsi, qword [r14 + 0x98]
je 0x1400bb0db
mov edx, 0x3a
mov rcx, rsi
call fcn.140100854
test rax, rax
setne al
test al, al
lea rcx, [0x14017450c]
mov eax, dword [rbp + 0x60]
lea r9, [0x14016cec1]
cmovne r9, rcx
mov dword [rsp + 0x20], eax
lea rcx, [0x140174510]
mov r8, rsi
lea rdx, [0x14016cec1]
cmovne rdx, rcx
lea rcx, str._s_s_s:_d
call fcn.1400c5c88
mov r15, rax
test rax, rax
je 0x1400bb924
mov r9d, 4
lea r8, str.Host
mov rdx, r14
mov rcx, rbx
call fcn.1400bf2e0
test rax, rax
jne 0x1400bb15b
mov rdx, r15
lea rcx, str.Host:__s_r_n
call fcn.1400c5c88
mov r13, rax
test rax, rax
je 0x1400bb91b
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.1400c1274
mov esi, eax
test eax, eax
jne 0x1400bb2c2
cmp byte [r14 + 0x134], 1
lea rax, [0x1401759a0]
lea r9, [0x1401759a4]
mov r8, r15
cmove r9, rax
lea rcx, [0x14016cec1]
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, [0x14016cec1]
cmovne rax, r13
mov rcx, r12
mov qword [rsp + 0x20], rax
call fcn.1400a78e4
mov esi, eax
test eax, eax
jne 0x1400bb2b3
lea r9d, [rax + 0xa]
mov rdx, r14
lea r8, str.User_Agent
mov rcx, rbx
call fcn.1400bf2e0
test rax, rax
jne 0x1400bb227
mov r8, qword [rbx + 0x870]
test r8, r8
je 0x1400bb227
lea rdx, str.User_Agent:__s_r_n
mov rcx, r12
call fcn.1400a78e4
mov esi, eax
test eax, eax
jne 0x1400bb2b3
mov r9d, 0x10
lea r8, str.Proxy_Connection
mov rdx, r14
mov rcx, rbx
call fcn.1400bf2e0
test rax, rax
jne 0x1400bb25d
lea r8d, [rax + 0x1e]
mov rcx, r12
lea rdx, str.Proxy_Connection:_Keep_Alive_r_n
call fcn.1400a790c
mov esi, eax
test eax, eax
jne 0x1400bb2b3
mov r8, r12
mov dl, 1
mov rcx, rbx
call fcn.1400beba4
mov esi, eax
test eax, eax
jne 0x1400bb2b3
lea r8d, [rax + 2]
mov rcx, r12
lea rdx, [0x1401739e0]
call fcn.1400a790c
mov esi, eax
test eax, eax
jne 0x1400bb2b3
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.1400bf044
and qword [rdi + 0x278], 0
mov esi, eax
test eax, eax
je 0x1400bb2c2
lea rdx, str.Failed_sending_CONNECT_to_proxy
mov rcx, rbx
call fcn.1400b2170
mov rcx, r13
call qword [fcn.14010f6c8]
mov rcx, r15
call qword [fcn.14010f6c8]
xor r13d, r13d
test esi, esi
jne 0x1400bb97b
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.1400b3ff8
test rax, rax
jle 0x1400bbaca
mov edx, r15d
mov rcx, r14
call fcn.1400b3194
test al, al
jne 0x1400bb327
cmp dword [rsi + 0x200], r13d
je 0x1400bbab0
cmp dword [rsi + 0x200], 1
jne 0x1400bb386
mov r9, qword [rdi + 0x270]
test r9, r9
jne 0x1400bb92e
mov rax, qword [rbx + 0xce0]
lea r8, [rbp - 0x20]
mov qword [rbx + 0x1a8], rax
mov rcx, rbx
mov edx, dword [rbx + 0x6f0]
call fcn.1400b8b68
test eax, eax
jne 0x1400bbab2
mov rax, qword [rbp - 0x20]
mov qword [rdi + 0x270], rax
mov r9, rax
test rax, rax
jne 0x1400bb92e
mov dword [rsi + 0x200], r13d
mov esi, r13d
mov dword [rbp - 0x48], r13d
cmp dword [rdi + 0x280], r13d
je 0x1400bb429
lea rax, [rbp - 0x30]
mov r9d, 1
lea r8, [rbp + 0x48]
mov qword [rsp + 0x20], rax
mov rdx, r12
mov rcx, rbx
call fcn.1400b22e4
mov esi, eax
cmp eax, 0x51
je 0x1400bbab0
mov rcx, rbx
call fcn.1400c3350
test eax, eax
jne 0x1400bbac3
test esi, esi
jne 0x1400bb41b
cmp qword [rbp - 0x30], r13
jle 0x1400bb8c4
cmp dword [rdi + 0x280], 2
jne 0x1400bb520
mov rax, qword [rdi + 0x288]
test rax, rax
je 0x1400bb4cf
dec rax
mov qword [rdi + 0x288], rax
test rax, rax
jg 0x1400bb7de
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.1400c3350
test eax, eax
jne 0x1400bbac3
test esi, esi
jne 0x1400bb991
mov eax, dword [rbx + 0x1374]
sub eax, 0xc8
cmp eax, 0x64
jb 0x1400bb471
mov rcx, rbx
call fcn.1400bf4e8
test eax, eax
jne 0x1400bbab2
cmp byte [r14 + 0x3aa], r13b
je 0x1400bb471
mov byte [rdi + 0x295], 1
cmp byte [rdi + 0x295], r13b
je 0x1400bb487
cmp qword [rbx + 0x198], r13
jne 0x1400bb99b
mov rax, qword [rbx + 0x198]
test rax, rax
je 0x1400bb9ba
cmp dword [rdi + 0x290], 2
mov rsi, qword [rbp - 0x40]
mov r9d, dword [rbp + 0x60]
jne 0x1400bb06d
mov dl, 1
mov rcx, rbx
call fcn.1400bbe80
mov rax, qword [rbx + 0x198]
test rax, rax
je 0x1400bb9ba
mov r9d, dword [rbp + 0x60]
jmp 0x1400bb06d
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.1400ec910
cmp eax, 0xffffffff
jne 0x1400bb7de
lea rdx, str.chunk_reading_DONE
mov rcx, rbx
call fcn.1400b2244
mov dword [rdi + 0x280], r13d
mov dword [rdi + 0x290], 2
jmp 0x1400bb7de
lea r13, [rdi + 0x230]
mov r8d, 1
mov rcx, r13
lea rdx, [rbp + 0x48]
call fcn.1400a790c
test eax, eax
jne 0x1400bb982
cmp byte [rbp + 0x48], 0xa
jne 0x1400bb7db
inc qword [rdi + 0x278]
mov rcx, r13
call fcn.1400a7958
mov rcx, r13
mov rsi, rax
call fcn.1400a7950
mov r9, rax
mov r8, rsi
mov edx, 1
mov rcx, rbx
mov r15, rax
call fcn.1400b2094
cmp byte [rbx + 0xae7], 0
jne 0x1400bb5ba
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.1400b208c
test eax, eax
jne 0x1400bbab2
movsxd rax, r15d
add qword [rbx + 0x1388], rax
cmp byte [rsi], 0xd
je 0x1400bb7f0
cmp byte [rsi], 0xa
je 0x1400bb7f0
mov r8d, 0x11
lea rdx, str.WWW_Authenticate:
mov rcx, rsi
call fcn.1400b82a8
test eax, eax
je 0x1400bb5ff
mov r15d, dword [rbx + 0x158]
cmp r15d, 0x191
je 0x1400bb628
mov r8d, 0x13
lea rdx, str.Proxy_authenticate:
mov rcx, rsi
call fcn.1400b82a8
test eax, eax
je 0x1400bb66d
mov r15d, dword [rbx + 0x158]
cmp r15d, 0x197
jne 0x1400bb66d
mov rcx, rsi
call fcn.1400bf408
mov r12, rax
test rax, rax
je 0x1400bb924
cmp r15d, 0x197
mov r8, rax
mov rcx, rbx
sete dl
call fcn.1400c0eb0
mov rcx, r12
mov esi, eax
call qword [fcn.14010f6c8]
test esi, esi
jne 0x1400bb97b
mov r12, qword [rbp - 0x38]
jmp 0x1400bb7d3
mov r8d, 0xf
lea rdx, str.Content_Length:
mov rcx, rsi
call fcn.1400b82a8
test eax, eax
je 0x1400bb6c8
mov r8d, dword [rbx + 0x158]
lea eax, [r8 - 0xc8]
cmp eax, 0x64
jae 0x1400bb6ad
lea rdx, str.Ignoring_Content_Length_in_CONNECT__03d_response
mov rcx, rbx
call fcn.1400b2244
jmp 0x1400bb7d3
xor edx, edx
lea r9, [rdi + 0x288]
lea rcx, [rsi + 0xf]
lea r8d, [rdx + 0xa]
call fcn.1400c8ce8
jmp 0x1400bb7d3
lea r9, str.close
mov qword [rsp + 0x20], 5
mov r8d, 0xb
lea rdx, str.Connection:
mov rcx, rsi
call fcn.1400bf358
test al, al
jne 0x1400bb7cc
mov r15d, 0x12
lea rdx, str.Transfer_Encoding:
mov r8d, r15d
mov rcx, rsi
call fcn.1400b82a8
test eax, eax
je 0x1400bb776
mov r8d, dword [rbx + 0x158]
lea eax, [r8 - 0xc8]
cmp eax, 0x64
jae 0x1400bb730
lea rdx, str.Ignoring_Transfer_Encoding_in_CONNECT__03d_response
jmp 0x1400bb6a0
lea r9, str.chunked
mov qword [rsp + 0x20], 7
mov r8, r15
lea rdx, str.Transfer_Encoding:
mov rcx, rsi
call fcn.1400bf358
test al, al
je 0x1400bb7d3
lea rdx, str.CONNECT_responded_chunked
mov rcx, rbx
call fcn.1400b2244
mov rcx, rbx
mov byte [rdi + 0x294], 1
call fcn.1400ec8f0
jmp 0x1400bb7d3
lea r9, str.close
mov qword [rsp + 0x20], 5
mov r8d, 0x11
lea rdx, str.Proxy_Connection:
mov rcx, rsi
call fcn.1400bf358
test al, al
jne 0x1400bb7cc
lea r15, [rbx + 0x158]
mov rcx, rsi
mov r9, r15
lea r8, [rbp - 0x44]
lea rdx, str.HTTP_1._d__d
call fcn.1400a677c
cmp eax, 2
jne 0x1400bb7d3
mov eax, dword [r15]
mov dword [rbx + 0x1374], eax
jmp 0x1400bb7d3
mov byte [rdi + 0x295], 1
mov rcx, r13
call fcn.1400a795c
xor r13d, r13d
cmp dword [rdi + 0x280], r13d
je 0x1400bb422
jmp 0x1400bb39a
xor r13d, r13d
cmp dword [rbx + 0x158], 0x197
jne 0x1400bb89e
cmp byte [rbx + 0x130d], r13b
jne 0x1400bb89e
mov r8, qword [rdi + 0x288]
mov dword [rdi + 0x280], 2
test r8, r8
je 0x1400bb837
lea rdx, str.Ignore__I64d_bytes_of_response_body
mov rcx, rbx
call fcn.1400b2244
jmp 0x1400bb8a5
cmp byte [rdi + 0x294], r13b
je 0x1400bb89e
lea rdx, str.Ignore_chunked_response_body
mov rcx, rbx
call fcn.1400b2244
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.1400ec910
cmp eax, 0xffffffff
jne 0x1400bb8a5
lea rdx, str.chunk_reading_DONE
mov rcx, rbx
call fcn.1400b2244
mov dword [rdi + 0x290], 2
mov dword [rdi + 0x280], r13d
cmp dword [rdi + 0x280], r13d
jne 0x1400bb39a
cmp qword [rdi + 0x288], r13
jne 0x1400bb7de
jmp 0x1400bb511
cmp dword [rbx + 0x210], r13d
je 0x1400bb8fb
cmp dword [rbx + 0xe18], r13d
je 0x1400bb8fb
cmp qword [rbx + 0x1298], r13
je 0x1400bb8fb
lea rdx, str.Proxy_CONNECT_connection_closed
mov byte [r14 + 0x3a8], 1
mov rcx, rbx
call fcn.1400b2244
mov esi, dword [rbp - 0x48]
jmp 0x1400bb90f
lea rdx, str.Proxy_CONNECT_aborted
mov rcx, rbx
mov esi, 1
call fcn.1400b2170
mov dword [rdi + 0x280], r13d
jmp 0x1400bb425
mov rcx, r15
call qword [fcn.14010f6c8]
mov eax, 0x1b
jmp 0x1400bbab2
mov r8, qword [rbx + 0x1a8]
lea rax, [rbp + 0x48]
mov rdx, qword [r14 + 0x410]
mov rcx, rbx
mov qword [rsp + 0x20], rax
call fcn.1400b2758
mov esi, eax
test eax, eax
jne 0x1400bb969
mov r9, qword [rbp + 0x48]
lea edx, [rax + 2]
mov r8, qword [rbx + 0x1a8]
mov rcx, rbx
call fcn.1400b2094
mov rcx, qword [rbp + 0x48]
sub qword [rdi + 0x270], rcx
add qword [rbx + 0x1a8], rcx
mov eax, esi
jmp 0x1400bbab2
lea rdx, str.CONNECT_response_too_large
mov rcx, rbx
call fcn.1400b2170
mov eax, 0x38
jmp 0x1400bbab2
movsxd rsi, r15d
mov rdx, r14
mov rcx, rbx
mov r8, qword [r14 + rsi*8 + 0x1d0]
call fcn.1400b30b4
or qword [r14 + rsi*8 + 0x1d0], 0xffffffffffffffff
mov eax, dword [rbx + 0x1374]
sub eax, 0xc8
cmp eax, 0x64
jb 0x1400bba59
cmp byte [rdi + 0x295], r13b
je 0x1400bba01
cmp qword [rbx + 0x198], r13
je 0x1400bba01
lea rdx, str.Connect_me_again_please
mov byte [r14 + 0x3a8], 1
mov rcx, rbx
call fcn.1400b2244
mov rcx, rbx
call fcn.1400bbbf4
jmp 0x1400bba22
mov rcx, qword [rbx + 0x198]
call qword [fcn.14010f6c8]
mov edx, 2
mov qword [rbx + 0x198], r13
mov rcx, r14
call fcn.1400b3294
mov dword [rdi + 0x290], r13d
cmp byte [r14 + 0x3a8], r13b
jne 0x1400bbab0
lea rcx, [rdi + 0x230]
call fcn.1400a7914
mov r8d, dword [rbx + 0x158]
lea rdx, str.Received_HTTP_code__d_from_proxy_after_CONNECT
mov rcx, rbx
call fcn.1400b2170
jmp 0x1400bb991
mov dword [rdi + 0x290], 2
mov rcx, qword [rbx + 0x1298]
call qword [fcn.14010f6c8]
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.1400b2244
mov byte [rbx + 0x1c4], r13b
lea rcx, [rdi + 0x230]
mov byte [r14 + 0x3b5], r13b
call fcn.1400a7914
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 0x1400bbab2
lea rdx, str.Proxy_CONNECT_aborted_due_to_timeout
mov rcx, rbx
call fcn.1400b2170
mov eax, 0x1c
jmp 0x1400bbab2