Function at 0x140020fe0
Capabilities:
Check http status code

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x98
mov r13, qword [rcx + 0x18]
mov rbx, rcx
movsxd r14, edx
xor r12d, r12d
mov dword [rsp + 0x48], r12d
mov r15d, r9d
mov rbp, r8
mov rsi, qword [r13 + 0x7c8]
mov rdi, qword [r13 + r14*8 + 0x1f0]
lea rcx, [r14*8 + 0x1f0]
add rcx, r13
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x58], rcx
test rsi, rsi
je 0x1400219a9
cmp dword [rsi + 0x30], 2
je 0x1400219a9
mov byte [r13 + 0x3a8], r12b
nop word [rax + rax]
cmp dword [rsi + 0x30], 0
jne 0x1400212ca
mov r9d, r15d
lea rdx, str.Establish_HTTP_proxy_tunnel_to__s:_d_n
mov r8, rbp
mov rcx, rbx
call fcn.14001b090
mov rcx, qword [rbx + 0x1a0]
call qword [fcn.140058386]
mov edx, 0x20000
mov qword [rbx + 0x1a0], r12
lea rcx, [rsp + 0x70]
call fcn.140010b30
movzx eax, byte [r13 + 0x3b0]
cmp rbp, qword [r13 + 0xa8]
je 0x1400210c6
mov edx, Ordinal_60
mov rcx, rbp
call sub.VCRUNTIME140.dll_strchr
test rax, rax
setne al
test al, al
mov dword [rsp + 0x20], r15d
lea rcx, [0x140066fd0]
mov r8, rbp
mov r9, rcx
lea rdx, [0x14005c970]
cmovne r9, rdx
lea rax, [0x14005c974]
mov rdx, rcx
lea rcx, str._s_s_s:_d
cmovne rdx, rax
call fcn.14001f200
mov rbp, rax
test rax, rax
je 0x14002187b
lea r8, str.Host
mov rdx, r13
mov rcx, rbx
call fcn.1400271f0
test rax, rax
jne 0x14002113d
mov rdx, rbp
lea rcx, str.Host:__s_r_n
call fcn.14001f200
mov r12, rax
test rax, rax
je 0x140021872
mov byte [rsp + 0x28], 1
lea r8, str.CONNECT
xor r9d, r9d
mov qword [rsp + 0x20], rbp
mov rdx, r13
mov rcx, rbx
call fcn.1400294d0
mov edi, eax
test eax, eax
jne 0x140021297
cmp dword [r13 + 0x144], 1
lea rax, [0x14005d430]
lea r14, [0x14005d434]
mov rdx, r13
lea r8, str.Proxy_Connection
mov rcx, rbx
cmove r14, rax
lea rdi, [0x140066fd0]
call fcn.1400271f0
test rax, rax
lea r15, str.Proxy_Connection:_Keep_Alive_r_n
lea rax, [0x140066fd0]
mov rdx, r13
lea r8, str.User_Agent
mov rcx, rbx
cmovne r15, rax
call fcn.1400271f0
test rax, rax
jne 0x1400211d5
cmp qword [rbx + 0x898], rax
je 0x1400211d5
mov rdi, qword [rbx + 0x1238]
mov rax, qword [rbx + 0x1230]
lea rdx, [0x140066fd0]
test rax, rax
mov qword [rsp + 0x38], r15
mov rcx, rdx
mov qword [rsp + 0x30], rdi
cmovne rcx, rax
mov r9, r14
mov rax, rdx
mov qword [rsp + 0x28], rcx
test r12, r12
lea rdx, str.CONNECT__s_HTTP__s_r_n_s_s_s_s
mov r8, rbp
lea rcx, [rsp + 0x70]
cmovne rax, r12
mov qword [rsp + 0x20], rax
call fcn.140010ac0
mov edi, eax
test eax, eax
jne 0x140021280
lea r8, [rsp + 0x70]
mov dl, 1
mov rcx, rbx
call fcn.140026ae0
mov edi, eax
test eax, eax
jne 0x140021280
lea rdx, [0x14005bf50]
lea rcx, [rsp + 0x70]
call fcn.140010aa0
mov r14d, dword [rsp + 0xe8]
mov edi, eax
test eax, eax
jne 0x140021288
lea r8, [rbx + 0x1300]
mov dword [rsp + 0x20], r14d
xor r9d, r9d
lea rcx, [rsp + 0x70]
mov rdx, rbx
call fcn.140026f90
mov edi, eax
test eax, eax
je 0x140021297
jmp 0x140021288
mov r14d, dword [rsp + 0xe8]
lea rdx, str.Failed_sending_CONNECT_to_proxy
mov rcx, rbx
call fcn.14001af30
mov rcx, r12
call qword [fcn.140058386]
mov rcx, rbp
call qword [fcn.140058386]
lea rcx, [rsp + 0x70]
call fcn.140010b00
test edi, edi
jne 0x140021885
mov rdi, qword [rsp + 0x40]
xor r12d, r12d
mov dword [rsi + 0x30], 1
mov r8b, 1
xor edx, edx
mov rcx, rbx
call fcn.14001c830
test rax, rax
jle 0x1400219c6
mov edx, r14d
mov rcx, r13
call fcn.14001b9f0
test al, al
je 0x1400219a9
cmp dword [rsi + 0x20], 0
mov r15d, r12d
je 0x140021782
lea rax, [rsp + 0x50]
mov r9d, 1
lea r8, [rsp + 0xe0]
mov qword [rsp + 0x20], rax
mov rdx, rdi
mov rcx, rbx
call fcn.14001b200
mov edi, eax
cmp eax, 0x51
je 0x1400219a9
mov rcx, rbx
call fcn.14002b820
test eax, eax
jne 0x1400219bf
test edi, edi
jne 0x140021776
cmp qword [rsp + 0x50], 0
jle 0x140021736
cmp dword [rsi + 0x20], 2
jne 0x1400213c8
mov rax, qword [rsi + 0x28]
test rax, rax
je 0x14002137d
dec rax
mov qword [rsi + 0x28], rax
test rax, rax
jg 0x140021726
mov dword [rsi + 0x30], 2
jmp 0x140021776
lea rax, [rsp + 0x60]
mov qword [rsp + 0x68], r12
lea r9, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r8d, 1
lea rdx, [rsp + 0xe0]
mov rcx, rbx
call fcn.140049e10
cmp eax, 0xffffffff
jne 0x140021726
lea rdx, str.chunk_reading_DONE_n
mov rcx, rbx
call fcn.14001b090
mov dword [rsi + 0x20], r12d
jmp 0x14002171f
mov r8d, 1
lea rdx, [rsp + 0xe0]
mov rcx, rsi
call fcn.140010af0
test eax, eax
jne 0x14002188c
cmp byte [rsp + 0xe0], 0xa
jne 0x140021726
mov rcx, rsi
call fcn.140010b60
mov rcx, rsi
mov rdi, rax
call fcn.140010b50
mov r9, rax
mov r8, rdi
mov edx, 1
mov rcx, rbx
mov rbp, rax
call fcn.14001ae60
cmp byte [rbx + 0xb02], 0
jne 0x14002144c
cmp byte [rbx + 0xae9], 0
mov edx, r12d
mov r9, rbp
mov r8, rdi
setne dl
mov rcx, rbx
add edx, 2
call fcn.14001ae40
test eax, eax
jne 0x1400219ab
movsxd rax, ebp
add qword [rbx + 0x12f8], rax
movzx eax, byte [rdi]
cmp al, 0xd
je 0x14002166d
cmp al, 0xa
je 0x14002166d
mov r8d, reloc.WS2_32.dll_recvfrom
lea rcx, str.WWW_Authenticate:
mov rdx, rdi
call fcn.140020970
test eax, eax
je 0x140021490
mov ebp, dword [rbx + 0x160]
cmp ebp, 0x191
je 0x1400214b7
mov r8d, reloc.WS2_32.dll_send
lea rcx, str.Proxy_authenticate:
mov rdx, rdi
call fcn.140020970
test eax, eax
je 0x1400214f9
mov ebp, dword [rbx + 0x160]
cmp ebp, 0x197
jne 0x1400214f9
mov rcx, rdi
call fcn.140027380
mov rdi, rax
test rax, rax
je 0x14002187b
cmp ebp, 0x197
mov r8, rax
mov rcx, rbx
sete dl
call fcn.140029170
mov rcx, rdi
mov ebp, eax
call qword [fcn.140058386]
test ebp, ebp
je 0x140021660
mov eax, ebp
jmp 0x1400219ab
mov r8d, reloc.WS2_32.dll_ntohs
lea rcx, str.Content_Length:
mov rdx, rdi
call fcn.140020970
test eax, eax
je 0x140021561
mov r8d, dword [rbx + 0x160]
lea eax, [r8 - 0xc8]
cmp eax, 0x64
jae 0x140021541
lea rdx, str.Ignoring_Content_Length_in_CONNECT__03d_response_n
mov rcx, rbx
call fcn.14001b090
mov rcx, rsi
call fcn.140010b70
jmp 0x140021726
xor edx, edx
lea r9, [rsi + 0x28]
lea rcx, [rdi + 0xf]
lea r8d, [rdx + 0xa]
call fcn.14002df30
mov rcx, rsi
call fcn.140010b70
jmp 0x140021726
lea r8, str.close
mov rcx, rdi
lea rdx, str.Connection:
call fcn.140027290
test al, al
jne 0x14002165c
mov r8d, reloc.WS2_32.dll_select
lea rcx, str.Transfer_Encoding:
mov rdx, rdi
call fcn.140020970
test eax, eax
je 0x140021609
mov r8d, dword [rbx + 0x160]
lea eax, [r8 - 0xc8]
cmp eax, 0x64
jae 0x1400215c7
lea rdx, str.Ignoring_Transfer_Encoding_in_CONNECT__03d_response_n
mov rcx, rbx
call fcn.14001b090
mov rcx, rsi
call fcn.140010b70
jmp 0x140021726
lea r8, str.chunked
mov rcx, rdi
lea rdx, str.Transfer_Encoding:
call fcn.140027290
test al, al
je 0x140021660
lea rdx, str.CONNECT_responded_chunked_n
mov rcx, rbx
call fcn.14001b090
mov rcx, rbx
mov byte [rsi + 0x34], 1
call fcn.140049df0
mov rcx, rsi
call fcn.140010b70
jmp 0x140021726
lea r8, str.close
mov rcx, rdi
lea rdx, str.Proxy_Connection:
call fcn.140027290
test al, al
jne 0x14002165c
lea r9, [rbx + 0x160]
mov rcx, rdi
lea r8, [rsp + 0x48]
lea rdx, str.HTTP_1._d__d
call fcn.14000ffe0
cmp eax, 2
jne 0x140021660
mov eax, dword [rbx + 0x160]
mov rcx, rsi
mov dword [rbx + 0x12e4], eax
call fcn.140010b70
jmp 0x140021726
mov byte [rsi + 0x35], 1
mov rcx, rsi
call fcn.140010b70
jmp 0x140021726
cmp dword [rbx + 0x160], 0x197
jne 0x140021714
cmp byte [rbx + 0x1285], 0
jne 0x140021714
mov r8, qword [rsi + 0x28]
mov dword [rsi + 0x20], 2
test r8, r8
je 0x1400216b1
lea rdx, str.Ignore__I64d_bytes_of_response_body_n
mov rcx, rbx
call fcn.14001b090
cmp dword [rsi + 0x20], 0
jne 0x14002172c
jmp 0x140021718
cmp byte [rsi + 0x34], 0
je 0x140021714
lea rdx, str.Ignore_chunked_response_body_n
mov rcx, rbx
call fcn.14001b090
lea rax, [rdi + 1]
mov byte [rbx + 0x1cb], 1
cmp byte [rax], 0xa
lea r9, [rsp + 0x50]
mov r8d, 1
mov rcx, rbx
cmove rdi, rax
lea rax, [rsp + 0x64]
mov qword [rsp + 0x20], rax
lea rdx, [rdi + 1]
call fcn.140049e10
cmp eax, 0xffffffff
jne 0x1400216a9
lea rdx, str.chunk_reading_DONE_n
mov rcx, rbx
call fcn.14001b090
mov dword [rsi + 0x30], 2
mov dword [rsi + 0x20], r12d
cmp qword [rsi + 0x28], 0
jne 0x140021726
mov dword [rsi + 0x30], 2
cmp dword [rsi + 0x20], 0
je 0x14002177a
mov rdi, qword [rsp + 0x40]
jmp 0x140021300
cmp dword [rbx + 0x220], 0
je 0x140021761
cmp dword [rbx + 0xe40], 0
je 0x140021761
lea rdx, str.Proxy_CONNECT_connection_closed_n
mov byte [r13 + 0x3a8], 1
mov rcx, rbx
call fcn.14001b090
jmp 0x140021776
lea rdx, str.Proxy_CONNECT_aborted
mov rcx, rbx
mov r15d, 1
call fcn.14001af30
mov dword [rsi + 0x20], r12d
mov r14d, dword [rsp + 0xe8]
mov rcx, rbx
call fcn.14002b820
test eax, eax
jne 0x1400219bf
test r15d, r15d
jne 0x14002189b
mov eax, dword [rbx + 0x12e4]
sub eax, 0xc8
cmp eax, 0x64
jb 0x1400217c8
mov rcx, rbx
call fcn.140027490
test eax, eax
jne 0x1400219ab
cmp byte [r13 + 0x3a9], al
je 0x1400217c8
mov byte [rsi + 0x35], 1
cmp byte [rsi + 0x35], 0
je 0x1400217f7
cmp qword [rbx + 0x1a0], 0
je 0x14002184c
mov rdi, qword [rsp + 0x58]
mov rdx, r13
mov rcx, rbx
mov r8, qword [rdi]
call fcn.14001b950
mov qword [rdi], 0xffffffffffffffff
jmp 0x1400218aa
mov rax, qword [rbx + 0x1a0]
test rax, rax
je 0x1400218a5
cmp dword [rsi + 0x30], 2
mov rdi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0xf0]
mov r15d, dword [rsp + 0xf8]
jne 0x140021060
mov rax, qword [rbx + 0x18]
mov rdi, qword [rax + 0x7c8]
mov rcx, rdi
call fcn.140010b70
mov dword [rdi + 0x30], r12d
mov dword [rdi + 0x20], 1
mov qword [rdi + 0x28], r12
mov byte [rdi + 0x35], 0
mov rax, qword [rbx + 0x1a0]
test rax, rax
je 0x1400218a5
mov rdi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0xf0]
mov r15d, dword [rsp + 0xf8]
jmp 0x140021060
mov rcx, rbp
call qword [fcn.140058386]
mov eax, reloc.WLDAP32.dll_Ordinal_27
jmp 0x1400219ab
mov eax, edi
jmp 0x1400219ab
lea rdx, str.CONNECT_response_too_large_
mov rcx, rbx
call fcn.14001af30
mov eax, gethostname
jmp 0x1400219ab
mov rdi, qword [rsp + 0x58]
mov eax, dword [rbx + 0x12e4]
sub eax, 0xc8
cmp eax, 0x64
jb 0x140021958
cmp byte [rsi + 0x35], 0
je 0x1400218ef
cmp qword [rbx + 0x1a0], 0
je 0x1400218ef
lea rdx, str.Connect_me_again_please_n
mov byte [r13 + 0x3a8], 1
mov rcx, rbx
call fcn.14001b090
mov rcx, rbx
call fcn.140021d90
jmp 0x140021925
mov rcx, qword [rbx + 0x1a0]
call qword [fcn.140058386]
mov edx, 2
mov qword [rbx + 0x1a0], r12
mov rcx, r13
call fcn.14001bab0
mov r8, qword [rdi]
mov rdx, r13
mov rcx, rbx
call fcn.14001b950
mov qword [rdi], 0xffffffffffffffff
mov dword [rsi + 0x30], r12d
cmp byte [r13 + 0x3a8], 0
jne 0x1400219a9
mov rcx, rsi
call fcn.140010b00
mov r8d, dword [rbx + 0x160]
lea rdx, str.Received_HTTP_code__d_from_proxy_after_CONNECT
mov rcx, rbx
call fcn.14001af30
mov eax, gethostname
jmp 0x1400219ab
mov dword [rsi + 0x30], 2
mov rcx, qword [rbx + 0x1230]
call qword [fcn.140058386]
mov qword [rbx + 0x1230], r12
lea rdx, str.Proxy_replied__d_to_CONNECT_request_n
mov r8d, dword [rbx + 0x12e4]
mov rcx, rbx
mov word [rbx + 0xe44], 1
call fcn.14001b090
mov byte [rbx + 0x1cb], 0
mov rcx, rsi
mov byte [r13 + 0x3b6], 0
call fcn.140010b00
xor eax, eax
add rsp, 0x98
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov eax, Ordinal_45
jmp 0x1400219ab
lea rdx, str.Proxy_CONNECT_aborted_due_to_timeout
mov rcx, rbx
call fcn.14001af30
mov eax, Ordinal_32
jmp 0x1400219ab