Function at 0x1400bbb04
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 0x1400bc5b4
cmp dword [rdi + 0x290], 2
jge 0x1400bc5b4
mov byte [r14 + 0x3a8], r13b
cmp dword [rdi + 0x290], r13d
jne 0x1400bbdf9
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.1400b2d48
mov rcx, qword [rbx + 0x198]
call qword [fcn.1401101c8]
mov edx, 0x100000
mov qword [rbx + 0x198], r13
mov rcx, r12
call fcn.1400a8440
mov al, byte [r14 + 0x3af]
cmp rsi, qword [r14 + 0x98]
je 0x1400bbbdf
mov edx, 0x3a
mov rcx, rsi
call fcn.140101354
test rax, rax
setne al
test al, al
lea rcx, [0x1401754bc]
mov eax, dword [rbp + 0x60]
lea r9, [0x14016dec1]
cmovne r9, rcx
mov dword [rsp + 0x20], eax
lea rcx, [0x1401754c0]
mov r8, rsi
lea rdx, [0x14016dec1]
cmovne rdx, rcx
lea rcx, str._s_s_s:_d
call fcn.1400c678c
mov r15, rax
test rax, rax
je 0x1400bc428
mov r9d, 4
lea r8, str.Host
mov rdx, r14
mov rcx, rbx
call fcn.1400bfde4
test rax, rax
jne 0x1400bbc5f
mov rdx, r15
lea rcx, str.Host:__s_r_n
call fcn.1400c678c
mov r13, rax
test rax, rax
je 0x1400bc41f
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.1400c1d78
mov esi, eax
test eax, eax
jne 0x1400bbdc6
cmp byte [r14 + 0x134], 1
lea rax, [0x140176950]
lea r9, [0x140176954]
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.1400a83e8
mov esi, eax
test eax, eax
jne 0x1400bbdb7
lea r9d, [rax + 0xa]
mov rdx, r14
lea r8, str.User_Agent
mov rcx, rbx
call fcn.1400bfde4
test rax, rax
jne 0x1400bbd2b
mov r8, qword [rbx + 0x870]
test r8, r8
je 0x1400bbd2b
lea rdx, str.User_Agent:__s_r_n
mov rcx, r12
call fcn.1400a83e8
mov esi, eax
test eax, eax
jne 0x1400bbdb7
mov r9d, 0x10
lea r8, str.Proxy_Connection
mov rdx, r14
mov rcx, rbx
call fcn.1400bfde4
test rax, rax
jne 0x1400bbd61
lea r8d, [rax + 0x1e]
mov rcx, r12
lea rdx, str.Proxy_Connection:_Keep_Alive_r_n
call fcn.1400a8410
mov esi, eax
test eax, eax
jne 0x1400bbdb7
mov r8, r12
mov dl, 1
mov rcx, rbx
call fcn.1400bf6a8
mov esi, eax
test eax, eax
jne 0x1400bbdb7
lea r8d, [rax + 2]
mov rcx, r12
lea rdx, [0x140174990]
call fcn.1400a8410
mov esi, eax
test eax, eax
jne 0x1400bbdb7
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.1400bfb48
and qword [rdi + 0x278], 0
mov esi, eax
test eax, eax
je 0x1400bbdc6
lea rdx, str.Failed_sending_CONNECT_to_proxy
mov rcx, rbx
call fcn.1400b2c74
mov rcx, r13
call qword [fcn.1401101c8]
mov rcx, r15
call qword [fcn.1401101c8]
xor r13d, r13d
test esi, esi
jne 0x1400bc47f
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.1400b4afc
test rax, rax
jle 0x1400bc5ce
mov edx, r15d
mov rcx, r14
call fcn.1400b3c98
test al, al
jne 0x1400bbe2b
cmp dword [rsi + 0x200], r13d
je 0x1400bc5b4
cmp dword [rsi + 0x200], 1
jne 0x1400bbe8a
mov r9, qword [rdi + 0x270]
test r9, r9
jne 0x1400bc432
mov rax, qword [rbx + 0xce0]
lea r8, [rbp - 0x20]
mov qword [rbx + 0x1a8], rax
mov rcx, rbx
mov edx, dword [rbx + 0x6f0]
call fcn.1400b966c
test eax, eax
jne 0x1400bc5b6
mov rax, qword [rbp - 0x20]
mov qword [rdi + 0x270], rax
mov r9, rax
test rax, rax
jne 0x1400bc432
mov dword [rsi + 0x200], r13d
mov esi, r13d
mov dword [rbp - 0x48], r13d
cmp dword [rdi + 0x280], r13d
je 0x1400bbf2d
lea rax, [rbp - 0x30]
mov r9d, 1
lea r8, [rbp + 0x48]
mov qword [rsp + 0x20], rax
mov rdx, r12
mov rcx, rbx
call fcn.1400b2de8
mov esi, eax
cmp eax, 0x51
je 0x1400bc5b4
mov rcx, rbx
call fcn.1400c3e54
test eax, eax
jne 0x1400bc5c7
test esi, esi
jne 0x1400bbf1f
cmp qword [rbp - 0x30], r13
jle 0x1400bc3c8
cmp dword [rdi + 0x280], 2
jne 0x1400bc024
mov rax, qword [rdi + 0x288]
test rax, rax
je 0x1400bbfd3
dec rax
mov qword [rdi + 0x288], rax
test rax, rax
jg 0x1400bc2e2
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.1400c3e54
test eax, eax
jne 0x1400bc5c7
test esi, esi
jne 0x1400bc495
mov eax, dword [rbx + 0x1374]
sub eax, 0xc8
cmp eax, 0x64
jb 0x1400bbf75
mov rcx, rbx
call fcn.1400bffec
test eax, eax
jne 0x1400bc5b6
cmp byte [r14 + 0x3aa], r13b
je 0x1400bbf75
mov byte [rdi + 0x295], 1
cmp byte [rdi + 0x295], r13b
je 0x1400bbf8b
cmp qword [rbx + 0x198], r13
jne 0x1400bc49f
mov rax, qword [rbx + 0x198]
test rax, rax
je 0x1400bc4be
cmp dword [rdi + 0x290], 2
mov rsi, qword [rbp - 0x40]
mov r9d, dword [rbp + 0x60]
jne 0x1400bbb71
mov dl, 1
mov rcx, rbx
call fcn.1400bc984
mov rax, qword [rbx + 0x198]
test rax, rax
je 0x1400bc4be
mov r9d, dword [rbp + 0x60]
jmp 0x1400bbb71
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.1400ed414
cmp eax, 0xffffffff
jne 0x1400bc2e2
lea rdx, str.chunk_reading_DONE
mov rcx, rbx
call fcn.1400b2d48
mov dword [rdi + 0x280], r13d
mov dword [rdi + 0x290], 2
jmp 0x1400bc2e2
lea r13, [rdi + 0x230]
mov r8d, 1
mov rcx, r13
lea rdx, [rbp + 0x48]
call fcn.1400a8410
test eax, eax
jne 0x1400bc486
cmp byte [rbp + 0x48], 0xa
jne 0x1400bc2df
inc qword [rdi + 0x278]
mov rcx, r13
call fcn.1400a845c
mov rcx, r13
mov rsi, rax
call fcn.1400a8454
mov r9, rax
mov r8, rsi
mov edx, 1
mov rcx, rbx
mov r15, rax
call fcn.1400b2b98
cmp byte [rbx + 0xae7], 0
jne 0x1400bc0be
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.1400b2b90
test eax, eax
jne 0x1400bc5b6
movsxd rax, r15d
add qword [rbx + 0x1388], rax
cmp byte [rsi], 0xd
je 0x1400bc2f4
cmp byte [rsi], 0xa
je 0x1400bc2f4
mov r8d, 0x11
lea rdx, str.WWW_Authenticate:
mov rcx, rsi
call fcn.1400b8dac
test eax, eax
je 0x1400bc103
mov r15d, dword [rbx + 0x158]
cmp r15d, 0x191
je 0x1400bc12c
mov r8d, 0x13
lea rdx, str.Proxy_authenticate:
mov rcx, rsi
call fcn.1400b8dac
test eax, eax
je 0x1400bc171
mov r15d, dword [rbx + 0x158]
cmp r15d, 0x197
jne 0x1400bc171
mov rcx, rsi
call fcn.1400bff0c
mov r12, rax
test rax, rax
je 0x1400bc428
cmp r15d, 0x197
mov r8, rax
mov rcx, rbx
sete dl
call fcn.1400c19b4
mov rcx, r12
mov esi, eax
call qword [fcn.1401101c8]
test esi, esi
jne 0x1400bc47f
mov r12, qword [rbp - 0x38]
jmp 0x1400bc2d7
mov r8d, 0xf
lea rdx, str.Content_Length:
mov rcx, rsi
call fcn.1400b8dac
test eax, eax
je 0x1400bc1cc
mov r8d, dword [rbx + 0x158]
lea eax, [r8 - 0xc8]
cmp eax, 0x64
jae 0x1400bc1b1
lea rdx, str.Ignoring_Content_Length_in_CONNECT__03d_response
mov rcx, rbx
call fcn.1400b2d48
jmp 0x1400bc2d7
xor edx, edx
lea r9, [rdi + 0x288]
lea rcx, [rsi + 0xf]
lea r8d, [rdx + 0xa]
call fcn.1400c97ec
jmp 0x1400bc2d7
lea r9, str.close
mov qword [rsp + 0x20], 5
mov r8d, 0xb
lea rdx, str.Connection:
mov rcx, rsi
call fcn.1400bfe5c
test al, al
jne 0x1400bc2d0
mov r15d, 0x12
lea rdx, str.Transfer_Encoding:
mov r8d, r15d
mov rcx, rsi
call fcn.1400b8dac
test eax, eax
je 0x1400bc27a
mov r8d, dword [rbx + 0x158]
lea eax, [r8 - 0xc8]
cmp eax, 0x64
jae 0x1400bc234
lea rdx, str.Ignoring_Transfer_Encoding_in_CONNECT__03d_response
jmp 0x1400bc1a4
lea r9, str.chunked
mov qword [rsp + 0x20], 7
mov r8, r15
lea rdx, str.Transfer_Encoding:
mov rcx, rsi
call fcn.1400bfe5c
test al, al
je 0x1400bc2d7
lea rdx, str.CONNECT_responded_chunked
mov rcx, rbx
call fcn.1400b2d48
mov rcx, rbx
mov byte [rdi + 0x294], 1
call fcn.1400ed3f4
jmp 0x1400bc2d7
lea r9, str.close
mov qword [rsp + 0x20], 5
mov r8d, 0x11
lea rdx, str.Proxy_Connection:
mov rcx, rsi
call fcn.1400bfe5c
test al, al
jne 0x1400bc2d0
lea r15, [rbx + 0x158]
mov rcx, rsi
mov r9, r15
lea r8, [rbp - 0x44]
lea rdx, str.HTTP_1._d__d
call fcn.1400a7280
cmp eax, 2
jne 0x1400bc2d7
mov eax, dword [r15]
mov dword [rbx + 0x1374], eax
jmp 0x1400bc2d7
mov byte [rdi + 0x295], 1
mov rcx, r13
call fcn.1400a8460
xor r13d, r13d
cmp dword [rdi + 0x280], r13d
je 0x1400bbf26
jmp 0x1400bbe9e
xor r13d, r13d
cmp dword [rbx + 0x158], 0x197
jne 0x1400bc3a2
cmp byte [rbx + 0x130d], r13b
jne 0x1400bc3a2
mov r8, qword [rdi + 0x288]
mov dword [rdi + 0x280], 2
test r8, r8
je 0x1400bc33b
lea rdx, str.Ignore__I64d_bytes_of_response_body
mov rcx, rbx
call fcn.1400b2d48
jmp 0x1400bc3a9
cmp byte [rdi + 0x294], r13b
je 0x1400bc3a2
lea rdx, str.Ignore_chunked_response_body
mov rcx, rbx
call fcn.1400b2d48
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.1400ed414
cmp eax, 0xffffffff
jne 0x1400bc3a9
lea rdx, str.chunk_reading_DONE
mov rcx, rbx
call fcn.1400b2d48
mov dword [rdi + 0x290], 2
mov dword [rdi + 0x280], r13d
cmp dword [rdi + 0x280], r13d
jne 0x1400bbe9e
cmp qword [rdi + 0x288], r13
jne 0x1400bc2e2
jmp 0x1400bc015
cmp dword [rbx + 0x210], r13d
je 0x1400bc3ff
cmp dword [rbx + 0xe18], r13d
je 0x1400bc3ff
cmp qword [rbx + 0x1298], r13
je 0x1400bc3ff
lea rdx, str.Proxy_CONNECT_connection_closed
mov byte [r14 + 0x3a8], 1
mov rcx, rbx
call fcn.1400b2d48
mov esi, dword [rbp - 0x48]
jmp 0x1400bc413
lea rdx, str.Proxy_CONNECT_aborted
mov rcx, rbx
mov esi, 1
call fcn.1400b2c74
mov dword [rdi + 0x280], r13d
jmp 0x1400bbf29
mov rcx, r15
call qword [fcn.1401101c8]
mov eax, 0x1b
jmp 0x1400bc5b6
mov r8, qword [rbx + 0x1a8]
lea rax, [rbp + 0x48]
mov rdx, qword [r14 + 0x410]
mov rcx, rbx
mov qword [rsp + 0x20], rax
call fcn.1400b325c
mov esi, eax
test eax, eax
jne 0x1400bc46d
mov r9, qword [rbp + 0x48]
lea edx, [rax + 2]
mov r8, qword [rbx + 0x1a8]
mov rcx, rbx
call fcn.1400b2b98
mov rcx, qword [rbp + 0x48]
sub qword [rdi + 0x270], rcx
add qword [rbx + 0x1a8], rcx
mov eax, esi
jmp 0x1400bc5b6
lea rdx, str.CONNECT_response_too_large
mov rcx, rbx
call fcn.1400b2c74
mov eax, 0x38
jmp 0x1400bc5b6
movsxd rsi, r15d
mov rdx, r14
mov rcx, rbx
mov r8, qword [r14 + rsi*8 + 0x1d0]
call fcn.1400b3bb8
or qword [r14 + rsi*8 + 0x1d0], 0xffffffffffffffff
mov eax, dword [rbx + 0x1374]
sub eax, 0xc8
cmp eax, 0x64
jb 0x1400bc55d
cmp byte [rdi + 0x295], r13b
je 0x1400bc505
cmp qword [rbx + 0x198], r13
je 0x1400bc505
lea rdx, str.Connect_me_again_please
mov byte [r14 + 0x3a8], 1
mov rcx, rbx
call fcn.1400b2d48
mov rcx, rbx
call fcn.1400bc6f8
jmp 0x1400bc526
mov rcx, qword [rbx + 0x198]
call qword [fcn.1401101c8]
mov edx, 2
mov qword [rbx + 0x198], r13
mov rcx, r14
call fcn.1400b3d98
mov dword [rdi + 0x290], r13d
cmp byte [r14 + 0x3a8], r13b
jne 0x1400bc5b4
lea rcx, [rdi + 0x230]
call fcn.1400a8418
mov r8d, dword [rbx + 0x158]
lea rdx, str.Received_HTTP_code__d_from_proxy_after_CONNECT
mov rcx, rbx
call fcn.1400b2c74
jmp 0x1400bc495
mov dword [rdi + 0x290], 2
mov rcx, qword [rbx + 0x1298]
call qword [fcn.1401101c8]
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.1400b2d48
mov byte [rbx + 0x1c4], r13b
lea rcx, [rdi + 0x230]
mov byte [r14 + 0x3b5], r13b
call fcn.1400a8418
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 0x1400bc5b6
lea rdx, str.Proxy_CONNECT_aborted_due_to_timeout
mov rcx, rbx
call fcn.1400b2c74
mov eax, 0x1c
jmp 0x1400bc5b6