Function at 0x1400d31d0
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 r13
push r14
push r15
sub rsp, 0xa0
mov rbx, qword [rcx]
mov r13, rcx
add rcx, 0x210
movsxd rsi, edx
xor dil, dil
mov dword [rsp + 0x60], 0
mov r15d, r9d
mov byte [rsp + 0xe0], dil
lea r14, [r13 + 0x998]
mov rbp, r8
lea rcx, [rcx + rsi*8]
mov qword [rsp + 0x78], rcx
lea r14, [r14 + rsi*4]
mov rcx, qword [r13 + rsi*8 + 0x210]
mov qword [rsp + 0x68], rcx
xor ecx, ecx
cmp dword [r14], 2
mov qword [rsp + 0x58], rcx
mov byte [rsp + 0x40], cl
mov dword [rsp + 0x44], ecx
mov qword [rsp + 0x48], r14
jne 0x1400d325a
xor eax, eax
jmp 0x1400d3c5b
mov qword [rsp + 0x98], r12
mov byte [r13 + 0x522], cl
nop dword [rax]
cmp dword [r14], 0
jne 0x1400d34f5
mov r9d, r15d
lea rdx, str.Establish_HTTP_proxy_tunnel_to__s:_hu_n
mov r8, rbp
mov rcx, rbx
call fcn.1400aec40
mov rcx, qword [rbx + 0x178]
call qword [fcn.1400de23c]
mov qword [rbx + 0x178], 0
call fcn.1400b5510
mov rsi, rax
test rax, rax
je 0x1400d3b1c
mov r8d, r15d
lea rcx, str._s:_hu
mov rdx, rbp
call fcn.1400ba5a0
mov rbp, rax
test rax, rax
je 0x1400d3b14
mov r9b, 1
lea rdx, str.CONNECT
mov r8, rax
mov rcx, r13
call fcn.1400b6290
mov rcx, rbp
mov edi, eax
call qword [fcn.1400de23c]
test edi, edi
jne 0x1400d34d7
mov rdi, qword [rsp + 0xf0]
lea rax, [0x1400e64f4]
xor r14d, r14d
lea r15, [0x1400e64f0]
cmp dword [r13 + 0x14c], 1
lea rbp, [0x1400e46a6]
mov r12, rbp
cmove r15, rax
movzx eax, byte [r13 + 0x512]
cmp rdi, qword [r13 + 0xb8]
je 0x1400d3350
lea edx, [r14 + 0x3a]
mov rcx, rdi
call sub.VCRUNTIME140.dll_strchr
test rax, rax
setne al
test al, al
lea rcx, [0x1400e532c]
lea rax, [0x1400e5330]
mov r9, rbp
cmovne r9, rcx
mov rdx, rbp
cmovne rdx, rax
lea rcx, str._s_s_s:_hu
mov eax, dword [rsp + 0xf8]
mov r8, rdi
mov dword [rsp + 0x20], eax
call fcn.1400ba5a0
mov rbp, rax
test rax, rax
je 0x1400d3b14
lea rdx, str.Host:
mov rcx, r13
call fcn.1400b5b40
test rax, rax
jne 0x1400d33c3
mov rdx, rbp
lea rcx, str.Host:__s_r_n
call fcn.1400ba5a0
mov r14, rax
test rax, rax
je 0x1400d3b0b
lea rdx, str.Proxy_Connection:
mov rcx, r13
call fcn.1400b5b40
test rax, rax
lea rdi, str.Proxy_Connection:_Keep_Alive_r_n
lea rax, [0x1400e46a6]
mov rcx, r13
lea rdx, str.User_Agent:
cmovne rdi, rax
call fcn.1400b5b40
test rax, rax
jne 0x1400d340b
cmp qword [rbx + 0x680], rax
je 0x1400d340b
mov r12, qword [r13 + 0x570]
mov rax, qword [r13 + 0x568]
lea rdx, [0x1400e46a6]
test rax, rax
mov qword [rsp + 0x38], rdi
mov rcx, rdx
mov qword [rsp + 0x30], r12
cmovne rcx, rax
mov r9, r15
mov rax, rdx
mov qword [rsp + 0x28], rcx
test r14, r14
lea rdx, str.CONNECT__s_HTTP__s_r_n_s_s_s_s
mov r8, rbp
mov rcx, rsi
cmovne rax, r14
mov qword [rsp + 0x20], rax
call fcn.1400b5710
mov edi, eax
test r14, r14
je 0x1400d3466
mov rcx, r14
call qword [fcn.1400de23c]
mov rcx, rbp
call qword [fcn.1400de23c]
test edi, edi
jne 0x1400d34bd
mov r8, rsi
mov dl, 1
mov rcx, r13
call fcn.1400b5790
mov edi, eax
test eax, eax
jne 0x1400d34bd
lea rdx, [0x1400e4f1c]
mov rcx, rsi
call fcn.1400b5710
mov edi, eax
test eax, eax
jne 0x1400d34bd
mov eax, dword [rsp + 0xe8]
lea r8, [rbx + 0x4c80]
xor r9d, r9d
mov dword [rsp + 0x20], eax
mov rdx, r13
mov rcx, rsi
call fcn.1400b5520
mov edi, eax
xor esi, esi
test edi, edi
je 0x1400d34d2
lea rdx, str.Failed_sending_CONNECT_to_proxy
mov rcx, rbx
call fcn.1400aeb70
mov r14, qword [rsp + 0x48]
mov rcx, rsi
call fcn.1400b54e0
test edi, edi
jne 0x1400d37f4
mov esi, dword [rsp + 0xe8]
mov dword [r14], 1
mov r8b, 1
xor edx, edx
mov rcx, rbx
call fcn.1400b00c0
test rax, rax
jle 0x1400d3c3f
cmp byte [rsp + 0x100], 0
jne 0x1400d3527
mov edx, esi
mov rcx, r13
call fcn.1400af660
test al, al
je 0x1400d3c34
mov rsi, qword [rbx + 0x958]
xor eax, eax
xor ebp, ebp
mov qword [rsp + 0x50], rax
mov r14, rsi
xor r15d, r15d
mov r12d, 1
test r12d, r12d
je 0x1400d3641
mov rcx, r13
call fcn.1400b8760
test eax, eax
jne 0x1400d3c38
mov rax, qword [rbx + 0x958]
mov rcx, rbx
add rax, 0x4000
cmp rsi, rax
jae 0x1400d3b26
mov r8b, 1
xor edx, edx
call fcn.1400b00c0
mov rdi, rax
test rax, rax
jle 0x1400d3a7f
mov rdx, qword [rsp + 0x68]
lea rax, [rsp + 0x70]
mov r9d, 1
mov qword [rsp + 0x20], rax
mov r8, rsi
mov rcx, r13
call fcn.1400aece0
cmp eax, 0x51
jne 0x1400d35f1
mov rcx, qword [rsp + 0x68]
mov r9d, 0x3e8
cmp rdi, r9
cmovl r9, rdi
or r8, 0xffffffffffffffff
or rdx, r8
call fcn.1400ae4a0
cmp eax, 0xffffffff
jne 0x1400d3951
mov esi, 1
lea rdx, str.Proxy_CONNECT_aborted_due_to_select_poll_error
mov rcx, rbx
mov dword [rsp + 0x44], esi
call fcn.1400aeb70
jmp 0x1400d3645
test eax, eax
jne 0x1400d3641
cmp qword [rsp + 0x70], 0
jle 0x1400d3a34
mov rax, qword [rsp + 0x50]
inc rax
mov qword [rsp + 0x50], rax
cmp r12d, 1
jle 0x1400d36e6
mov rdi, qword [rsp + 0x58]
xor eax, eax
mov rsi, qword [rbx + 0x958]
mov qword [rsp + 0x50], rax
test rdi, rdi
je 0x1400d369a
dec rdi
mov qword [rsp + 0x58], rdi
test rdi, rdi
jg 0x1400d3543
mov esi, dword [rsp + 0x44]
mov rcx, r13
call fcn.1400b8760
test eax, eax
jne 0x1400d3c38
test esi, esi
jne 0x1400d3c4e
cmp dword [rbx + 0x4c6c], 0xc8
je 0x1400d3a9c
mov rcx, r13
call fcn.1400b5e20
test eax, eax
jne 0x1400d3c53
cmp byte [r13 + 0x509], al
je 0x1400d3a9c
mov dil, 1
mov byte [rsp + 0xe0], dil
jmp 0x1400d3aa9
lea r9, [rsp + 0x80]
mov qword [rsp + 0x80], rax
mov r8d, 1
mov rdx, rsi
mov rcx, r13
call fcn.1400d4230
cmp eax, 0xffffffff
jne 0x1400d3543
lea rdx, str.chunk_reading_DONE_n
mov rcx, rbx
call fcn.1400aec40
xor r12d, r12d
mov rax, qword [rsp + 0x48]
mov dword [rax], 2
jmp 0x1400d3543
inc ebp
inc r15
cmp byte [rsi], 0xa
je 0x1400d36f8
inc rsi
jmp 0x1400d3956
cmp byte [rbx + 0x530], 0
je 0x1400d3719
movsxd r9, ebp
mov r8, r14
mov edx, 1
mov qword [rsp + 0x20], r13
mov rcx, rbx
call fcn.1400aea10
cmp byte [rbx + 0x798], 0
jne 0x1400d3746
xor edx, edx
movsxd r9, ebp
cmp byte [rbx + 0x525], dl
mov r8, r14
mov rcx, r13
setne dl
add edx, 2
call fcn.1400ae9f0
test eax, eax
jne 0x1400d3c53
add dword [rbx + 0x4c7c], ebp
add dword [rbx + 0xc0], ebp
movzx eax, byte [r14]
cmp al, 0xd
je 0x1400d3967
cmp al, 0xa
je 0x1400d3967
mov r8d, reloc.WS2_32.dll_recvfrom
mov byte [r15 + r14], 0
mov rdx, r14
lea rcx, str.WWW_Authenticate:
call fcn.1400b9920
test eax, eax
je 0x1400d3792
mov edi, dword [rbx + 0x128]
cmp edi, 0x191
je 0x1400d37b9
mov r8d, reloc.WS2_32.dll_send
lea rcx, str.Proxy_authenticate:
mov rdx, r14
call fcn.1400b9920
test eax, eax
je 0x1400d37fb
mov edi, dword [rbx + 0x128]
cmp edi, 0x197
jne 0x1400d37fb
mov rcx, r14
call fcn.1400b5d20
mov rsi, rax
test rax, rax
je 0x1400d3b1c
cmp edi, 0x197
mov r8, rax
mov rcx, r13
sete dl
call fcn.1400b6010
mov rcx, rsi
mov edi, eax
call qword [fcn.1400de23c]
test edi, edi
je 0x1400d3942
mov eax, edi
jmp 0x1400d3c53
mov r8d, reloc.WS2_32.dll_ntohs
lea rcx, str.Content_Length:
mov rdx, r14
call fcn.1400b9920
test eax, eax
je 0x1400d3854
mov r8d, dword [rbx + 0x128]
lea eax, [r8 - 0xc8]
cmp eax, 0x64
jae 0x1400d383b
lea rdx, str.Ignoring_Content_Length_in_CONNECT__03d_response_n
mov rcx, rbx
call fcn.1400aec40
jmp 0x1400d3942
xor edx, edx
lea rcx, [r14 + 0xf]
lea r8d, [rdx + 0xa]
call sub.api_ms_win_crt_convert_l1_1_0.dll_strtoll
mov qword [rsp + 0x58], rax
jmp 0x1400d3942
lea r8, str.close
mov rcx, r14
lea rdx, str.Connection:
call fcn.1400b5c40
test al, al
je 0x1400d387b
mov byte [rsp + 0xe0], 1
jmp 0x1400d3942
mov r8d, reloc.WS2_32.dll_select
lea rcx, str.Transfer_Encoding:
mov rdx, r14
call fcn.1400b9920
test eax, eax
je 0x1400d38f3
mov r8d, dword [rbx + 0x128]
lea eax, [r8 - 0xc8]
cmp eax, 0x64
jae 0x1400d38bb
lea rdx, str.Ignoring_Transfer_Encoding_in_CONNECT__03d_response_n
mov rcx, rbx
call fcn.1400aec40
jmp 0x1400d3942
lea r8, str.chunked
mov rcx, r14
lea rdx, str.Transfer_Encoding:
call fcn.1400b5c40
test al, al
je 0x1400d3942
lea rdx, str.CONNECT_responded_chunked_n
mov rcx, rbx
call fcn.1400aec40
mov rcx, r13
mov byte [rsp + 0x40], 1
call fcn.1400d4220
jmp 0x1400d3942
lea r8, str.close
mov rcx, r14
lea rdx, str.Proxy_Connection:
call fcn.1400b5c40
test al, al
je 0x1400d3917
mov byte [rsp + 0xe0], 1
jmp 0x1400d3942
lea rdi, [rbx + 0x128]
mov rcx, r14
mov r9, rdi
lea r8, [rsp + 0x60]
lea rdx, str.HTTP_1._d__d
call fcn.140037690
cmp eax, 2
jne 0x1400d3942
mov eax, dword [rdi]
mov dword [rbx + 0x4c6c], eax
mov rsi, qword [rbx + 0x958]
xor ebp, ebp
xor r15d, r15d
mov r14, rsi
mov rax, qword [rsp + 0x50]
cmp rax, 0x4000
jb 0x1400d3543
jmp 0x1400d3641
mov rsi, qword [rbx + 0x958]
xor eax, eax
cmp dword [rbx + 0x128], 0x197
mov qword [rsp + 0x50], rax
jne 0x1400d36d3
cmp byte [rbx + 0x4b28], al
jne 0x1400d36d3
mov rdi, qword [rsp + 0x58]
lea r12d, [rax + 2]
test rdi, rdi
je 0x1400d39be
mov r8, rdi
lea rdx, str.Ignore__I64d_bytes_of_response_body_n
mov rcx, rbx
call fcn.1400aec40
mov rax, qword [rsp + 0x48]
mov dword [rax], r12d
jmp 0x1400d3543
cmp byte [rsp + 0x40], al
je 0x1400d36d3
lea rdx, str.Ignore_chunked_response_body_n
mov rcx, rbx
call fcn.1400aec40
lea rax, [r14 + 1]
mov byte [rbx + 0x16d], 1
cmp byte [rax], 0xa
lea r9, [rsp + 0x70]
mov r8d, 1
mov rcx, r13
cmovne rax, r14
mov r14, rax
lea rdx, [rax + 1]
call fcn.1400d4230
cmp eax, 0xffffffff
jne 0x1400d36d6
lea rdx, str.chunk_reading_DONE_n
mov rcx, rbx
call fcn.1400aec40
mov rax, qword [rsp + 0x48]
xor r12d, r12d
mov dword [rax], 2
mov dword [rax], 2
jmp 0x1400d3543
cmp dword [rbx + 0x1e8], 0
je 0x1400d3a62
cmp dword [rbx + 0x4b20], 0
je 0x1400d3a62
lea rdx, str.Proxy_CONNECT_connection_closed_n
mov byte [r13 + 0x522], 1
mov rcx, rbx
call fcn.1400aec40
jmp 0x1400d3641
mov esi, 1
lea rdx, str.Proxy_CONNECT_aborted
mov rcx, rbx
mov dword [rsp + 0x44], esi
call fcn.1400aeb70
jmp 0x1400d3645
lea rdx, str.Proxy_CONNECT_aborted_due_to_timeout
mov rcx, rbx
call fcn.1400aeb70
mov esi, 2
mov dword [rsp + 0x44], esi
jmp 0x1400d3645
movzx edi, byte [rsp + 0xe0]
test dil, dil
je 0x1400d3ab3
cmp qword [rbx + 0x178], 0
jne 0x1400d3b32
cmp qword [rbx + 0x178], 0
mov r14, qword [rsp + 0x48]
je 0x1400d3b4b
cmp dword [r14], 2
jne 0x1400d3ae5
xor r8d, r8d
mov dword [r14], 0
lea rdx, str.TUNNEL_STATE_switched_to:__d_n
mov rcx, rbx
call fcn.1400aec40
cmp qword [rbx + 0x178], 0
je 0x1400d3b4b
mov rbp, qword [rsp + 0xf0]
mov esi, dword [rsp + 0xe8]
mov r15d, dword [rsp + 0xf8]
jmp 0x1400d3270
mov rcx, rbp
call qword [fcn.1400de23c]
mov rcx, rsi
call fcn.1400b54e0
mov eax, reloc.WLDAP32.dll_Ordinal_27
jmp 0x1400d3c53
lea rdx, str.CONNECT_response_too_large_
jmp 0x1400d3c49
mov rsi, qword [rsp + 0x78]
mov rcx, r13
mov rdx, qword [rsi]
call fcn.1400af5f0
mov qword [rsi], 0xffffffffffffffff
jmp 0x1400d3b50
mov rsi, qword [rsp + 0x78]
cmp dword [rbx + 0x128], 0xc8
je 0x1400d3bec
test dil, dil
je 0x1400d3b88
cmp qword [rbx + 0x178], 0
je 0x1400d3b88
lea rdx, str.Connect_me_again_please_n
mov byte [r13 + 0x522], 1
mov rcx, rbx
call fcn.1400aec40
jmp 0x1400d3bbf
mov rcx, qword [rbx + 0x178]
call qword [fcn.1400de23c]
mov edx, 2
mov qword [rbx + 0x178], 0
mov rcx, r13
call fcn.1400af730
mov rdx, qword [rsi]
mov rcx, r13
call fcn.1400af5f0
mov qword [rsi], 0xffffffffffffffff
mov rax, qword [rsp + 0x48]
mov dword [rax], 0
cmp byte [r13 + 0x522], 0
jne 0x1400d3c34
mov r8d, dword [rbx + 0x128]
lea rdx, str.Received_HTTP_code__d_from_proxy_after_CONNECT
mov rcx, rbx
call fcn.1400aeb70
jmp 0x1400d3c4e
mov rax, qword [rsp + 0x48]
mov dword [rax], 2
mov rcx, qword [r13 + 0x568]
call qword [fcn.1400de23c]
mov qword [r13 + 0x568], 0
lea rdx, str.Proxy_replied_OK_to_CONNECT_request_n
mov rcx, rbx
mov byte [rbx + 0x4b24], 1
call fcn.1400aec40
mov byte [rbx + 0x16d], 0
mov byte [r13 + 0x51b], 0
xor eax, eax
jmp 0x1400d3c53
mov eax, Ordinal_46
jmp 0x1400d3c53
lea rdx, str.Proxy_CONNECT_aborted_due_to_timeout
mov rcx, rbx
call fcn.1400aeb70
mov eax, gethostname
mov r12, qword [rsp + 0x98]
add rsp, 0xa0
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret