Function at 0x1400a2280
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 rdi
push r12
push r13
push r14
push r15
sub rsp, 0xa0
mov r15, qword [rcx]
mov r12, rcx
add rcx, 0x1d0
movsxd rax, edx
xor r14d, r14d
mov dword [rsp + 0x78], 0
xor bl, bl
mov qword [rsp + 0x58], r14
lea rbp, [r12 + 0x7e0]
mov byte [rsp + 0xe0], bl
mov rdi, qword [r12 + rax*8 + 0x1d0]
lea rcx, [rcx + rax*8]
lea rbp, [rbp + rax*4]
mov qword [rsp + 0x88], rcx
xor cl, cl
mov qword [rsp + 0x70], rdi
cmp dword [rbp], 2
mov r13, r8
mov byte [rsp + 0x40], cl
mov dword [rsp + 0x50], r14d
mov qword [rsp + 0x48], rbp
jne 0x1400a230f
xor eax, eax
jmp 0x1400a2d4c
mov qword [rsp + 0x98], rsi
mov byte [r12 + 0x3c8], cl
nop
cmp dword [rbp], 0
jne 0x1400a2581
mov r8, r13
lea rdx, str.Establish_HTTP_proxy_tunnel_to__s:_hu_n
mov rcx, r15
call fcn.1400918b0
mov rcx, qword [r15 + 0x1d8]
call qword [case.0x14009ea5b.0]
mov qword [r15 + 0x1d8], 0
call fcn.1400962f0
mov rsi, rax
test rax, rax
je 0x1400a2c0c
mov r8d, dword [rsp + 0xf8]
lea rcx, str._s:_hu
mov rdx, r13
call fcn.14009c8d0
mov rdi, rax
test rax, rax
je 0x1400a2c04
mov r9b, 1
lea rdx, str.CONNECT
mov r8, rax
mov rcx, r12
call fcn.140097050
mov rcx, rdi
mov ebx, eax
call qword [case.0x14009ea5b.0]
test ebx, ebx
jne 0x1400a2565
cmp dword [r12 + 0x1b0], 1
lea rax, [0x140239fe8]
lea rbx, [0x14023a094]
cmove rbx, rax
lea rdi, [0x140225bb1]
lea r14, [0x140225bb1]
movzx eax, byte [r12 + 0x3b9]
cmp r13, qword [r12 + 0xb8]
je 0x1400a2400
mov edx, 0x3a
mov rcx, r13
call qword [sym.imp.VCRUNTIME140.dll_strchr]
test rax, rax
setne al
test al, al
lea rcx, [0x140225cf0]
lea rax, [0x140239de8]
mov r8, r13
lea r9, [0x140225bb1]
cmovne r9, rcx
lea rdx, [0x140225bb1]
cmovne rdx, rax
lea rcx, str._s_s_s:_hu
mov eax, dword [rsp + 0xf8]
mov dword [rsp + 0x20], eax
call fcn.14009c8d0
mov rbp, rax
test rax, rax
je 0x1400a2c04
lea rdx, str.Host:
mov rcx, r12
call fcn.140096910
test rax, rax
jne 0x1400a247b
mov rdx, rbp
lea rcx, str.Host:__s_r_n
call fcn.14009c8d0
mov rdi, rax
test rax, rax
je 0x1400a2bfb
lea rdx, str.User_Agent:
mov rcx, r12
call fcn.140096910
test rax, rax
jne 0x1400a24a0
cmp qword [r15 + 0x5b0], rax
je 0x1400a24a0
mov r14, qword [r12 + 0x410]
mov rax, qword [r12 + 0x408]
lea rcx, [0x140225bb1]
test rax, rax
mov qword [rsp + 0x30], r14
mov r9, rbx
lea rdx, str.CONNECT__s_HTTP__s_r_n_s_s_s
cmovne rcx, rax
mov r8, rbp
mov qword [rsp + 0x28], rcx
mov rcx, rsi
mov qword [rsp + 0x20], rdi
call fcn.1400964f0
mov ebx, eax
test rdi, rdi
je 0x1400a24ef
cmp byte [rdi], 0
je 0x1400a24ef
mov rcx, rdi
call qword [case.0x14009ea5b.0]
mov rcx, rbp
call qword [case.0x14009ea5b.0]
test ebx, ebx
jne 0x1400a2546
mov r8, rsi
mov dl, 1
mov rcx, r12
call fcn.140096570
mov ebx, eax
test eax, eax
jne 0x1400a2546
lea rdx, [0x1401c0884]
mov rcx, rsi
call fcn.1400964f0
mov ebx, eax
test eax, eax
jne 0x1400a2546
mov eax, dword [rsp + 0xe8]
lea r8, [r15 + 0x8ae8]
xor r9d, r9d
mov dword [rsp + 0x20], eax
mov rdx, r12
mov rcx, rsi
call fcn.140096300
mov ebx, eax
xor esi, esi
test ebx, ebx
je 0x1400a255b
lea rdx, str.Failed_sending_CONNECT_to_proxy
mov rcx, r15
call fcn.1400917f0
mov rbp, qword [rsp + 0x48]
mov r14, qword [rsp + 0x58]
mov rcx, rsi
call fcn.1400962c0
test ebx, ebx
jne 0x1400a287c
mov rdi, qword [rsp + 0x70]
mov dword [rbp], 1
mov r8b, 1
xor edx, edx
mov rcx, r15
call fcn.140092a80
test eax, eax
jle 0x1400a2d30
cmp byte [rsp + 0x100], 0
jne 0x1400a25ba
or r8, 0xffffffffffffffff
xor r9d, r9d
or rdx, r8
mov rcx, rdi
call fcn.1400910b0
test eax, eax
je 0x1400a2d2c
mov ebp, 1
mov qword [rsp + 0x68], 0
xor ebx, ebx
mov dword [rsp + 0x44], ebp
xor esi, esi
lea r13, [r15 + 0x840]
lea rdi, [r15 + 0x840]
nop
test ebp, ebp
je 0x1400a2b49
cmp dword [rsp + 0x50], 0
jne 0x1400a2d3f
mov r8b, 1
xor edx, edx
mov rcx, r15
call fcn.140092a80
test eax, eax
jle 0x1400a2d30
mov rcx, qword [rsp + 0x70]
mov r9d, 0x3e8
cmp eax, r9d
cmovl r9d, eax
or r8, 0xffffffffffffffff
or rdx, r8
call fcn.1400910b0
cmp eax, 0xffffffff
je 0x1400a2b0e
test eax, eax
je 0x1400a2b25
mov rdx, qword [rsp + 0x70]
lea rax, [rsp + 0x60]
mov r9d, 0x4000
mov qword [rsp + 0x20], rax
sub r9, qword [rsp + 0x68]
mov r8, r13
mov rcx, r12
call fcn.140091950
cmp eax, 0x51
je 0x1400a2b35
test eax, eax
je 0x1400a2674
xor ebp, ebp
mov dword [rsp + 0x44], ebp
jmp 0x1400a2b25
mov rcx, qword [rsp + 0x60]
test rcx, rcx
jg 0x1400a26bf
xor ebp, ebp
mov dword [rsp + 0x44], ebp
cmp dword [r15 + 0x248], ebp
je 0x1400a26b3
cmp dword [r15 + 0x89c0], ebp
je 0x1400a26b3
lea rdx, str.Proxy_CONNECT_connection_closed_n
mov byte [r12 + 0x3c8], 1
mov rcx, r15
call fcn.1400918b0
jmp 0x1400a2b25
lea rdx, str.Proxy_CONNECT_aborted
jmp 0x1400a2b15
add qword [rsp + 0x68], rcx
cmp ebp, 1
jle 0x1400a2762
xor edx, edx
lea r13, [r15 + 0x840]
mov qword [rsp + 0x68], rdx
test r14, r14
je 0x1400a26fc
sub r14, rcx
mov qword [rsp + 0x58], r14
test r14, r14
jg 0x1400a2b25
mov ebp, edx
mov dword [rsp + 0x44], edx
jmp 0x1400a2b25
mov qword [rsp + 0x80], rdx
lea r9, [rsp + 0x80]
mov r8, rcx
lea rdx, [r15 + 0x840]
mov rcx, r12
call fcn.1400a5190
mov rcx, r15
cmp eax, 0xffffffff
jne 0x1400a2749
lea rdx, str.chunk_reading_DONE_n
call fcn.1400918b0
mov rax, qword [rsp + 0x48]
xor ebp, ebp
mov ecx, 2
mov dword [rsp + 0x44], ebp
mov dword [rax], ecx
jmp 0x1400a2b25
mov r8, qword [rsp + 0x80]
lea rdx, str.Read__zd_bytes_of_chunk__continue_n
call fcn.1400918b0
jmp 0x1400a2b25
xor r14d, r14d
test rcx, rcx
jle 0x1400a2b25
nop
inc ebx
inc rsi
cmp byte [r13], 0xa
jne 0x1400a2977
cmp byte [r15 + 0x4b0], 0
je 0x1400a27a2
movsxd r9, ebx
mov r8, rdi
mov edx, 1
mov qword [rsp + 0x20], r12
mov rcx, r15
call fcn.140091690
xor edx, edx
movsxd r9, ebx
cmp byte [r15 + 0x4a4], dl
mov r8, rdi
mov rcx, r12
setne dl
add edx, 2
call fcn.140091670
add dword [r15 + 0x8ae4], ebx
add dword [r15 + 0xc0], ebx
test eax, eax
jne 0x1400a2d44
movzx eax, byte [rdi]
cmp al, 0xd
je 0x1400a2992
cmp al, 0xa
je 0x1400a2992
add rsi, rdi
lea rcx, str.WWW_Authenticate:
mov r8d, send
mov rdx, rdi
movzx ebp, byte [rsi]
mov byte [rsi], 0
call fcn.14009c720
test eax, eax
je 0x1400a2819
mov ebx, dword [r15 + 0x128]
cmp ebx, 0x191
je 0x1400a2841
mov r8d, reloc.WS2_32.dll_send
lea rcx, str.Proxy_authenticate:
mov rdx, rdi
call fcn.14009c720
test eax, eax
je 0x1400a2883
mov ebx, dword [r15 + 0x128]
cmp ebx, 0x197
jne 0x1400a2883
mov rcx, rdi
call fcn.140096b00
mov rdi, rax
test rax, rax
je 0x1400a2c0c
cmp ebx, 0x197
mov r8, rax
mov rcx, r12
sete dl
call fcn.140096e00
mov rcx, rdi
mov ebx, eax
call qword [case.0x14009ea5b.0]
test ebx, ebx
je 0x1400a2967
mov eax, ebx
jmp 0x1400a2d44
mov r8d, reloc.WS2_32.dll_ntohs
lea rcx, str.Content_Length:
mov rdx, rdi
call fcn.14009c720
test eax, eax
je 0x1400a28b6
xor edx, edx
lea rcx, [rdi + 0xf]
lea r8d, [rdx + 0xa]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtoll]
mov qword [rsp + 0x58], rax
jmp 0x1400a2967
lea r8, str.close
mov rcx, rdi
lea rdx, str.Connection:
call fcn.140096a10
test al, al
je 0x1400a28dd
mov byte [rsp + 0xe0], 1
jmp 0x1400a2967
lea r8, str.chunked
mov rcx, rdi
lea rdx, str.Transfer_Encoding:
call fcn.140096a10
test al, al
je 0x1400a2915
lea rdx, str.CONNECT_responded_chunked_n
mov rcx, r15
call fcn.1400918b0
mov rcx, r12
mov byte [rsp + 0x40], 1
call fcn.1400a5180
jmp 0x1400a2967
lea r8, str.close
mov rcx, rdi
lea rdx, str.Proxy_Connection:
call fcn.140096a10
test al, al
je 0x1400a2939
mov byte [rsp + 0xe0], 1
jmp 0x1400a2967
lea r9, [r15 + 0x128]
mov rcx, rdi
lea r8, [rsp + 0x78]
lea rdx, str.HTTP_1._d__d
call fcn.140088260
cmp eax, 2
jne 0x1400a2967
mov eax, dword [r15 + 0x128]
mov dword [r15 + 0x8ad4], eax
mov rcx, qword [rsp + 0x60]
lea rdi, [r13 + 1]
xor ebx, ebx
mov byte [rsi], bpl
xor esi, esi
inc r14d
inc r13
movsxd rax, r14d
cmp rax, rcx
jl 0x1400a2770
mov ebp, dword [rsp + 0x44]
jmp 0x1400a2b25
cmp dword [r15 + 0x128], 0x197
lea r13, [r15 + 0x840]
mov qword [rsp + 0x68], 0
jne 0x1400a2acd
cmp byte [r15 + 0x89c8], 0
jne 0x1400a2acd
mov r8, qword [rsp + 0x58]
mov eax, 2
mov dword [rsp + 0x44], eax
mov ebp, eax
test r8, r8
je 0x1400a2a19
lea rdx, str.Ignore__lld_bytes_of_response_body_n
mov rcx, r15
call fcn.1400918b0
mov rcx, qword [rsp + 0x58]
xor ebp, ebp
movsxd rax, r14d
sub rax, qword [rsp + 0x60]
add rcx, rax
mov eax, 2
test rcx, rcx
mov qword [rsp + 0x58], rcx
mov ecx, eax
cmovg ebp, eax
mov rax, qword [rsp + 0x48]
mov dword [rsp + 0x44], ebp
mov dword [rax], ecx
jmp 0x1400a2b25
movzx ecx, byte [rsp + 0x40]
test cl, cl
je 0x1400a2ab9
mov r8, qword [rsp + 0x60]
lea rdx, str._zd_bytes_of_chunk_left_n
movsxd rax, r14d
mov rcx, r15
sub r8, rax
mov byte [r15 + 0x1cd], 1
call fcn.1400918b0
cmp byte [rdi + 1], 0xa
jne 0x1400a2a54
inc rdi
inc r14d
mov r8, qword [rsp + 0x60]
lea rdx, [rdi + 1]
movsxd rax, r14d
lea r9, [rsp + 0x60]
sub r8, rax
mov rcx, r12
call fcn.1400a5190
mov rcx, r15
cmp eax, 0xffffffff
jne 0x1400a2a9d
lea rdx, str.chunk_reading_DONE_n
call fcn.1400918b0
mov rax, qword [rsp + 0x48]
mov ecx, 2
xor ebp, ebp
mov dword [rsp + 0x44], ebp
mov dword [rax], ecx
mov dword [rax], ecx
jmp 0x1400a2b25
mov r8, qword [rsp + 0x60]
lea rdx, str.Read__zd_bytes_of_chunk__continue_n
call fcn.1400918b0
mov rax, qword [rsp + 0x48]
mov ecx, ebp
mov dword [rax], ecx
jmp 0x1400a2b25
mov rax, qword [rsp + 0x48]
xor ebp, ebp
mov ecx, 2
mov dword [rsp + 0x44], ebp
mov dword [rax], ecx
jmp 0x1400a2b25
xor ebp, ebp
cmp dword [r15 + 0x8ad4], 0xc8
mov dword [rsp + 0x44], ebp
jne 0x1400a2b00
mov r8, qword [rsp + 0x60]
lea eax, [r14 + 1]
movsxd rcx, eax
sub r8, rcx
je 0x1400a2b00
lea rdx, str.Proxy_CONNECT_followed_by__zd_bytes_of_opaque_data._Data_ignored__known_bug_39_
mov rcx, r15
call fcn.1400917f0
mov rax, qword [rsp + 0x48]
mov ecx, 2
mov dword [rax], ecx
jmp 0x1400a2b25
lea rdx, str.Proxy_CONNECT_aborted_due_to_select_poll_error
mov rcx, r15
mov dword [rsp + 0x50], 1
call fcn.1400917f0
mov rcx, r12
call fcn.14009ad80
test eax, eax
jne 0x1400a2c16
cmp qword [rsp + 0x68], 0x4000
mov r14, qword [rsp + 0x58]
jb 0x1400a25e0
cmp dword [rsp + 0x50], 0
jne 0x1400a2d3f
cmp dword [r15 + 0x8ad4], 0xc8
je 0x1400a2b86
mov rcx, r12
call fcn.140096c10
test eax, eax
jne 0x1400a2d44
cmp byte [r12 + 0x3b1], al
je 0x1400a2b86
mov bl, 1
mov byte [rsp + 0xe0], bl
jmp 0x1400a2b92
movzx ebx, byte [rsp + 0xe0]
test bl, bl
je 0x1400a2ba0
cmp qword [r15 + 0x1d8], 0
jne 0x1400a2c20
cmp qword [r15 + 0x1d8], 0
mov rbp, qword [rsp + 0x48]
je 0x1400a2c3c
cmp dword [rbp], 2
jne 0x1400a2bd2
xor r8d, r8d
mov dword [rbp], 0
lea rdx, str.TUNNEL_STATE_switched_to:__d_n
mov rcx, r15
call fcn.1400918b0
cmp qword [r15 + 0x1d8], 0
je 0x1400a2c3c
mov r14, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x70]
mov r13, qword [rsp + 0xf0]
mov r9d, dword [rsp + 0xf8]
jmp 0x1400a2320
mov rcx, rbp
call qword [case.0x14009ea5b.0]
mov rcx, rsi
call fcn.1400962c0
mov eax, 0x1b
jmp 0x1400a2d44
mov eax, 0x2a
jmp 0x1400a2d44
mov rdi, qword [rsp + 0x88]
mov rcx, r12
mov rdx, qword [rdi]
call fcn.140092090
mov qword [rdi], 0xffffffffffffffff
jmp 0x1400a2c44
mov rdi, qword [rsp + 0x88]
cmp dword [r15 + 0x128], 0xc8
je 0x1400a2cde
test bl, bl
je 0x1400a2c7d
cmp qword [r15 + 0x1d8], 0
je 0x1400a2c7d
lea rdx, str.Connect_me_again_please_n
mov byte [r12 + 0x3c8], 1
mov rcx, r15
call fcn.1400918b0
jmp 0x1400a2cb0
mov rcx, qword [r15 + 0x1d8]
call qword [case.0x14009ea5b.0]
mov qword [r15 + 0x1d8], 0
mov rcx, r12
mov byte [r12 + 0x3b1], 1
mov rdx, qword [rdi]
call fcn.140092090
mov qword [rdi], 0xffffffffffffffff
mov rax, qword [rsp + 0x48]
mov dword [rax], 0
cmp byte [r12 + 0x3c8], 0
jne 0x1400a2d2c
mov r8d, dword [r15 + 0x128]
lea rdx, str.Received_HTTP_code__d_from_proxy_after_CONNECT
mov rcx, r15
call fcn.1400917f0
jmp 0x1400a2d3f
mov rax, qword [rsp + 0x48]
mov ecx, 2
mov dword [rax], ecx
mov rcx, qword [r12 + 0x408]
call qword [case.0x14009ea5b.0]
mov qword [r12 + 0x408], 0
lea rdx, str.Proxy_replied_OK_to_CONNECT_request_n
mov rcx, r15
mov byte [r15 + 0x89c4], 1
call fcn.1400918b0
mov byte [r15 + 0x1cd], 0
mov byte [r12 + 0x3c2], 0
xor eax, eax
jmp 0x1400a2d44
lea rdx, str.Proxy_CONNECT_aborted_due_to_timeout
mov rcx, r15
call fcn.1400917f0
mov eax, 0x38
mov rsi, qword [rsp + 0x98]
add rsp, 0xa0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rbp
pop rbx
ret