Function at 0x1400345f0
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.140034510
test al, al
jne 0x140034f9f
and dword [rcx + 0x3c4], 0xff7fffff
nop dword [rax + rax]
cmp dword [rbx + 0x4020], 0
jne 0x1400348ea
mov rcx, qword [r13 + 0x1e0]
call qword [fcn.140063070]
mov qword [r13 + 0x1e0], 0
call fcn.140037820
mov qword [rsp + 0xa0], rax
test rax, rax
je 0x140034ea3
mov r8d, esi
lea rcx, str._s:_d
mov rdx, r15
call fcn.140031230
mov rsi, rax
test rax, rax
je 0x140034e96
mov r9b, 1
lea rdx, str.CONNECT
mov r8, rax
mov rcx, r12
call fcn.1400372c0
mov rcx, rsi
mov edi, eax
call qword [fcn.140063070]
test edi, edi
jne 0x1400348bc
mov rdi, qword [rsp + 0xb0]
lea rax, [0x1400a77c0]
xor ebp, ebp
lea r14, [0x1400a77c4]
cmp dword [r12 + 0x16c], 1
lea rsi, [0x1400a5691]
mov r15, rsi
cmove r14, rax
mov eax, dword [r12 + 0x3c4]
shr eax, 9
and al, 1
cmp rdi, qword [r12 + 0xd0]
je 0x140034728
lea edx, [rbp + 0x3a]
mov rcx, rdi
call fcn.14005a90c
test rax, rax
setne al
test al, al
lea rcx, [0x1400a71cc]
lea rax, [0x1400a71d0]
mov r9, rsi
cmovne r9, rcx
mov rdx, rsi
cmovne rdx, rax
lea rcx, str._s_s_s:_d
mov eax, dword [rsp + 0xb8]
mov r8, rdi
mov dword [rsp + 0x20], eax
call fcn.140031230
mov rsi, rax
test rax, rax
je 0x140034e96
lea rdx, str.Host
mov rcx, r12
call fcn.140036980
test rax, rax
jne 0x14003479b
mov rdx, rsi
lea rcx, str.Host:__s_r_n
call fcn.140031230
mov rbp, rax
test rax, rax
je 0x140034e8d
lea rdx, str.Proxy_Connection
mov rcx, r12
call fcn.140036980
test rax, rax
lea rdi, str.Proxy_Connection:_Keep_Alive_r_n
lea rax, [0x1400a5691]
mov rcx, r12
lea rdx, str.User_Agent
cmovne rdi, rax
call fcn.140036980
test rax, rax
jne 0x1400347e4
cmp qword [r13 + 0xcf8], rax
je 0x1400347e4
mov r15, qword [r12 + 0x430]
mov rax, qword [r12 + 0x428]
lea rdx, [0x1400a5691]
test rax, rax
mov qword [rsp + 0x38], rdi
mov rcx, rdx
mov qword [rsp + 0x30], r15
cmovne rcx, rax
mov r9, r14
mov rax, rdx
mov qword [rsp + 0x28], rcx
test rbp, rbp
lea rdx, str.CONNECT__s_HTTP__s_r_n_s_s_s_s
mov r8, rsi
lea rcx, [rsp + 0xa0]
cmovne rax, rbp
mov qword [rsp + 0x20], rax
call fcn.140037aa0
mov edi, eax
test rbp, rbp
je 0x140034845
mov rcx, rbp
call qword [fcn.140063070]
mov rcx, rsi
call qword [fcn.140063070]
test edi, edi
jne 0x1400348a0
mov r8, qword [rsp + 0xa0]
mov dl, 1
mov rcx, r12
call fcn.1400381b0
mov edi, eax
test eax, eax
jne 0x1400348a0
lea rdx, [0x1400a5740]
lea rcx, [rsp + 0xa0]
call fcn.140037aa0
mov edi, eax
test eax, eax
jne 0x1400348a0
lea r8, [r13 + 0x14e0]
xor r9d, r9d
mov rdx, r12
lea rcx, [rsp + 0xa0]
call fcn.140037870
mov edi, eax
xor esi, esi
mov qword [rsp + 0xa0], rsi
test edi, edi
jne 0x140034ead
mov r15, qword [rsp + 0xb0]
jmp 0x1400348be
xor esi, esi
lea rcx, [rsp + 0xa0]
call fcn.140037830
test edi, edi
jne 0x140034ec9
mov rdi, qword [rsp + 0x40]
mov dword [rbx + 0x4020], 1
mov dword [rbx + 0x4000], esi
jmp 0x1400348ec
xor esi, esi
mov r8b, 1
xor edx, edx
mov rcx, r13
call fcn.140022f20
test rax, rax
jle 0x140034fb9
mov rcx, r12
call fcn.1400243e0
test al, al
je 0x140034f9f
cmp dword [rbx + 0x4004], 0
mov ebp, esi
je 0x140034d76
lea r14, [rbx + 0x4000]
nop dword [rax + rax]
mov r8, qword [rbx + 0x4010]
cmp r8, r14
jae 0x140034ed0
lea rax, [rsp + 0x48]
mov r9d, 1
mov rdx, rdi
mov qword [rsp + 0x20], rax
mov rcx, r12
call fcn.140022380
mov edi, eax
cmp eax, 0x51
je 0x140034f9f
mov rcx, r12
call fcn.140035ca0
test eax, eax
jne 0x140034fb2
test edi, edi
jne 0x140034d70
cmp qword [rsp + 0x48], 0
jle 0x140034d3a
cmp dword [rbx + 0x4004], 1
jle 0x1400349fd
mov rax, qword [rbx + 0x4018]
mov qword [rbx + 0x4010], rbx
test rax, rax
je 0x1400349c8
dec rax
mov qword [rbx + 0x4018], rax
test rax, rax
jg 0x140034d27
mov dword [rbx + 0x4020], 2
jmp 0x140034d70
lea r9, [rsp + 0xa0]
mov qword [rsp + 0xa0], rsi
mov r8d, 1
mov rdx, rbx
mov rcx, r12
call fcn.1400463e0
cmp eax, 0xffffffff
jne 0x140034d27
mov dword [rbx + 0x4004], esi
jmp 0x140034d1d
mov ecx, dword [r14]
mov rax, qword [rbx + 0x4010]
inc ecx
mov dword [r14], ecx
cmp byte [rax], 0xa
je 0x140034a20
inc rax
mov qword [rbx + 0x4010], rax
jmp 0x140034d27
test dword [r13 + 0xe70], 0x4000000
je 0x140034a44
mov r8, qword [rbx + 0x4008]
mov edx, 1
movsxd r9, ecx
mov rcx, r13
call fcn.1400224e0
test dword [r13 + 0xe74], 0x80000
jne 0x140034a7f
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.140022310
test eax, eax
jne 0x140034fa1
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 0x140034c8a
cmp al, 0xa
je 0x140034c8a
movsxd rax, dword [r14]
mov r8d, 0x11
mov byte [rax + rcx], 0
lea rcx, str.WWW_Authenticate:
mov rsi, qword [rbx + 0x4008]
mov rdx, rsi
call fcn.14002fcc0
test eax, eax
je 0x140034ae3
mov edi, dword [r13 + 0x190]
cmp edi, 0x191
je 0x140034b0b
mov r8d, 0x13
lea rcx, str.Proxy_authenticate:
mov rdx, rsi
call fcn.14002fcc0
test eax, eax
je 0x140034b4b
mov edi, dword [r13 + 0x190]
cmp edi, 0x197
jne 0x140034b4b
mov rcx, rsi
call fcn.140036a30
mov rsi, rax
test rax, rax
je 0x140034ea3
cmp edi, 0x197
mov r8, rax
mov rcx, r12
sete dl
call fcn.140037400
mov rcx, rsi
mov edi, eax
call qword [fcn.140063070]
test edi, edi
jne 0x140034ec9
jmp 0x140034c72
mov r8d, 0xf
lea rcx, str.Content_Length:
mov rdx, rsi
call fcn.14002fcc0
test eax, eax
je 0x140034b94
mov eax, dword [r13 + 0x190]
sub eax, 0xc8
cmp eax, 0x64
jb 0x140034c72
xor edx, edx
lea r9, [rbx + 0x4018]
lea rcx, [rsi + 0xf]
lea r8d, [rdx + 0xa]
call fcn.14003d460
jmp 0x140034c72
lea r8, str.close
mov rcx, rsi
lea rdx, str.Connection:
call fcn.140037c40
test al, al
je 0x140034bba
or dword [rbx + 0x4024], 2
jmp 0x140034c72
mov rdi, qword [rbx + 0x4008]
lea rcx, str.Transfer_Encoding:
mov rdx, rdi
mov r8d, 0x12
call fcn.14002fcc0
test eax, eax
je 0x140034c1a
mov eax, dword [r13 + 0x190]
sub eax, 0xc8
cmp eax, 0x64
jb 0x140034c72
lea r8, str.chunked
mov rcx, rdi
lea rdx, str.Transfer_Encoding:
call fcn.140037c40
test al, al
je 0x140034c72
or dword [rbx + 0x4024], 1
mov rcx, r12
call fcn.1400463d0
jmp 0x140034c72
lea r8, str.close
mov rcx, rdi
lea rdx, str.Proxy_Connection:
call fcn.140037c40
test al, al
je 0x140034c3d
or dword [rbx + 0x4024], 2
jmp 0x140034c72
mov rcx, qword [rbx + 0x4008]
lea r9, [r13 + 0x190]
lea r8, [rsp + 0xa8]
lea rdx, str.HTTP_1._d__d
call fcn.140024df0
cmp eax, 2
jne 0x140034c72
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 0x140034d27
mov qword [rbx + 0x4010], rbx
cmp dword [r13 + 0x190], 0x197
jne 0x140034d0d
test byte [r13 + 0x146c], 0x20
jne 0x140034d0d
cmp qword [rbx + 0x4018], 0
mov dword [rbx + 0x4004], 2
jne 0x140034d27
test byte [rbx + 0x4024], 1
je 0x140034d0d
or dword [r13 + 0x670], 8
mov rdx, qword [rbx + 0x4008]
cmp byte [rdx + 1], 0xa
lea rax, [rdx + 1]
jne 0x140034ce8
mov qword [rbx + 0x4008], rax
mov rdx, rax
inc rdx
lea r9, [rsp + 0x48]
mov r8d, 1
mov rcx, r12
call fcn.1400463e0
cmp eax, 0xffffffff
jne 0x140034d13
mov dword [rbx + 0x4020], 2
mov dword [rbx + 0x4004], esi
cmp qword [rbx + 0x4018], 0
jne 0x140034d27
mov dword [rbx + 0x4020], 2
cmp dword [rbx + 0x4004], 0
je 0x140034d76
mov rdi, qword [rsp + 0x40]
jmp 0x140034930
cmp dword [r13 + 0x6c0], 0
je 0x140034d5c
cmp dword [r13 + 0x1158], 0
je 0x140034d5c
or dword [r12 + 0x3c4], 0x800000
jmp 0x140034d70
lea rdx, str.Proxy_CONNECT_aborted
mov rcx, r13
mov ebp, 1
call fcn.140021d00
mov dword [rbx + 0x4004], esi
mov rcx, r12
call fcn.140035ca0
test eax, eax
jne 0x140034fb2
test ebp, ebp
jne 0x140034edf
mov eax, dword [r13 + 0x14c4]
sub eax, 0xc8
cmp eax, 0x64
jb 0x140034dc1
mov rcx, r12
call fcn.140036f10
test eax, eax
jne 0x140034fa1
test byte [r12 + 0x3c4], 1
je 0x140034dc1
or dword [rbx + 0x4024], 2
test byte [rbx + 0x4024], 2
je 0x140034e3d
cmp qword [r13 + 0x1e0], 0
je 0x140034e6c
mov rdx, qword [r12 + 0x240]
mov rcx, r12
call fcn.1400241f0
mov qword [r12 + 0x240], 0xffffffffffffffff
mov eax, dword [r13 + 0x14c4]
sub eax, 0xc8
cmp eax, 0x64
jb 0x140034f5f
test byte [rbx + 0x4024], 2
je 0x140034ee9
cmp qword [r13 + 0x1e0], 0
je 0x140034ee9
or dword [r12 + 0x3c4], 0x800000
mov rcx, r12
call fcn.1400345d0
jmp 0x140034f2a
mov rax, qword [r13 + 0x1e0]
test rax, rax
je 0x140034df4
cmp dword [rbx + 0x4020], 2
mov rdi, qword [rsp + 0x40]
mov esi, dword [rsp + 0xb8]
jne 0x140034650
mov dl, 1
mov rcx, r12
call fcn.140034550
mov rax, qword [r13 + 0x1e0]
test rax, rax
je 0x140034df4
mov rdi, qword [rsp + 0x40]
mov esi, dword [rsp + 0xb8]
jmp 0x140034650
mov rcx, rsi
call qword [fcn.140063070]
lea rcx, [rsp + 0xa0]
call fcn.140037830
mov eax, 0x1b
jmp 0x140034fa1
lea rdx, str.Failed_sending_CONNECT_to_proxy
mov rcx, r13
call fcn.140021d00
lea rcx, [rsp + 0xa0]
call fcn.140037830
mov eax, edi
jmp 0x140034fa1
lea rdx, str.CONNECT_response_too_large_
mov rcx, r13
call fcn.140021d00
mov eax, 0x38
jmp 0x140034fa1
mov rcx, qword [r13 + 0x1e0]
call qword [fcn.140063070]
mov edx, 2
mov qword [r13 + 0x1e0], 0
mov rcx, r12
call fcn.140024370
mov rdx, qword [r12 + 0x240]
mov rcx, r12
call fcn.1400241f0
mov qword [r12 + 0x240], 0xffffffffffffffff
mov dword [rbx + 0x4020], 0
test dword [r12 + 0x3c4], 0x800000
jne 0x140034f9f
mov r8d, dword [r13 + 0x190]
lea rdx, str.Received_HTTP_code__d_from_proxy_after_CONNECT
mov rcx, r13
call fcn.140021d00
mov eax, 0x38
jmp 0x140034fa1
mov dword [rbx + 0x4020], 2
mov rcx, qword [r12 + 0x428]
call qword [fcn.140063070]
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 0x140034fa1
lea rdx, str.Proxy_CONNECT_aborted_due_to_timeout
mov rcx, r13
call fcn.140021d00
mov eax, 0x1c
jmp 0x140034fa1