Function at 0x140147e50
Capabilities:
Check http status code

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0x88
mov r13, qword [rcx + 0x18]
mov rbx, rcx
movsxd r15, edx
mov r12d, r9d
mov dword [rbp - 0x29], 0
mov r14, qword [rbx + 0x1b0]
mov rsi, qword [r13 + r15*8 + 0x1e8]
lea rcx, [r15*8 + 0x1e8]
mov rdi, qword [r13 + 0x5c8]
add rcx, r13
mov qword [rbp - 9], rcx
mov rcx, r13
mov qword [rbp - 0x21], rsi
mov qword [rbp - 0x39], r14
call fcn.140148a20
test al, al
jne 0x1401488ea
mov byte [r13 + 0x3d0], al
nop
cmp dword [rdi + 0x288], 0
jne 0x1401480d3
mov r8, qword [rbp + 0x77]
lea rdx, str.Establish_HTTP_proxy_tunnel_to__s:_d
xor r15d, r15d
lea r14, [rdi + 0x250]
mov r9d, r12d
mov qword [rbp - 0x19], r15
mov rcx, rbx
mov qword [rbp - 0x31], r15
call fcn.140145270
mov rcx, qword [rbx + 0x198]
call qword [fcn.1402804a8]
mov edx, 0x100000
mov qword [rbx + 0x198], r15
mov rcx, r14
call fcn.140135c20
mov r8, qword [rbp + 0x77]
lea rax, [rbp - 0x31]
mov qword [rsp + 0x28], rax
mov r9d, r12d
lea rax, [rbp - 0x19]
mov rdx, r13
mov rcx, rbx
mov qword [rsp + 0x20], rax
call fcn.140148920
test eax, eax
jne 0x140148902
mov r15, qword [rbp - 0x19]
lea r8, [0x1402bc770]
mov byte [rsp + 0x28], 1
xor r9d, r9d
mov rdx, r13
mov qword [rsp + 0x20], r15
mov rcx, rbx
call fcn.140138d70
mov r12, qword [rbp - 0x31]
mov esi, eax
test eax, eax
jne 0x1401480a3
cmp dword [r13 + 0x13c], 1
lea rax, [0x1402ba3a4]
lea r9, [0x1402ba3a0]
mov r8, r15
cmove r9, rax
lea rcx, [0x140340108]
mov rax, qword [rbx + 0x12b0]
lea rdx, str.CONNECT__s_HTTP__s_r_n_s_s
test rax, rax
cmovne rcx, rax
test r12, r12
mov qword [rsp + 0x28], rcx
lea rax, [0x140340108]
cmovne rax, r12
mov rcx, r14
mov qword [rsp + 0x20], rax
call fcn.140135bb0
mov esi, eax
test eax, eax
jne 0x140148094
lea r8, str.User_Agent
mov rdx, r13
mov rcx, rbx
call fcn.140136e50
test rax, rax
jne 0x14014801e
mov r8, qword [rbx + 0x8c8]
test r8, r8
je 0x14014801e
lea rdx, str.User_Agent:__s_r_n
mov rcx, r14
call fcn.140135bb0
mov esi, eax
test eax, eax
jne 0x140148094
lea r8, str.Proxy_Connection
mov rdx, r13
mov rcx, rbx
call fcn.140136e50
test rax, rax
jne 0x14014804a
lea rdx, str.Proxy_Connection:_Keep_Alive_r_n
mov rcx, r14
call fcn.140135b90
mov esi, eax
test eax, eax
jne 0x140148094
mov r8, r14
mov dl, 1
mov rcx, rbx
call fcn.140136700
mov esi, eax
test eax, eax
jne 0x140148094
lea rdx, [0x1402ba3e4]
mov rcx, r14
call fcn.140135b90
mov esi, eax
test eax, eax
jne 0x140148094
mov eax, dword [rbp + 0x6f]
lea r8, [rbx + 0x13a8]
xor r9d, r9d
mov dword [rsp + 0x20], eax
mov rdx, rbx
mov rcx, r14
call fcn.140136bd0
mov esi, eax
test eax, eax
je 0x1401480a3
lea rdx, str.Failed_sending_CONNECT_to_proxy
mov rcx, rbx
call fcn.140145190
mov rcx, r12
call qword [fcn.1402804a8]
mov rcx, r15
call qword [fcn.1402804a8]
test esi, esi
jne 0x14014871b
mov rsi, qword [rbp - 0x21]
mov r14, qword [rbp - 0x39]
mov r15d, dword [rbp + 0x6f]
mov dword [rdi + 0x288], 1
mov r8b, 1
xor edx, edx
mov rcx, rbx
call fcn.1401432c0
test rax, rax
jle 0x1401488ee
mov edx, r15d
mov rcx, r13
call fcn.140142600
test al, al
jne 0x140148106
cmp dword [r14 + 0x200], 0
je 0x1401488ea
cmp dword [r14 + 0x200], 1
jne 0x140148161
cmp qword [rdi + 0x270], 0
jne 0x140148722
mov rax, qword [rbx + 0xd40]
lea r8, [rbp + 7]
mov qword [rbx + 0x1a8], rax
mov rcx, rbx
mov edx, dword [rbx + 0x738]
call fcn.14013b520
test eax, eax
jne 0x140148902
mov rax, qword [rbp + 7]
mov qword [rdi + 0x270], rax
test rax, rax
jne 0x140148722
mov dword [r14 + 0x200], eax
xor r12d, r12d
cmp dword [rdi + 0x278], r12d
je 0x140148201
lea rax, [rbp - 0x11]
mov r9d, 1
lea r8, [rbp + 0x67]
mov qword [rsp + 0x20], rax
mov rdx, rsi
mov rcx, rbx
call fcn.140145310
mov esi, eax
cmp eax, 0x51
je 0x1401488ea
mov rcx, rbx
call fcn.140144580
test eax, eax
jne 0x1401487a2
test esi, esi
jne 0x1401481f2
cmp qword [rbp - 0x11], r12
jle 0x1401486b6
cmp dword [rdi + 0x278], 2
jne 0x1401482e3
mov rax, qword [rdi + 0x280]
test rax, rax
je 0x14014829d
dec rax
mov qword [rdi + 0x280], rax
test rax, rax
jg 0x1401486a0
mov dword [rdi + 0x288], 2
mov dword [rdi + 0x278], r12d
mov r15d, dword [rbp + 0x6f]
mov r14, qword [rbp - 0x39]
mov rcx, rbx
call fcn.140144580
test eax, eax
jne 0x1401487a2
test r12d, r12d
jne 0x140148798
mov eax, dword [rbx + 0x138c]
sub eax, 0xc8
cmp eax, 0x64
jb 0x14014824a
mov rcx, rbx
call fcn.1401370c0
test eax, eax
jne 0x140148902
cmp byte [r13 + 0x3d1], al
je 0x14014824a
mov byte [rdi + 0x28d], 1
cmp byte [rdi + 0x28d], 0
je 0x140148261
cmp qword [rbx + 0x198], 0
jne 0x1401487ac
cmp qword [rbx + 0x198], 0
je 0x1401487c7
cmp dword [rdi + 0x288], 2
jne 0x140148282
mov dl, 1
mov rcx, rbx
call fcn.140148cb0
cmp qword [rbx + 0x198], 0
je 0x1401487c7
mov rsi, qword [rbp - 0x21]
mov r12d, dword [rbp + 0x7f]
jmp 0x140147ed0
xor esi, esi
lea rax, [rbp - 1]
lea r9, [rbp - 0x31]
mov qword [rbp - 0x31], rsi
lea rdx, [rbp + 0x67]
mov qword [rsp + 0x20], rax
mov rcx, rbx
lea r8d, [rsi + 1]
call fcn.14015bac0
cmp eax, 0xffffffff
jne 0x1401486a0
lea rdx, str.chunk_reading_DONE
mov rcx, rbx
call fcn.140145270
mov dword [rdi + 0x278], esi
jmp 0x140148696
mov r8d, 1
lea rdx, [rbp + 0x67]
lea rcx, [rdi + 0x230]
call fcn.140135be0
test eax, eax
jne 0x140148789
cmp byte [rbp + 0x67], 0xa
jne 0x1401486a0
lea rcx, [rdi + 0x230]
call fcn.1401e1ff0
lea rcx, [rdi + 0x230]
mov rsi, rax
call fcn.140174b90
mov r9, rax
mov r8, rsi
mov edx, 1
mov rcx, rbx
mov r14, rax
call fcn.1401450d0
cmp byte [rbx + 0xb49], r12b
jne 0x140148369
xor edx, edx
mov r9, r14
cmp byte [rbx + 0xb31], dl
mov r8, rsi
mov rcx, rbx
setne dl
add edx, 2
call fcn.1401450c0
test eax, eax
jne 0x140148902
movsxd rax, r14d
add qword [rbx + 0x13a0], rax
movzx eax, byte [rsi]
cmp al, 0xd
je 0x1401485ce
cmp al, 0xa
je 0x1401485ce
mov r8d, reloc.WS2_32.dll_recvfrom
lea rcx, str.WWW_Authenticate:
mov rdx, rsi
call fcn.140151960
test eax, eax
je 0x1401483af
mov r14d, dword [rbx + 0x158]
cmp r14d, 0x191
je 0x1401483d8
mov r8d, reloc.WS2_32.dll_send
lea rcx, str.Proxy_authenticate:
mov rdx, rsi
call fcn.140151960
test eax, eax
je 0x14014841e
mov r14d, dword [rbx + 0x158]
cmp r14d, 0x197
jne 0x14014841e
mov rcx, rsi
call fcn.140136fc0
mov rsi, rax
test rax, rax
je 0x14014877f
cmp r14d, 0x197
mov r8, rax
mov rcx, rbx
sete dl
call fcn.140138ab0
mov rcx, rsi
mov r14d, eax
call qword [fcn.1402804a8]
test r14d, r14d
je 0x1401485bd
mov eax, r14d
jmp 0x140148902
mov r8d, reloc.WS2_32.dll_ntohs
lea rcx, str.Content_Length:
mov rdx, rsi
call fcn.140151960
test eax, eax
je 0x140148491
mov r8d, dword [rbx + 0x158]
lea eax, [r8 - 0xc8]
cmp eax, 0x64
jae 0x14014846a
lea rdx, str.Ignoring_Content_Length_in_CONNECT__03d_response
mov rcx, rbx
call fcn.140145270
lea rcx, [rdi + 0x230]
call fcn.140135c40
jmp 0x1401486a0
xor edx, edx
lea r9, [rdi + 0x280]
lea rcx, [rsi + 0xf]
lea r8d, [rdx + 0xa]
call fcn.14015b920
lea rcx, [rdi + 0x230]
call fcn.140135c40
jmp 0x1401486a0
lea r8, str.close
mov rcx, rsi
lea rdx, str.Connection:
call fcn.140136ee0
test al, al
je 0x1401484c3
lea rcx, [rdi + 0x230]
mov byte [rdi + 0x28d], 1
call fcn.140135c40
jmp 0x1401486a0
mov r8d, reloc.WS2_32.dll_select
lea rcx, str.Transfer_Encoding:
mov rdx, rsi
call fcn.140151960
test eax, eax
je 0x140148560
mov r8d, dword [rbx + 0x158]
lea eax, [r8 - 0xc8]
cmp eax, 0x64
jae 0x140148513
lea rdx, str.Ignoring_Transfer_Encoding_in_CONNECT__03d_response
mov rcx, rbx
call fcn.140145270
lea rcx, [rdi + 0x230]
call fcn.140135c40
jmp 0x1401486a0
lea r8, str.chunked
mov rcx, rsi
lea rdx, str.Transfer_Encoding:
call fcn.140136ee0
test al, al
je 0x1401485bd
lea rdx, str.CONNECT_responded_chunked
mov rcx, rbx
call fcn.140145270
mov rcx, rbx
mov byte [rdi + 0x28c], 1
call fcn.14015baa0
lea rcx, [rdi + 0x230]
call fcn.140135c40
jmp 0x1401486a0
lea r8, str.close
mov rcx, rsi
lea rdx, str.Proxy_Connection:
call fcn.140136ee0
test al, al
je 0x140148592
lea rcx, [rdi + 0x230]
mov byte [rdi + 0x28d], 1
call fcn.140135c40
jmp 0x1401486a0
lea r9, [rbx + 0x158]
mov rcx, rsi
lea r8, [rbp - 0x29]
lea rdx, str.HTTP_1._d__d
call fcn.140057190
cmp eax, 2
jne 0x1401485bd
mov eax, dword [rbx + 0x158]
mov dword [rbx + 0x138c], eax
lea rcx, [rdi + 0x230]
call fcn.140135c40
jmp 0x1401486a0
cmp dword [rbx + 0x158], 0x197
jne 0x140148686
cmp byte [rbx + 0x1325], r12b
jne 0x140148686
mov r8, qword [rdi + 0x280]
mov dword [rdi + 0x278], 2
test r8, r8
je 0x14014861f
lea rdx, str.Ignore__I64d_bytes_of_response_body
mov rcx, rbx
call fcn.140145270
cmp dword [rdi + 0x278], r12d
jne 0x1401486ad
jmp 0x14014868d
cmp byte [rdi + 0x28c], r12b
je 0x140148686
lea rdx, str.Ignore_chunked_response_body
mov rcx, rbx
call fcn.140145270
lea rax, [rsi + 1]
mov byte [rbx + 0x1c3], 1
cmp byte [rax], 0xa
lea r9, [rbp - 0x11]
mov r8d, 1
mov rcx, rbx
cmove rsi, rax
lea rax, [rbp + 3]
mov qword [rsp + 0x20], rax
lea rdx, [rsi + 1]
call fcn.14015bac0
cmp eax, 0xffffffff
jne 0x140148610
lea rdx, str.chunk_reading_DONE
mov rcx, rbx
call fcn.140145270
mov dword [rdi + 0x288], 2
mov dword [rdi + 0x278], r12d
cmp qword [rdi + 0x280], r12
jne 0x1401486a0
mov dword [rdi + 0x288], 2
cmp dword [rdi + 0x278], r12d
je 0x1401481f9
mov rsi, qword [rbp - 0x21]
jmp 0x140148171
cmp dword [rbx + 0x218], r12d
je 0x1401486f7
cmp dword [rbx + 0xe98], r12d
je 0x1401486f7
cmp qword [rbx + 0x12b0], r12
je 0x1401486f7
lea rdx, str.Proxy_CONNECT_connection_closed
mov byte [r13 + 0x3d0], 1
mov rcx, rbx
call fcn.140145270
mov dword [rdi + 0x278], 0
jmp 0x1401481f9
lea rdx, str.Proxy_CONNECT_aborted
mov rcx, rbx
mov r12d, 1
call fcn.140145190
mov dword [rdi + 0x278], 0
jmp 0x1401481f9
mov eax, esi
jmp 0x140148902
mov r9, qword [rdi + 0x270]
lea rax, [rbp + 0x67]
mov r8, qword [rbx + 0x1a8]
mov rcx, rbx
mov rdx, qword [r13 + 0x440]
mov qword [rsp + 0x20], rax
call fcn.1401455e0
mov ecx, eax
test eax, eax
jne 0x140148766
mov r9, qword [rbp + 0x67]
lea edx, [rax + 2]
mov r8, qword [rbx + 0x1a8]
mov rcx, rbx
call fcn.1401450d0
mov ecx, eax
mov rax, qword [rbp + 0x67]
sub qword [rdi + 0x270], rax
add qword [rbx + 0x1a8], rax
mov eax, ecx
jmp 0x140148902
mov eax, reloc.WLDAP32.dll_Ordinal_27
jmp 0x140148902
lea rdx, str.CONNECT_response_too_large_
mov rcx, rbx
call fcn.140145190
mov eax, gethostname
jmp 0x140148902
mov eax, Ordinal_46
jmp 0x140148902
mov rsi, qword [rbp - 9]
mov rdx, r13
mov rcx, rbx
mov r8, qword [rsi]
call fcn.140142560
mov qword [rsi], 0xffffffffffffffff
jmp 0x1401487cb
mov rsi, qword [rbp - 9]
mov eax, dword [rbx + 0x138c]
sub eax, 0xc8
cmp eax, 0x64
jb 0x14014888e
cmp byte [rdi + 0x28d], 0
je 0x140148813
cmp qword [rbx + 0x198], 0
je 0x140148813
lea rdx, str.Connect_me_again_please
mov byte [r13 + 0x3d0], 1
mov rcx, rbx
call fcn.140145270
mov rcx, rbx
call fcn.140148c30
jmp 0x14014884d
mov rcx, qword [rbx + 0x198]
call qword [fcn.1402804a8]
mov edx, 2
mov qword [rbx + 0x198], 0
mov rcx, r13
call fcn.1401426d0
mov r8, qword [rsi]
mov rdx, r13
mov rcx, rbx
call fcn.140142560
mov qword [rsi], 0xffffffffffffffff
mov dword [rdi + 0x288], 0
cmp byte [r13 + 0x3d0], 0
jne 0x1401488ea
lea rcx, [rdi + 0x230]
call fcn.140135bf0
mov r8d, dword [rbx + 0x158]
lea rdx, str.Received_HTTP_code__d_from_proxy_after_CONNECT
mov rcx, rbx
call fcn.140145190
mov eax, gethostname
jmp 0x140148902
mov dword [rdi + 0x288], 2
mov rcx, qword [rbx + 0x12b0]
call qword [fcn.1402804a8]
mov qword [rbx + 0x12b0], 0
lea rdx, str.Proxy_replied__d_to_CONNECT_request
mov r8d, dword [rbx + 0x138c]
mov rcx, rbx
mov word [rbx + 0xe9c], 1
call fcn.140145270
mov byte [rbx + 0x1c3], 0
lea rcx, [rdi + 0x230]
mov byte [r13 + 0x3de], 0
call fcn.140135bf0
xor eax, eax
jmp 0x140148902
lea rdx, str.Proxy_CONNECT_aborted_due_to_timeout
mov rcx, rbx
call fcn.140145190
mov eax, 0x1c
add rsp, 0x88
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret