Function at 0x1400ab490
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 r13, 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 r15, [r12 + 0x810]
mov byte [rsp + 0xe0], bl
mov rdi, qword [r12 + rax*8 + 0x1d0]
lea rcx, [rcx + rax*8]
lea r15, [r15 + rax*4]
mov qword [rsp + 0x88], rcx
xor cl, cl
mov qword [rsp + 0x70], rdi
cmp dword [r15], 2
mov rbp, r8
mov byte [rsp + 0x40], cl
mov dword [rsp + 0x50], r14d
mov qword [rsp + 0x48], r15
jne 0x1400ab51e
xor eax, eax
jmp 0x1400abf7f
mov qword [rsp + 0x98], rsi
mov byte [r12 + 0x3d0], cl
nop
cmp dword [r15], 0
jne 0x1400ab7b1
mov r8, rbp
lea rdx, str.Establish_HTTP_proxy_tunnel_to__s:_hu_n
mov rcx, r13
call fcn.140087230
mov rcx, qword [r13 + 0x178]
call qword [fcn.1400b5ea1]
mov qword [r13 + 0x178], 0
call fcn.14008db70
mov rsi, rax
test rax, rax
je 0x1400abe3b
mov r8d, dword [rsp + 0xf8]
lea rcx, str._s:_hu
mov rdx, rbp
call fcn.140092c50
mov rdi, rax
test rax, rax
je 0x1400abe33
mov r9b, 1
lea rdx, str.CONNECT
mov r8, rax
mov rcx, r12
call fcn.14008e920
mov rcx, rdi
mov ebx, eax
call qword [fcn.1400b5ea1]
test ebx, ebx
jne 0x1400ab795
cmp dword [r12 + 0x1b0], 1
lea rax, [0x1400c287c]
lea rbx, [0x1400c0816]
lea r14, [0x1400c2878]
mov rdi, rbx
cmove r14, rax
mov r15, rbx
movzx eax, byte [r12 + 0x3c1]
cmp rbp, qword [r12 + 0xb8]
je 0x1400ab60f
mov edx, Ordinal_60
mov rcx, rbp
call qword [sym.imp.VCRUNTIME140.dll_strchr]
test rax, rax
setne al
test al, al
lea rcx, [0x1400c1354]
lea rax, [0x1400c1358]
mov r9, rbx
cmovne r9, rcx
mov rdx, rbx
cmovne rdx, rax
lea rcx, str._s_s_s:_hu
mov eax, dword [rsp + 0xf8]
mov r8, rbp
mov dword [rsp + 0x20], eax
call fcn.140092c50
mov rbp, rax
test rax, rax
je 0x1400abe33
lea rdx, str.Host:
mov rcx, r12
call fcn.14008e1b0
test rax, rax
jne 0x1400ab682
mov rdx, rbp
lea rcx, str.Host:__s_r_n
call fcn.140092c50
mov rdi, rax
test rax, rax
je 0x1400abe2a
lea rdx, str.Proxy_Connection:
mov rcx, r12
call fcn.14008e1b0
test rax, rax
lea rbx, str.Proxy_Connection:_Keep_Alive_r_n
lea rax, [0x1400c0816]
mov rcx, r12
lea rdx, str.User_Agent:
cmovne rbx, rax
call fcn.14008e1b0
test rax, rax
jne 0x1400ab6cb
cmp qword [r13 + 0x558], rax
je 0x1400ab6cb
mov r15, qword [r12 + 0x418]
mov rax, qword [r12 + 0x410]
lea rcx, [0x1400c0816]
mov qword [rsp + 0x38], rbx
lea rdx, str.CONNECT__s_HTTP__s_r_n_s_s_s_s
test rax, rax
mov qword [rsp + 0x30], r15
mov r9, r14
mov r8, rbp
cmovne rcx, rax
mov qword [rsp + 0x28], rcx
mov rcx, rsi
mov qword [rsp + 0x20], rdi
call fcn.14008dd70
mov ebx, eax
test rdi, rdi
je 0x1400ab71f
cmp byte [rdi], 0
je 0x1400ab71f
mov rcx, rdi
call qword [fcn.1400b5ea1]
mov rcx, rbp
call qword [fcn.1400b5ea1]
test ebx, ebx
jne 0x1400ab776
mov r8, rsi
mov dl, 1
mov rcx, r12
call fcn.14008ddf0
mov ebx, eax
test eax, eax
jne 0x1400ab776
lea rdx, [0x1400c105c]
mov rcx, rsi
call fcn.14008dd70
mov ebx, eax
test eax, eax
jne 0x1400ab776
mov eax, dword [rsp + 0xe8]
lea r8, [r13 + 0x8ab0]
xor r9d, r9d
mov dword [rsp + 0x20], eax
mov rdx, r12
mov rcx, rsi
call fcn.14008db80
mov ebx, eax
xor esi, esi
test ebx, ebx
je 0x1400ab78b
lea rdx, str.Failed_sending_CONNECT_to_proxy
mov rcx, r13
call fcn.140087170
mov r15, qword [rsp + 0x48]
mov r14, qword [rsp + 0x58]
mov rcx, rsi
call fcn.14008db40
test ebx, ebx
jne 0x1400abaab
mov rdi, qword [rsp + 0x70]
mov dword [r15], 1
mov r8b, 1
xor edx, edx
mov rcx, r13
call fcn.1400885c0
test eax, eax
jle 0x1400abf63
cmp byte [rsp + 0x100], 0
jne 0x1400ab7ea
or r8, 0xffffffffffffffff
xor r9d, r9d
or rdx, r8
mov rcx, rdi
call fcn.140086a30
test eax, eax
je 0x1400abf5f
mov ebp, 1
mov qword [rsp + 0x68], 0
xor ebx, ebx
mov dword [rsp + 0x44], ebp
xor esi, esi
lea r15, [r13 + 0x808]
lea rdi, [r13 + 0x808]
nop
test ebp, ebp
je 0x1400abd78
cmp dword [rsp + 0x50], 0
jne 0x1400abf72
mov r8b, 1
xor edx, edx
mov rcx, r13
call fcn.1400885c0
test eax, eax
jle 0x1400abf63
mov rcx, qword [rsp + 0x70]
mov r9d, 0x3e8
cmp eax, r9d
cmovl r9d, eax
or r8, 0xffffffffffffffff
or rdx, r8
call fcn.140086a30
cmp eax, 0xffffffff
je 0x1400abd3d
test eax, eax
je 0x1400abd54
mov rdx, qword [rsp + 0x70]
lea rax, [rsp + 0x60]
mov r9d, 0x4000
mov qword [rsp + 0x20], rax
sub r9, qword [rsp + 0x68]
mov r8, r15
mov rcx, r12
call fcn.1400872d0
cmp eax, 0x51
je 0x1400abd64
test eax, eax
je 0x1400ab8a4
xor ebp, ebp
mov dword [rsp + 0x44], ebp
jmp 0x1400abd54
mov rcx, qword [rsp + 0x60]
test rcx, rcx
jg 0x1400ab8ef
xor ebp, ebp
mov dword [rsp + 0x44], ebp
cmp dword [r13 + 0x1e8], ebp
je 0x1400ab8e3
cmp dword [r13 + 0x8988], ebp
je 0x1400ab8e3
lea rdx, str.Proxy_CONNECT_connection_closed_n
mov byte [r12 + 0x3d0], 1
mov rcx, r13
call fcn.140087230
jmp 0x1400abd54
lea rdx, str.Proxy_CONNECT_aborted
jmp 0x1400abd44
add qword [rsp + 0x68], rcx
cmp ebp, 1
jle 0x1400ab992
xor edx, edx
lea r15, [r13 + 0x808]
mov qword [rsp + 0x68], rdx
test r14, r14
je 0x1400ab92c
sub r14, rcx
mov qword [rsp + 0x58], r14
test r14, r14
jg 0x1400abd54
mov ebp, edx
mov dword [rsp + 0x44], edx
jmp 0x1400abd54
mov qword [rsp + 0x80], rdx
lea r9, [rsp + 0x80]
mov r8, rcx
lea rdx, [r13 + 0x808]
mov rcx, r12
call fcn.1400ac4a0
mov rcx, r13
cmp eax, 0xffffffff
jne 0x1400ab979
lea rdx, str.chunk_reading_DONE_n
call fcn.140087230
mov rax, qword [rsp + 0x48]
xor ebp, ebp
mov ecx, 2
mov dword [rsp + 0x44], ebp
mov dword [rax], ecx
jmp 0x1400abd54
mov r8, qword [rsp + 0x80]
lea rdx, str.Read__zd_bytes_of_chunk__continue_n
call fcn.140087230
jmp 0x1400abd54
xor r14d, r14d
test rcx, rcx
jle 0x1400abd54
nop
inc ebx
inc rsi
cmp byte [r15], 0xa
jne 0x1400abba6
cmp byte [r13 + 0x458], 0
je 0x1400ab9d1
movsxd r9, ebx
mov r8, rdi
mov edx, 1
mov qword [rsp + 0x20], r12
mov rcx, r13
call fcn.140087010
xor edx, edx
movsxd r9, ebx
cmp byte [r13 + 0x44d], dl
mov r8, rdi
mov rcx, r12
setne dl
add edx, 2
call fcn.140086ff0
add dword [r13 + 0x8aac], ebx
add dword [r13 + 0xc0], ebx
test eax, eax
jne 0x1400abf77
movzx eax, byte [rdi]
cmp al, 0xd
je 0x1400abbc1
cmp al, 0xa
je 0x1400abbc1
add rsi, rdi
lea rcx, str.WWW_Authenticate:
mov r8d, reloc.WS2_32.dll_recvfrom
mov rdx, rdi
movzx ebp, byte [rsi]
mov byte [rsi], 0
call fcn.140091fc0
test eax, eax
je 0x1400aba48
mov ebx, dword [r13 + 0x128]
cmp ebx, 0x191
je 0x1400aba70
mov r8d, reloc.WS2_32.dll_send
lea rcx, str.Proxy_authenticate:
mov rdx, rdi
call fcn.140091fc0
test eax, eax
je 0x1400abab2
mov ebx, dword [r13 + 0x128]
cmp ebx, 0x197
jne 0x1400abab2
mov rcx, rdi
call fcn.14008e3a0
mov rdi, rax
test rax, rax
je 0x1400abe3b
cmp ebx, 0x197
mov r8, rax
mov rcx, r12
sete dl
call fcn.14008e6a0
mov rcx, rdi
mov ebx, eax
call qword [fcn.1400b5ea1]
test ebx, ebx
je 0x1400abb96
mov eax, ebx
jmp 0x1400abf77
mov r8d, reloc.WS2_32.dll_ntohs
lea rcx, str.Content_Length:
mov rdx, rdi
call fcn.140091fc0
test eax, eax
je 0x1400abae5
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 0x1400abb96
lea r8, [0x1400c2d78]
mov rcx, rdi
lea rdx, str.Connection:
call fcn.14008e2b0
test al, al
je 0x1400abb0c
mov byte [rsp + 0xe0], 1
jmp 0x1400abb96
lea r8, str.chunked
mov rcx, rdi
lea rdx, str.Transfer_Encoding:
call fcn.14008e2b0
test al, al
je 0x1400abb44
lea rdx, str.CONNECT_responded_chunked_n
mov rcx, r13
call fcn.140087230
mov rcx, r12
mov byte [rsp + 0x40], 1
call fcn.1400ac490
jmp 0x1400abb96
lea r8, [0x1400c2d78]
mov rcx, rdi
lea rdx, str.Proxy_Connection:
call fcn.14008e2b0
test al, al
je 0x1400abb68
mov byte [rsp + 0xe0], 1
jmp 0x1400abb96
lea r9, [r13 + 0x128]
mov rcx, rdi
lea r8, [rsp + 0x78]
lea rdx, str.HTTP_1._d__d
call fcn.14007d660
cmp eax, 2
jne 0x1400abb96
mov eax, dword [r13 + 0x128]
mov dword [r13 + 0x8a9c], eax
mov rcx, qword [rsp + 0x60]
lea rdi, [r15 + 1]
xor ebx, ebx
mov byte [rsi], bpl
xor esi, esi
inc r14d
inc r15
movsxd rax, r14d
cmp rax, rcx
jl 0x1400ab9a0
mov ebp, dword [rsp + 0x44]
jmp 0x1400abd54
cmp dword [r13 + 0x128], 0x197
lea r15, [r13 + 0x808]
mov qword [rsp + 0x68], 0
jne 0x1400abcfc
cmp byte [r13 + 0x8990], 0
jne 0x1400abcfc
mov r8, qword [rsp + 0x58]
mov eax, 2
mov dword [rsp + 0x44], eax
mov ebp, eax
test r8, r8
je 0x1400abc48
lea rdx, str.Ignore__I64d_bytes_of_response_body_n
mov rcx, r13
call fcn.140087230
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 0x1400abd54
movzx ecx, byte [rsp + 0x40]
test cl, cl
je 0x1400abce8
mov r8, qword [rsp + 0x60]
lea rdx, str._zd_bytes_of_chunk_left_n
movsxd rax, r14d
mov rcx, r13
sub r8, rax
mov byte [r13 + 0x16d], 1
call fcn.140087230
cmp byte [rdi + 1], 0xa
jne 0x1400abc83
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.1400ac4a0
mov rcx, r13
cmp eax, 0xffffffff
jne 0x1400abccc
lea rdx, str.chunk_reading_DONE_n
call fcn.140087230
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 0x1400abd54
mov r8, qword [rsp + 0x60]
lea rdx, str.Read__zd_bytes_of_chunk__continue_n
call fcn.140087230
mov rax, qword [rsp + 0x48]
mov ecx, ebp
mov dword [rax], ecx
jmp 0x1400abd54
mov rax, qword [rsp + 0x48]
xor ebp, ebp
mov ecx, 2
mov dword [rsp + 0x44], ebp
mov dword [rax], ecx
jmp 0x1400abd54
xor ebp, ebp
cmp dword [r13 + 0x8a9c], 0xc8
mov dword [rsp + 0x44], ebp
jne 0x1400abd2f
mov r8, qword [rsp + 0x60]
lea eax, [r14 + 1]
movsxd rcx, eax
sub r8, rcx
je 0x1400abd2f
lea rdx, str.Proxy_CONNECT_followed_by__zd_bytes_of_opaque_data._Data_ignored__known_bug_39_
mov rcx, r13
call fcn.140087170
mov rax, qword [rsp + 0x48]
mov ecx, 2
mov dword [rax], ecx
jmp 0x1400abd54
lea rdx, str.Proxy_CONNECT_aborted_due_to_select_poll_error
mov rcx, r13
mov dword [rsp + 0x50], 1
call fcn.140087170
mov rcx, r12
call fcn.140090db0
test eax, eax
jne 0x1400abe45
cmp qword [rsp + 0x68], 0x4000
mov r14, qword [rsp + 0x58]
jb 0x1400ab810
cmp dword [rsp + 0x50], 0
jne 0x1400abf72
cmp dword [r13 + 0x8a9c], 0xc8
je 0x1400abdb5
mov rcx, r12
call fcn.14008e4b0
test eax, eax
jne 0x1400abf77
cmp byte [r12 + 0x3b9], al
je 0x1400abdb5
mov bl, 1
mov byte [rsp + 0xe0], bl
jmp 0x1400abdc1
movzx ebx, byte [rsp + 0xe0]
test bl, bl
je 0x1400abdcf
cmp qword [r13 + 0x178], 0
jne 0x1400abe4f
cmp qword [r13 + 0x178], 0
mov r15, qword [rsp + 0x48]
je 0x1400abe6b
cmp dword [r15], 2
jne 0x1400abe01
xor r8d, r8d
mov dword [r15], 0
lea rdx, str.TUNNEL_STATE_switched_to:__d_n
mov rcx, r13
call fcn.140087230
cmp qword [r13 + 0x178], 0
je 0x1400abe6b
mov r14, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x70]
mov rbp, qword [rsp + 0xf0]
mov r9d, dword [rsp + 0xf8]
jmp 0x1400ab530
mov rcx, rbp
call qword [fcn.1400b5ea1]
mov rcx, rsi
call fcn.14008db40
mov eax, reloc.WLDAP32.dll_Ordinal_27
jmp 0x1400abf77
mov eax, Ordinal_46
jmp 0x1400abf77
mov rdi, qword [rsp + 0x88]
mov rcx, r12
mov rdx, qword [rdi]
call fcn.140087b30
mov qword [rdi], 0xffffffffffffffff
jmp 0x1400abe73
mov rdi, qword [rsp + 0x88]
cmp dword [r13 + 0x128], 0xc8
je 0x1400abf11
test bl, bl
je 0x1400abeac
cmp qword [r13 + 0x178], 0
je 0x1400abeac
lea rdx, str.Connect_me_again_please_n
mov byte [r12 + 0x3d0], 1
mov rcx, r13
call fcn.140087230
jmp 0x1400abee3
mov rcx, qword [r13 + 0x178]
call qword [fcn.1400b5ea1]
mov edx, 2
mov qword [r13 + 0x178], 0
mov rcx, r12
call fcn.140087ba0
mov rdx, qword [rdi]
mov rcx, r12
call fcn.140087b30
mov qword [rdi], 0xffffffffffffffff
mov rax, qword [rsp + 0x48]
mov dword [rax], 0
cmp byte [r12 + 0x3d0], 0
jne 0x1400abf5f
mov r8d, dword [r13 + 0x128]
lea rdx, str.Received_HTTP_code__d_from_proxy_after_CONNECT
mov rcx, r13
call fcn.140087170
jmp 0x1400abf72
mov rax, qword [rsp + 0x48]
mov ecx, 2
mov dword [rax], ecx
mov rcx, qword [r12 + 0x410]
call qword [fcn.1400b5ea1]
mov qword [r12 + 0x410], 0
lea rdx, str.Proxy_replied_OK_to_CONNECT_request_n
mov rcx, r13
mov byte [r13 + 0x898c], 1
call fcn.140087230
mov byte [r13 + 0x16d], 0
mov byte [r12 + 0x3ca], 0
xor eax, eax
jmp 0x1400abf77
lea rdx, str.Proxy_CONNECT_aborted_due_to_timeout
mov rcx, r13
call fcn.140087170
mov eax, gethostname
mov rsi, qword [rsp + 0x98]
add rsp, 0xa0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rbp
pop rbx
ret