Function at 0x14009d980
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 r15, qword [rcx + 0x18]
mov rbx, rcx
movsxd r14, edx
xor r13d, r13d
mov dword [rsp + 0x58], r13d
mov rbp, r8
mov qword [rsp + 0x40], r15
mov rsi, qword [r15 + 0x7f0]
mov rdi, qword [r15 + r14*8 + 0x1e8]
lea rcx, [r14 + 0x3d]
mov r12, qword [rbx + 0x1b0]
lea rcx, [r15 + rcx*8]
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], r12
test rsi, rsi
je 0x14009e569
cmp dword [rsi + 0x288], 2
jge 0x14009e569
mov byte [r15 + 0x3d0], r13b
nop word [rax + rax]
cmp dword [rsi + 0x288], 0
jne 0x14009dcb0
mov r8, rbp
lea rdx, str.Establish_HTTP_proxy_tunnel_to__s:_d
mov rcx, rbx
call fcn.140073820
mov rcx, qword [rbx + 0x198]
lea r8, str.C:dev_vcpkg_buildtreescurl_src7a634d33bf_24fa6e04fd.cleanlibhttp_proxy.c
mov edx, 0x11f
call fcn.14005ddc0
mov edx, 0x100000
mov qword [rbx + 0x198], r13
lea rcx, [rsi + 0x250]
call fcn.140071490
movzx eax, byte [r15 + 0x3d8]
cmp rbp, qword [r15 + 0xa0]
je 0x14009da83
mov edx, 0x3a
mov rcx, rbp
call fcn.14002fd04
test rax, rax
setne al
test al, al
lea rcx, [0x1400dcb93]
mov r9, rcx
lea rax, [0x1400cbe88]
lea rdx, [0x1400cbe84]
mov r8, rbp
cmovne r9, rdx
mov rdx, rcx
cmovne rdx, rax
lea rcx, str._s_s_s:_d
mov eax, dword [rsp + 0xf8]
mov dword [rsp + 0x20], eax
call fcn.140060620
mov rbp, rax
test rax, rax
je 0x14009e3ae
lea r8, str.Host
mov rdx, r15
mov rcx, rbx
call fcn.14008b620
test rax, rax
jne 0x14009db00
mov rdx, rbp
lea rcx, str.Host:__s_r_n
call fcn.140060620
mov r13, rax
test rax, rax
je 0x14009e39a
mov byte [rsp + 0x28], 1
lea r8, str.CONNECT
xor r9d, r9d
mov qword [rsp + 0x20], rbp
mov rdx, r15
mov rcx, rbx
call fcn.14008dac0
mov edi, eax
test eax, eax
jne 0x14009dc66
mov rax, qword [rsp + 0x40]
lea rcx, [0x1400d2cd4]
lea r15, [0x1400d2cd0]
mov rdx, rax
lea r8, str.Proxy_Connection
lea rdi, [0x1400dcb93]
cmp dword [rax + 0x13c], 1
cmove r15, rcx
mov rcx, rbx
call fcn.14008b620
mov rdx, qword [rsp + 0x40]
lea r12, str.Proxy_Connection:_Keep_Alive_r_n
test rax, rax
lea r8, str.User_Agent
lea rax, [0x1400dcb93]
mov rcx, rbx
cmovne r12, rax
call fcn.14008b620
test rax, rax
jne 0x14009db9e
cmp qword [rbx + 0x8b8], rax
je 0x14009db9e
mov rdi, qword [rbx + 0x1268]
mov rax, qword [rbx + 0x1260]
lea rdx, [0x1400dcb93]
test rax, rax
mov qword [rsp + 0x38], r12
mov rcx, rdx
mov qword [rsp + 0x30], rdi
cmovne rcx, rax
mov r9, r15
mov rax, rdx
mov qword [rsp + 0x28], rcx
test r13, r13
lea rdx, str.CONNECT__s_HTTP__s_r_n_s_s_s_s
mov r8, rbp
lea rcx, [rsi + 0x250]
cmovne rax, r13
mov qword [rsp + 0x20], rax
call fcn.140071420
mov edi, eax
test eax, eax
jne 0x14009dc4d
lea r8, [rsi + 0x250]
mov dl, 1
mov rcx, rbx
call fcn.14008ae80
mov edi, eax
test eax, eax
jne 0x14009dc4d
lea rdx, [0x1400dcc64]
lea rcx, [rsi + 0x250]
call fcn.140071400
mov edi, eax
test eax, eax
jne 0x14009dc4d
mov eax, dword [rsp + 0xe8]
lea r8, [rbx + 0x1358]
xor r9d, r9d
mov dword [rsp + 0x20], eax
mov rdx, rbx
lea rcx, [rsi + 0x250]
call fcn.14008b350
mov edi, eax
test eax, eax
je 0x14009dc5c
lea rdx, str.Failed_sending_CONNECT_to_proxy
mov rcx, rbx
call fcn.1400736b0
mov r12, qword [rsp + 0x50]
mov r15, qword [rsp + 0x40]
lea r8, str.C:dev_vcpkg_buildtreescurl_src7a634d33bf_24fa6e04fd.cleanlibhttp_proxy.c
mov edx, 0x159
mov rcx, r13
call fcn.14005ddc0
lea r8, str.C:dev_vcpkg_buildtreescurl_src7a634d33bf_24fa6e04fd.cleanlibhttp_proxy.c
mov edx, 0x15a
mov rcx, rbp
call fcn.14005ddc0
test edi, edi
jne 0x14009e3b8
mov rdi, qword [rsp + 0x48]
xor r13d, r13d
mov r14d, dword [rsp + 0xe8]
mov dword [rsi + 0x288], 1
mov r8b, 1
xor edx, edx
mov rcx, rbx
call fcn.140075090
test rax, rax
jle 0x14009e586
mov edx, r14d
mov rcx, r15
call fcn.140074180
test al, al
jne 0x14009dce4
cmp dword [r12 + 0x200], 0
je 0x14009e569
cmp dword [r12 + 0x200], 1
jne 0x14009dd40
mov r9, qword [rsi + 0x270]
test r9, r9
jne 0x14009e3bf
mov rax, qword [rbx + 0xd28]
lea r8, [rsp + 0x78]
mov qword [rbx + 0x1a8], rax
mov rcx, rbx
mov edx, dword [rbx + 0x728]
call fcn.14009a4c0
test eax, eax
jne 0x14009e56b
mov rax, qword [rsp + 0x78]
mov qword [rsi + 0x270], rax
mov r9, rax
test rax, rax
jne 0x14009e3bf
cmp dword [rsi + 0x278], 0
mov r12d, r13d
je 0x14009ddec
lea rax, [rsp + 0x60]
mov r9d, 1
lea r8, [rsp + 0xe0]
mov qword [rsp + 0x20], rax
mov rdx, rdi
mov rcx, rbx
call fcn.1400738c0
mov edi, eax
cmp eax, 0x51
je 0x14009e569
mov rcx, rbx
call fcn.14007ac80
test eax, eax
jne 0x14009e57f
test edi, edi
jne 0x14009ddd8
cmp qword [rsp + 0x60], 0
jle 0x14009e294
cmp dword [rsi + 0x278], 2
jne 0x14009dec3
mov rax, qword [rsi + 0x280]
test rax, rax
je 0x14009de6f
dec rax
mov qword [rsi + 0x280], rax
test rax, rax
jg 0x14009e27d
mov dword [rsi + 0x288], 2
mov dword [rsi + 0x278], r13d
mov r15, qword [rsp + 0x40]
mov r14d, dword [rsp + 0xe8]
mov rcx, rbx
call fcn.14007ac80
test eax, eax
jne 0x14009e57f
test r12d, r12d
jne 0x14009e430
mov eax, dword [rbx + 0x133c]
sub eax, 0xc8
cmp eax, 0x64
jb 0x14009de35
mov rcx, rbx
call fcn.14008b8c0
test eax, eax
jne 0x14009e56b
cmp byte [r15 + 0x3d1], al
je 0x14009de35
mov byte [rsi + 0x28d], 1
cmp byte [rsi + 0x28d], 0
je 0x14009e2fe
cmp qword [rbx + 0x198], 0
je 0x14009e36b
mov rdi, qword [rsp + 0x68]
mov rdx, r15
mov rcx, rbx
mov r8, qword [rdi]
call fcn.1400740d0
mov qword [rdi], 0xffffffffffffffff
jmp 0x14009e43f
lea rax, [rsp + 0x70]
mov qword [rsp + 0x80], r13
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov r8d, 1
lea rdx, [rsp + 0xe0]
mov rcx, rbx
call fcn.14009cfe0
cmp eax, 0xffffffff
jne 0x14009e27d
lea rdx, str.chunk_reading_DONE
mov rcx, rbx
call fcn.140073820
mov dword [rsi + 0x278], r13d
jmp 0x14009e273
mov r8d, 1
lea rdx, [rsp + 0xe0]
lea rcx, [rsi + 0x230]
call fcn.140071450
test eax, eax
jne 0x14009e421
cmp byte [rsp + 0xe0], 0xa
jne 0x14009e27d
lea rcx, [rsi + 0x230]
call fcn.1400714c0
lea rcx, [rsi + 0x230]
mov rdi, rax
call fcn.1400714b0
mov r9, rax
mov r8, rdi
mov edx, 1
mov rcx, rbx
mov rbp, rax
call fcn.1400735e0
cmp byte [rbx + 0xb32], 0
jne 0x14009df53
cmp byte [rbx + 0xb19], 0
mov edx, r13d
mov r9, rbp
mov r8, rdi
setne dl
mov rcx, rbx
add edx, 2
call fcn.1400735d0
test eax, eax
jne 0x14009e56b
movsxd rax, ebp
add qword [rbx + 0x1350], rax
movzx eax, byte [rdi]
cmp al, 0xd
je 0x14009e1a8
cmp al, 0xa
je 0x14009e1a8
mov r8d, reloc.WS2_32.dll_recvfrom
lea rcx, str.WWW_Authenticate:
mov rdx, rdi
call fcn.140061d30
test eax, eax
je 0x14009df97
mov ebp, dword [rbx + 0x158]
cmp ebp, 0x191
je 0x14009dfbe
mov r8d, reloc.WS2_32.dll_send
lea rcx, str.Proxy_authenticate:
mov rdx, rdi
call fcn.140061d30
test eax, eax
je 0x14009e00b
mov ebp, dword [rbx + 0x158]
cmp ebp, 0x197
jne 0x14009e00b
mov rcx, rdi
call fcn.14008b7b0
mov rdi, rax
test rax, rax
je 0x14009e3ae
cmp ebp, 0x197
mov r8, rax
mov rcx, rbx
sete dl
call fcn.14008d6d0
lea r8, str.C:dev_vcpkg_buildtreescurl_src7a634d33bf_24fa6e04fd.cleanlibhttp_proxy.c
mov edx, 0x23f
mov rcx, rdi
mov ebp, eax
call fcn.14005ddc0
test ebp, ebp
je 0x14009e197
mov eax, ebp
jmp 0x14009e56b
mov r8d, reloc.WS2_32.dll_ntohs
lea rcx, str.Content_Length:
mov rdx, rdi
call fcn.140061d30
test eax, eax
je 0x14009e07e
mov r8d, dword [rbx + 0x158]
lea eax, [r8 - 0xc8]
cmp eax, 0x64
jae 0x14009e057
lea rdx, str.Ignoring_Content_Length_in_CONNECT__03d_response
mov rcx, rbx
call fcn.140073820
lea rcx, [rsi + 0x230]
call fcn.1400714d0
jmp 0x14009e27d
xor edx, edx
lea r9, [rsi + 0x280]
lea rcx, [rdi + 0xf]
lea r8d, [rdx + 0xa]
call fcn.14007e1c0
lea rcx, [rsi + 0x230]
call fcn.1400714d0
jmp 0x14009e27d
lea r8, str.close
mov rcx, rdi
lea rdx, str.Connection:
call fcn.14008b6c0
test al, al
jne 0x14009e190
mov r8d, reloc.WS2_32.dll_select
lea rcx, str.Transfer_Encoding:
mov rdx, rdi
call fcn.140061d30
test eax, eax
je 0x14009e139
mov r8d, dword [rbx + 0x158]
lea eax, [r8 - 0xc8]
cmp eax, 0x64
jae 0x14009e0ec
lea rdx, str.Ignoring_Transfer_Encoding_in_CONNECT__03d_response
mov rcx, rbx
call fcn.140073820
lea rcx, [rsi + 0x230]
call fcn.1400714d0
jmp 0x14009e27d
lea r8, str.chunked
mov rcx, rdi
lea rdx, str.Transfer_Encoding:
call fcn.14008b6c0
test al, al
je 0x14009e197
lea rdx, str.CONNECT_responded_chunked
mov rcx, rbx
call fcn.140073820
mov rcx, rbx
mov byte [rsi + 0x28c], 1
call fcn.14009cfc0
lea rcx, [rsi + 0x230]
call fcn.1400714d0
jmp 0x14009e27d
lea r8, str.close
mov rcx, rdi
lea rdx, str.Proxy_Connection:
call fcn.14008b6c0
test al, al
jne 0x14009e190
lea r9, [rbx + 0x158]
mov rcx, rdi
lea r8, [rsp + 0x58]
lea rdx, str.HTTP_1._d__d
call fcn.1400644e0
cmp eax, 2
jne 0x14009e197
mov eax, dword [rbx + 0x158]
lea rcx, [rsi + 0x230]
mov dword [rbx + 0x133c], eax
call fcn.1400714d0
jmp 0x14009e27d
mov byte [rsi + 0x28d], 1
lea rcx, [rsi + 0x230]
call fcn.1400714d0
jmp 0x14009e27d
cmp dword [rbx + 0x158], 0x197
jne 0x14009e262
cmp byte [rbx + 0x12d6], 0
jne 0x14009e262
mov r8, qword [rsi + 0x280]
mov dword [rsi + 0x278], 2
test r8, r8
je 0x14009e1f9
lea rdx, str.Ignore__I64d_bytes_of_response_body
mov rcx, rbx
call fcn.140073820
cmp dword [rsi + 0x278], 0
jne 0x14009e28a
jmp 0x14009e269
cmp byte [rsi + 0x28c], 0
je 0x14009e262
lea rdx, str.Ignore_chunked_response_body
mov rcx, rbx
call fcn.140073820
lea rax, [rdi + 1]
mov byte [rbx + 0x1c3], 1
cmp byte [rax], 0xa
lea r9, [rsp + 0x60]
mov r8d, 1
mov rcx, rbx
cmove rdi, rax
lea rax, [rsp + 0x74]
mov qword [rsp + 0x20], rax
lea rdx, [rdi + 1]
call fcn.14009cfe0
cmp eax, 0xffffffff
jne 0x14009e1ea
lea rdx, str.chunk_reading_DONE
mov rcx, rbx
call fcn.140073820
mov dword [rsi + 0x288], 2
mov dword [rsi + 0x278], r13d
cmp qword [rsi + 0x280], 0
jne 0x14009e27d
mov dword [rsi + 0x288], 2
cmp dword [rsi + 0x278], 0
je 0x14009dddf
mov rdi, qword [rsp + 0x48]
jmp 0x14009dd50
cmp dword [rbx + 0x218], 0
je 0x14009e2d8
cmp dword [rbx + 0xe50], 0
je 0x14009e2d8
cmp qword [rbx + 0x1260], 0
je 0x14009e2d8
mov r15, qword [rsp + 0x40]
lea rdx, str.Proxy_CONNECT_connection_closed
mov rcx, rbx
mov byte [r15 + 0x3d0], 1
call fcn.140073820
mov dword [rsi + 0x278], r13d
jmp 0x14009dde4
lea rdx, str.Proxy_CONNECT_aborted
mov rcx, rbx
mov r12d, 1
call fcn.1400736b0
mov r15, qword [rsp + 0x40]
mov dword [rsi + 0x278], r13d
jmp 0x14009dde4
mov rax, qword [rbx + 0x198]
test rax, rax
je 0x14009e43a
cmp dword [rsi + 0x288], 2
mov rdi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0xf0]
mov r12, qword [rsp + 0x50]
mov r9d, dword [rsp + 0xf8]
jne 0x14009da10
mov rax, qword [rbx + 0x18]
mov rdi, qword [rax + 0x7f0]
lea rcx, [rdi + 0x230]
call fcn.1400714d0
mov dword [rdi + 0x288], r13d
mov dword [rdi + 0x278], 1
mov qword [rdi + 0x280], r13
mov byte [rdi + 0x28d], 0
mov rax, qword [rbx + 0x198]
test rax, rax
je 0x14009e43a
mov rdi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0xf0]
mov r12, qword [rsp + 0x50]
mov r9d, dword [rsp + 0xf8]
jmp 0x14009da10
lea r8, str.C:dev_vcpkg_buildtreescurl_src7a634d33bf_24fa6e04fd.cleanlibhttp_proxy.c
mov edx, 0xf0
mov rcx, rbp
call fcn.14005ddc0
mov eax, 0x1b
jmp 0x14009e56b
mov eax, edi
jmp 0x14009e56b
mov r8, qword [rbx + 0x1a8]
lea rax, [rsp + 0xe0]
mov rdx, qword [r15 + 0x440]
mov rcx, rbx
mov qword [rsp + 0x20], rax
call fcn.140073d30
mov ecx, eax
test eax, eax
jne 0x14009e404
mov r9, qword [rsp + 0xe0]
lea edx, [rax + 2]
mov r8, qword [rbx + 0x1a8]
mov rcx, rbx
call fcn.1400735e0
mov ecx, eax
mov rax, qword [rsp + 0xe0]
sub qword [rsi + 0x270], rax
add qword [rbx + 0x1a8], rax
mov eax, ecx
jmp 0x14009e56b
lea rdx, str.CONNECT_response_too_large_
mov rcx, rbx
call fcn.1400736b0
mov eax, gethostname
jmp 0x14009e56b
mov rdi, qword [rsp + 0x68]
mov eax, dword [rbx + 0x133c]
sub eax, 0xc8
cmp eax, 0x64
jb 0x14009e506
cmp byte [rsi + 0x28d], 0
je 0x14009e487
cmp qword [rbx + 0x198], 0
je 0x14009e487
lea rdx, str.Connect_me_again_please
mov byte [r15 + 0x3d0], 1
mov rcx, rbx
call fcn.140073820
mov rcx, rbx
call fcn.14009e850
jmp 0x14009e4c8
mov rcx, qword [rbx + 0x198]
lea r8, str.C:dev_vcpkg_buildtreescurl_src7a634d33bf_24fa6e04fd.cleanlibhttp_proxy.c
mov edx, 0x29b
call fcn.14005ddc0
mov edx, 2
mov qword [rbx + 0x198], r13
mov rcx, r15
call fcn.140074250
mov r8, qword [rdi]
mov rdx, r15
mov rcx, rbx
call fcn.1400740d0
mov qword [rdi], 0xffffffffffffffff
mov dword [rsi + 0x288], r13d
cmp byte [r15 + 0x3d0], 0
jne 0x14009e569
lea rcx, [rsi + 0x230]
call fcn.140071460
mov r8d, dword [rbx + 0x158]
lea rdx, str.Received_HTTP_code__d_from_proxy_after_CONNECT
mov rcx, rbx
call fcn.1400736b0
mov eax, gethostname
jmp 0x14009e56b
mov dword [rsi + 0x288], 2
lea r8, str.C:dev_vcpkg_buildtreescurl_src7a634d33bf_24fa6e04fd.cleanlibhttp_proxy.c
mov rcx, qword [rbx + 0x1260]
mov edx, 0x2b4
call fcn.14005ddc0
mov qword [rbx + 0x1260], r13
lea rdx, str.Proxy_replied__d_to_CONNECT_request
mov r8d, dword [rbx + 0x133c]
mov rcx, rbx
mov word [rbx + 0xe54], 1
call fcn.140073820
mov byte [rbx + 0x1c3], 0
lea rcx, [rsi + 0x230]
mov byte [r15 + 0x3de], 0
call fcn.140071460
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, 0x2a
jmp 0x14009e56b
lea rdx, str.Proxy_CONNECT_aborted_due_to_timeout
mov rcx, rbx
call fcn.1400736b0
mov eax, 0x1c
jmp 0x14009e56b