Function at 0x1400b71c0
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, 0xa8
mov r13, qword [rcx]
mov r12, rcx
movsxd rax, edx
mov rdi, qword [r12 + rax*8 + 0x1a8]
add rcx, 0x1a8
xor r15d, r15d
lea rcx, [rcx + rax*8]
xor bl, bl
lea r14, [r12 + 0x768]
lea r14, [r14 + rax*4]
mov qword [rsp + 0x90], rcx
xor cl, cl
cmp dword [r14], 2
mov ebp, r9d
mov rsi, r8
mov dword [rsp + 0x80], 0
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x50], r15
mov byte [rsp + 0xf0], bl
mov byte [rsp + 0x40], cl
mov dword [rsp + 0x58], r15d
mov qword [rsp + 0x48], r14
je 0x1400b7cae
mov byte [r12 + 0x33e], cl
nop word [rax + rax]
cmp dword [r14], 0
jne 0x1400b74c0
lea rdx, [0x1400e67e0]
mov r9d, ebp
mov r8, rsi
mov rcx, r13
call fcn.1400a6300
mov rcx, qword [r13 + 0x178]
call qword [sub.msvcrt.dll_free]
mov qword [r13 + 0x178], 0
call fcn.1400adef0
mov rdi, rax
test rax, rax
je 0x1400b7b88
lea rcx, str._s:_hu
mov r8d, ebp
mov rdx, rsi
call fcn.1400b7ea0
mov rsi, rax
test rax, rax
je 0x1400b7b7f
lea rdx, str.CONNECT
mov r9b, 1
mov r8, rax
mov rcx, r12
call fcn.1400aec00
mov rcx, rsi
mov ebx, eax
call qword [sub.msvcrt.dll_free]
test ebx, ebx
jne 0x1400b74a3
cmp dword [r12 + 0x188], 1
mov r8, qword [rsp + 0x100]
lea rcx, [0x1400dcdc0]
lea rax, [0x1400e4c1c]
mov r9, rcx
lea rdx, [0x1400e38bc]
mov rsi, rcx
mov r14, rcx
lea r15, [0x1400e4c18]
cmove r15, rax
movzx eax, byte [r12 + 0x32e]
mov dword [rsp + 0x20], ebp
test al, al
lea rax, [0x1400e38c0]
cmovne r9, rdx
mov rdx, rcx
lea rcx, str._s_s_s:_hu
cmovne rdx, rax
call fcn.1400b7ea0
mov rbp, rax
test rax, rax
je 0x1400b7b7f
lea rdx, str.Host:
mov rcx, r12
call fcn.1400ae4c0
test rax, rax
jne 0x1400b7390
lea rcx, str.Host:__s_r_n
mov rdx, rbp
call fcn.1400b7ea0
mov rsi, rax
test rax, rax
je 0x1400b7b76
lea rdx, str.Proxy_Connection:
mov rcx, r12
call fcn.1400ae4c0
lea rbx, str.Proxy_Connection:_Keep_Alive_r_n
lea rdx, str.User_Agent:
test rax, rax
lea rax, [0x1400dcdc0]
mov rcx, r12
cmovne rbx, rax
call fcn.1400ae4c0
test rax, rax
jne 0x1400b73d9
cmp qword [r13 + 0x540], rax
je 0x1400b73d9
mov r14, qword [r12 + 0x388]
mov rax, qword [r12 + 0x380]
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], r14
test rax, rax
lea rcx, [0x1400dcdc0]
lea rdx, str.CONNECT__s_HTTP__s_r_n_s_s_s_s
cmovne rcx, rax
mov r9, r15
mov r8, rbp
mov qword [rsp + 0x28], rcx
mov rcx, rdi
mov qword [rsp + 0x20], rsi
call fcn.1400ae0d0
mov ebx, eax
test rsi, rsi
je 0x1400b742d
cmp byte [rsi], 0
je 0x1400b742d
mov rcx, rsi
call qword [sub.msvcrt.dll_free]
mov rcx, rbp
call qword [sub.msvcrt.dll_free]
test ebx, ebx
jne 0x1400b7484
mov r8, rdi
mov dl, 1
mov rcx, r12
call fcn.1400ae150
mov ebx, eax
test eax, eax
jne 0x1400b7484
lea rdx, [0x1400e367c]
mov rcx, rdi
call fcn.1400ae0d0
mov ebx, eax
test eax, eax
jne 0x1400b7484
mov eax, dword [rsp + 0xf8]
lea r8, [r13 + 0x8a20]
xor r9d, r9d
mov rdx, r12
mov rcx, rdi
mov dword [rsp + 0x20], eax
call fcn.1400adf00
mov ebx, eax
xor edi, edi
test ebx, ebx
je 0x1400b7499
lea rdx, str.Failed_sending_CONNECT_to_proxy
mov rcx, r13
call fcn.1400a61d0
mov r14, qword [rsp + 0x48]
mov r15, qword [rsp + 0x50]
mov rcx, rdi
call qword [sub.msvcrt.dll_free]
test ebx, ebx
jne 0x1400b7b92
mov rdi, qword [rsp + 0x70]
mov dword [r14], 1
mov r8b, 1
xor edx, edx
mov rcx, r13
call fcn.1400aa2c0
test eax, eax
jle 0x1400b7cb2
or r8, 0xffffffffffffffff
xor r9d, r9d
mov rcx, rdi
or rdx, r8
call fcn.1400ac020
test eax, eax
je 0x1400b7cae
lea rax, [r13 + 0x7b0]
mov r14d, 1
xor ebx, ebx
mov qword [rsp + 0x68], 0
xor esi, esi
mov rbp, rax
mov qword [rsp + 0x78], rax
mov rdi, rax
mov dword [rsp + 0x44], r14d
nop dword [rax]
test r14d, r14d
je 0x1400b7ac5
cmp dword [rsp + 0x58], 0
jne 0x1400b7cc1
mov r8b, 1
xor edx, edx
mov rcx, r13
call fcn.1400aa2c0
test eax, eax
jle 0x1400b7cb2
mov rcx, qword [rsp + 0x70]
mov r9d, 0x3e8
cmp eax, r9d
cmovl r9d, eax
or r8, 0xffffffffffffffff
or rdx, r8
call fcn.1400ac020
cmp eax, 0xffffffff
je 0x1400b7a8a
test eax, eax
je 0x1400b7aa1
mov rdx, qword [rsp + 0x70]
lea rax, [rsp + 0x60]
mov r9d, 0x4000
sub r9, qword [rsp + 0x68]
mov r8, rbp
mov rcx, r12
mov qword [rsp + 0x20], rax
call fcn.1400a63e0
cmp eax, 0x51
je 0x1400b7ab1
test eax, eax
je 0x1400b75b7
xor r14d, r14d
mov dword [rsp + 0x44], r14d
jmp 0x1400b7aa1
mov rcx, qword [rsp + 0x60]
test rcx, rcx
jg 0x1400b7604
xor r14d, r14d
mov dword [rsp + 0x44], r14d
cmp dword [r13 + 0x1e8], r14d
je 0x1400b75f8
cmp dword [r13 + 0x8928], r14d
je 0x1400b75f8
lea rdx, str.Proxy_CONNECT_connection_closed
mov rcx, r13
mov byte [r12 + 0x33e], 1
call fcn.1400a6300
jmp 0x1400b7aa1
lea rdx, str.Proxy_CONNECT_aborted
jmp 0x1400b7a91
add qword [rsp + 0x68], rcx
cmp r14d, 1
jle 0x1400b76ae
lea rax, [r13 + 0x7b0]
xor edx, edx
mov rbp, rax
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x68], rdx
test r15, r15
je 0x1400b764b
sub r15, rcx
mov qword [rsp + 0x50], r15
test r15, r15
jg 0x1400b7aa1
mov r14d, edx
mov dword [rsp + 0x44], edx
jmp 0x1400b7aa1
mov qword [rsp + 0x88], rdx
mov r8, rcx
lea r9, [rsp + 0x88]
mov rdx, rax
mov rcx, r12
call fcn.1400c16c0
mov rcx, r13
cmp eax, 0xffffffff
jne 0x1400b7695
lea rdx, str.chunk_reading_DONE_n
call fcn.1400a6300
mov rax, qword [rsp + 0x48]
xor r14d, r14d
mov dword [rax], 2
mov dword [rsp + 0x44], r14d
jmp 0x1400b7aa1
mov r8, qword [rsp + 0x88]
lea rdx, str.Read__zd_bytes_of_chunk__continue_n
call fcn.1400a6300
jmp 0x1400b7aa1
xor r15d, r15d
test rcx, rcx
jle 0x1400b7aa1
nop word [rax + rax]
inc ebx
inc rsi
cmp byte [rbp], 0xa
jne 0x1400b78da
cmp byte [r13 + 0x448], 0
je 0x1400b76f1
movsxd r9, ebx
mov r8, rdi
mov edx, 1
mov rcx, r13
mov qword [rsp + 0x20], r12
call fcn.1400a6070
cmp byte [r13 + 0x43c], 0
mov edx, 2
mov eax, 3
movsxd r9, ebx
mov r8, rdi
mov rcx, r12
cmovne edx, eax
call fcn.1400a6050
add dword [r13 + 0x8a1c], ebx
add dword [r13 + 0xc0], ebx
test eax, eax
jne 0x1400b7cc6
movzx eax, byte [rdi]
cmp al, 0xd
je 0x1400b78fb
cmp al, 0xa
je 0x1400b78fb
movzx ebp, byte [rsi + rdi]
lea r14, [rsi + rdi]
lea rcx, str.WWW_Authenticate:
mov r8d, 0x11
mov rdx, rdi
mov byte [r14], 0
call fcn.1400b2ce0
test eax, eax
je 0x1400b7770
mov eax, dword [r13 + 0x128]
cmp eax, 0x191
je 0x1400b7797
lea rcx, str.Proxy_authenticate:
mov r8d, 0x13
mov rdx, rdi
call fcn.1400b2ce0
test eax, eax
je 0x1400b77dd
mov eax, dword [r13 + 0x128]
cmp eax, 0x197
jne 0x1400b77dd
cmp eax, 0x197
mov rcx, rdi
sete sil
call fcn.1400ae6b0
mov rbx, rax
test rax, rax
je 0x1400b7b88
mov r8, rax
movzx edx, sil
mov rcx, r12
call fcn.1400ae9b0
mov rcx, rbx
mov edi, eax
call qword [sub.msvcrt.dll_free]
test edi, edi
je 0x1400b78c5
mov eax, edi
jmp 0x1400b7cc6
lea rcx, str.Content_Length:
mov r8d, 0xf
mov rdx, rdi
call fcn.1400b2ce0
test eax, eax
je 0x1400b7810
xor edx, edx
lea rcx, [rdi + 0xf]
lea r8d, [rdx + 0xa]
call qword [sym.imp.msvcrt.dll__strtoi64]
mov qword [rsp + 0x50], rax
jmp 0x1400b78c5
lea r8, str.close
lea rdx, str.Connection:
mov rcx, rdi
call fcn.1400ae5c0
test al, al
je 0x1400b7837
mov byte [rsp + 0xf0], 1
jmp 0x1400b78c5
lea r8, str.chunked
lea rdx, str.Transfer_Encoding:
mov rcx, rdi
call fcn.1400ae5c0
test al, al
je 0x1400b786f
lea rdx, str.CONNECT_responded_chunked_n
mov rcx, r13
call fcn.1400a6300
mov rcx, r12
mov byte [rsp + 0x40], 1
call fcn.1400c16b0
jmp 0x1400b78c5
lea r8, str.close
lea rdx, str.Proxy_Connection:
mov rcx, rdi
call fcn.1400ae5c0
test al, al
je 0x1400b7893
mov byte [rsp + 0xf0], 1
jmp 0x1400b78c5
lea r9, [r13 + 0x128]
lea r8, [rsp + 0x80]
lea rdx, str.HTTP_1._d__d
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_sscanf]
cmp eax, 2
jne 0x1400b78c5
mov eax, dword [r13 + 0x128]
mov dword [r13 + 0x8a0c], eax
mov rcx, qword [rsp + 0x60]
mov byte [r14], bpl
mov rbp, qword [rsp + 0x78]
xor ebx, ebx
xor esi, esi
lea rdi, [rbp + 1]
inc r15d
inc rbp
movsxd rax, r15d
mov qword [rsp + 0x78], rbp
cmp rax, rcx
jl 0x1400b76c0
mov r14d, dword [rsp + 0x44]
jmp 0x1400b7aa1
cmp dword [r13 + 0x128], 0x197
lea rax, [r13 + 0x7b0]
mov qword [rsp + 0x68], 0
mov rbp, rax
mov qword [rsp + 0x78], rax
jne 0x1400b7a48
cmp byte [r13 + 0x8930], 0
jne 0x1400b7a48
mov r8, qword [rsp + 0x50]
mov r14d, 2
mov dword [rsp + 0x44], r14d
test r8, r8
je 0x1400b798c
lea rdx, str.Ignore__ld_bytes_of_response_body_n
mov rcx, r13
call fcn.1400a6300
mov rcx, qword [rsp + 0x50]
movsxd rax, r15d
sub rax, qword [rsp + 0x60]
add rcx, rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rcx
test rcx, rcx
jg 0x1400b7a82
xor r14d, r14d
mov dword [rax], 2
mov dword [rsp + 0x44], r14d
jmp 0x1400b7aa1
movzx ecx, byte [rsp + 0x40]
test cl, cl
je 0x1400b7a33
mov r8, qword [rsp + 0x60]
movsxd rax, r15d
lea rdx, str._zd_bytes_of_chunk_left_n
mov rcx, r13
sub r8, rax
mov byte [r13 + 0x16d], 1
call fcn.1400a6300
cmp byte [rdi + 1], 0xa
jne 0x1400b79c7
inc rdi
inc r15d
mov r8, qword [rsp + 0x60]
movsxd rax, r15d
lea rdx, [rdi + 1]
lea r9, [rsp + 0x60]
mov rcx, r12
sub r8, rax
call fcn.1400c16c0
mov rcx, r13
cmp eax, 0xffffffff
jne 0x1400b7a15
lea rdx, str.chunk_reading_DONE_n
call fcn.1400a6300
mov rax, qword [rsp + 0x48]
xor r14d, r14d
mov dword [rax], 2
mov dword [rax], 2
mov dword [rsp + 0x44], r14d
jmp 0x1400b7aa1
mov r8, qword [rsp + 0x60]
lea rdx, str.Read__zd_bytes_of_chunk__continue_n
call fcn.1400a6300
mov rax, qword [rsp + 0x48]
mov dword [rax], 2
jmp 0x1400b7aa1
mov rax, qword [rsp + 0x48]
xor r14d, r14d
mov dword [rax], 2
mov dword [rsp + 0x44], r14d
jmp 0x1400b7aa1
xor r14d, r14d
cmp dword [r13 + 0x8a0c], 0xc8
mov dword [rsp + 0x44], r14d
jne 0x1400b7a7d
mov r8, qword [rsp + 0x60]
lea eax, [r15 + 1]
movsxd rcx, eax
sub r8, rcx
je 0x1400b7a7d
lea rdx, str.Proxy_CONNECT_followed_by__zd_bytes_of_opaque_data._Data_ignored__known_bug_39_
mov rcx, r13
call fcn.1400a61d0
mov rax, qword [rsp + 0x48]
mov dword [rax], 2
jmp 0x1400b7aa1
lea rdx, str.Proxy_CONNECT_aborted_due_to_select_poll_error
mov rcx, r13
mov dword [rsp + 0x58], 1
call fcn.1400a61d0
mov rcx, r12
call fcn.1400b68d0
test eax, eax
jne 0x1400b7b99
cmp qword [rsp + 0x68], 0x4000
mov r15, qword [rsp + 0x50]
jb 0x1400b7520
cmp dword [rsp + 0x58], 0
jne 0x1400b7cc1
cmp dword [r13 + 0x8a0c], 0xc8
je 0x1400b7b02
mov rcx, r12
call fcn.1400ae7c0
test eax, eax
jne 0x1400b7cc6
cmp byte [r12 + 0x328], al
je 0x1400b7b02
mov bl, 1
mov byte [rsp + 0xf0], bl
jmp 0x1400b7b0e
movzx ebx, byte [rsp + 0xf0]
test bl, bl
je 0x1400b7b1c
cmp qword [r13 + 0x178], 0
jne 0x1400b7ba3
cmp qword [r13 + 0x178], 0
mov r14, qword [rsp + 0x48]
je 0x1400b7bbf
cmp dword [r14], 2
jne 0x1400b7b4e
lea rdx, str.TUNNEL_STATE_switched_to:__d_n
xor r8d, r8d
mov rcx, r13
mov dword [r14], 0
call fcn.1400a6300
cmp qword [r13 + 0x178], 0
je 0x1400b7bbf
mov r15, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x70]
mov ebp, dword [rsp + 0x108]
mov rsi, qword [rsp + 0x100]
jmp 0x1400b7260
mov rcx, rbp
call qword [sub.msvcrt.dll_free]
mov rcx, rdi
call qword [sub.msvcrt.dll_free]
mov eax, 0x1b
jmp 0x1400b7cc6
mov eax, ebx
jmp 0x1400b7cc6
mov eax, 0x2a
jmp 0x1400b7cc6
mov rdi, qword [rsp + 0x90]
mov rcx, r12
mov rdx, qword [rdi]
call fcn.1400a98c0
mov qword [rdi], 0xffffffffffffffff
jmp 0x1400b7bc7
mov rdi, qword [rsp + 0x90]
cmp dword [r13 + 0x128], 0xc8
je 0x1400b7c61
test bl, bl
je 0x1400b7c00
cmp qword [r13 + 0x178], 0
je 0x1400b7c00
lea rdx, str.Connect_me_again_please_n
mov rcx, r13
mov byte [r12 + 0x33e], 1
call fcn.1400a6300
jmp 0x1400b7c33
mov rcx, qword [r13 + 0x178]
call qword [sub.msvcrt.dll_free]
mov qword [r13 + 0x178], 0
mov byte [r12 + 0x328], 1
mov rdx, qword [rdi]
mov rcx, r12
call fcn.1400a98c0
mov qword [rdi], 0xffffffffffffffff
mov rax, qword [rsp + 0x48]
mov dword [rax], 0
cmp byte [r12 + 0x33e], 0
jne 0x1400b7cae
mov r8d, dword [r13 + 0x128]
lea rdx, str.Received_HTTP_code__d_from_proxy_after_CONNECT
mov rcx, r13
call fcn.1400a61d0
jmp 0x1400b7cc1
mov rax, qword [rsp + 0x48]
mov dword [rax], 2
mov rcx, qword [r12 + 0x380]
call qword [sub.msvcrt.dll_free]
mov qword [r12 + 0x380], 0
lea rdx, str.Proxy_replied_OK_to_CONNECT_request_n
mov rcx, r13
mov byte [r13 + 0x892c], 1
call fcn.1400a6300
mov byte [r13 + 0x16d], 0
mov byte [r12 + 0x337], 0
xor eax, eax
jmp 0x1400b7cc6
lea rdx, str.Proxy_CONNECT_aborted_due_to_timeout
mov rcx, r13
call fcn.1400a61d0
mov eax, 0x38
add rsp, 0xa8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret