Function at 0x140086050
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, 0xa8
mov r12, qword [rcx + 0x18]
mov rbx, rcx
movsxd r14, edx
mov r15d, r9d
mov dword [rbp - 0x39], 0
mov r13, r8
mov qword [rbp - 0x31], r12
mov rdi, qword [r12 + 0x560]
mov rsi, qword [r12 + r14*8 + 0x1f0]
lea rcx, [r14 + 0x3e]
lea rcx, [r12 + rcx*8]
mov qword [rbp - 0x49], rsi
mov qword [rbp - 0x19], rcx
mov rcx, r12
call fcn.140086ab0
test al, al
jne 0x14008697d
mov byte [r12 + 0x370], al
nop dword [rax]
cmp dword [rdi + 0x30], 0
jne 0x1400862d0
xor esi, esi
lea rdx, str.Establish_HTTP_proxy_tunnel_to__s:_d_n
mov r9d, r15d
mov qword [rbp - 0x29], rsi
mov r8, r13
mov qword [rbp - 0x41], rsi
mov rcx, rbx
call fcn.140078430
mov rcx, qword [rbx + 0x1a0]
call qword [fcn.1400b6af4]
mov edx, 0x20000
mov qword [rbx + 0x1a0], rsi
lea rcx, [rbp - 9]
call fcn.140070510
lea rax, [rbp - 0x41]
mov r9d, r15d
mov qword [rsp + 0x28], rax
mov r8, r13
lea rax, [rbp - 0x29]
mov rdx, r12
mov rcx, rbx
mov qword [rsp + 0x20], rax
call fcn.1400869b0
test eax, eax
jne 0x14008697f
mov r14, qword [rbp - 0x29]
lea r8, str.CONNECT
mov byte [rsp + 0x28], 1
xor r9d, r9d
mov rdx, r12
mov qword [rsp + 0x20], r14
mov rcx, rbx
call fcn.140080f80
mov r13, qword [rbp - 0x41]
mov esi, eax
test eax, eax
jne 0x14008629a
cmp dword [r12 + 0x144], 1
lea rax, [0x1400e31c4]
lea r15, [0x1400e31c0]
mov rdx, r12
lea r8, str.Proxy_Connection
mov rcx, rbx
cmove r15, rax
lea rsi, [0x1400f88ea]
call fcn.14007f290
mov rdx, qword [rbp - 0x31]
lea r12, str.Proxy_Connection:_Keep_Alive_r_n
test rax, rax
lea r8, str.User_Agent
lea rax, [0x1400f88ea]
mov rcx, rbx
cmovne r12, rax
call fcn.14007f290
test rax, rax
jne 0x1400861e8
cmp qword [rbx + 0x898], rax
je 0x1400861e8
mov rsi, qword [rbx + 0x1268]
mov rax, qword [rbx + 0x1260]
lea rdx, [0x1400f88ea]
test rax, rax
mov qword [rsp + 0x38], r12
mov rcx, rdx
mov qword [rsp + 0x30], rsi
cmovne rcx, rax
mov r9, r15
mov rax, rdx
mov qword [rsp + 0x28], rcx
test r13, r13
lea rdx, str.CONNECT__s_HTTP__s_r_n_s_s_s_s
mov r8, r14
lea rcx, [rbp - 9]
cmovne rax, r13
mov qword [rsp + 0x20], rax
call fcn.1400704a0
mov esi, eax
test eax, eax
jne 0x140086287
lea r8, [rbp - 9]
mov dl, 1
mov rcx, rbx
call fcn.14007eb80
mov esi, eax
test eax, eax
jne 0x140086287
lea rdx, [0x140166850]
lea rcx, [rbp - 9]
call fcn.140070480
mov esi, eax
test eax, eax
jne 0x140086287
mov eax, dword [rbp + 0x6f]
lea r8, [rbx + 0x1330]
xor r9d, r9d
mov dword [rsp + 0x20], eax
mov rdx, rbx
lea rcx, [rbp - 9]
call fcn.14007f030
mov esi, eax
test eax, eax
je 0x140086296
lea rdx, str.Failed_sending_CONNECT_to_proxy
mov rcx, rbx
call fcn.140078340
mov r12, qword [rbp - 0x31]
mov rcx, r13
call qword [fcn.1400b6af4]
mov rcx, r14
call qword [fcn.1400b6af4]
lea rcx, [rbp - 9]
call fcn.1400704e0
test esi, esi
jne 0x140086842
mov rsi, qword [rbp - 0x49]
mov r14d, dword [rbp + 0x6f]
mov r13, qword [rbp + 0x77]
mov dword [rdi + 0x30], 1
mov r8b, 1
xor edx, edx
mov rcx, rbx
call fcn.140079a90
test rax, rax
jle 0x14008699a
mov edx, r14d
mov rcx, r12
call fcn.140078e50
test al, al
je 0x14008697d
xor r15d, r15d
cmp dword [rdi + 0x20], r15d
je 0x14008637f
lea rax, [rbp - 0x21]
mov r9d, 1
lea r8, [rbp + 0x67]
mov qword [rsp + 0x20], rax
mov rdx, rsi
mov rcx, rbx
call fcn.140078540
mov esi, eax
cmp eax, 0x51
je 0x14008697d
mov rcx, rbx
call fcn.140084f20
test eax, eax
jne 0x140086993
test esi, esi
jne 0x140086377
cmp qword [rbp - 0x21], r15
jle 0x1400867aa
cmp dword [rdi + 0x20], 2
jne 0x14008643f
mov rax, qword [rdi + 0x28]
test rax, rax
je 0x1400863fc
dec rax
mov qword [rdi + 0x28], rax
test rax, rax
jg 0x140086797
mov dword [rdi + 0x30], 2
mov dword [rdi + 0x20], r15d
mov r14d, dword [rbp + 0x6f]
mov rcx, rbx
call fcn.140084f20
test eax, eax
jne 0x140086993
test r15d, r15d
jne 0x140086862
mov eax, dword [rbx + 0x1314]
sub eax, 0xc8
cmp eax, 0x64
jb 0x1400863c6
mov rcx, rbx
call fcn.14007f530
test eax, eax
jne 0x14008697f
cmp byte [r12 + 0x371], al
je 0x1400863c6
mov byte [rdi + 0x35], 1
cmp byte [rdi + 0x35], 0
je 0x140086801
cmp qword [rbx + 0x1a0], 0
je 0x140086829
mov rsi, qword [rbp - 0x19]
mov rdx, r12
mov rcx, rbx
mov r8, qword [rsi]
call fcn.140078db0
mov qword [rsi], 0xffffffffffffffff
jmp 0x140086870
xor esi, esi
lea rax, [rbp - 0x11]
lea r9, [rbp - 0x41]
mov qword [rbp - 0x41], rsi
lea rdx, [rbp + 0x67]
mov qword [rsp + 0x20], rax
mov rcx, rbx
lea r8d, [rsi + 1]
call fcn.1400a2ab0
cmp eax, 0xffffffff
jne 0x140086797
lea rdx, str.chunk_reading_DONE_n
mov rcx, rbx
call fcn.140078430
mov dword [rdi + 0x20], esi
jmp 0x140086790
mov r8d, 1
lea rdx, [rbp + 0x67]
mov rcx, rdi
call fcn.1400704d0
test eax, eax
jne 0x140086853
cmp byte [rbp + 0x67], 0xa
jne 0x140086797
mov rcx, rdi
call fcn.140070540
mov rcx, rdi
mov rsi, rax
call fcn.140070530
mov r9, rax
mov r8, rsi
mov edx, 1
mov rcx, rbx
mov r14, rax
call fcn.140078280
cmp byte [rbx + 0xb01], r15b
jne 0x1400864b9
xor edx, edx
mov r9, r14
cmp byte [rbx + 0xae9], dl
mov r8, rsi
mov rcx, rbx
setne dl
add edx, 2
call fcn.140078260
test eax, eax
jne 0x14008697f
movsxd rax, r14d
add qword [rbx + 0x1328], rax
movzx eax, byte [rsi]
cmp al, 0xd
je 0x1400866e1
cmp al, 0xa
je 0x1400866e1
mov r8d, reloc.WS2_32.dll_recvfrom
lea rcx, str.WWW_Authenticate:
mov rdx, rsi
call fcn.14007c070
test eax, eax
je 0x1400864ff
mov r14d, dword [rbx + 0x160]
cmp r14d, 0x191
je 0x140086528
mov r8d, reloc.WS2_32.dll_send
lea rcx, str.Proxy_authenticate:
mov rdx, rsi
call fcn.14007c070
test eax, eax
je 0x14008656e
mov r14d, dword [rbx + 0x160]
cmp r14d, 0x197
jne 0x14008656e
mov rcx, rsi
call fcn.14007f420
mov rsi, rax
test rax, rax
je 0x140086849
cmp r14d, 0x197
mov r8, rax
mov rcx, rbx
sete dl
call fcn.140080ce0
mov rcx, rsi
mov r14d, eax
call qword [fcn.1400b6af4]
test r14d, r14d
je 0x1400866d4
mov eax, r14d
jmp 0x14008697f
mov r8d, reloc.WS2_32.dll_ntohs
lea rcx, str.Content_Length:
mov rdx, rsi
call fcn.14007c070
test eax, eax
je 0x1400865d6
mov r8d, dword [rbx + 0x160]
lea eax, [r8 - 0xc8]
cmp eax, 0x64
jae 0x1400865b6
lea rdx, str.Ignoring_Content_Length_in_CONNECT__03d_response_n
mov rcx, rbx
call fcn.140078430
mov rcx, rdi
call fcn.140070550
jmp 0x140086797
xor edx, edx
lea r9, [rdi + 0x28]
lea rcx, [rsi + 0xf]
lea r8d, [rdx + 0xa]
call fcn.140089850
mov rcx, rdi
call fcn.140070550
jmp 0x140086797
lea r8, str.close
mov rcx, rsi
lea rdx, str.Connection:
call fcn.14007f330
test al, al
jne 0x1400866d0
mov r8d, reloc.WS2_32.dll_select
lea rcx, str.Transfer_Encoding:
mov rdx, rsi
call fcn.14007c070
test eax, eax
je 0x14008667e
mov r8d, dword [rbx + 0x160]
lea eax, [r8 - 0xc8]
cmp eax, 0x64
jae 0x14008663c
lea rdx, str.Ignoring_Transfer_Encoding_in_CONNECT__03d_response_n
mov rcx, rbx
call fcn.140078430
mov rcx, rdi
call fcn.140070550
jmp 0x140086797
lea r8, str.chunked
mov rcx, rsi
lea rdx, str.Transfer_Encoding:
call fcn.14007f330
test al, al
je 0x1400866d4
lea rdx, str.CONNECT_responded_chunked_n
mov rcx, rbx
call fcn.140078430
mov rcx, rbx
mov byte [rdi + 0x34], 1
call fcn.1400a2a90
mov rcx, rdi
call fcn.140070550
jmp 0x140086797
lea r8, str.close
mov rcx, rsi
lea rdx, str.Proxy_Connection:
call fcn.14007f330
test al, al
jne 0x1400866d0
lea r9, [rbx + 0x160]
mov rcx, rsi
lea r8, [rbp - 0x39]
lea rdx, str.HTTP_1._d__d
call fcn.14000b4d0
cmp eax, 2
jne 0x1400866d4
mov eax, dword [rbx + 0x160]
mov rcx, rdi
mov dword [rbx + 0x1314], eax
call fcn.140070550
jmp 0x140086797
mov byte [rdi + 0x35], 1
mov rcx, rdi
call fcn.140070550
jmp 0x140086797
cmp dword [rbx + 0x160], 0x197
jne 0x140086786
cmp byte [rbx + 0x12b5], r15b
jne 0x140086786
mov r8, qword [rdi + 0x28]
mov dword [rdi + 0x20], 2
test r8, r8
je 0x140086725
lea rdx, str.Ignore__I64d_bytes_of_response_body_n
mov rcx, rbx
call fcn.140078430
cmp dword [rdi + 0x20], r15d
jne 0x1400867a1
jmp 0x14008678a
cmp byte [rdi + 0x34], r15b
je 0x140086786
lea rdx, str.Ignore_chunked_response_body_n
mov rcx, rbx
call fcn.140078430
lea rax, [rsi + 1]
mov byte [rbx + 0x1cb], 1
cmp byte [rax], 0xa
lea r9, [rbp - 0x21]
mov r8d, 1
mov rcx, rbx
cmove rsi, rax
lea rax, [rbp - 0xd]
mov qword [rsp + 0x20], rax
lea rdx, [rsi + 1]
call fcn.1400a2ab0
cmp eax, 0xffffffff
jne 0x14008671d
lea rdx, str.chunk_reading_DONE_n
mov rcx, rbx
call fcn.140078430
mov dword [rdi + 0x30], 2
mov dword [rdi + 0x20], r15d
cmp qword [rdi + 0x28], r15
jne 0x140086797
mov dword [rdi + 0x30], 2
cmp dword [rdi + 0x20], r15d
je 0x14008637b
mov rsi, qword [rbp - 0x49]
jmp 0x140086302
cmp dword [rbx + 0x220], r15d
je 0x1400867e0
cmp dword [rbx + 0xe70], r15d
je 0x1400867e0
lea rdx, str.Proxy_CONNECT_connection_closed_n
mov byte [r12 + 0x370], 1
mov rcx, rbx
call fcn.140078430
mov dword [rdi + 0x20], 0
jmp 0x14008637b
lea rdx, str.Proxy_CONNECT_aborted
mov rcx, rbx
mov r15d, 1
call fcn.140078340
mov dword [rdi + 0x20], 0
jmp 0x14008637b
mov rax, qword [rbx + 0x1a0]
test rax, rax
je 0x14008686c
cmp dword [rdi + 0x30], 2
mov rsi, qword [rbp - 0x49]
mov r15d, dword [rbp + 0x7f]
jne 0x1400860d0
mov dl, 1
mov rcx, rbx
call fcn.140086d40
mov rax, qword [rbx + 0x1a0]
test rax, rax
je 0x14008686c
mov rsi, qword [rbp - 0x49]
mov r15d, dword [rbp + 0x7f]
jmp 0x1400860d0
mov eax, esi
jmp 0x14008697f
mov eax, reloc.WLDAP32.dll_Ordinal_27
jmp 0x14008697f
lea rdx, str.CONNECT_response_too_large_
mov rcx, rbx
call fcn.140078340
mov eax, gethostname
jmp 0x14008697f
mov rsi, qword [rbp - 0x19]
mov eax, dword [rbx + 0x1314]
sub eax, 0xc8
cmp eax, 0x64
jb 0x140086927
cmp byte [rdi + 0x35], 0
je 0x1400868b6
cmp qword [rbx + 0x1a0], 0
je 0x1400868b6
lea rdx, str.Connect_me_again_please_n
mov byte [r12 + 0x370], 1
mov rcx, rbx
call fcn.140078430
mov rcx, rbx
call fcn.140086d00
jmp 0x1400868f0
mov rcx, qword [rbx + 0x1a0]
call qword [fcn.1400b6af4]
mov edx, 2
mov qword [rbx + 0x1a0], 0
mov rcx, r12
call fcn.140078f00
mov r8, qword [rsi]
mov rdx, r12
mov rcx, rbx
call fcn.140078db0
mov qword [rsi], 0xffffffffffffffff
mov dword [rdi + 0x30], 0
cmp byte [r12 + 0x370], 0
jne 0x14008697d
mov rcx, rdi
call fcn.1400704e0
mov r8d, dword [rbx + 0x160]
lea rdx, str.Received_HTTP_code__d_from_proxy_after_CONNECT
mov rcx, rbx
call fcn.140078340
mov eax, gethostname
jmp 0x14008697f
mov dword [rdi + 0x30], 2
mov rcx, qword [rbx + 0x1260]
call qword [fcn.1400b6af4]
mov qword [rbx + 0x1260], 0
lea rdx, str.Proxy_replied__d_to_CONNECT_request_n
mov r8d, dword [rbx + 0x1314]
mov rcx, rbx
mov word [rbx + 0xe74], 1
call fcn.140078430
mov byte [rbx + 0x1cb], 0
mov rcx, rdi
mov byte [r12 + 0x37e], 0
call fcn.1400704e0
xor eax, eax
add rsp, 0xa8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov eax, Ordinal_46
jmp 0x14008697f
lea rdx, str.Proxy_CONNECT_aborted_due_to_timeout
mov rcx, rbx
call fcn.140078340
mov eax, 0x1c
jmp 0x14008697f