Function at 0x1400426a0
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, 0x98
mov r13, qword [rcx]
movsxd rax, edx
xor ebx, ebx
mov rdi, qword [rcx + rax*8 + 0x1a8]
xor r12d, r12d
cmp dword [rcx + rax*4 + 0x7f8], 2
mov r15d, r9d
mov rsi, r8
mov r14, rcx
mov qword [rsp + 0x70], rdi
mov dword [rsp + 0x80], 0
mov rbp, rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], r12
mov dword [rsp + 0x50], ebx
mov dword [rsp + 0x68], ebx
mov dword [rsp + 0x54], ebx
je 0x140043146
mov dword [rcx + 0x3c0], ebx
nop word [rax + rax]
cmp dword [r14 + rbp*4 + 0x7f8], 0
jne 0x140042967
lea rdx, str.Establish_HTTP_proxy_tunnel_to__s:_hu_n
mov r9d, r15d
mov r8, rsi
mov rcx, r13
call fcn.140023120
mov rcx, qword [r13 + 0x180]
call qword [case.0x1400292fb.0]
mov qword [r13 + 0x180], rbx
call fcn.14003d8c0
mov rdi, rax
test rax, rax
je 0x140043011
lea rcx, str._s:_hu
mov r8d, r15d
mov rdx, rsi
call sym.apple.exe_curl_maprintf
mov rsi, rax
test rax, rax
je 0x140043009
lea rdx, str.CONNECT
mov r9d, 1
mov r8, rax
mov rcx, r14
call fcn.14003d3e0
mov rcx, rsi
mov ebx, eax
call qword [case.0x1400292fb.0]
test ebx, ebx
jne 0x140042944
cmp dword [r14 + 0x188], 1
mov r8, qword [rsp + 0xf0]
lea rax, [0x1400779c0]
lea rcx, [0x140071c5c]
lea r12, [0x1400779c4]
lea r9, [0x14007fc66]
cmove r12, rax
mov eax, dword [r14 + 0x384]
lea rdx, [0x14007fc66]
test eax, eax
lea rax, [0x140071c58]
lea rsi, [0x14007fc66]
cmovne r9, rcx
lea rcx, str._s_s_s:_hu
cmovne rdx, rax
lea rbx, [0x14007fc66]
mov dword [rsp + 0x20], r15d
call sym.apple.exe_curl_maprintf
mov rbp, rax
test rax, rax
je 0x140043009
lea rdx, str.Host:
mov rcx, r14
call fcn.14003cd70
test rax, rax
jne 0x14004285b
lea rcx, str.Host:__s_r_n
mov rdx, rbp
call sym.apple.exe_curl_maprintf
mov rsi, rax
test rax, rax
je 0x140043000
lea rdx, str.User_Agent:
mov rcx, r14
call fcn.14003cd70
test rax, rax
jne 0x14004287f
cmp qword [r13 + 0x5d8], rax
je 0x14004287f
mov rbx, qword [r14 + 0x410]
mov rax, qword [r14 + 0x408]
mov qword [rsp + 0x30], rbx
lea rcx, [0x14007fc66]
test rax, rax
lea rdx, str.CONNECT__s_HTTP__s_r_n_s_s_s
mov r9, r12
cmovne rcx, rax
mov r8, rbp
mov qword [rsp + 0x28], rcx
mov rcx, rdi
mov qword [rsp + 0x20], rsi
call fcn.14003e400
mov ebx, eax
test rsi, rsi
je 0x1400428cd
cmp byte [rsi], 0
je 0x1400428cd
mov rcx, rsi
call qword [case.0x1400292fb.0]
mov rcx, rbp
call qword [case.0x1400292fb.0]
test ebx, ebx
jne 0x140042925
lea edx, [rbx + 1]
mov r8, rdi
mov rcx, r14
call fcn.14003e5d0
mov ebx, eax
test eax, eax
jne 0x140042925
lea rdx, [0x1400721e0]
mov rcx, rdi
call fcn.14003e400
mov ebx, eax
test eax, eax
jne 0x140042925
mov eax, dword [rsp + 0xe8]
lea r8, [r13 + 0x8b28]
xor r9d, r9d
mov rdx, r14
mov rcx, rdi
mov dword [rsp + 0x20], eax
call fcn.14003d900
mov ebx, eax
xor edi, edi
test ebx, ebx
je 0x14004293a
lea rdx, str.Failed_sending_CONNECT_to_proxy
mov rcx, r13
call fcn.1400231d0
mov rbp, qword [rsp + 0x40]
mov r12, qword [rsp + 0x48]
mov rcx, rdi
call fcn.14003d8d0
test ebx, ebx
jne 0x14004301b
mov rdi, qword [rsp + 0x70]
mov dword [r14 + rbp*4 + 0x7f8], 1
xor ebx, ebx
xor edx, edx
mov rcx, r13
lea r8d, [rdx + 1]
call fcn.140025e60
test eax, eax
jle 0x14004314a
cmp dword [rsp + 0x100], 0
jne 0x1400429a1
or r8, 0xffffffffffffffff
xor r9d, r9d
mov rcx, rdi
or rdx, r8
call fcn.140017800
test eax, eax
je 0x140043146
mov ebp, 1
lea r15, [r13 + 0x878]
lea rsi, [r13 + 0x878]
mov qword [rsp + 0x60], rbx
xor edi, edi
mov dword [rsp + 0xe0], ebp
test ebp, ebp
je 0x140042f47
cmp dword [rsp + 0x54], 0
jne 0x140043159
xor edx, edx
mov rcx, r13
lea r8d, [rdx + 1]
call fcn.140025e60
test eax, eax
jle 0x14004314a
mov rcx, qword [rsp + 0x70]
mov r9d, 0x3e8
cmp eax, r9d
cmovl r9d, eax
or r8, 0xffffffffffffffff
or rdx, r8
call fcn.140017800
cmp eax, 0xffffffff
je 0x140042f0c
test eax, eax
je 0x140042f23
mov rdx, qword [rsp + 0x70]
lea rax, [rsp + 0x58]
mov r9d, 0x4000
sub r9, qword [rsp + 0x60]
mov r8, r15
mov rcx, r14
mov qword [rsp + 0x20], rax
call fcn.140022db0
cmp eax, 0x51
je 0x140042f33
test eax, eax
je 0x140042a5a
xor ebp, ebp
mov dword [rsp + 0xe0], ebp
jmp 0x140042f23
mov rcx, qword [rsp + 0x58]
test rcx, rcx
jg 0x140042aaa
xor ebp, ebp
mov dword [rsp + 0xe0], ebp
cmp dword [r13 + 0x1f8], ebp
je 0x140042a9e
cmp dword [r13 + 0x89f8], ebp
je 0x140042a9e
lea rdx, str.Proxy_CONNECT_connection_closed_n
mov rcx, r13
mov dword [r14 + 0x3c0], 1
call fcn.140023120
jmp 0x140042f23
lea rdx, str.Proxy_CONNECT_aborted
jmp 0x140042f13
add qword [rsp + 0x60], rcx
cmp ebp, 1
jle 0x140042b3e
xor edx, edx
lea r15, [r13 + 0x878]
mov qword [rsp + 0x60], rdx
test r12, r12
je 0x140042aea
sub r12, rcx
mov qword [rsp + 0x48], r12
test r12, r12
jg 0x140042f23
mov ebp, edx
mov dword [rsp + 0xe0], edx
jmp 0x140042f23
mov qword [rsp + 0x78], rdx
mov r8, rcx
lea r9, [rsp + 0x78]
lea rdx, [r13 + 0x878]
mov rcx, r14
call fcn.14004cc60
mov rcx, r13
cmp eax, 0xffffffff
jne 0x140042b28
lea rdx, str.chunk_reading_DONE_n
call fcn.140023120
xor ebp, ebp
mov dword [rsp + 0xe0], ebp
jmp 0x140042ef9
mov r8, qword [rsp + 0x78]
lea rdx, str.Read__zd_bytes_of_chunk__continue_n
call fcn.140023120
jmp 0x140042f23
xor r12d, r12d
test rcx, rcx
jle 0x140042f23
nop word [rax + rax]
inc rdi
inc ebx
cmp byte [r15], 0xa
mov qword [rsp + 0x78], rdi
jne 0x140042d6b
cmp dword [r13 + 0x4a4], 0
je 0x140042b86
movsxd r9, ebx
mov r8, rsi
mov edx, 1
mov rcx, r13
mov qword [rsp + 0x20], r14
call fcn.140022fc0
cmp dword [r13 + 0x488], 0
mov edx, 2
mov eax, 3
movsxd r9, ebx
mov r8, rsi
mov rcx, r14
cmovne edx, eax
call fcn.140023770
add dword [r13 + 0x8b24], ebx
add dword [r13 + 0xc0], ebx
test eax, eax
jne 0x14004315e
movzx eax, byte [rsi]
cmp al, 0xd
je 0x140042d89
cmp al, 0xa
je 0x140042d89
movzx ebp, byte [rdi + rsi]
lea rcx, str.WWW_Authenticate:
mov r8d, reloc.WS2_32.dll_recvfrom
mov rdx, rsi
mov byte [rdi + rsi], 0
call fcn.1400277a0
test eax, eax
je 0x140042c01
mov eax, dword [r13 + 0x128]
cmp eax, 0x191
je 0x140042c28
lea rcx, str.Proxy_authenticate:
mov r8d, reloc.WS2_32.dll_send
mov rdx, rsi
call fcn.1400277a0
test eax, eax
je 0x140042c71
mov eax, dword [r13 + 0x128]
cmp eax, 0x197
jne 0x140042c71
xor edi, edi
cmp eax, 0x197
mov rcx, rsi
sete dil
call fcn.14003ce00
mov rbx, rax
test rax, rax
je 0x140043011
mov r8, rax
mov edx, edi
mov rcx, r14
call fcn.14003d530
mov rcx, rbx
mov edi, eax
call qword [case.0x1400292fb.0]
test edi, edi
jne 0x140043022
mov rdi, qword [rsp + 0x78]
jmp 0x140042d5a
lea rcx, str.Content_Length:
mov r8d, reloc.WS2_32.dll_ntohs
mov rdx, rsi
call fcn.1400277a0
test eax, eax
je 0x140042ca3
xor edx, edx
lea rcx, [rsi + 0xf]
lea r8d, [rdx + 0xa]
call fcn.140055b40
mov qword [rsp + 0x48], rax
jmp 0x140042d5a
lea r8, str.close
lea rdx, str.Connection:
mov rcx, rsi
call fcn.14003dc10
test eax, eax
je 0x140042cca
mov dword [rsp + 0x50], 1
jmp 0x140042d5a
lea r8, str.chunked
lea rdx, str.Transfer_Encoding:
mov rcx, rsi
call fcn.14003dc10
test eax, eax
je 0x140042d05
lea rdx, str.CONNECT_responded_chunked_n
mov rcx, r13
call fcn.140023120
mov rcx, r14
mov dword [rsp + 0x68], 1
call fcn.14004cc50
jmp 0x140042d5a
lea r8, str.close
lea rdx, str.Proxy_Connection:
mov rcx, rsi
call fcn.14003dc10
test eax, eax
je 0x140042d29
mov dword [rsp + 0x50], 1
jmp 0x140042d5a
lea r9, [r13 + 0x128]
lea r8, [rsp + 0x80]
lea rdx, str.HTTP_1._d__d
mov rcx, rsi
call fcn.140055290
cmp eax, 2
jne 0x140042d5a
mov eax, dword [r13 + 0x128]
mov dword [r13 + 0x8b14], eax
mov rcx, qword [rsp + 0x58]
mov byte [rdi + rsi], bpl
xor ebx, ebx
xor edi, edi
lea rsi, [r15 + 1]
inc r12d
inc r15
movsxd rax, r12d
cmp rax, rcx
jl 0x140042b50
mov ebp, dword [rsp + 0xe0]
jmp 0x140042f23
cmp dword [r13 + 0x128], 0x197
mov qword [rsp + 0x60], 0
lea r15, [r13 + 0x878]
jne 0x140042ec2
cmp dword [r13 + 0x8a08], 0
jne 0x140042ec2
mov r8, qword [rsp + 0x48]
mov ebp, 2
mov dword [rsp + 0xe0], ebp
test r8, r8
je 0x140042e1a
lea rdx, str.Ignore__lld_bytes_of_response_body_n
mov rcx, r13
call fcn.140023120
mov rax, qword [rsp + 0x48]
movsxd r11, r12d
sub r11, qword [rsp + 0x58]
add rax, r11
mov qword [rsp + 0x48], rax
test rax, rax
mov rax, qword [rsp + 0x40]
jg 0x140042efe
xor ebp, ebp
mov dword [r14 + rax*4 + 0x7f8], 2
mov dword [rsp + 0xe0], ebp
jmp 0x140042f23
mov eax, dword [rsp + 0x68]
test eax, eax
je 0x140042b1a
mov r8, qword [rsp + 0x58]
movsxd rax, r12d
lea rdx, str._zd_bytes_of_chunk_left_n
mov rcx, r13
sub r8, rax
mov dword [r13 + 0x170], 1
call fcn.140023120
cmp byte [rsi + 1], 0xa
jne 0x140042e57
inc rsi
inc r12d
mov r8, qword [rsp + 0x58]
movsxd rax, r12d
lea rdx, [rsi + 1]
lea r9, [rsp + 0x58]
mov rcx, r14
sub r8, rax
call fcn.14004cc60
mov rcx, r13
cmp eax, 0xffffffff
jne 0x140042eaf
lea rdx, str.chunk_reading_DONE_n
call fcn.140023120
mov rax, qword [rsp + 0x40]
xor ebp, ebp
mov dword [r14 + rax*4 + 0x7f8], 2
mov dword [r14 + rax*4 + 0x7f8], 2
mov dword [rsp + 0xe0], ebp
jmp 0x140042f23
mov r8, qword [rsp + 0x58]
lea rdx, str.Read__zd_bytes_of_chunk__continue_n
call fcn.140023120
jmp 0x140042ef9
xor ebp, ebp
cmp dword [r13 + 0x8b14], 0xc8
mov dword [rsp + 0xe0], ebp
jne 0x140042ef9
mov r8, qword [rsp + 0x58]
lea eax, [r12 + 1]
movsxd rcx, eax
sub r8, rcx
je 0x140042ef9
lea rdx, str.Proxy_CONNECT_followed_by__zd_bytes_of_opaque_data._Data_ignored__known_bug_39_
mov rcx, r13
call fcn.1400231d0
mov rax, qword [rsp + 0x40]
mov dword [r14 + rax*4 + 0x7f8], 2
jmp 0x140042f23
lea rdx, str.Proxy_CONNECT_aborted_due_to_select_poll_error
mov rcx, r13
mov dword [rsp + 0x54], 1
call fcn.1400231d0
mov rcx, r14
call fcn.140029b40
test eax, eax
jne 0x140043029
cmp qword [rsp + 0x60], 0x4000
mov r12, qword [rsp + 0x48]
jb 0x1400429c2
cmp dword [rsp + 0x54], 0
jne 0x140043159
cmp dword [r13 + 0x8b14], 0xc8
je 0x140042f83
mov rcx, r14
call fcn.14003e200
test eax, eax
jne 0x14004315e
cmp dword [r14 + 0x36c], eax
je 0x140042f83
mov ebx, 1
mov dword [rsp + 0x50], ebx
jmp 0x140042f8b
mov ebx, dword [rsp + 0x50]
test ebx, ebx
je 0x140042f99
cmp qword [r13 + 0x180], 0
jne 0x140043033
cmp qword [r13 + 0x180], 0
mov rbp, qword [rsp + 0x40]
je 0x140043054
cmp dword [r14 + rbp*4 + 0x7f8], 2
jne 0x140042fd5
lea rdx, str.TUNNEL_STATE_switched_to:__d_n
xor r8d, r8d
mov rcx, r13
mov dword [r14 + rbp*4 + 0x7f8], 0
call fcn.140023120
cmp qword [r13 + 0x180], 0
je 0x140043054
mov r12, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x70]
mov r15d, dword [rsp + 0xf8]
mov rsi, qword [rsp + 0xf0]
xor ebx, ebx
jmp 0x140042720
mov rcx, rbp
call qword [case.0x1400292fb.0]
mov rcx, rdi
call fcn.14003d8d0
mov eax, 0x1b
jmp 0x14004315e
mov eax, ebx
jmp 0x14004315e
mov eax, edi
jmp 0x14004315e
mov eax, 0x2a
jmp 0x14004315e
mov rbp, qword [rsp + 0x40]
mov rcx, r14
mov rdx, qword [r14 + rbp*8 + 0x1a8]
call fcn.140026af0
mov qword [r14 + rbp*8 + 0x1a8], 0xffffffffffffffff
cmp dword [r13 + 0x128], 0xc8
je 0x1400430fc
test ebx, ebx
je 0x14004308f
cmp qword [r13 + 0x180], 0
je 0x14004308f
lea rdx, str.Connect_me_again_please_n
mov rcx, r13
mov dword [r14 + 0x3c0], 1
call fcn.140023120
jmp 0x1400430ce
mov rcx, qword [r13 + 0x180]
call qword [case.0x1400292fb.0]
mov qword [r13 + 0x180], 0
mov dword [r14 + 0x36c], 1
mov rdx, qword [r14 + rbp*8 + 0x1a8]
mov rcx, r14
call fcn.140026af0
mov qword [r14 + rbp*8 + 0x1a8], 0xffffffffffffffff
mov dword [r14 + rbp*4 + 0x7f8], 0
cmp dword [r14 + 0x3c0], 0
jne 0x140043146
mov r8d, dword [r13 + 0x128]
lea rdx, str.Received_HTTP_code__d_from_proxy_after_CONNECT
mov rcx, r13
call fcn.1400231d0
jmp 0x140043159
mov dword [r14 + rbp*4 + 0x7f8], 2
mov rcx, qword [r14 + 0x408]
call qword [case.0x1400292fb.0]
xor ebx, ebx
lea rdx, str.Proxy_replied_OK_to_CONNECT_request_n
mov qword [r14 + 0x408], rbx
mov rcx, r13
mov dword [r13 + 0x89fc], 1
call fcn.140023120
mov dword [r13 + 0x170], ebx
mov dword [r14 + 0x3a8], ebx
xor eax, eax
jmp 0x14004315e
lea rdx, str.Proxy_CONNECT_aborted_due_to_timeout
mov rcx, r13
call fcn.1400231d0
mov eax, gethostname
add rsp, 0x98
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret