Function at 0x140042070
Capabilities:
Check http status code

Disassembly:
mov rax, rsp
mov dword [rax + 0x20], r9d
mov qword [rax + 0x18], r8
mov dword [rax + 0x10], edx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x78
mov rbx, qword [rcx + 0xb80]
mov r14, qword [rcx]
movsxd rbp, edx
mov rsi, qword [rcx + rbp*8 + 0x4c0]
xor r13d, r13d
mov r12d, r9d
mov rdi, r8
mov r15, rcx
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x50], rsi
mov dword [rax + 8], r13d
test rbx, rbx
je 0x140042b73
cmp dword [rbx + 0x4020], 2
je 0x140042b73
mov dword [rcx + 0x6b8], r13d
nop word [rax + rax]
cmp dword [rbx + 0x4020], 0
jne 0x140042388
lea rdx, str.Establish_HTTP_proxy_tunnel_to__s:_d_n
mov r9d, r12d
mov r8, rdi
mov rcx, r14
call fcn.140028130
mov rcx, qword [r14 + 0x1c8]
call qword [fcn.140051120]
mov qword [r14 + 0x1c8], r13
call fcn.140038790
mov qword [rsp + 0x48], rax
test rax, rax
je 0x1400429e9
lea rcx, str._s:_d
mov r8d, r12d
mov rdx, rdi
call fcn.140033070
mov rsi, rax
test rax, rax
je 0x1400429df
lea rdx, str.CONNECT
mov r9d, 1
mov r8, rax
mov rcx, r15
call fcn.140038240
mov rcx, rsi
mov edi, eax
call qword [fcn.140051120]
test edi, edi
jne 0x140042360
cmp dword [r15 + 0x3dc], 1
mov rdi, qword [rsp + 0xd0]
mov ecx, dword [r15 + 0x690]
mov rbp, r13
lea rax, [0x14006bed8]
lea r13, [0x14006bedc]
lea rsi, [0x140068da9]
cmove r13, rax
mov r12, rsi
cmp rdi, qword [r15 + 0x340]
je 0x1400421c6
mov edx, 0x3a
mov rcx, rdi
call fcn.140052290
xor ecx, ecx
test rax, rax
setne cl
test ecx, ecx
lea rax, [0x1400694e8]
mov r9, rsi
cmovne r9, rax
lea rax, [0x1400694e4]
mov rdx, rsi
cmovne rdx, rax
mov eax, dword [rsp + 0xd8]
lea rcx, str._s_s_s:_d
mov r8, rdi
mov dword [rsp + 0x20], eax
call fcn.140033070
mov rsi, rax
test rax, rax
je 0x1400429df
lea rdx, str.Host
mov rcx, r15
call fcn.140037b40
test rax, rax
jne 0x140042239
lea rcx, str.Host:__s_r_n
mov rdx, rsi
call fcn.140033070
mov rbp, rax
test rax, rax
je 0x1400429d6
lea rdx, str.Proxy_Connection
mov rcx, r15
call fcn.140037b40
lea rdi, str.Proxy_Connection:_Keep_Alive_r_n
lea rdx, str.User_Agent
test rax, rax
lea rax, [0x140068da9]
mov rcx, r15
cmovne rdi, rax
call fcn.140037b40
test rax, rax
jne 0x140042281
cmp qword [r14 + 0xd48], rax
je 0x140042281
mov r12, qword [r15 + 0x740]
mov rax, qword [r15 + 0x738]
lea rdx, [0x140068da9]
mov qword [rsp + 0x38], rdi
test rax, rax
mov rcx, rdx
mov qword [rsp + 0x30], r12
cmovne rcx, rax
mov rax, rdx
test rbp, rbp
mov qword [rsp + 0x28], rcx
cmovne rax, rbp
lea rcx, [rsp + 0x48]
lea rdx, str.CONNECT__s_HTTP__s_r_n_s_s_s_s
mov r9, r13
mov r8, rsi
mov qword [rsp + 0x20], rax
call fcn.1400394a0
mov edi, eax
test rbp, rbp
je 0x1400422de
mov rcx, rbp
call qword [fcn.140051120]
mov rcx, rsi
call qword [fcn.140051120]
test edi, edi
jne 0x14004233e
mov r8, qword [rsp + 0x48]
lea edx, [rdi + 1]
mov rcx, r15
call fcn.1400397e0
mov edi, eax
test eax, eax
jne 0x14004233e
lea rdx, [0x140069fa0]
lea rcx, [rsp + 0x48]
call fcn.1400394a0
mov ebp, dword [rsp + 0xc8]
mov edi, eax
test eax, eax
jne 0x140042345
lea r8, [r14 + 0x16f8]
lea rcx, [rsp + 0x48]
xor r9d, r9d
mov rdx, r15
mov dword [rsp + 0x20], ebp
call fcn.1400387e0
mov edi, eax
jmp 0x140042345
mov ebp, dword [rsp + 0xc8]
xor r13d, r13d
mov qword [rsp + 0x48], r13
test edi, edi
je 0x140042360
lea rdx, str.Failed_sending_CONNECT_to_proxy
mov rcx, r14
call fcn.140028290
lea rcx, [rsp + 0x48]
call fcn.1400387a0
test edi, edi
jne 0x1400429f3
mov rsi, qword [rsp + 0x50]
mov dword [rbx + 0x4020], 1
mov dword [rbx + 0x4000], r13d
xor edx, edx
mov rcx, r14
lea r8d, [rdx + 1]
call fcn.14002e5f0
test rax, rax
jle 0x140042b86
mov edx, ebp
mov rcx, r15
call fcn.14002f620
test eax, eax
je 0x140042b73
cmp dword [rbx + 0x4004], 0
mov r12d, r13d
je 0x1400428fa
lea rbp, [rbx + 0x4000]
nop dword [rax + rax]
mov r8, qword [rbx + 0x4010]
cmp r8, rbp
jae 0x140042a0b
lea rax, [rsp + 0x58]
mov r9d, 1
mov rdx, rsi
mov rcx, r15
mov qword [rsp + 0x20], rax
call fcn.140027fe0
mov edi, eax
cmp eax, 0x51
je 0x140042b73
mov rcx, r15
call fcn.140036fa0
test eax, eax
jne 0x140042a01
test edi, edi
jne 0x1400428ec
cmp qword [rsp + 0x58], 0
jle 0x1400428a7
cmp dword [rbx + 0x4004], 1
jle 0x1400424b1
mov rax, qword [rbx + 0x4018]
mov qword [rbx + 0x4010], rbx
test rax, rax
je 0x140042468
dec rax
mov qword [rbx + 0x4018], rax
test rax, rax
jg 0x140042898
mov dword [rbx + 0x4020], 2
jmp 0x1400428ec
lea rax, [rsp + 0x40]
lea r9, [rsp + 0x68]
mov r8d, 1
mov rdx, rbx
mov rcx, r15
mov qword [rsp + 0x68], r13
mov qword [rsp + 0x20], rax
call fcn.1400486e0
cmp eax, 0xffffffff
jne 0x140042898
lea rdx, str.chunk_reading_DONE_n
mov rcx, r14
call fcn.140028130
mov dword [rbx + 0x4004], r13d
jmp 0x14004288e
mov rax, qword [rbx + 0x4010]
inc dword [rbp]
cmp byte [rax], 0xa
je 0x1400424cf
inc rax
mov qword [rbx + 0x4010], rax
jmp 0x140042898
cmp dword [r14 + 0xfa4], 0
je 0x1400424f1
movsxd r9, dword [rbp]
mov r8, qword [rbx + 0x4008]
mov edx, 1
mov rcx, r14
call fcn.140028070
cmp dword [r14 + 0xff4], 0
jne 0x14004252b
cmp dword [r14 + 0xf90], 0
movsxd r9, dword [rbp]
mov r8, qword [rbx + 0x4008]
mov edx, 2
mov eax, 3
mov rcx, r15
cmovne edx, eax
call fcn.1400286b0
test eax, eax
jne 0x140042b75
movsxd rax, dword [rbp]
add qword [r14 + 0x16f0], rax
movsxd rax, dword [rbp]
add qword [r14 + 0x108], rax
mov rcx, qword [rbx + 0x4008]
movzx eax, byte [rcx]
cmp al, 0xd
je 0x1400427af
cmp al, 0xa
je 0x1400427af
movsxd rax, dword [rbp]
mov r8d, shutdown
mov byte [rax + rcx], 0
mov rdx, qword [rbx + 0x4008]
lea rcx, str.WWW_Authenticate:
call fcn.140030e00
test eax, eax
je 0x14004258e
mov eax, dword [r14 + 0x178]
cmp eax, 0x191
je 0x1400425b9
mov rdx, qword [rbx + 0x4008]
lea rcx, str.Proxy_authenticate:
mov r8d, reloc.WS2_32.dll_send
call fcn.140030e00
test eax, eax
je 0x140042607
mov eax, dword [r14 + 0x178]
cmp eax, 0x197
jne 0x140042607
mov rcx, qword [rbx + 0x4008]
cmp eax, 0x197
mov esi, r13d
sete sil
call fcn.140037bd0
mov rdi, rax
test rax, rax
je 0x1400429e9
mov r8, rax
mov edx, esi
mov rcx, r15
call fcn.140038390
mov rcx, rdi
mov esi, eax
call qword [fcn.140051120]
test esi, esi
jne 0x1400429fa
mov rsi, qword [rsp + 0x50]
jmp 0x140042798
mov rdx, qword [rbx + 0x4008]
lea rcx, str.Content_Length:
mov r8d, reloc.WS2_32.dll_ntohs
call fcn.140030e00
test eax, eax
je 0x140042678
mov r8d, dword [r14 + 0x178]
mov eax, 0x51eb851f
imul r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 2
jne 0x140042656
lea rdx, str.Ignoring_Content_Length_in_CONNECT__03d_response_n
mov rcx, r14
call fcn.140028130
jmp 0x140042798
mov rcx, qword [rbx + 0x4008]
xor edx, edx
lea r9, [rbx + 0x4018]
lea r8d, [rdx + 0xa]
add rcx, 0xf
call fcn.1400476e0
jmp 0x140042798
mov rcx, qword [rbx + 0x4008]
lea r8, str.close
lea rdx, str.Connection:
call fcn.140038b30
test eax, eax
je 0x1400426a5
mov dword [rbx + 0x4028], 1
jmp 0x140042798
mov rdx, qword [rbx + 0x4008]
lea rcx, str.Transfer_Encoding:
mov r8d, reloc.WS2_32.dll_select
call fcn.140030e00
test eax, eax
je 0x140042739
mov r8d, dword [r14 + 0x178]
mov eax, 0x51eb851f
imul r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 2
jne 0x1400426f4
lea rdx, str.Ignoring_Transfer_Encoding_in_CONNECT__03d_response_n
mov rcx, r14
call fcn.140028130
jmp 0x140042798
mov rcx, qword [rbx + 0x4008]
lea r8, str.chunked
lea rdx, str.Transfer_Encoding:
call fcn.140038b30
test eax, eax
je 0x140042798
lea rdx, str.CONNECT_responded_chunked_n
mov rcx, r14
call fcn.140028130
mov rcx, r15
mov dword [rbx + 0x4024], 1
call fcn.1400486c0
jmp 0x140042798
mov rcx, qword [rbx + 0x4008]
lea r8, str.close
lea rdx, str.Proxy_Connection:
call fcn.140038b30
test eax, eax
je 0x140042763
mov dword [rbx + 0x4028], 1
jmp 0x140042798
mov rcx, qword [rbx + 0x4008]
lea r9, [r14 + 0x178]
lea r8, [rsp + 0xc0]
lea rdx, str.HTTP_1._d__d
call fcn.140052af0
cmp eax, 2
jne 0x140042798
mov eax, dword [r14 + 0x178]
mov dword [r14 + 0x16dc], eax
mov dword [rbp], r13d
mov qword [rbx + 0x4010], rbx
mov qword [rbx + 0x4008], rbx
jmp 0x140042898
mov qword [rbx + 0x4010], rbx
cmp dword [r14 + 0x178], 0x197
jne 0x14004287d
cmp dword [r14 + 0x16a8], 0
jne 0x14004287d
mov r8, qword [rbx + 0x4018]
mov dword [rbx + 0x4004], 2
test r8, r8
je 0x1400427ff
lea rdx, str.Ignore__I64d_bytes_of_response_body_n
mov rcx, r14
call fcn.140028130
jmp 0x140042884
cmp dword [rbx + 0x4024], 0
je 0x14004287d
lea rdx, str.Ignore_chunked_response_body_n
mov rcx, r14
call fcn.140028130
mov dword [r14 + 0x664], 1
mov rax, qword [rbx + 0x4008]
inc rax
cmp byte [rax], 0xa
jne 0x140042838
mov qword [rbx + 0x4008], rax
mov rdx, qword [rbx + 0x4008]
lea rax, [rsp + 0x44]
lea r9, [rsp + 0x58]
mov r8d, 1
mov rcx, r15
inc rdx
mov qword [rsp + 0x20], rax
call fcn.1400486e0
cmp eax, 0xffffffff
jne 0x140042884
lea rdx, str.chunk_reading_DONE_n
mov rcx, r14
call fcn.140028130
mov dword [rbx + 0x4020], 2
mov dword [rbx + 0x4004], r13d
cmp qword [rbx + 0x4018], 0
jne 0x140042898
mov dword [rbx + 0x4020], 2
cmp dword [rbx + 0x4004], 0
jne 0x1400423d0
jmp 0x1400428f3
cmp dword [r14 + 0x6c8], 0
je 0x1400428d7
cmp dword [r14 + 0x1318], 0
je 0x1400428d7
lea rdx, str.Proxy_CONNECT_connection_closed_n
mov rcx, r14
mov dword [r15 + 0x6b8], 1
call fcn.140028130
jmp 0x1400428ec
lea rdx, str.Proxy_CONNECT_aborted
mov rcx, r14
mov r12d, 1
call fcn.140028290
mov dword [rbx + 0x4004], r13d
mov ebp, dword [rsp + 0xc8]
mov rcx, r15
call fcn.140036fa0
test eax, eax
jne 0x140042a01
test r12d, r12d
jne 0x140042a1a
mov eax, 0x51eb851f
imul dword [r14 + 0x16dc]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 2
je 0x140042951
mov rcx, r15
call fcn.140039250
test eax, eax
jne 0x140042b75
cmp dword [r15 + 0x668], eax
je 0x140042951
mov dword [rbx + 0x4028], 1
cmp dword [rbx + 0x4028], 0
je 0x140042968
cmp qword [r14 + 0x1c8], 0
jne 0x140042a24
cmp qword [r14 + 0x1c8], 0
je 0x140042a47
cmp dword [rbx + 0x4020], 2
jne 0x1400429b3
mov rax, qword [r15 + 0xb80]
mov dword [rax + 0x4020], r13d
mov dword [rax + 0x4004], 1
mov qword [rax + 0x4008], rax
mov qword [rax + 0x4010], rax
mov qword [rax + 0x4018], r13
mov dword [rax + 0x4028], r13d
cmp qword [r14 + 0x1c8], 0
je 0x140042a47
mov rdi, qword [rsp + 0xd0]
mov r12d, dword [rsp + 0xd8]
jmp 0x1400420e0
mov rcx, rsi
call qword [fcn.140051120]
lea rcx, [rsp + 0x48]
call fcn.1400387a0
mov eax, 0x1b
jmp 0x140042b75
mov eax, edi
jmp 0x140042b75
mov eax, esi
jmp 0x140042b75
mov eax, 0x2a
jmp 0x140042b75
lea rdx, str.CONNECT_response_too_large_
mov rcx, r14
call fcn.140028290
mov eax, gethostname
jmp 0x140042b75
mov rdi, qword [rsp + 0x60]
mov rcx, r15
mov rdx, qword [r15 + rdi*8 + 0x4c0]
call fcn.14002f400
mov qword [r15 + rdi*8 + 0x4c0], 0xffffffffffffffff
jmp 0x140042a4c
mov rdi, qword [rsp + 0x60]
mov eax, 0x51eb851f
imul dword [r14 + 0x16dc]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 2
je 0x140042b26
cmp dword [rbx + 0x4028], 0
je 0x140042abb
cmp qword [r14 + 0x1c8], 0
je 0x140042abb
lea rdx, str.Connect_me_again_please_n
mov rcx, r14
mov dword [r15 + 0x6b8], 1
call fcn.140028130
mov r11, qword [r15 + 0xb80]
lea rdx, str.CONNECT_phase_completed__n
mov dword [r11 + 0x4020], 2
mov rcx, qword [r15]
call fcn.140028130
jmp 0x140042af8
mov rcx, qword [r14 + 0x1c8]
call qword [fcn.140051120]
mov edx, 2
mov rcx, r15
mov qword [r14 + 0x1c8], r13
call fcn.14002f5c0
mov rdx, qword [r15 + rdi*8 + 0x4c0]
mov rcx, r15
call fcn.14002f400
mov qword [r15 + rdi*8 + 0x4c0], 0xffffffffffffffff
mov dword [rbx + 0x4020], r13d
cmp dword [r15 + 0x6b8], 0
jne 0x140042b73
mov r8d, dword [r14 + 0x178]
lea rdx, str.Received_HTTP_code__d_from_proxy_after_CONNECT
mov rcx, r14
call fcn.140028290
mov eax, gethostname
jmp 0x140042b75
mov dword [rbx + 0x4020], 2
mov rcx, qword [r15 + 0x738]
call qword [fcn.140051120]
mov qword [r15 + 0x738], r13
mov r8d, dword [r14 + 0x16dc]
lea rdx, str.Proxy_replied__d_to_CONNECT_request_n
mov rcx, r14
mov qword [r14 + 0x131c], 1
call fcn.140028130
mov dword [r14 + 0x664], r13d
mov dword [r15 + 0x6ac], r13d
xor eax, eax
add rsp, 0x78
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, r14
call fcn.140028290
mov eax, 0x1c
jmp 0x140042b75