Function at 0x140060930
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, 0x58
mov rdi, qword [rcx + 0x240]
mov esi, r9d
mov r13, qword [rcx]
mov r15, r8
mov rbx, qword [rcx + 0x8a8]
mov r12, rcx
mov qword [rsp + 0x40], rdi
mov dword [rax + 0x10], 0
call fcn.140061530
test al, al
jne 0x1400612df
and dword [rcx + 0x3c4], 0xff7fffff
nop dword [rax + rax]
cmp dword [rbx + 0x4020], 0
jne 0x140060c30
mov rcx, qword [r13 + 0x1e0]
call qword [fcn.140021cf4]
mov qword [r13 + 0x1e0], 0
call fcn.140066610
mov qword [rsp + 0xa0], rax
test rax, rax
je 0x1400611e3
mov r8d, esi
lea rcx, str._s:_d
mov rdx, r15
call fcn.14005d4e0
mov rsi, rax
test rax, rax
je 0x1400611d6
mov r9b, 1
lea rdx, str.CONNECT
mov r8, rax
mov rcx, r12
call fcn.140065d70
mov rcx, rsi
mov edi, eax
call qword [fcn.140021cf4]
test edi, edi
jne 0x140060c02
mov rdi, qword [rsp + 0xb0]
lea rax, [0x1400a8eac]
xor ebp, ebp
lea r14, [0x1400a8e8c]
cmp dword [r12 + 0x16c], 1
lea r15, [0x1400ae892]
cmove r14, rax
mov eax, dword [r12 + 0x3c4]
shr eax, 9
and al, 1
cmp rdi, qword [r12 + 0xd0]
je 0x140060a65
lea edx, [rbp + 0x3a]
mov rcx, rdi
call fcn.14001e620
test rax, rax
setne al
test al, al
lea rcx, [0x1400a8e74]
lea rax, [0x1400a8e64]
mov r8, rdi
lea r9, [0x1400ae891]
cmovne r9, rcx
lea rdx, [0x1400ae890]
cmovne rdx, rax
lea rcx, str._s_s_s:_d
mov eax, dword [rsp + 0xb8]
mov dword [rsp + 0x20], eax
call fcn.14005d4e0
mov rsi, rax
test rax, rax
je 0x1400611d6
lea rdx, [0x1400a96bc]
mov rcx, r12
call fcn.140065720
test rax, rax
jne 0x140060ae0
mov rdx, rsi
lea rcx, str.Host:__s_r_n
call fcn.14005d4e0
mov rbp, rax
test rax, rax
je 0x1400611cd
lea rdx, [0x1400a9688]
mov rcx, r12
call fcn.140065720
test rax, rax
lea rdi, [0x1400a9668]
lea rax, [0x1400ae893]
mov rcx, r12
lea rdx, [0x1400a9658]
cmovne rdi, rax
call fcn.140065720
test rax, rax
jne 0x140060b29
cmp qword [r13 + 0xcf8], rax
je 0x140060b29
mov r15, qword [r12 + 0x430]
mov rax, qword [r12 + 0x428]
lea rcx, [0x1400ae88f]
test rax, rax
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], r15
lea rdx, str.CONNECT__s_HTTP__s_r_n_s_s_s_s
cmovne rcx, rax
mov r9, r14
mov qword [rsp + 0x28], rcx
lea rax, [0x1400ae88e]
test rbp, rbp
lea rcx, [rsp + 0xa0]
mov r8, rsi
cmovne rax, rbp
mov qword [rsp + 0x20], rax
call fcn.140065cd0
mov edi, eax
test rbp, rbp
je 0x140060b8b
mov rcx, rbp
call qword [fcn.140021cf4]
mov rcx, rsi
call qword [fcn.140021cf4]
test edi, edi
jne 0x140060be6
mov r8, qword [rsp + 0xa0]
mov dl, 1
mov rcx, r12
call fcn.140065fc0
mov edi, eax
test eax, eax
jne 0x140060be6
lea rdx, [0x1400a8dbc]
lea rcx, [rsp + 0xa0]
call fcn.140065cd0
mov edi, eax
test eax, eax
jne 0x140060be6
lea r8, [r13 + 0x14e0]
xor r9d, r9d
mov rdx, r12
lea rcx, [rsp + 0xa0]
call fcn.1400663e0
mov edi, eax
xor esi, esi
mov qword [rsp + 0xa0], rsi
test edi, edi
jne 0x1400611ed
mov r15, qword [rsp + 0xb0]
jmp 0x140060c04
xor esi, esi
lea rcx, [rsp + 0xa0]
call fcn.140066630
test edi, edi
jne 0x140061209
mov rdi, qword [rsp + 0x40]
mov dword [rbx + 0x4020], 1
mov dword [rbx + 0x4000], esi
jmp 0x140060c32
xor esi, esi
mov r8b, 1
xor edx, edx
mov rcx, r13
call fcn.14004fc00
test rax, rax
jle 0x1400612f9
mov rcx, r12
call fcn.14004de70
test al, al
je 0x1400612df
cmp dword [rbx + 0x4004], 0
mov ebp, esi
je 0x1400610b6
lea r14, [rbx + 0x4000]
nop
mov r8, qword [rbx + 0x4010]
cmp r8, r14
jae 0x140061210
lea rax, [rsp + 0x48]
mov r9d, 1
mov rdx, rdi
mov qword [rsp + 0x20], rax
mov rcx, r12
call fcn.14004d980
mov edi, eax
cmp eax, 0x51
je 0x1400612df
mov rcx, r12
call fcn.140062010
test eax, eax
jne 0x1400612f2
test edi, edi
jne 0x1400610b0
cmp qword [rsp + 0x48], 0
jle 0x14006107a
cmp dword [rbx + 0x4004], 1
jle 0x140060d3d
mov rax, qword [rbx + 0x4018]
mov qword [rbx + 0x4010], rbx
test rax, rax
je 0x140060d08
dec rax
mov qword [rbx + 0x4018], rax
test rax, rax
jg 0x140061067
mov dword [rbx + 0x4020], 2
jmp 0x1400610b0
lea r9, [rsp + 0xa0]
mov qword [rsp + 0xa0], rsi
mov r8d, 1
mov rdx, rbx
mov rcx, r12
call fcn.140073ae0
cmp eax, 0xffffffff
jne 0x140061067
mov dword [rbx + 0x4004], esi
jmp 0x14006105d
mov ecx, dword [r14]
mov rax, qword [rbx + 0x4010]
inc ecx
mov dword [r14], ecx
cmp byte [rax], 0xa
je 0x140060d60
inc rax
mov qword [rbx + 0x4010], rax
jmp 0x140061067
test dword [r13 + 0xe70], 0x4000000
je 0x140060d84
mov r8, qword [rbx + 0x4008]
mov edx, 1
movsxd r9, ecx
mov rcx, r13
call fcn.14004cfc0
test dword [r13 + 0xe74], 0x80000
jne 0x140060dbf
mov edx, dword [r13 + 0xe70]
mov rcx, r12
movsxd r9, dword [r14]
and edx, 0x200000
mov r8, qword [rbx + 0x4008]
bts edx, 0x16
shr edx, 0x15
call fcn.14004dc60
test eax, eax
jne 0x1400612e1
movsxd rax, dword [r14]
add qword [r13 + 0x14d8], rax
movsxd rax, dword [r14]
add qword [r13 + 0x120], rax
mov rcx, qword [rbx + 0x4008]
movzx eax, byte [rcx]
cmp al, 0xd
je 0x140060fca
cmp al, 0xa
je 0x140060fca
movsxd rax, dword [r14]
mov r8d, 0x11
mov byte [rax + rcx], 0
lea rcx, [0x1400a9598]
mov rsi, qword [rbx + 0x4008]
mov rdx, rsi
call fcn.14005c000
test eax, eax
je 0x140060e23
mov edi, dword [r13 + 0x190]
cmp edi, 0x191
je 0x140060e4b
mov r8d, 0x13
lea rcx, [0x1400a9580]
mov rdx, rsi
call fcn.14005c000
test eax, eax
je 0x140060e8b
mov edi, dword [r13 + 0x190]
cmp edi, 0x197
jne 0x140060e8b
mov rcx, rsi
call fcn.140065eb0
mov rsi, rax
test rax, rax
je 0x1400611e3
cmp edi, 0x197
mov r8, rax
mov rcx, r12
sete dl
call fcn.140065a20
mov rcx, rsi
mov edi, eax
call qword [fcn.140021cf4]
test edi, edi
jne 0x140061209
jmp 0x140060fb2
mov r8d, 0xf
lea rcx, [0x1400a9570]
mov rdx, rsi
call fcn.14005c000
test eax, eax
je 0x140060ed4
mov eax, dword [r13 + 0x190]
sub eax, 0xc8
cmp eax, 0x64
jb 0x140060fb2
xor edx, edx
lea r9, [rbx + 0x4018]
lea rcx, [rsi + 0xf]
lea r8d, [rdx + 0xa]
call fcn.14006a070
jmp 0x140060fb2
lea r8, [0x1400a909c]
mov rcx, rsi
lea rdx, [0x1400a9560]
call fcn.1400662f0
test al, al
je 0x140060efa
or dword [rbx + 0x4024], 2
jmp 0x140060fb2
mov rdi, qword [rbx + 0x4008]
lea rcx, [0x1400a9548]
mov rdx, rdi
mov r8d, 0x12
call fcn.14005c000
test eax, eax
je 0x140060f5a
mov eax, dword [r13 + 0x190]
sub eax, 0xc8
cmp eax, 0x64
jb 0x140060fb2
lea r8, [0x1400a9540]
mov rcx, rdi
lea rdx, [0x1400a9528]
call fcn.1400662f0
test al, al
je 0x140060fb2
or dword [rbx + 0x4024], 1
mov rcx, r12
call fcn.140073f70
jmp 0x140060fb2
lea r8, [0x1400a8e84]
mov rcx, rdi
lea rdx, [0x1400a9508]
call fcn.1400662f0
test al, al
je 0x140060f7d
or dword [rbx + 0x4024], 2
jmp 0x140060fb2
mov rcx, qword [rbx + 0x4008]
lea r9, [r13 + 0x190]
lea r8, [rsp + 0xa8]
lea rdx, str.HTTP_1._d__d
call fcn.14001c5e0
cmp eax, 2
jne 0x140060fb2
mov eax, dword [r13 + 0x190]
mov dword [r13 + 0x14c4], eax
xor esi, esi
mov qword [rbx + 0x4010], rbx
mov dword [r14], esi
mov qword [rbx + 0x4008], rbx
jmp 0x140061067
mov qword [rbx + 0x4010], rbx
cmp dword [r13 + 0x190], 0x197
jne 0x14006104d
test byte [r13 + 0x146c], 0x20
jne 0x14006104d
cmp qword [rbx + 0x4018], 0
mov dword [rbx + 0x4004], 2
jne 0x140061067
test byte [rbx + 0x4024], 1
je 0x14006104d
or dword [r13 + 0x670], 8
mov rdx, qword [rbx + 0x4008]
cmp byte [rdx + 1], 0xa
lea rax, [rdx + 1]
jne 0x140061028
mov qword [rbx + 0x4008], rax
mov rdx, rax
inc rdx
lea r9, [rsp + 0x48]
mov r8d, 1
mov rcx, r12
call fcn.140073ae0
cmp eax, 0xffffffff
jne 0x140061053
mov dword [rbx + 0x4020], 2
mov dword [rbx + 0x4004], esi
cmp qword [rbx + 0x4018], 0
jne 0x140061067
mov dword [rbx + 0x4020], 2
cmp dword [rbx + 0x4004], 0
je 0x1400610b6
mov rdi, qword [rsp + 0x40]
jmp 0x140060c70
cmp dword [r13 + 0x6c0], 0
je 0x14006109c
cmp dword [r13 + 0x1158], 0
je 0x14006109c
or dword [r12 + 0x3c4], 0x800000
jmp 0x1400610b0
lea rdx, str.Proxy_CONNECT_aborted
mov rcx, r13
mov ebp, 1
call fcn.14004db50
mov dword [rbx + 0x4004], esi
mov rcx, r12
call fcn.140062010
test eax, eax
jne 0x1400612f2
test ebp, ebp
jne 0x14006121f
mov eax, dword [r13 + 0x14c4]
sub eax, 0xc8
cmp eax, 0x64
jb 0x140061101
mov rcx, r12
call fcn.1400657d0
test eax, eax
jne 0x1400612e1
test byte [r12 + 0x3c4], 1
je 0x140061101
or dword [rbx + 0x4024], 2
test byte [rbx + 0x4024], 2
je 0x14006117d
cmp qword [r13 + 0x1e0], 0
je 0x1400611ac
mov rdx, qword [r12 + 0x240]
mov rcx, r12
call fcn.14004dfb0
mov qword [r12 + 0x240], 0xffffffffffffffff
mov eax, dword [r13 + 0x14c4]
sub eax, 0xc8
cmp eax, 0x64
jb 0x14006129f
test byte [rbx + 0x4024], 2
je 0x140061229
cmp qword [r13 + 0x1e0], 0
je 0x140061229
or dword [r12 + 0x3c4], 0x800000
mov rcx, r12
call fcn.140061320
jmp 0x14006126a
mov rax, qword [r13 + 0x1e0]
test rax, rax
je 0x140061134
cmp dword [rbx + 0x4020], 2
mov rdi, qword [rsp + 0x40]
mov esi, dword [rsp + 0xb8]
jne 0x140060990
mov dl, 1
mov rcx, r12
call fcn.140061340
mov rax, qword [r13 + 0x1e0]
test rax, rax
je 0x140061134
mov rdi, qword [rsp + 0x40]
mov esi, dword [rsp + 0xb8]
jmp 0x140060990
mov rcx, rsi
call qword [fcn.140021cf4]
lea rcx, [rsp + 0xa0]
call fcn.140066630
mov eax, 0x1b
jmp 0x1400612e1
lea rdx, str.Failed_sending_CONNECT_to_proxy
mov rcx, r13
call fcn.14004db50
lea rcx, [rsp + 0xa0]
call fcn.140066630
mov eax, edi
jmp 0x1400612e1
lea rdx, str.CONNECT_response_too_large_
mov rcx, r13
call fcn.14004db50
mov eax, 0x38
jmp 0x1400612e1
mov rcx, qword [r13 + 0x1e0]
call qword [fcn.140021cf4]
mov edx, 2
mov qword [r13 + 0x1e0], 0
mov rcx, r12
call fcn.14004fb90
mov rdx, qword [r12 + 0x240]
mov rcx, r12
call fcn.14004dfb0
mov qword [r12 + 0x240], 0xffffffffffffffff
mov dword [rbx + 0x4020], 0
test dword [r12 + 0x3c4], 0x800000
jne 0x1400612df
mov r8d, dword [r13 + 0x190]
lea rdx, str.Received_HTTP_code__d_from_proxy_after_CONNECT
mov rcx, r13
call fcn.14004db50
mov eax, 0x38
jmp 0x1400612e1
mov dword [rbx + 0x4020], 2
mov rcx, qword [r12 + 0x428]
call qword [fcn.140021cf4]
mov qword [r12 + 0x428], 0
or dword [r13 + 0x115c], 1
and dword [r13 + 0x670], 0xfffffff7
and dword [r12 + 0x3c4], 0xfffeffff
xor eax, eax
add rsp, 0x58
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov eax, 0x2a
jmp 0x1400612e1
lea rdx, str.Proxy_CONNECT_aborted_due_to_timeout
mov rcx, r13
call fcn.14004db50
mov eax, 0x1c
jmp 0x1400612e1