Function at 0x18007c210
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
sub rsp, 0x138
mov dword [rsp + 0xa8], 0
mov rax, qword [rsp + 0x140]
mov rax, qword [rax]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
add rax, 0x100
mov qword [rsp + 0x60], rax
movsxd rax, dword [rsp + 0x148]
mov rcx, qword [rsp + 0x140]
mov rax, qword [rcx + rax*8 + 0x240]
mov qword [rsp + 0x110], rax
mov rax, qword [rsp + 0x140]
mov rax, qword [rax + 0x8a8]
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x140]
call fcn.18007bef0
movzx eax, al
test eax, eax
je 0x18007c2a4
xor eax, eax
jmp 0x18007d529
mov rax, qword [rsp + 0x140]
mov eax, dword [rax + 0x3c4]
btr eax, 0x17
mov rcx, qword [rsp + 0x140]
mov dword [rcx + 0x3c4], eax
mov rax, qword [rsp + 0x40]
cmp dword [rax + 0x4020], 0
jne 0x18007c7ea
mov r9d, dword [rsp + 0x158]
mov r8, qword [rsp + 0x150]
lea rdx, str.Establish_HTTP_proxy_tunnel_to__s:_d_n
mov rcx, qword [rsp + 0x50]
call fcn.18005ffc0
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 0x1e0]
call qword [fcn.1800fb1f8]
mov rax, qword [rsp + 0x50]
mov qword [rax + 0x1e0], 0
call fcn.180082fa0
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
jne 0x18007c335
mov eax, reloc.WLDAP32.dll_Ordinal_27
jmp 0x18007d529
mov r8d, dword [rsp + 0x158]
mov rdx, qword [rsp + 0x150]
lea rcx, str._s:_d
call fcn.18008f3e0
mov qword [rsp + 0xb0], rax
cmp qword [rsp + 0xb0], 0
jne 0x18007c378
lea rcx, [rsp + 0x68]
call fcn.180082fc0
mov eax, reloc.WLDAP32.dll_Ordinal_27
jmp 0x18007d529
mov r9b, 1
mov r8, qword [rsp + 0xb0]
lea rdx, str.CONNECT
mov rcx, qword [rsp + 0x140]
call fcn.180089fe0
mov dword [rsp + 0x48], eax
mov rcx, qword [rsp + 0xb0]
call qword [fcn.1800fb1f8]
cmp dword [rsp + 0x48], 0
jne 0x18007c7b2
mov qword [rsp + 0x78], 0
lea rax, [0x180177a28]
mov qword [rsp + 0xd8], rax
lea rax, [0x180177a29]
mov qword [rsp + 0xe0], rax
mov rax, qword [rsp + 0x140]
cmp dword [rax + 0x16c], 1
jne 0x18007c3fd
lea rax, [0x18015b1cc]
mov qword [rsp + 0xc0], rax
jmp 0x18007c40c
lea rax, [0x18015b208]
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x100], rax
mov rax, qword [rsp + 0x140]
mov eax, dword [rax + 0x3c4]
shr eax, 9
and eax, 1
test eax, eax
jne 0x18007c441
mov dword [rsp + 0x80], 0
jmp 0x18007c44c
mov dword [rsp + 0x80], 1
movzx eax, byte [rsp + 0x80]
mov byte [rsp + 0x58], al
mov rax, qword [rsp + 0x140]
mov rax, qword [rax + 0xd0]
cmp qword [rsp + 0x150], rax
je 0x18007c4ce
mov edx, Ordinal_60
mov rcx, qword [rsp + 0x150]
call fcn.1800ea994
test rax, rax
je 0x18007c495
mov dword [rsp + 0x84], 1
jmp 0x18007c4a0
mov dword [rsp + 0x84], 0
cmp dword [rsp + 0x84], 0
jne 0x18007c4b7
mov dword [rsp + 0x88], 0
jmp 0x18007c4c2
mov dword [rsp + 0x88], 1
movzx eax, byte [rsp + 0x88]
mov byte [rsp + 0x58], al
movzx eax, byte [rsp + 0x58]
test eax, eax
je 0x18007c4e8
lea rax, [0x18015b20c]
mov qword [rsp + 0xc8], rax
jmp 0x18007c4f7
lea rax, [0x180177a2a]
mov qword [rsp + 0xc8], rax
movzx eax, byte [rsp + 0x58]
test eax, eax
je 0x18007c511
lea rax, [0x18015b210]
mov qword [rsp + 0xd0], rax
jmp 0x18007c520
lea rax, [0x180177a2b]
mov qword [rsp + 0xd0], rax
mov eax, dword [rsp + 0x158]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0xc8]
mov r8, qword [rsp + 0x150]
mov rdx, qword [rsp + 0xd0]
lea rcx, str._s_s_s:_d
call fcn.18008f3e0
mov qword [rsp + 0x98], rax
cmp qword [rsp + 0x98], 0
jne 0x18007c576
lea rcx, [rsp + 0x68]
call fcn.180082fc0
mov eax, reloc.WLDAP32.dll_Ordinal_27
jmp 0x18007d529
lea rdx, [0x18015b224]
mov rcx, qword [rsp + 0x140]
call fcn.180082ea0
test rax, rax
jne 0x18007c5d2
mov rdx, qword [rsp + 0x98]
lea rcx, str.Host:__s_r_n
call fcn.18008f3e0
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0
jne 0x18007c5d2
mov rcx, qword [rsp + 0x98]
call qword [fcn.1800fb1f8]
lea rcx, [rsp + 0x68]
call fcn.180082fc0
mov eax, reloc.WLDAP32.dll_Ordinal_27
jmp 0x18007d529
lea rdx, [0x18015b248]
mov rcx, qword [rsp + 0x140]
call fcn.180082ea0
test rax, rax
jne 0x18007c5fa
lea rax, [0x18015b268]
mov qword [rsp + 0xd8], rax
lea rdx, [0x18015b288]
mov rcx, qword [rsp + 0x140]
call fcn.180082ea0
test rax, rax
jne 0x18007c643
mov eax, 8
imul rax, rax, 0x26
mov rcx, qword [rsp + 0x50]
cmp qword [rcx + rax + 0xbc8], 0
je 0x18007c643
mov rax, qword [rsp + 0x140]
mov rax, qword [rax + 0x430]
mov qword [rsp + 0xe0], rax
mov rax, qword [rsp + 0x140]
cmp qword [rax + 0x428], 0
je 0x18007c66e
mov rax, qword [rsp + 0x140]
mov rax, qword [rax + 0x428]
mov qword [rsp + 0xe8], rax
jmp 0x18007c67d
lea rax, [0x180177a2c]
mov qword [rsp + 0xe8], rax
cmp qword [rsp + 0x78], 0
je 0x18007c694
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0xf0], rax
jmp 0x18007c6a3
lea rax, [0x180177a2d]
mov qword [rsp + 0xf0], rax
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0xe8]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x100]
mov r8, qword [rsp + 0x98]
lea rdx, str.CONNECT__s_HTTP__s_r_n_s_s_s_s
lea rcx, [rsp + 0x68]
call fcn.180083010
mov dword [rsp + 0x48], eax
cmp qword [rsp + 0x78], 0
je 0x18007c70f
mov rcx, qword [rsp + 0x78]
call qword [fcn.1800fb1f8]
mov rcx, qword [rsp + 0x98]
call qword [fcn.1800fb1f8]
cmp dword [rsp + 0x48], 0
jne 0x18007c73c
mov r8, qword [rsp + 0x68]
mov dl, 1
mov rcx, qword [rsp + 0x140]
call fcn.1800838c0
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0
jne 0x18007c758
lea rdx, [0x18015b214]
lea rcx, [rsp + 0x68]
call fcn.180083010
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0
jne 0x18007c791
mov rax, qword [rsp + 0x50]
add rax, 0x14e0
mov ecx, dword [rsp + 0x148]
mov dword [rsp + 0x20], ecx
xor r9d, r9d
mov r8, rax
mov rdx, qword [rsp + 0x140]
lea rcx, [rsp + 0x68]
call fcn.1800832a0
mov dword [rsp + 0x48], eax
mov qword [rsp + 0x68], 0
cmp dword [rsp + 0x48], 0
je 0x18007c7b2
lea rdx, str.Failed_sending_CONNECT_to_proxy
mov rcx, qword [rsp + 0x50]
call fcn.180060120
lea rcx, [rsp + 0x68]
call fcn.180082fc0
cmp dword [rsp + 0x48], 0
je 0x18007c7cc
mov eax, dword [rsp + 0x48]
jmp 0x18007d529
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x4020], 1
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x4000], 0
mov r8b, 1
xor edx, edx
mov rcx, qword [rsp + 0x50]
call fcn.180061f90
mov qword [rsp + 0x108], rax
cmp qword [rsp + 0x108], 0
jg 0x18007c827
lea rdx, str.Proxy_CONNECT_aborted_due_to_timeout
mov rcx, qword [rsp + 0x50]
call fcn.180060120
mov eax, Ordinal_30
jmp 0x18007d529
mov edx, dword [rsp + 0x148]
mov rcx, qword [rsp + 0x140]
call fcn.180062c40
movzx eax, al
test eax, eax
jne 0x18007c849
xor eax, eax
jmp 0x18007d529
mov dword [rsp + 0x74], 0
mov rax, qword [rsp + 0x40]
cmp dword [rax + 0x4004], 0
je 0x18007d1e7
cmp dword [rsp + 0x74], 0
jne 0x18007d1e7
mov eax, 1
imul rax, rax, 0x4000
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x40]
cmp qword [rcx + 0x4010], rax
jb 0x18007c8ae
lea rdx, str.CONNECT_response_too_large_
mov rcx, qword [rsp + 0x50]
call fcn.180060120
mov eax, Ordinal_60
jmp 0x18007d529
lea rax, [rsp + 0xf8]
mov qword [rsp + 0x20], rax
mov r9d, 1
mov rax, qword [rsp + 0x40]
mov r8, qword [rax + 0x4010]
mov rdx, qword [rsp + 0x110]
mov rcx, qword [rsp + 0x140]
call fcn.180060740
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0x51
jne 0x18007c8f4
xor eax, eax
jmp 0x18007d529
mov rcx, qword [rsp + 0x140]
call fcn.18008d0d0
test eax, eax
je 0x18007c90f
mov eax, Ordinal_46
jmp 0x18007d529
cmp dword [rsp + 0x48], 0
je 0x18007c92f
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x4004], 0
jmp 0x18007d1e7
cmp qword [rsp + 0xf8], 0
jg 0x18007c9b6
mov rax, qword [rsp + 0x50]
cmp dword [rax + 0x6c0], 0
je 0x18007c989
mov rax, qword [rsp + 0x50]
cmp dword [rax + 0x1158], 0
je 0x18007c989
mov rax, qword [rsp + 0x140]
mov eax, dword [rax + 0x3c4]
bts eax, 0x17
mov rcx, qword [rsp + 0x140]
mov dword [rcx + 0x3c4], eax
lea rdx, str.Proxy_CONNECT_connection_closed_n
mov rcx, qword [rsp + 0x50]
call fcn.18005ffc0
jmp 0x18007c9a2
mov dword [rsp + 0x74], 1
lea rdx, str.Proxy_CONNECT_aborted
mov rcx, qword [rsp + 0x50]
call fcn.180060120
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x4004], 0
jmp 0x18007d1e7
mov rax, qword [rsp + 0x40]
cmp dword [rax + 0x4004], 1
jle 0x18007caaf
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x40]
mov qword [rcx + 0x4010], rax
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x4018], 0
je 0x18007ca37
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x4018]
dec rax
mov rcx, qword [rsp + 0x40]
mov qword [rcx + 0x4018], rax
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x4018], 0
jg 0x18007ca35
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x4004], 0
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x4020], 2
jmp 0x18007d1e7
jmp 0x18007caaa
mov qword [rsp + 0x118], 0
lea r9, [rsp + 0x118]
mov r8d, 1
mov rax, qword [rsp + 0x40]
mov rdx, qword [rax + 0x4010]
mov rcx, qword [rsp + 0x140]
call fcn.1800c5d30
mov dword [rsp + 0xa0], eax
cmp dword [rsp + 0xa0], 0xffffffff
jne 0x18007caaa
lea rdx, [0x18015b360]
mov rcx, qword [rsp + 0x50]
call fcn.18005ffc0
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x4004], 0
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x4020], 2
jmp 0x18007c851
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x4000]
inc eax
mov rcx, qword [rsp + 0x40]
mov dword [rcx + 0x4000], eax
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x4010]
movsx eax, byte [rax]
cmp eax, 0xa
je 0x18007cafb
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x4010]
inc rax
mov rcx, qword [rsp + 0x40]
mov qword [rcx + 0x4010], rax
jmp 0x18007c851
mov dword [rsp + 0x48], 0
cmp dword [rsp + 0x48], 0
je 0x18007cb13
mov eax, dword [rsp + 0x48]
jmp 0x18007d529
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0xe70]
shr eax, 0x1a
and eax, 1
test eax, eax
je 0x18007cb52
mov rax, qword [rsp + 0x40]
movsxd rax, dword [rax + 0x4000]
mov r9, rax
mov rax, qword [rsp + 0x40]
mov r8, qword [rax + 0x4008]
mov edx, 1
mov rcx, qword [rsp + 0x50]
call fcn.180060c50
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0xe74]
shr eax, 0x13
and eax, 1
test eax, eax
jne 0x18007cbcf
mov dword [rsp + 0x70], 2
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0xe70]
shr eax, 0x15
and eax, 1
test eax, eax
je 0x18007cb8f
mov eax, dword [rsp + 0x70]
or eax, 1
mov dword [rsp + 0x70], eax
mov rax, qword [rsp + 0x40]
movsxd rax, dword [rax + 0x4000]
mov r9, rax
mov rax, qword [rsp + 0x40]
mov r8, qword [rax + 0x4008]
mov edx, dword [rsp + 0x70]
mov rcx, qword [rsp + 0x140]
call fcn.1800602b0
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0
je 0x18007cbcf
mov eax, dword [rsp + 0x48]
jmp 0x18007d529
mov rax, qword [rsp + 0x40]
movsxd rax, dword [rax + 0x4000]
mov rcx, qword [rsp + 0x50]
add rax, qword [rcx + 0x14d8]
mov rcx, qword [rsp + 0x50]
mov qword [rcx + 0x14d8], rax
mov rax, qword [rsp + 0x40]
movsxd rax, dword [rax + 0x4000]
mov rcx, qword [rsp + 0x50]
add rax, qword [rcx + 0x120]
mov rcx, qword [rsp + 0x50]
mov qword [rcx + 0x120], rax
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx + 0x4008]
movsx eax, byte [rcx + rax]
cmp eax, 0xd
je 0x18007cc57
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx + 0x4008]
movsx eax, byte [rcx + rax]
cmp eax, 0xa
jne 0x18007ce01
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x40]
mov qword [rcx + 0x4010], rax
mov rax, qword [rsp + 0x60]
cmp dword [rax + 0x90], 0x197
jne 0x18007cdcf
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x146c]
shr eax, 5
and eax, 1
test eax, eax
jne 0x18007cdcf
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x4004], 2
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x4018], 0
je 0x18007ccd6
mov rax, qword [rsp + 0x40]
mov r8, qword [rax + 0x4018]
lea rdx, str.Ignore__I64d_bytes_of_response_body_n
mov rcx, qword [rsp + 0x50]
call fcn.18005ffc0
jmp 0x18007cdcd
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x4024]
and eax, 1
test eax, eax
je 0x18007cdbe
lea rdx, str.Ignore_chunked_response_body_n
mov rcx, qword [rsp + 0x50]
call fcn.18005ffc0
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0x570]
or eax, 8
mov rcx, qword [rsp + 0x60]
mov dword [rcx + 0x570], eax
mov eax, 1
imul rax, rax, 1
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx + 0x4008]
movsx eax, byte [rcx + rax]
cmp eax, 0xa
jne 0x18007cd4f
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x4008]
inc rax
mov rcx, qword [rsp + 0x40]
mov qword [rcx + 0x4008], rax
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x4008]
inc rax
lea r9, [rsp + 0xf8]
mov r8d, 1
mov rdx, rax
mov rcx, qword [rsp + 0x140]
call fcn.1800c5d30
mov dword [rsp + 0xa4], eax
cmp dword [rsp + 0xa4], 0xffffffff
jne 0x18007cdbc
lea rdx, str.chunk_reading_DONE_n
mov rcx, qword [rsp + 0x50]
call fcn.18005ffc0
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x4004], 0
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x4020], 2
jmp 0x18007cdcd
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x4004], 0
jmp 0x18007cdde
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x4004], 0
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x4018], 0
jne 0x18007cdfc
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x4020], 2
jmp 0x18007c851
mov rax, qword [rsp + 0x40]
movsxd rax, dword [rax + 0x4000]
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx + 0x4008]
mov byte [rcx + rax], 0
lea rcx, [0x18015b3d8]
call fcn.1800fb030
mov r8, rax
mov rax, qword [rsp + 0x40]
mov rdx, qword [rax + 0x4008]
lea rcx, [0x18015b3f0]
call fcn.180064e10
test eax, eax
je 0x18007ce59
mov rax, qword [rsp + 0x60]
cmp dword [rax + 0x90], 0x191
je 0x18007ce9d
lea rcx, [0x18015b408]
call fcn.1800fb030
mov r8, rax
mov rax, qword [rsp + 0x40]
mov rdx, qword [rax + 0x4008]
lea rcx, [0x18015b420]
call fcn.180064e10
test eax, eax
je 0x18007cf63
mov rax, qword [rsp + 0x60]
cmp dword [rax + 0x90], 0x197
jne 0x18007cf63
mov rax, qword [rsp + 0x60]
cmp dword [rax + 0x90], 0x197
jne 0x18007cebb
mov dword [rsp + 0x8c], 1
jmp 0x18007cec6
mov dword [rsp + 0x8c], 0
cmp dword [rsp + 0x8c], 0
jne 0x18007cedd
mov dword [rsp + 0x90], 0
jmp 0x18007cee8
mov dword [rsp + 0x90], 1
movzx eax, byte [rsp + 0x90]
mov byte [rsp + 0x59], al
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 0x4008]
call fcn.180082d20
mov qword [rsp + 0xb8], rax
cmp qword [rsp + 0xb8], 0
jne 0x18007cf22
mov eax, reloc.WLDAP32.dll_Ordinal_27
jmp 0x18007d529
mov r8, qword [rsp + 0xb8]
movzx edx, byte [rsp + 0x59]
mov rcx, qword [rsp + 0x140]
call fcn.1800875b0
mov dword [rsp + 0x48], eax
mov rcx, qword [rsp + 0xb8]
call qword [fcn.1800fb1f8]
cmp dword [rsp + 0x48], 0
je 0x18007cf5e
mov eax, dword [rsp + 0x48]
jmp 0x18007d529
jmp 0x18007d1aa
lea rcx, [0x18015b438]
call fcn.1800fb030
mov r8, rax
mov rax, qword [rsp + 0x40]
mov rdx, qword [rax + 0x4008]
lea rcx, [0x18015b448]
call fcn.180064e10
test eax, eax
je 0x18007d014
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0x90]
cdq
mov ecx, 0x64
idiv ecx
cmp eax, 2
jne 0x18007cfc9
mov rax, qword [rsp + 0x60]
mov r8d, dword [rax + 0x90]
lea rdx, str.Ignoring_Content_Length_in_CONNECT__03d_response_n
mov rcx, qword [rsp + 0x50]
call fcn.18005ffc0
jmp 0x18007d00f
mov rax, qword [rsp + 0x40]
add rax, 0x4018
mov qword [rsp + 0x120], rax
lea rcx, [0x18015b490]
call fcn.1800fb030
mov rcx, qword [rsp + 0x40]
add rax, qword [rcx + 0x4008]
mov rcx, qword [rsp + 0x120]
mov r9, rcx
mov r8d, 0xa
xor edx, edx
mov rcx, rax
call fcn.180092680
jmp 0x18007d1aa
lea r8, [0x18015b22c]
lea rdx, [0x18015b4a0]
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 0x4008]
call fcn.180082bd0
movzx eax, al
test eax, eax
je 0x18007d058
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x4024]
or eax, 2
mov rcx, qword [rsp + 0x40]
mov dword [rcx + 0x4024], eax
jmp 0x18007d1aa
lea rcx, [0x18015b4b0]
call fcn.1800fb030
mov r8, rax
mov rax, qword [rsp + 0x40]
mov rdx, qword [rax + 0x4008]
lea rcx, [0x18015b4c8]
call fcn.180064e10
test eax, eax
je 0x18007d120
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0x90]
cdq
mov ecx, 0x64
idiv ecx
cmp eax, 2
jne 0x18007d0be
mov rax, qword [rsp + 0x60]
mov r8d, dword [rax + 0x90]
lea rdx, str.Ignoring_Transfer_Encoding_in_CONNECT__03d_response_n
mov rcx, qword [rsp + 0x50]
call fcn.18005ffc0
jmp 0x18007d11b
lea r8, [0x18015b518]
lea rdx, [0x18015b520]
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 0x4008]
call fcn.180082bd0
movzx eax, al
test eax, eax
je 0x18007d11b
lea rdx, str.CONNECT_responded_chunked_n
mov rcx, qword [rsp + 0x50]
call fcn.18005ffc0
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x4024]
or eax, 1
mov rcx, qword [rsp + 0x40]
mov dword [rcx + 0x4024], eax
mov rcx, qword [rsp + 0x140]
call fcn.1800c5ce0
jmp 0x18007d1aa
lea r8, [0x18015b25c]
lea rdx, [0x18015b558]
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 0x4008]
call fcn.180082bd0
movzx eax, al
test eax, eax
je 0x18007d161
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x4024]
or eax, 2
mov rcx, qword [rsp + 0x40]
mov dword [rcx + 0x4024], eax
jmp 0x18007d1aa
mov rax, qword [rsp + 0x60]
add rax, 0x90
mov r9, rax
lea r8, [rsp + 0xa8]
lea rdx, str.HTTP_1._d__d
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 0x4008]
call fcn.1800052e0
cmp eax, 2
jne 0x18007d1aa
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x60]
mov ecx, dword [rcx + 0x90]
mov dword [rax + 0x14c4], ecx
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x4000], 0
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x40]
mov qword [rcx + 0x4010], rax
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx + 0x4010]
mov qword [rax + 0x4008], rcx
jmp 0x18007c851
mov rcx, qword [rsp + 0x140]
call fcn.18008d0d0
test eax, eax
je 0x18007d202
mov eax, Ordinal_46
jmp 0x18007d529
cmp dword [rsp + 0x74], 0
je 0x18007d213
mov eax, Ordinal_60
jmp 0x18007d529
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x14c4]
cdq
mov ecx, 0x64
idiv ecx
cmp eax, 2
je 0x18007d27a
mov rcx, qword [rsp + 0x140]
call fcn.180087b10
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0
je 0x18007d24c
mov eax, dword [rsp + 0x48]
jmp 0x18007d529
mov rax, qword [rsp + 0x140]
mov eax, dword [rax + 0x3c4]
and eax, 1
test eax, eax
je 0x18007d27a
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x4024]
or eax, 2
mov rcx, qword [rsp + 0x40]
mov dword [rcx + 0x4024], eax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x4024]
shr eax, 1
and eax, 1
test eax, eax
je 0x18007d2e0
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x1e0], 0
je 0x18007d2e0
movsxd rax, dword [rsp + 0x148]
mov rcx, qword [rsp + 0x140]
mov rdx, qword [rcx + rax*8 + 0x240]
mov rcx, qword [rsp + 0x140]
call fcn.180062840
movsxd rax, dword [rsp + 0x148]
mov rcx, qword [rsp + 0x140]
mov qword [rcx + rax*8 + 0x240], 0xffffffffffffffff
jmp 0x18007d31f
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x1e0], 0
je 0x18007d30c
mov rax, qword [rsp + 0x40]
cmp dword [rax + 0x4020], 2
jne 0x18007d30c
mov dl, 1
mov rcx, qword [rsp + 0x140]
call fcn.18007c0c0
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x1e0], 0
jne 0x18007c2c4
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x14c4]
cdq
mov ecx, 0x64
idiv ecx
cmp eax, 2
je 0x18007d468
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x4024]
shr eax, 1
and eax, 1
test eax, eax
je 0x18007d39e
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x1e0], 0
je 0x18007d39e
mov rax, qword [rsp + 0x140]
mov eax, dword [rax + 0x3c4]
bts eax, 0x17
mov rcx, qword [rsp + 0x140]
mov dword [rcx + 0x3c4], eax
lea rdx, str.Connect_me_again_please_n
mov rcx, qword [rsp + 0x50]
call fcn.18005ffc0
mov rcx, qword [rsp + 0x140]
call fcn.18007c1c0
jmp 0x18007d413
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 0x1e0]
call qword [fcn.1800fb1f8]
mov rax, qword [rsp + 0x50]
mov qword [rax + 0x1e0], 0
mov edx, 2
mov rcx, qword [rsp + 0x140]
call fcn.180062b60
movsxd rax, dword [rsp + 0x148]
mov rcx, qword [rsp + 0x140]
mov rdx, qword [rcx + rax*8 + 0x240]
mov rcx, qword [rsp + 0x140]
call fcn.180062840
movsxd rax, dword [rsp + 0x148]
mov rcx, qword [rsp + 0x140]
mov qword [rcx + rax*8 + 0x240], 0xffffffffffffffff
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x4020], 0
mov rax, qword [rsp + 0x140]
mov eax, dword [rax + 0x3c4]
shr eax, 0x17
and eax, 1
test eax, eax
je 0x18007d441
xor eax, eax
jmp 0x18007d529
mov rax, qword [rsp + 0x50]
mov r8d, dword [rax + 0x190]
lea rdx, str.Received_HTTP_code__d_from_proxy_after_CONNECT
mov rcx, qword [rsp + 0x50]
call fcn.180060120
mov eax, Ordinal_60
jmp 0x18007d529
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x4020], 2
mov rax, qword [rsp + 0x140]
mov rcx, qword [rax + 0x428]
call qword [fcn.1800fb1f8]
mov rax, qword [rsp + 0x140]
mov qword [rax + 0x428], 0
xor eax, eax
test eax, eax
jne 0x18007d477
mov rax, qword [rsp + 0x140]
mov qword [rax + 0x428], 0
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x115c]
or eax, 1
mov rcx, qword [rsp + 0x50]
mov dword [rcx + 0x115c], eax
mov rax, qword [rsp + 0x50]
mov r8d, dword [rax + 0x14c4]
lea rdx, str.Proxy_replied__d_to_CONNECT_request_n
mov rcx, qword [rsp + 0x50]
call fcn.18005ffc0
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x670]
and eax, 0xfffffff7
mov rcx, qword [rsp + 0x50]
mov dword [rcx + 0x670], eax
mov rax, qword [rsp + 0x140]
mov eax, dword [rax + 0x3c4]
btr eax, 0x10
mov rcx, qword [rsp + 0x140]
mov dword [rcx + 0x3c4], eax
xor eax, eax
add rsp, 0x138
ret