Function at 0x14009d690
Capabilities:
Check http status code

Disassembly:
mov rax, rsp
mov dword [rax + 0x20], r9d
mov qword [rax + 0x18], r8
mov dword [rax + 0x10], edx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x78
mov r13, qword [rcx + 0x18]
xor r12d, r12d
mov rbp, qword [rcx + 0x1b0]
mov rbx, rcx
mov dword [rax + 8], r12d
mov rcx, r13
mov r14d, r9d
mov qword [rsp + 0x38], rbp
mov rsi, qword [r13 + 0x1f0]
mov r15, r8
mov rdi, qword [r13 + 0x6f8]
mov qword [rsp + 0x40], rsi
call fcn.14009e400
test al, al
jne 0x14009e0a5
mov byte [r13 + 0x3c8], r12b
nop dword [rax + rax]
cmp dword [rdi + 0x290], 0
jne 0x14009d903
mov rcx, qword [rbx + 0x198]
lea rbp, [rdi + 0x250]
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x50], r12
call qword [fcn.140058718]
mov edx, 0x100000
mov qword [rbx + 0x198], r12
mov rcx, rbp
call fcn.140081630
lea rcx, [rsp + 0x50]
mov r9d, r14d
mov qword [rsp + 0x28], rcx
lea rax, [rsp + 0x48]
mov rcx, rbx
mov qword [rsp + 0x20], rax
mov r8, r15
mov rdx, r13
call fcn.14009e0e0
test eax, eax
jne 0x14009e0a7
mov r14, qword [rsp + 0x48]
lea r8, str.CONNECT
mov byte [rsp + 0x28], 1
xor r9d, r9d
mov rdx, r13
mov qword [rsp + 0x20], r14
mov rcx, rbx
call fcn.1400a8550
mov r15, qword [rsp + 0x50]
mov esi, eax
test eax, eax
jne 0x14009d8d5
cmp dword [r13 + 0x13c], 1
lea rax, [0x1400f4114]
lea r9, [0x1400f40fc]
mov r8, r14
cmove r9, rax
lea rcx, [0x1400fa9c2]
mov rax, qword [rbx + 0x11f0]
lea rdx, str.CONNECT__s_HTTP__s_r_n_s_s
test rax, rax
cmovne rcx, rax
test r15, r15
mov qword [rsp + 0x28], rcx
lea rax, [0x1400fa9c1]
cmovne rax, r15
mov rcx, rbp
mov qword [rsp + 0x20], rax
call fcn.140081480
mov esi, eax
test eax, eax
jne 0x14009d8c6
lea r9d, [rax + 0xa]
mov rdx, r13
lea r8, [0x1400f5850]
mov rcx, rbx
call fcn.1400a7fb0
test rax, rax
jne 0x14009d842
mov r8, qword [rbx + 0x860]
test r8, r8
je 0x14009d842
lea rdx, [0x1400f5838]
mov rcx, rbp
call fcn.140081480
mov esi, eax
test eax, eax
jne 0x14009d8c6
mov r9d, 0x10
lea r8, [0x1400f5820]
mov rdx, r13
mov rcx, rbx
call fcn.1400a7fb0
test rax, rax
jne 0x14009d878
lea r8d, [rax + 0x1e]
mov rcx, rbp
lea rdx, [0x1400f5800]
call fcn.1400815e0
mov esi, eax
test eax, eax
jne 0x14009d8c6
mov r8, rbp
mov dl, 1
mov rcx, rbx
call fcn.1400a87c0
mov esi, eax
test eax, eax
jne 0x14009d8c6
lea r8d, [rax + 2]
mov rcx, rbp
lea rdx, [0x1400f406c]
call fcn.1400815e0
mov esi, eax
test eax, eax
jne 0x14009d8c6
lea r8, [rbx + 0x1298]
xor r9d, r9d
mov rdx, rbx
mov rcx, rbp
call fcn.1400a7d30
mov qword [rdi + 0x278], r12
mov esi, eax
test eax, eax
je 0x14009d8d5
lea rdx, str.Failed_sending_CONNECT_to_proxy
mov rcx, rbx
call fcn.140087d60
mov rcx, r15
call qword [fcn.140058718]
mov rcx, r14
call qword [fcn.140058718]
test esi, esi
jne 0x14009df88
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x38]
mov dword [rdi + 0x290], 1
mov r8b, 1
xor edx, edx
mov rcx, rbx
call fcn.14008a220
test rax, rax
jle 0x14009e0bf
mov rcx, r13
call fcn.140088050
test al, al
jne 0x14009d932
cmp dword [rbp + 0x200], 0
je 0x14009e0a5
cmp dword [rbp + 0x200], 1
jne 0x14009d998
mov r9, qword [rdi + 0x270]
test r9, r9
jne 0x14009df8f
mov rax, qword [rbx + 0xc80]
lea r8, [rsp + 0x60]
mov qword [rbx + 0x1a8], rax
mov rcx, rbx
mov edx, dword [rbx + 0x6e8]
call fcn.14009f680
test eax, eax
jne 0x14009e0a7
mov rax, qword [rsp + 0x60]
mov qword [rdi + 0x270], rax
mov r9, rax
test rax, rax
jne 0x14009df8f
xor r14d, r14d
mov dword [rbp + 0x200], r14d
jmp 0x14009d99b
xor r14d, r14d
cmp dword [rdi + 0x280], 0
mov r12d, r14d
je 0x14009de59
nop dword [rax + rax]
lea rax, [rsp + 0x58]
mov r9d, 1
lea r8, [rsp + 0xc8]
mov qword [rsp + 0x20], rax
mov rdx, rsi
mov rcx, rbx
call fcn.140087c60
mov esi, eax
cmp eax, 0x51
je 0x14009e0a5
mov rcx, rbx
call fcn.14009d1f0
test eax, eax
jne 0x14009e0b8
test esi, esi
jne 0x14009de4d
cmp qword [rsp + 0x58], 0
jle 0x14009de12
cmp dword [rdi + 0x280], 2
jne 0x14009da78
mov rax, qword [rdi + 0x288]
test rax, rax
je 0x14009da39
dec rax
mov qword [rdi + 0x288], rax
test rax, rax
jg 0x14009ddff
mov dword [rdi + 0x290], 2
jmp 0x14009de4d
lea rax, [rsp + 0x30]
mov qword [rsp + 0x50], r14
lea r9, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r8d, 1
lea rdx, [rsp + 0xc8]
mov rcx, rbx
call fcn.1400b0100
cmp eax, 0xffffffff
jne 0x14009ddff
mov dword [rdi + 0x280], r14d
jmp 0x14009ddf5
mov r8d, 1
lea rdx, [rsp + 0xc8]
lea rcx, [rdi + 0x230]
call fcn.1400815e0
test eax, eax
jne 0x14009dfea
cmp byte [rsp + 0xc8], 0xa
jne 0x14009ddff
inc qword [rdi + 0x278]
lea rcx, [rdi + 0x230]
call fcn.140081620
lea rcx, [rdi + 0x230]
mov rsi, rax
call fcn.140081650
mov r9, rax
mov r8, rsi
mov edx, 1
mov rcx, rbx
mov rbp, rax
call fcn.140087260
cmp byte [rbx + 0xa89], 0
jne 0x14009db23
cmp byte [rbx + 0xa71], 0
mov edx, r14d
mov ecx, 0xa
mov eax, 0xe
setne dl
mov r9, rbp
cmp qword [rdi + 0x278], 1
mov r8, rsi
cmove ecx, eax
or edx, ecx
mov rcx, rbx
call fcn.140087e50
test eax, eax
jne 0x14009e0a7
movsxd rax, ebp
add qword [rbx + 0x1290], rax
movzx eax, byte [rsi]
cmp al, 0xd
je 0x14009dd4f
cmp al, 0xa
je 0x14009dd4f
mov r8d, 0x11
lea rdx, [0x1400f5768]
mov rcx, rsi
call fcn.140095d10
test eax, eax
je 0x14009db67
mov ebp, dword [rbx + 0x158]
cmp ebp, 0x191
je 0x14009db8e
mov r8d, 0x13
lea rdx, [0x1400f5750]
mov rcx, rsi
call fcn.140095d10
test eax, eax
je 0x14009dbd0
mov ebp, dword [rbx + 0x158]
cmp ebp, 0x197
jne 0x14009dbd0
mov rcx, rsi
call fcn.1400a86b0
mov rsi, rax
test rax, rax
je 0x14009dfe0
cmp ebp, 0x197
mov r8, rax
mov rcx, rbx
sete dl
call fcn.1400a8270
mov rcx, rsi
mov ebp, eax
call qword [fcn.140058718]
test ebp, ebp
je 0x14009dd3e
mov eax, ebp
jmp 0x14009e0a7
mov r8d, 0xf
lea rdx, [0x1400f5740]
mov rcx, rsi
call fcn.140095d10
test eax, eax
je 0x14009dc24
mov eax, dword [rbx + 0x158]
sub eax, 0xc8
cmp eax, 0x64
jb 0x14009dd3e
xor edx, edx
lea r9, [rdi + 0x288]
lea rcx, [rsi + 0xf]
lea r8d, [rdx + 0xa]
call fcn.1400a9de0
lea rcx, [rdi + 0x230]
call fcn.1400814d0
jmp 0x14009ddff
lea r9, [0x1400f443c]
mov qword [rsp + 0x20], 5
mov r8d, 0xb
lea rdx, [0x1400f5730]
mov rcx, rsi
call fcn.1400a8ad0
test al, al
jne 0x14009dd37
mov r8d, 0x12
lea rdx, [0x1400f5718]
mov rcx, rsi
call fcn.140095d10
test eax, eax
je 0x14009dccb
mov eax, dword [rbx + 0x158]
sub eax, 0xc8
cmp eax, 0x64
jb 0x14009dd3e
lea r9, [0x1400f5710]
mov qword [rsp + 0x20], 7
mov r8d, 0x12
lea rdx, [0x1400f56f8]
mov rcx, rsi
call fcn.1400a8ad0
test al, al
je 0x14009dd3e
mov rcx, rbx
mov byte [rdi + 0x294], 1
call fcn.1400b0490
lea rcx, [rdi + 0x230]
call fcn.1400814d0
jmp 0x14009ddff
lea r9, [0x1400f43ac]
mov qword [rsp + 0x20], 5
mov r8d, 0x11
lea rdx, [0x1400f56e0]
mov rcx, rsi
call fcn.1400a8ad0
test al, al
jne 0x14009dd37
lea r9, [rbx + 0x158]
mov rcx, rsi
lea r8, [rsp + 0xc0]
lea rdx, str.HTTP_1._d__d
call fcn.14002d6a0
xor r14d, r14d
cmp eax, 2
jne 0x14009dd3e
mov eax, dword [rbx + 0x158]
lea rcx, [rdi + 0x230]
mov dword [rbx + 0x127c], eax
call fcn.1400814d0
jmp 0x14009ddff
mov byte [rdi + 0x295], 1
lea rcx, [rdi + 0x230]
call fcn.1400814d0
jmp 0x14009ddff
cmp dword [rbx + 0x158], 0x197
jne 0x14009dde4
cmp byte [rbx + 0x1265], 0
jne 0x14009dde4
cmp qword [rdi + 0x288], 0
mov eax, 2
mov dword [rdi + 0x280], 2
jne 0x14009ddd6
cmp byte [rdi + 0x294], 0
je 0x14009ddcc
lea rax, [rsi + 1]
mov byte [rbx + 0x1c4], 1
cmp byte [rax], 0xa
lea r9, [rsp + 0x58]
mov r8d, 1
mov rcx, rbx
cmove rsi, rax
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
lea rdx, [rsi + 1]
call fcn.1400b0100
cmp eax, 0xffffffff
jne 0x14009dddc
mov dword [rdi + 0x290], 2
mov eax, r14d
mov dword [rdi + 0x280], r14d
test eax, eax
jne 0x14009ddff
jmp 0x14009ddeb
mov eax, dword [rdi + 0x280]
jmp 0x14009ddd6
mov dword [rdi + 0x280], r14d
cmp qword [rdi + 0x288], 0
jne 0x14009ddff
mov dword [rdi + 0x290], 2
cmp dword [rdi + 0x280], 0
je 0x14009de54
mov rsi, qword [rsp + 0x40]
jmp 0x14009d9b0
cmp dword [rbx + 0x210], 0
je 0x14009de38
cmp dword [rbx + 0xdb0], 0
je 0x14009de38
cmp qword [rbx + 0x11f0], 0
je 0x14009de38
mov byte [r13 + 0x3c8], 1
jmp 0x14009de4d
lea rdx, str.Proxy_CONNECT_aborted
mov rcx, rbx
mov r12d, 1
call fcn.140087d60
mov dword [rdi + 0x280], r14d
mov rbp, qword [rsp + 0x38]
mov rcx, rbx
call fcn.14009d1f0
test eax, eax
jne 0x14009e0b8
test r12d, r12d
jne 0x14009dff9
mov eax, dword [rbx + 0x127c]
sub eax, 0xc8
cmp eax, 0x64
jb 0x14009dea2
mov rcx, rbx
call fcn.1400a8040
test eax, eax
jne 0x14009e0a7
cmp byte [r13 + 0x3ca], al
je 0x14009dea2
mov byte [rdi + 0x295], 1
cmp byte [rdi + 0x295], 0
je 0x14009df1d
cmp qword [rbx + 0x198], 0
je 0x14009df5b
mov r8, qword [r13 + 0x1f0]
mov rdx, r13
mov rcx, rbx
call fcn.1400881c0
mov qword [r13 + 0x1f0], 0xffffffffffffffff
mov eax, dword [rbx + 0x127c]
sub eax, 0xc8
cmp eax, 0x64
jb 0x14009e061
cmp byte [rdi + 0x295], 0
je 0x14009e003
cmp qword [rbx + 0x198], 0
je 0x14009e003
mov rcx, rbx
mov byte [r13 + 0x3c8], 1
call fcn.14009e470
xor r12d, r12d
jmp 0x14009e027
mov rax, qword [rbx + 0x198]
test rax, rax
je 0x14009ded6
cmp dword [rdi + 0x290], 2
mov r12d, 0
mov rsi, qword [rsp + 0x40]
mov r14d, dword [rsp + 0xd8]
mov r15, qword [rsp + 0xd0]
jne 0x14009d700
mov dl, 1
mov rcx, rbx
call fcn.14009e1f0
mov rax, qword [rbx + 0x198]
test rax, rax
je 0x14009ded6
mov rsi, qword [rsp + 0x40]
xor r12d, r12d
mov r14d, dword [rsp + 0xd8]
mov r15, qword [rsp + 0xd0]
jmp 0x14009d700
mov eax, esi
jmp 0x14009e0a7
mov r8, qword [rbx + 0x1a8]
lea rax, [rsp + 0x60]
mov rdx, qword [r13 + 0x430]
mov rcx, rbx
mov qword [rsp + 0x20], rax
call fcn.140087cf0
mov rsi, qword [rsp + 0x60]
test eax, eax
jne 0x14009dfcd
mov r8, qword [rbx + 0x1a8]
lea edx, [rax + 2]
mov r9, rsi
mov rcx, rbx
call fcn.140087260
sub qword [rdi + 0x270], rsi
add qword [rbx + 0x1a8], rsi
jmp 0x14009e0a7
mov eax, 0x1b
jmp 0x14009e0a7
lea rdx, str.CONNECT_response_too_large
mov rcx, rbx
call fcn.140087d60
mov eax, 0x38
jmp 0x14009e0a7
mov rcx, qword [rbx + 0x198]
call qword [fcn.140058718]
xor r12d, r12d
mov rcx, r13
mov qword [rbx + 0x198], r12
lea edx, [r12 + 2]
call fcn.14008a1c0
mov dword [rdi + 0x290], r12d
cmp byte [r13 + 0x3c8], 0
jne 0x14009e0a5
lea rcx, [rdi + 0x230]
call fcn.140081660
mov r8d, dword [rbx + 0x158]
lea rdx, str.Received_HTTP_code__d_from_proxy_after_CONNECT
mov rcx, rbx
call fcn.140087d60
mov eax, 0x38
jmp 0x14009e0a7
mov dword [rdi + 0x290], 2
mov rcx, qword [rbx + 0x11f0]
call qword [fcn.140058718]
xor r12d, r12d
lea rcx, [rdi + 0x230]
mov qword [rbx + 0x11f0], r12
mov word [rbx + 0xdb4], 1
mov byte [rbx + 0x1c4], r12b
mov byte [r13 + 0x3d5], r12b
call fcn.140081660
xor eax, eax
add rsp, 0x78
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov eax, 0x2a
jmp 0x14009e0a7
lea rdx, str.Proxy_CONNECT_aborted_due_to_timeout
mov rcx, rbx
call fcn.140087d60
mov eax, 0x1c
jmp 0x14009e0a7