Function at 0x1400de9a0
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, 0xa8
mov r13, qword [rcx]
mov r12, rcx
movsxd rax, edx
xor r15d, r15d
mov rcx, rax
mov qword [rsp + 0x68], rax
xor bl, bl
mov dword [rsp + 0x80], 0
lea rax, [r12 + 0x1d0]
mov qword [rsp + 0x50], r15
mov rdi, qword [rax + rcx*8]
lea rax, [rax + rcx*8]
mov qword [rsp + 0x98], rax
mov r14d, r9d
xor al, al
mov qword [rsp + 0x70], rdi
cmp dword [r12 + rcx*4 + 0x810], 2
mov rbp, r8
mov byte [rsp + 0xf0], bl
mov byte [rsp + 0x40], al
mov dword [rsp + 0x48], r15d
je 0x1400df4e5
mov byte [r12 + 0x3d0], al
lea rax, [r12 + 0x810]
lea rax, [rax + rcx*4]
mov qword [rsp + 0x90], rax
cmp dword [rax], 0
jne 0x1400decbb
mov r9d, r14d
lea rdx, str.Establish_HTTP_proxy_tunnel_to__s:_hu_n
mov r8, rbp
mov rcx, r13
call fcn.1400bad30
mov rcx, qword [r13 + 0x178]
call qword [fcn.140118d2c]
mov qword [r13 + 0x178], 0
call fcn.1400c3890
mov rsi, rax
test rax, rax
je 0x1400df3cd
mov r8d, r14d
lea rcx, str._s:_hu
mov rdx, rbp
call fcn.1400bd6d0
mov rdi, rax
test rax, rax
je 0x1400df3c5
mov r9b, 1
lea rdx, str.CONNECT
mov r8, rax
mov rcx, r12
call fcn.1400c4680
mov rcx, rdi
mov ebx, eax
call qword [fcn.140118d2c]
test ebx, ebx
jne 0x1400dec98
cmp dword [r12 + 0x1b0], 1
lea rax, [0x14014dec4]
lea rbx, [0x140162640]
lea r14, [0x14014dec0]
mov rdi, rbx
cmove r14, rax
mov r15, rbx
movzx eax, byte [r12 + 0x3c1]
cmp rbp, qword [r12 + 0xb8]
je 0x1400deb22
mov edx, Ordinal_60
mov rcx, rbp
call fcn.1401116a4
test rax, rax
setne al
test al, al
lea rcx, [0x140175774]
lea rax, [0x140175778]
mov r9, rbx
cmovne r9, rcx
mov rdx, rbx
cmovne rdx, rax
lea rcx, str._s_s_s:_hu
mov eax, dword [rsp + 0x108]
mov r8, rbp
mov dword [rsp + 0x20], eax
call fcn.1400bd6d0
mov rbp, rax
test rax, rax
je 0x1400df3c5
lea rdx, str.Host:
mov rcx, r12
call fcn.1400c3ed0
test rax, rax
jne 0x1400deb95
mov rdx, rbp
lea rcx, str.Host:__s_r_n
call fcn.1400bd6d0
mov rdi, rax
test rax, rax
je 0x1400df3bc
lea rdx, str.Proxy_Connection:
mov rcx, r12
call fcn.1400c3ed0
test rax, rax
lea rbx, str.Proxy_Connection:_Keep_Alive_r_n
lea rax, [0x140162640]
mov rcx, r12
lea rdx, str.User_Agent:
cmovne rbx, rax
call fcn.1400c3ed0
test rax, rax
jne 0x1400debde
cmp qword [r13 + 0x558], rax
je 0x1400debde
mov r15, qword [r12 + 0x418]
mov rax, qword [r12 + 0x410]
lea rcx, [0x140162640]
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.1400c3a90
mov ebx, eax
test rdi, rdi
je 0x1400dec32
cmp byte [rdi], 0
je 0x1400dec32
mov rcx, rdi
call qword [fcn.140118d2c]
mov rcx, rbp
call qword [fcn.140118d2c]
test ebx, ebx
jne 0x1400dec89
mov r8, rsi
mov dl, 1
mov rcx, r12
call fcn.1400c3b20
mov ebx, eax
test eax, eax
jne 0x1400dec89
lea rdx, [0x1401637a4]
mov rcx, rsi
call fcn.1400c3a90
mov ebx, eax
test eax, eax
jne 0x1400dec89
mov eax, dword [rsp + 0xf8]
lea r8, [r13 + 0x8ab0]
xor r9d, r9d
mov dword [rsp + 0x20], eax
mov rdx, r12
mov rcx, rsi
call fcn.1400c38a0
mov ebx, eax
xor esi, esi
test ebx, ebx
jne 0x1400df3d7
mov r15, qword [rsp + 0x50]
mov rcx, rsi
call fcn.1400c3860
test ebx, ebx
jne 0x1400df3ed
mov rax, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x70]
mov dword [rax], 1
mov r8b, 1
xor edx, edx
mov rcx, r13
call fcn.1400bc390
test eax, eax
jle 0x1400df4fb
cmp byte [rsp + 0x110], 0
jne 0x1400decf7
mov rdx, 0xffffffffffffffff
xor r9d, r9d
mov r8, rdx
mov rcx, rdi
call fcn.1400ba530
test eax, eax
je 0x1400df4e5
lea rax, [r13 + 0x808]
mov qword [rsp + 0x60], 0
mov ebp, 1
mov qword [rsp + 0x78], rax
xor edi, edi
mov dword [rsp + 0x44], ebp
mov rbx, rax
mov rsi, rax
xor r14d, r14d
test ebp, ebp
je 0x1400df0f1
cmp dword [rsp + 0x48], 0
jne 0x1400df48a
mov r8b, 1
xor edx, edx
mov rcx, r13
call fcn.1400bc390
test eax, eax
jle 0x1400df3fe
mov rcx, qword [rsp + 0x70]
mov r9d, 0x3e8
cmp eax, r9d
mov rdx, 0xffffffffffffffff
mov r8, rdx
cmovl r9d, eax
call fcn.1400ba530
cmp eax, 0xffffffff
je 0x1400df289
test eax, eax
je 0x1400df0cd
mov rdx, qword [rsp + 0x70]
lea rax, [rsp + 0x58]
mov r9d, 0x4000
mov qword [rsp + 0x20], rax
sub r9, qword [rsp + 0x60]
mov r8, rbx
mov rcx, r12
call fcn.1400badd0
cmp eax, 0x51
je 0x1400df0dd
test eax, eax
je 0x1400dedb7
xor ebp, ebp
mov dword [rsp + 0x44], ebp
jmp 0x1400df0cd
mov rcx, qword [rsp + 0x58]
test rcx, rcx
jg 0x1400dee12
xor ebp, ebp
mov dword [rsp + 0x44], ebp
cmp dword [r13 + 0x1e8], ebp
je 0x1400dedf6
cmp dword [r13 + 0x8988], ebp
je 0x1400dedf6
lea rdx, str.Proxy_CONNECT_connection_closed_n
mov byte [r12 + 0x3d0], 1
mov rcx, r13
call fcn.1400bad30
jmp 0x1400df0cd
lea rdx, str.Proxy_CONNECT_aborted
mov dword [rsp + 0x48], 1
mov rcx, r13
call fcn.1400bac60
jmp 0x1400df0cd
add qword [rsp + 0x60], rcx
cmp ebp, 1
jle 0x1400dee96
xor edx, edx
lea rax, [r13 + 0x808]
mov qword [rsp + 0x60], rdx
mov rbx, rax
mov qword [rsp + 0x78], rax
test r15, r15
je 0x1400dee53
sub r15, rcx
mov qword [rsp + 0x50], r15
test r15, r15
jg 0x1400df0cd
mov ebp, edx
mov dword [rsp + 0x44], edx
jmp 0x1400df0cd
mov qword [rsp + 0x88], rdx
lea r9, [rsp + 0x88]
mov r8, rcx
mov rdx, rax
mov rcx, r12
call fcn.1400dfa20
mov rcx, r13
cmp eax, 0xffffffff
je 0x1400df218
mov r8, qword [rsp + 0x88]
lea rdx, str.Read__zd_bytes_of_chunk__continue_n
call fcn.1400bad30
jmp 0x1400df0cd
xor r15d, r15d
test rcx, rcx
jle 0x1400df0cd
inc edi
inc r14
cmp byte [rbx], 0xa
jne 0x1400df0b2
cmp byte [r13 + 0x458], 0
movsxd rbx, edi
je 0x1400deed5
mov r9, rbx
mov qword [rsp + 0x20], r12
mov r8, rsi
mov edx, 1
mov rcx, r13
call fcn.1400bab00
xor edx, edx
mov r9, rbx
cmp byte [r13 + 0x44d], dl
mov r8, rsi
mov rcx, r12
setne dl
add edx, 2
call fcn.1400baae0
add dword [r13 + 0x8aac], edi
add dword [r13 + 0xc0], edi
test eax, eax
jne 0x1400df4e7
movzx eax, byte [rsi]
cmp al, 0xd
je 0x1400df139
cmp al, 0xa
je 0x1400df139
movzx ebp, byte [r14 + rsi]
lea rcx, str.WWW_Authenticate:
mov r8d, reloc.WS2_32.dll_recvfrom
mov byte [r14 + rsi], 0
mov rdx, rsi
call fcn.1400c80c0
test eax, eax
je 0x1400def4d
mov ebx, dword [r13 + 0x128]
cmp ebx, 0x191
je 0x1400def75
mov r8d, reloc.WS2_32.dll_send
lea rcx, str.Proxy_authenticate:
mov rdx, rsi
call fcn.1400c80c0
test eax, eax
je 0x1400defb5
mov ebx, dword [r13 + 0x128]
cmp ebx, 0x197
jne 0x1400defb5
mov rcx, rsi
call fcn.1400c40e0
mov rdi, rax
test rax, rax
je 0x1400df3cd
cmp ebx, 0x197
mov r8, rax
mov rcx, r12
sete dl
call fcn.1400c43e0
mov rcx, rdi
mov ebx, eax
call qword [fcn.140118d2c]
test ebx, ebx
jne 0x1400df3ed
jmp 0x1400df09b
mov r8d, reloc.WS2_32.dll_ntohs
lea rcx, str.Content_Length:
mov rdx, rsi
call fcn.1400c80c0
test eax, eax
je 0x1400defe7
xor edx, edx
lea rcx, [rsi + 0xf]
lea r8d, [rdx + 0xa]
call fcn.14012288c
mov qword [rsp + 0x50], rax
jmp 0x1400df09b
lea r8, str.close
mov rcx, rsi
lea rdx, str.Connection:
call fcn.1400c3ff0
test al, al
je 0x1400df00e
mov byte [rsp + 0xf0], 1
jmp 0x1400df09b
lea r8, str.chunked
mov rcx, rsi
lea rdx, str.Transfer_Encoding:
call fcn.1400c3ff0
test al, al
je 0x1400df046
lea rdx, str.CONNECT_responded_chunked_n
mov rcx, r13
call fcn.1400bad30
mov rcx, r12
mov byte [rsp + 0x40], 1
call fcn.1400dfa10
jmp 0x1400df09b
lea r8, str.close
mov rcx, rsi
lea rdx, str.Proxy_Connection:
call fcn.1400c3ff0
test al, al
je 0x1400df06a
mov byte [rsp + 0xf0], 1
jmp 0x1400df09b
lea r9, [r13 + 0x128]
mov rcx, rsi
lea r8, [rsp + 0x80]
lea rdx, str.HTTP_1._d__d
call fcn.140012850
cmp eax, 2
jne 0x1400df09b
mov eax, dword [r13 + 0x128]
mov dword [r13 + 0x8a9c], eax
mov rbx, qword [rsp + 0x78]
xor edi, edi
mov rcx, qword [rsp + 0x58]
mov byte [r14 + rsi], bpl
xor r14d, r14d
lea rsi, [rbx + 1]
inc r15d
inc rbx
movsxd rax, r15d
mov qword [rsp + 0x78], rbx
cmp rax, rcx
jl 0x1400deea2
mov ebp, dword [rsp + 0x44]
mov rcx, r12
call fcn.1400c6f50
test eax, eax
jne 0x1400df3f4
cmp qword [rsp + 0x60], 0x4000
mov r15, qword [rsp + 0x50]
jb 0x1400ded20
cmp dword [rsp + 0x48], 0
jne 0x1400df48a
cmp dword [r13 + 0x8a9c], 0xc8
je 0x1400df2a5
mov rcx, r12
call fcn.1400c41f0
test eax, eax
jne 0x1400df4e7
cmp byte [r12 + 0x3b9], al
je 0x1400df2a5
mov bl, 1
mov byte [rsp + 0xf0], bl
jmp 0x1400df2b1
cmp dword [r13 + 0x128], 0x197
lea rax, [r13 + 0x808]
mov rbx, rax
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x60], 0
jne 0x1400df23f
cmp byte [r13 + 0x8990], 0
jne 0x1400df23f
mov r8, qword [rsp + 0x50]
mov eax, 2
mov dword [rsp + 0x44], eax
mov ebp, eax
test r8, r8
je 0x1400df1bf
lea rdx, str.Ignore__I64d_bytes_of_response_body_n
mov rcx, r13
call fcn.1400bad30
mov rcx, qword [rsp + 0x50]
xor ebp, ebp
movsxd rax, r15d
sub rax, qword [rsp + 0x58]
add rcx, rax
mov eax, 2
test rcx, rcx
mov qword [rsp + 0x50], rcx
cmovg ebp, eax
mov dword [rsp + 0x44], ebp
jmp 0x1400df272
cmp byte [rsp + 0x40], 0
je 0x1400df224
mov r8, qword [rsp + 0x58]
lea rdx, str._zd_bytes_of_chunk_left_n
movsxd rax, r15d
mov rcx, r13
sub r8, rax
mov byte [r13 + 0x16d], 1
call fcn.1400bad30
cmp byte [rsi + 1], 0xa
jne 0x1400df1f4
inc rsi
inc r15d
mov r8, qword [rsp + 0x58]
lea rdx, [rsi + 1]
movsxd rax, r15d
lea r9, [rsp + 0x58]
sub r8, rax
mov rcx, r12
call fcn.1400dfa20
mov rcx, r13
cmp eax, 0xffffffff
jne 0x1400df22c
lea rdx, str.chunk_reading_DONE_n
call fcn.1400bad30
xor ebp, ebp
mov dword [rsp + 0x44], ebp
jmp 0x1400df272
mov r8, qword [rsp + 0x58]
lea rdx, str.Read__zd_bytes_of_chunk__continue_n
call fcn.1400bad30
jmp 0x1400df272
xor ebp, ebp
cmp dword [r13 + 0x8a9c], 0xc8
mov dword [rsp + 0x44], ebp
jne 0x1400df272
mov r8, qword [rsp + 0x58]
lea eax, [r15 + 1]
movsxd rcx, eax
sub r8, rcx
je 0x1400df272
lea rdx, str.Proxy_CONNECT_followed_by__zd_bytes_of_opaque_data._Data_ignored__known_bug_39_
mov rcx, r13
call fcn.1400bac60
mov rax, qword [rsp + 0x68]
mov ecx, 2
mov dword [r12 + rax*4 + 0x810], ecx
jmp 0x1400df0cd
lea rdx, str.Proxy_CONNECT_aborted_due_to_select_poll_error
mov dword [rsp + 0x48], 1
mov rcx, r13
call fcn.1400bac60
jmp 0x1400df0cd
movzx ebx, byte [rsp + 0xf0]
test bl, bl
je 0x1400df322
cmp qword [r13 + 0x178], 0
je 0x1400df385
mov rdi, qword [rsp + 0x98]
mov rcx, r12
mov rdx, qword [rdi]
call fcn.1400bb6d0
mov qword [rdi], 0xffffffffffffffff
cmp dword [r13 + 0x128], 0xc8
je 0x1400df491
test bl, bl
je 0x1400df417
cmp qword [r13 + 0x178], 0
je 0x1400df417
lea rdx, str.Connect_me_again_please_n
mov byte [r12 + 0x3d0], 1
mov rcx, r13
call fcn.1400bad30
mov rbx, qword [rsp + 0x68]
jmp 0x1400df45d
mov rax, qword [r13 + 0x178]
test rax, rax
je 0x1400df2d9
mov rcx, qword [rsp + 0x68]
mov r15, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x100]
cmp dword [r12 + rcx*4 + 0x810], 2
lea rax, [rcx + 0x204]
mov r14d, dword [rsp + 0x108]
lea rax, [r12 + rax*4]
jne 0x1400dea47
mov dword [r12 + rcx*4 + 0x810], 0
lea rdx, str.TUNNEL_STATE_switched_to:__d_n
mov rcx, r13
xor r8d, r8d
call fcn.1400bad30
mov rax, qword [r13 + 0x178]
test rax, rax
je 0x1400df2d9
mov r15, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x100]
mov r14d, dword [rsp + 0x108]
mov rax, qword [rsp + 0x90]
jmp 0x1400dea47
mov rcx, rbp
call qword [fcn.140118d2c]
mov rcx, rsi
call fcn.1400c3860
mov eax, reloc.WLDAP32.dll_Ordinal_27
jmp 0x1400df4e7
lea rdx, str.Failed_sending_CONNECT_to_proxy
mov rcx, r13
call fcn.1400bac60
xor ecx, ecx
call fcn.1400c3860
mov eax, ebx
jmp 0x1400df4e7
mov eax, Ordinal_46
jmp 0x1400df4e7
lea rdx, str.Proxy_CONNECT_aborted_due_to_timeout
mov rcx, r13
call fcn.1400bac60
mov eax, gethostname
jmp 0x1400df4e7
mov rcx, qword [r13 + 0x178]
call qword [fcn.140118d2c]
mov edx, 2
mov qword [r13 + 0x178], 0
mov rcx, r12
call fcn.1400bb740
mov rbx, qword [rsp + 0x68]
mov rcx, r12
mov rdx, qword [r12 + rbx*8 + 0x1d0]
call fcn.1400bb6d0
mov qword [r12 + rbx*8 + 0x1d0], 0xffffffffffffffff
mov dword [r12 + rbx*4 + 0x810], 0
cmp byte [r12 + 0x3d0], 0
jne 0x1400df4e5
mov r8d, dword [r13 + 0x128]
lea rdx, str.Received_HTTP_code__d_from_proxy_after_CONNECT
mov rcx, r13
call fcn.1400bac60
mov eax, gethostname
jmp 0x1400df4e7
mov rax, qword [rsp + 0x68]
mov ecx, 2
mov dword [r12 + rax*4 + 0x810], ecx
mov rcx, qword [r12 + 0x410]
call qword [fcn.140118d2c]
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.1400bad30
mov byte [r13 + 0x16d], 0
mov byte [r12 + 0x3ca], 0
xor eax, eax
add rsp, 0xa8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
lea rdx, str.Proxy_CONNECT_aborted_due_to_timeout
mov rcx, r13
call fcn.1400bac60
mov eax, gethostname
jmp 0x1400df4e7