Function at 0x140020650
Capabilities:
Check http status code

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x30
mov rdi, r9
mov rbx, r8
mov rsi, rdx
mov r14, rcx
lea rdx, str.WWW_Authenticate:
mov r8d, reloc.WS2_32.dll_recvfrom
mov rcx, r9
call fcn.14001a0b0
test eax, eax
je 0x14002068f
cmp dword [rsi + 0x148], 0x191
jne 0x14002068f
xor ebp, ebp
jmp 0x1400206b7
lea rdx, str.Proxy_authenticate:
mov r8d, reloc.WS2_32.dll_send
mov rcx, rdi
call fcn.14001a0b0
test eax, eax
je 0x14002071c
mov bpl, 1
cmp dword [rsi + 0x148], 0x197
jne 0x14002071c
mov rcx, rdi
call fcn.14002ef90
test rax, rax
je 0x140020762
mov rbx, rax
test r14, r14
je 0x1400206f7
cmp byte [rsi + 0xaaf], 0
je 0x1400206f7
mov rax, qword [r14]
cmp dword [rax + 0xc], 0
jle 0x1400206f7
lea r8, str.CONNECT:_fwd_auth_header__s
mov rcx, rsi
mov rdx, r14
mov r9, rdi
call fcn.1400039a0
mov rcx, rsi
mov edx, ebp
mov r8, rbx
call fcn.14002f920
mov esi, eax
mov rcx, rbx
call qword [fcn.1408b5568]
test esi, esi
jne 0x1400207bb
jmp 0x1400207b9
lea rdx, str.Content_Length:
mov r8d, reloc.WS2_32.dll_ntohs
mov rcx, rdi
call fcn.14001a0b0
test eax, eax
je 0x140020769
mov r8d, dword [rsi + 0x148]
lea eax, [r8 - 0xc8]
cmp eax, 0x63
ja 0x14002079b
cmp byte [rsi + 0xaaf], 0
je 0x1400207b9
lea rdx, str.Ignoring_Content_Length_in_CONNECT__03d_response
mov rcx, rsi
call fcn.140003900
jmp 0x1400207b9
mov esi, reloc.WLDAP32.dll_Ordinal_27
jmp 0x1400207bb
mov qword [rsp + 0x20], 5
lea rdx, str.Connection:
lea r9, str.close
mov r8d, listen
mov rcx, rdi
call fcn.14002ffe0
test al, al
je 0x1400207c8
mov byte [rbx + 0xed], 1
jmp 0x1400207b9
add rbx, 0xe0
add rdi, 0xf
mov rcx, rdi
xor edx, edx
mov r8d, 0xa
mov r9, rbx
call fcn.14004ea90
xor esi, esi
mov eax, esi
add rsp, 0x30
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
lea rdx, str.Transfer_Encoding:
mov r8d, reloc.WS2_32.dll_select
mov rcx, rdi
call fcn.14001a0b0
test eax, eax
je 0x14002080d
mov r8d, dword [rsi + 0x148]
lea eax, [r8 - 0xc8]
cmp eax, 0x63
ja 0x1400208d5
cmp byte [rsi + 0xaaf], 0
je 0x1400207b9
lea rdx, str.Ignoring_Transfer_Encoding_in_CONNECT__03d_response
jmp 0x140020758
mov qword [rsp + 0x20], 5
lea rdx, str.Proxy_Connection:
lea r9, str.close
mov r8d, reloc.WS2_32.dll_recvfrom
mov rcx, rdi
call fcn.14002ffe0
test al, al
jne 0x140020792
lea rdx, str.HTTP_1.
mov r8d, 7
mov rcx, rdi
call fcn.1408c55a0
test eax, eax
jne 0x1400207b9
movzx eax, byte [rdi + 7]
and al, 0xfe
cmp al, 0x30
jne 0x1400207b9
cmp byte [rdi + 8], 0x20
jne 0x1400207b9
movzx eax, byte [rdi + 9]
lea ecx, [rax - 0x30]
cmp cl, 9
ja 0x1400207b9
movzx ecx, byte [rdi + 0xa]
lea edx, [rcx - 0x30]
cmp dl, 9
ja 0x1400207b9
movzx edx, byte [rdi + 0xb]
lea r8d, [rdx - 0x30]
cmp r8b, 9
ja 0x1400207b9
movzx r8d, byte [rdi + 0xc]
add r8b, 0xd0
cmp r8b, 0xa
jb 0x1400207b9
imul eax, eax, 0x64
lea ecx, [rcx + rcx*4]
lea eax, [rax + rcx*2]
add eax, edx
add eax, 0xffffeb30
mov dword [rsi + 0x148], eax
mov dword [rsi + 0x138c], eax
jmp 0x1400207b9
mov qword [rsp + 0x20], 7
lea rdx, str.Transfer_Encoding:
lea r9, str.chunked
mov r8d, reloc.WS2_32.dll_select
mov rcx, rdi
call fcn.14002ffe0
test al, al
je 0x1400207b9
cmp byte [rsi + 0xaaf], 0
je 0x14002091a
lea rdx, str.CONNECT_responded_chunked
mov rcx, rsi
call fcn.140003900
mov byte [rbx + 0xec], 1
mov rcx, rsi
call fcn.140050160
jmp 0x1400207b9