Function at 0x14001bba0
Capabilities:
Check http status code

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x78
mov rdi, qword [rcx]
mov r15, rcx
add rcx, 0x238
movsxd r14, edx
xor r13d, r13d
mov r12d, r9d
mov rsi, r8
mov dword [rsp + 0x44], r13d
mov rbx, qword [r15 + 0xa00]
mov rbp, qword [r15 + r14*8 + 0x238]
lea rcx, [rcx + r14*8]
mov qword [rsp + 0x58], rcx
mov rcx, r15
mov qword [rsp + 0x48], rbp
mov byte [rsp + 0x40], r13b
call fcn.14001ba00
test al, al
jne 0x14001c5d4
mov byte [r15 + 0x56a], r13b
nop word [rax + rax]
cmp dword [rbx + 0x4024], 0
jne 0x14001bed6
mov r9d, r12d
lea rdx, str.Establish_HTTP_proxy_tunnel_to__s:_hu_n
mov r8, rsi
mov rcx, rdi
call fcn.1400191f0
mov rcx, qword [rdi + 0x1d8]
call qword [fcn.14005470c]
mov qword [rdi + 0x1d8], r13
call fcn.14001f560
mov rbp, rax
test rax, rax
je 0x14001c49e
mov r8d, r12d
lea rcx, str._s:_hu
mov rdx, rsi
call fcn.140026500
mov r14, rax
test rax, rax
je 0x14001c496
mov r9b, 1
lea rdx, str.CONNECT
mov r8, rax
mov rcx, r15
call fcn.140022ac0
mov rcx, r14
mov esi, eax
call qword [fcn.14005470c]
test esi, esi
jne 0x14001bea8
mov rsi, qword [rsp + 0xc0]
lea rax, [0x1400b5a14]
mov r14, qword [rsp + 0xd0]
lea r12, [0x1400b5a48]
mov r15, r13
lea r13, [0x1400c1051]
cmp dword [rsi + 0x164], 1
cmove r12, rax
movzx eax, byte [rsi + 0x55a]
cmp r14, qword [rsi + 0xd0]
je 0x14001bd03
mov edx, Ordinal_60
mov rcx, r14
call fcn.14004ec24
test rax, rax
setne al
test al, al
lea rcx, [0x1400b5a4c]
lea rax, [0x1400b5a50]
mov r8, r14
lea r9, [0x1400c1052]
cmovne r9, rcx
lea rdx, [0x1400c1053]
cmovne rdx, rax
lea rcx, str._s_s_s:_hu
mov eax, dword [rsp + 0xd8]
mov dword [rsp + 0x20], eax
call fcn.140026500
mov r14, rax
test rax, rax
je 0x14001c496
lea rdx, [0x1400b5a64]
mov rcx, rsi
call fcn.14001f4c0
test rax, rax
jne 0x14001bd7e
mov rdx, r14
lea rcx, str.Host:__s_r_n
call fcn.140026500
mov r15, rax
test rax, rax
je 0x14001c48d
lea rdx, [0x1400b5a80]
mov rcx, rsi
call fcn.14001f4c0
mov rcx, qword [rsp + 0xc0]
lea rsi, [0x1400b5a98]
test rax, rax
lea rdx, [0x1400b5ab8]
lea rax, [0x1400c1050]
cmovne rsi, rax
call fcn.14001f4c0
test rax, rax
mov rax, qword [rsp + 0xc0]
jne 0x14001bdd4
cmp qword [rdi + 0x6e8], 0
je 0x14001bdd4
mov r13, qword [rax + 0x5c8]
mov rax, qword [rax + 0x5c0]
lea rcx, [0x1400c1054]
test rax, rax
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], r13
lea rdx, str.CONNECT__s_HTTP__s_r_n_s_s_s_s
cmovne rcx, rax
mov r9, r12
mov qword [rsp + 0x28], rcx
lea rax, [0x1400c1055]
test r15, r15
mov r8, r14
mov rcx, rbp
cmovne rax, r15
mov qword [rsp + 0x20], rax
call fcn.14001f5b0
mov esi, eax
test r15, r15
je 0x14001be30
mov rcx, r15
call qword [fcn.14005470c]
mov rcx, r14
call qword [fcn.14005470c]
mov r15, qword [rsp + 0xc0]
test esi, esi
jne 0x14001be8f
mov r8, rbp
mov dl, 1
mov rcx, r15
call fcn.14001fac0
mov esi, eax
test eax, eax
jne 0x14001be8f
lea rdx, [0x1400b5a54]
mov rcx, rbp
call fcn.14001f5b0
mov esi, eax
test eax, eax
jne 0x14001be8f
mov eax, dword [rsp + 0xc8]
lea r8, [rdi + 0x4f68]
xor r9d, r9d
mov dword [rsp + 0x20], eax
mov rdx, r15
mov rcx, rbp
call fcn.14001f750
mov esi, eax
xor r13d, r13d
mov ebp, r13d
test esi, esi
je 0x14001bea8
lea rdx, str.Failed_sending_CONNECT_to_proxy
mov rcx, rdi
call fcn.1400192a0
mov rcx, rbp
call fcn.14001f580
test esi, esi
jne 0x14001c4a8
mov rbp, qword [rsp + 0x48]
mov r14d, dword [rsp + 0xc8]
mov dword [rbx + 0x4024], 1
mov dword [rbx + 0x4000], r13d
mov r8b, 1
xor edx, edx
mov rcx, rdi
call fcn.14001a3a0
test rax, rax
jle 0x14001c5d8
mov edx, r14d
mov rcx, r15
call fcn.14001abc0
test al, al
je 0x14001c5d4
cmp dword [rbx + 0x4004], 0
mov r12d, r13d
je 0x14001c3ed
lea r14, [rbx + 0x4000]
nop word [rax + rax]
mov r8, qword [rbx + 0x4010]
cmp r8, r14
jae 0x14001c4b9
lea rax, [rsp + 0x50]
mov r9d, 1
mov rdx, rbp
mov qword [rsp + 0x20], rax
mov rcx, r15
call fcn.140019790
mov esi, eax
cmp eax, 0x51
je 0x14001c5d4
mov rcx, r15
call fcn.140023f20
test eax, eax
jne 0x14001c4af
test esi, esi
jne 0x14001c3de
cmp qword [rsp + 0x50], 0
jle 0x14001c39e
cmp dword [rbx + 0x4004], 1
jle 0x14001bff7
mov rax, qword [rbx + 0x4018]
mov qword [rbx + 0x4010], rbx
test rax, rax
je 0x14001bfb8
dec rax
mov qword [rbx + 0x4018], rax
test rax, rax
jg 0x14001c38f
mov dword [rbx + 0x4024], 2
jmp 0x14001c3de
lea r9, [rsp + 0x60]
mov qword [rsp + 0x60], r13
mov r8d, 1
mov rdx, rbx
mov rcx, r15
call fcn.1400400d0
cmp eax, 0xffffffff
jne 0x14001c38f
lea rdx, [0x1400b5b98]
mov rcx, rdi
call fcn.1400191f0
mov dword [rbx + 0x4004], r13d
jmp 0x14001c385
mov rax, qword [rbx + 0x4010]
inc dword [r14]
cmp byte [rax], 0xa
je 0x14001c015
inc rax
mov qword [rbx + 0x4010], rax
jmp 0x14001c38f
cmp byte [rdi + 0x598], 0
je 0x14001c03a
movsxd r9, dword [r14]
mov edx, 1
mov r8, qword [rbx + 0x4008]
mov rcx, rdi
mov qword [rsp + 0x20], r15
call fcn.140019990
cmp byte [rdi + 0x808], 0
jne 0x14001c06d
cmp byte [rdi + 0x58d], 0
mov edx, r13d
movsxd r9, dword [r14]
mov rcx, r15
mov r8, qword [rbx + 0x4008]
setne dl
add edx, 2
call fcn.140019540
test eax, eax
jne 0x14001c5ec
mov eax, dword [r14]
add dword [rdi + 0x4f64], eax
mov eax, dword [r14]
add dword [rdi + 0x108], eax
mov rcx, qword [rbx + 0x4008]
movzx eax, byte [rcx]
cmp al, 0xd
je 0x14001c2b9
cmp al, 0xa
je 0x14001c2b9
movsxd rax, dword [r14]
mov r8d, reloc.WS2_32.dll_recvfrom
mov byte [rax + rcx], 0
lea rcx, [0x1400b5c10]
mov rdx, qword [rbx + 0x4008]
call fcn.1400253b0
test eax, eax
je 0x14001c0cb
mov esi, dword [rdi + 0x180]
cmp esi, 0x191
je 0x14001c0f6
mov rdx, qword [rbx + 0x4008]
lea rcx, [0x1400b5c28]
mov r8d, reloc.WS2_32.dll_send
call fcn.1400253b0
test eax, eax
je 0x14001c13f
mov esi, dword [rdi + 0x180]
cmp esi, 0x197
jne 0x14001c13f
mov rcx, qword [rbx + 0x4008]
call fcn.14001f3c0
mov rbp, rax
test rax, rax
je 0x14001c49e
cmp esi, 0x197
mov r8, rax
mov rcx, r15
sete dl
call fcn.140021610
mov rcx, rbp
mov esi, eax
call qword [fcn.14005470c]
test esi, esi
jne 0x14001c4a8
mov rbp, qword [rsp + 0x48]
jmp 0x14001c2a3
mov rdx, qword [rbx + 0x4008]
lea rcx, [0x1400b5c40]
mov r8d, reloc.WS2_32.dll_ntohs
call fcn.1400253b0
test eax, eax
je 0x14001c1a5
mov r8d, dword [rdi + 0x180]
lea eax, [r8 - 0xc8]
cmp eax, 0x64
jae 0x14001c183
lea rdx, str.Ignoring_Content_Length_in_CONNECT__03d_response_n
mov rcx, rdi
call fcn.1400191f0
jmp 0x14001c2a3
mov rcx, qword [rbx + 0x4008]
xor edx, edx
add rcx, 0xf
lea r8d, [rdx + 0xa]
call fcn.14006009c
mov qword [rbx + 0x4018], rax
jmp 0x14001c2a3
mov rcx, qword [rbx + 0x4008]
lea r8, [0x1400b5b74]
lea rdx, [0x1400b5c88]
call fcn.14001f260
test al, al
je 0x14001c1cd
mov byte [rsp + 0x40], 1
jmp 0x14001c2a3
mov rdx, qword [rbx + 0x4008]
lea rcx, [0x1400b5c98]
mov r8d, reloc.WS2_32.dll_select
call fcn.1400253b0
test eax, eax
je 0x14001c24f
mov r8d, dword [rdi + 0x180]
lea eax, [r8 - 0xc8]
cmp eax, 0x64
jae 0x14001c211
lea rdx, str.Ignoring_Transfer_Encoding_in_CONNECT__03d_response_n
mov rcx, rdi
call fcn.1400191f0
jmp 0x14001c2a3
mov rcx, qword [rbx + 0x4008]
lea r8, [0x1400b5ce8]
lea rdx, [0x1400b5cf0]
call fcn.14001f260
test al, al
je 0x14001c2a3
lea rdx, str.CONNECT_responded_chunked_n
mov rcx, rdi
call fcn.1400191f0
mov rcx, r15
mov byte [rbx + 0x4020], 1
call fcn.1400400b0
jmp 0x14001c2a3
mov rcx, qword [rbx + 0x4008]
lea r8, [0x1400b5d24]
lea rdx, [0x1400b5d30]
call fcn.14001f260
test al, al
je 0x14001c274
mov byte [rsp + 0x40], 1
jmp 0x14001c2a3
mov rcx, qword [rbx + 0x4008]
lea rsi, [rdi + 0x180]
mov r9, rsi
lea r8, [rsp + 0x44]
lea rdx, str.HTTP_1._d__d
call fcn.14000de30
cmp eax, 2
jne 0x14001c2a3
mov eax, dword [rsi]
mov dword [rdi + 0x4f54], eax
mov dword [r14], r13d
mov qword [rbx + 0x4010], rbx
mov qword [rbx + 0x4008], rbx
jmp 0x14001c38f
mov qword [rbx + 0x4010], rbx
cmp dword [rdi + 0x180], 0x197
jne 0x14001c374
cmp byte [rdi + 0x4c20], 0
jne 0x14001c374
mov r8, qword [rbx + 0x4018]
mov dword [rbx + 0x4004], 2
test r8, r8
je 0x14001c304
lea rdx, str.Ignore__I64d_bytes_of_response_body_n
mov rcx, rdi
call fcn.1400191f0
jmp 0x14001c37b
cmp byte [rbx + 0x4020], 0
je 0x14001c374
lea rdx, str.Ignore_chunked_response_body_n
mov rcx, rdi
call fcn.1400191f0
mov byte [rdi + 0x1cd], 1
mov rax, qword [rbx + 0x4008]
inc rax
cmp byte [rax], 0xa
jne 0x14001c339
mov qword [rbx + 0x4008], rax
mov rdx, qword [rbx + 0x4008]
lea r9, [rsp + 0x50]
inc rdx
mov r8d, 1
mov rcx, r15
call fcn.1400400d0
cmp eax, 0xffffffff
jne 0x14001c37b
lea rdx, str.chunk_reading_DONE_n
mov rcx, rdi
call fcn.1400191f0
mov dword [rbx + 0x4024], 2
mov dword [rbx + 0x4004], r13d
cmp qword [rbx + 0x4018], 0
jne 0x14001c38f
mov dword [rbx + 0x4024], 2
cmp dword [rbx + 0x4004], 0
jne 0x14001bf20
jmp 0x14001c3e5
cmp dword [rdi + 0x248], 0
je 0x14001c3c9
cmp dword [rdi + 0x4c18], 0
je 0x14001c3c9
lea rdx, str.Proxy_CONNECT_connection_closed_n
mov byte [r15 + 0x56a], 1
mov rcx, rdi
call fcn.1400191f0
jmp 0x14001c3de
lea rdx, str.Proxy_CONNECT_aborted
mov rcx, rdi
mov r12d, 1
call fcn.1400192a0
mov dword [rbx + 0x4004], r13d
mov r14d, dword [rsp + 0xc8]
mov rcx, r15
call fcn.140023f20
test eax, eax
jne 0x14001c4af
test r12d, r12d
jne 0x14001c4c8
cmp dword [rdi + 0x4f54], 0xc8
je 0x14001c435
mov rcx, r15
call fcn.1400218a0
test eax, eax
jne 0x14001c5ec
cmp byte [r15 + 0x551], al
je 0x14001c435
mov sil, 1
mov byte [rsp + 0x40], sil
jmp 0x14001c43f
movzx esi, byte [rsp + 0x40]
test sil, sil
je 0x14001c44d
cmp qword [rdi + 0x1d8], 0
jne 0x14001c4d2
cmp qword [rdi + 0x1d8], 0
je 0x14001c4eb
cmp dword [rbx + 0x4024], 2
jne 0x14001c46e
mov dl, 1
mov rcx, r15
call fcn.14001bae0
cmp qword [rdi + 0x1d8], 0
je 0x14001c4eb
mov rsi, qword [rsp + 0xd0]
mov r12d, dword [rsp + 0xd8]
jmp 0x14001bc20
mov rcx, r14
call qword [fcn.14005470c]
mov rcx, rbp
call fcn.14001f580
mov eax, reloc.WLDAP32.dll_Ordinal_27
jmp 0x14001c5ec
mov eax, esi
jmp 0x14001c5ec
mov eax, Ordinal_45
jmp 0x14001c5ec
lea rdx, str.CONNECT_response_too_large_
mov rcx, rdi
call fcn.1400192a0
mov eax, gethostname
jmp 0x14001c5ec
mov r14, qword [rsp + 0x58]
mov rcx, r15
mov rdx, qword [r14]
call fcn.14001a980
mov qword [r14], 0xffffffffffffffff
jmp 0x14001c4f0
mov r14, qword [rsp + 0x58]
cmp dword [rdi + 0x180], 0xc8
je 0x14001c591
test sil, sil
je 0x14001c530
cmp qword [rdi + 0x1d8], 0
je 0x14001c530
lea rdx, str.Connect_me_again_please_n
mov byte [r15 + 0x56a], 1
mov rcx, rdi
call fcn.1400191f0
mov rcx, r15
call fcn.14001bb70
jmp 0x14001c563
mov rcx, qword [rdi + 0x1d8]
call qword [fcn.14005470c]
mov edx, 2
mov qword [rdi + 0x1d8], r13
mov rcx, r15
call fcn.14001ab60
mov rdx, qword [r14]
mov rcx, r15
call fcn.14001a980
mov qword [r14], 0xffffffffffffffff
mov dword [rbx + 0x4024], r13d
cmp byte [r15 + 0x56a], 0
jne 0x14001c5d4
mov r8d, dword [rdi + 0x180]
lea rdx, str.Received_HTTP_code__d_from_proxy_after_CONNECT
mov rcx, rdi
call fcn.1400192a0
mov eax, gethostname
jmp 0x14001c5ec
mov dword [rbx + 0x4024], 2
mov rcx, qword [r15 + 0x5c0]
call qword [fcn.14005470c]
mov qword [r15 + 0x5c0], r13
lea rdx, str.Proxy_replied_OK_to_CONNECT_request_n
mov rcx, rdi
mov byte [rdi + 0x4c1c], 1
call fcn.1400191f0
mov byte [rdi + 0x1cd], 0
mov byte [r15 + 0x563], 0
xor eax, eax
jmp 0x14001c5ec
lea rdx, str.Proxy_CONNECT_aborted_due_to_timeout
mov rcx, rdi
call fcn.1400192a0
mov eax, Ordinal_30
add rsp, 0x78
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret