Function at 0x1400bcea4
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 0x1400bd954
cmp dword [rdi + 0x290], 2
jge 0x1400bd954
mov byte [r14 + 0x3a8], r13b
cmp dword [rdi + 0x290], r13d
jne 0x1400bd199
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.1400b40e8
mov rcx, qword [rbx + 0x198]
call qword [fcn.140111558]
mov edx, 0x100000
mov qword [rbx + 0x198], r13
mov rcx, r12
call fcn.1400a97e0
mov al, byte [r14 + 0x3af]
cmp rsi, qword [r14 + 0x98]
je 0x1400bcf7f
mov edx, 0x3a
mov rcx, rsi
call fcn.1401026e4
test rax, rax
setne al
test al, al
lea rcx, [0x1401764bc]
mov eax, dword [rbp + 0x60]
lea r9, [0x14016ee91]
cmovne r9, rcx
mov dword [rsp + 0x20], eax
lea rcx, [0x1401764c0]
mov r8, rsi
lea rdx, [0x14016ee91]
cmovne rdx, rcx
lea rcx, str._s_s_s:_d
call fcn.1400c7b2c
mov r15, rax
test rax, rax
je 0x1400bd7c8
mov r9d, 4
lea r8, str.Host
mov rdx, r14
mov rcx, rbx
call fcn.1400c1184
test rax, rax
jne 0x1400bcfff
mov rdx, r15
lea rcx, str.Host:__s_r_n
call fcn.1400c7b2c
mov r13, rax
test rax, rax
je 0x1400bd7bf
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.1400c3118
mov esi, eax
test eax, eax
jne 0x1400bd166
cmp byte [r14 + 0x134], 1
lea rax, [0x140177950]
lea r9, [0x140177954]
mov r8, r15
cmove r9, rax
lea rcx, [0x14016ee91]
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, [0x14016ee91]
cmovne rax, r13
mov rcx, r12
mov qword [rsp + 0x20], rax
call fcn.1400a9788
mov esi, eax
test eax, eax
jne 0x1400bd157
lea r9d, [rax + 0xa]
mov rdx, r14
lea r8, str.User_Agent
mov rcx, rbx
call fcn.1400c1184
test rax, rax
jne 0x1400bd0cb
mov r8, qword [rbx + 0x870]
test r8, r8
je 0x1400bd0cb
lea rdx, str.User_Agent:__s_r_n
mov rcx, r12
call fcn.1400a9788
mov esi, eax
test eax, eax
jne 0x1400bd157
mov r9d, 0x10
lea r8, str.Proxy_Connection
mov rdx, r14
mov rcx, rbx
call fcn.1400c1184
test rax, rax
jne 0x1400bd101
lea r8d, [rax + 0x1e]
mov rcx, r12
lea rdx, str.Proxy_Connection:_Keep_Alive_r_n
call fcn.1400a97b0
mov esi, eax
test eax, eax
jne 0x1400bd157
mov r8, r12
mov dl, 1
mov rcx, rbx
call fcn.1400c0a48
mov esi, eax
test eax, eax
jne 0x1400bd157
lea r8d, [rax + 2]
mov rcx, r12
lea rdx, [0x140175990]
call fcn.1400a97b0
mov esi, eax
test eax, eax
jne 0x1400bd157
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.1400c0ee8
and qword [rdi + 0x278], 0
mov esi, eax
test eax, eax
je 0x1400bd166
lea rdx, str.Failed_sending_CONNECT_to_proxy
mov rcx, rbx
call fcn.1400b4014
mov rcx, r13
call qword [fcn.140111558]
mov rcx, r15
call qword [fcn.140111558]
xor r13d, r13d
test esi, esi
jne 0x1400bd81f
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.1400b5e9c
test rax, rax
jle 0x1400bd96e
mov edx, r15d
mov rcx, r14
call fcn.1400b5038
test al, al
jne 0x1400bd1cb
cmp dword [rsi + 0x200], r13d
je 0x1400bd954
cmp dword [rsi + 0x200], 1
jne 0x1400bd22a
mov r9, qword [rdi + 0x270]
test r9, r9
jne 0x1400bd7d2
mov rax, qword [rbx + 0xce0]
lea r8, [rbp - 0x20]
mov qword [rbx + 0x1a8], rax
mov rcx, rbx
mov edx, dword [rbx + 0x6f0]
call fcn.1400baa0c
test eax, eax
jne 0x1400bd956
mov rax, qword [rbp - 0x20]
mov qword [rdi + 0x270], rax
mov r9, rax
test rax, rax
jne 0x1400bd7d2
mov dword [rsi + 0x200], r13d
mov esi, r13d
mov dword [rbp - 0x48], r13d
cmp dword [rdi + 0x280], r13d
je 0x1400bd2cd
lea rax, [rbp - 0x30]
mov r9d, 1
lea r8, [rbp + 0x48]
mov qword [rsp + 0x20], rax
mov rdx, r12
mov rcx, rbx
call fcn.1400b4188
mov esi, eax
cmp eax, 0x51
je 0x1400bd954
mov rcx, rbx
call fcn.1400c51f4
test eax, eax
jne 0x1400bd967
test esi, esi
jne 0x1400bd2bf
cmp qword [rbp - 0x30], r13
jle 0x1400bd768
cmp dword [rdi + 0x280], 2
jne 0x1400bd3c4
mov rax, qword [rdi + 0x288]
test rax, rax
je 0x1400bd373
dec rax
mov qword [rdi + 0x288], rax
test rax, rax
jg 0x1400bd682
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.1400c51f4
test eax, eax
jne 0x1400bd967
test esi, esi
jne 0x1400bd835
mov eax, dword [rbx + 0x1374]
sub eax, 0xc8
cmp eax, 0x64
jb 0x1400bd315
mov rcx, rbx
call fcn.1400c138c
test eax, eax
jne 0x1400bd956
cmp byte [r14 + 0x3aa], r13b
je 0x1400bd315
mov byte [rdi + 0x295], 1
cmp byte [rdi + 0x295], r13b
je 0x1400bd32b
cmp qword [rbx + 0x198], r13
jne 0x1400bd83f
mov rax, qword [rbx + 0x198]
test rax, rax
je 0x1400bd85e
cmp dword [rdi + 0x290], 2
mov rsi, qword [rbp - 0x40]
mov r9d, dword [rbp + 0x60]
jne 0x1400bcf11
mov dl, 1
mov rcx, rbx
call fcn.1400bdd24
mov rax, qword [rbx + 0x198]
test rax, rax
je 0x1400bd85e
mov r9d, dword [rbp + 0x60]
jmp 0x1400bcf11
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.1400ee7b4
cmp eax, 0xffffffff
jne 0x1400bd682
lea rdx, str.chunk_reading_DONE
mov rcx, rbx
call fcn.1400b40e8
mov dword [rdi + 0x280], r13d
mov dword [rdi + 0x290], 2
jmp 0x1400bd682
lea r13, [rdi + 0x230]
mov r8d, 1
mov rcx, r13
lea rdx, [rbp + 0x48]
call fcn.1400a97b0
test eax, eax
jne 0x1400bd826
cmp byte [rbp + 0x48], 0xa
jne 0x1400bd67f
inc qword [rdi + 0x278]
mov rcx, r13
call fcn.1400a97fc
mov rcx, r13
mov rsi, rax
call fcn.1400a97f4
mov r9, rax
mov r8, rsi
mov edx, 1
mov rcx, rbx
mov r15, rax
call fcn.1400b3f38
cmp byte [rbx + 0xae7], 0
jne 0x1400bd45e
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.1400b3f30
test eax, eax
jne 0x1400bd956
movsxd rax, r15d
add qword [rbx + 0x1388], rax
cmp byte [rsi], 0xd
je 0x1400bd694
cmp byte [rsi], 0xa
je 0x1400bd694
mov r8d, 0x11
lea rdx, str.WWW_Authenticate:
mov rcx, rsi
call fcn.1400ba14c
test eax, eax
je 0x1400bd4a3
mov r15d, dword [rbx + 0x158]
cmp r15d, 0x191
je 0x1400bd4cc
mov r8d, 0x13
lea rdx, str.Proxy_authenticate:
mov rcx, rsi
call fcn.1400ba14c
test eax, eax
je 0x1400bd511
mov r15d, dword [rbx + 0x158]
cmp r15d, 0x197
jne 0x1400bd511
mov rcx, rsi
call fcn.1400c12ac
mov r12, rax
test rax, rax
je 0x1400bd7c8
cmp r15d, 0x197
mov r8, rax
mov rcx, rbx
sete dl
call fcn.1400c2d54
mov rcx, r12
mov esi, eax
call qword [fcn.140111558]
test esi, esi
jne 0x1400bd81f
mov r12, qword [rbp - 0x38]
jmp 0x1400bd677
mov r8d, 0xf
lea rdx, str.Content_Length:
mov rcx, rsi
call fcn.1400ba14c
test eax, eax
je 0x1400bd56c
mov r8d, dword [rbx + 0x158]
lea eax, [r8 - 0xc8]
cmp eax, 0x64
jae 0x1400bd551
lea rdx, str.Ignoring_Content_Length_in_CONNECT__03d_response
mov rcx, rbx
call fcn.1400b40e8
jmp 0x1400bd677
xor edx, edx
lea r9, [rdi + 0x288]
lea rcx, [rsi + 0xf]
lea r8d, [rdx + 0xa]
call fcn.1400cab8c
jmp 0x1400bd677
lea r9, str.close
mov qword [rsp + 0x20], 5
mov r8d, 0xb
lea rdx, str.Connection:
mov rcx, rsi
call fcn.1400c11fc
test al, al
jne 0x1400bd670
mov r15d, 0x12
lea rdx, str.Transfer_Encoding:
mov r8d, r15d
mov rcx, rsi
call fcn.1400ba14c
test eax, eax
je 0x1400bd61a
mov r8d, dword [rbx + 0x158]
lea eax, [r8 - 0xc8]
cmp eax, 0x64
jae 0x1400bd5d4
lea rdx, str.Ignoring_Transfer_Encoding_in_CONNECT__03d_response
jmp 0x1400bd544
lea r9, str.chunked
mov qword [rsp + 0x20], 7
mov r8, r15
lea rdx, str.Transfer_Encoding:
mov rcx, rsi
call fcn.1400c11fc
test al, al
je 0x1400bd677
lea rdx, str.CONNECT_responded_chunked
mov rcx, rbx
call fcn.1400b40e8
mov rcx, rbx
mov byte [rdi + 0x294], 1
call fcn.1400ee794
jmp 0x1400bd677
lea r9, str.close
mov qword [rsp + 0x20], 5
mov r8d, 0x11
lea rdx, str.Proxy_Connection:
mov rcx, rsi
call fcn.1400c11fc
test al, al
jne 0x1400bd670
lea r15, [rbx + 0x158]
mov rcx, rsi
mov r9, r15
lea r8, [rbp - 0x44]
lea rdx, str.HTTP_1._d__d
call fcn.1400a8620
cmp eax, 2
jne 0x1400bd677
mov eax, dword [r15]
mov dword [rbx + 0x1374], eax
jmp 0x1400bd677
mov byte [rdi + 0x295], 1
mov rcx, r13
call fcn.1400a9800
xor r13d, r13d
cmp dword [rdi + 0x280], r13d
je 0x1400bd2c6
jmp 0x1400bd23e
xor r13d, r13d
cmp dword [rbx + 0x158], 0x197
jne 0x1400bd742
cmp byte [rbx + 0x130d], r13b
jne 0x1400bd742
mov r8, qword [rdi + 0x288]
mov dword [rdi + 0x280], 2
test r8, r8
je 0x1400bd6db
lea rdx, str.Ignore__I64d_bytes_of_response_body
mov rcx, rbx
call fcn.1400b40e8
jmp 0x1400bd749
cmp byte [rdi + 0x294], r13b
je 0x1400bd742
lea rdx, str.Ignore_chunked_response_body
mov rcx, rbx
call fcn.1400b40e8
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.1400ee7b4
cmp eax, 0xffffffff
jne 0x1400bd749
lea rdx, str.chunk_reading_DONE
mov rcx, rbx
call fcn.1400b40e8
mov dword [rdi + 0x290], 2
mov dword [rdi + 0x280], r13d
cmp dword [rdi + 0x280], r13d
jne 0x1400bd23e
cmp qword [rdi + 0x288], r13
jne 0x1400bd682
jmp 0x1400bd3b5
cmp dword [rbx + 0x210], r13d
je 0x1400bd79f
cmp dword [rbx + 0xe18], r13d
je 0x1400bd79f
cmp qword [rbx + 0x1298], r13
je 0x1400bd79f
lea rdx, str.Proxy_CONNECT_connection_closed
mov byte [r14 + 0x3a8], 1
mov rcx, rbx
call fcn.1400b40e8
mov esi, dword [rbp - 0x48]
jmp 0x1400bd7b3
lea rdx, str.Proxy_CONNECT_aborted
mov rcx, rbx
mov esi, 1
call fcn.1400b4014
mov dword [rdi + 0x280], r13d
jmp 0x1400bd2c9
mov rcx, r15
call qword [fcn.140111558]
mov eax, 0x1b
jmp 0x1400bd956
mov r8, qword [rbx + 0x1a8]
lea rax, [rbp + 0x48]
mov rdx, qword [r14 + 0x410]
mov rcx, rbx
mov qword [rsp + 0x20], rax
call fcn.1400b45fc
mov esi, eax
test eax, eax
jne 0x1400bd80d
mov r9, qword [rbp + 0x48]
lea edx, [rax + 2]
mov r8, qword [rbx + 0x1a8]
mov rcx, rbx
call fcn.1400b3f38
mov rcx, qword [rbp + 0x48]
sub qword [rdi + 0x270], rcx
add qword [rbx + 0x1a8], rcx
mov eax, esi
jmp 0x1400bd956
lea rdx, str.CONNECT_response_too_large
mov rcx, rbx
call fcn.1400b4014
mov eax, 0x38
jmp 0x1400bd956
movsxd rsi, r15d
mov rdx, r14
mov rcx, rbx
mov r8, qword [r14 + rsi*8 + 0x1d0]
call fcn.1400b4f58
or qword [r14 + rsi*8 + 0x1d0], 0xffffffffffffffff
mov eax, dword [rbx + 0x1374]
sub eax, 0xc8
cmp eax, 0x64
jb 0x1400bd8fd
cmp byte [rdi + 0x295], r13b
je 0x1400bd8a5
cmp qword [rbx + 0x198], r13
je 0x1400bd8a5
lea rdx, str.Connect_me_again_please
mov byte [r14 + 0x3a8], 1
mov rcx, rbx
call fcn.1400b40e8
mov rcx, rbx
call fcn.1400bda98
jmp 0x1400bd8c6
mov rcx, qword [rbx + 0x198]
call qword [fcn.140111558]
mov edx, 2
mov qword [rbx + 0x198], r13
mov rcx, r14
call fcn.1400b5138
mov dword [rdi + 0x290], r13d
cmp byte [r14 + 0x3a8], r13b
jne 0x1400bd954
lea rcx, [rdi + 0x230]
call fcn.1400a97b8
mov r8d, dword [rbx + 0x158]
lea rdx, str.Received_HTTP_code__d_from_proxy_after_CONNECT
mov rcx, rbx
call fcn.1400b4014
jmp 0x1400bd835
mov dword [rdi + 0x290], 2
mov rcx, qword [rbx + 0x1298]
call qword [fcn.140111558]
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.1400b40e8
mov byte [rbx + 0x1c4], r13b
lea rcx, [rdi + 0x230]
mov byte [r14 + 0x3b5], r13b
call fcn.1400a97b8
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 0x1400bd956
lea rdx, str.Proxy_CONNECT_aborted_due_to_timeout
mov rcx, rbx
call fcn.1400b4014
mov eax, 0x1c
jmp 0x1400bd956